[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]accept exits with 9 [03:16:26]New connection [03:16:26]New thread 3066555748 created [03:16:26]Thread 3066699108 joined [03:16:26]Waiting for new connection... [03:16:26] Sock 9.Parse request [03:16:26]Sock 9.Check first char [03:16:26]Sock 9.First char is OK [03:16:26]request: POST /json_proto HTTP/1.0 [03:16:26]Method: POST [03:16:26]URL: /json_proto [03:16:26]Method is POST - this is cgi request [03:16:26]url: /json_proto [03:16:26]query_string will be loaded in cgi processing [03:16:26]execute_cgi json_proto POST (null) [03:16:26]execute_cgi path=json_proto method=POST [03:16:26]POST find Content-Length [03:16:26]Host: 172.17.50.3:8080 [03:16:26]Content-Length: 683 [03:16:26]Content-Type: application/json [03:16:26] [03:16:26]POST finish read [03:16:26]Found Content-Length = 683 [03:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886269", "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:16:26]execute_script... [03:16: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)2886269", "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:16:26]POST & json_proto [03:16:26]process_json_proto [03:16:26]json parsed OK: [03:16:26]protocol is kg_v1.0 [03:16:26]action value=close_receipt [03:16:26]process_action close_receipt [03:16:26]cmd_close_receipt [03:16:26]MH_GetDate [03:16:26]Write to MH i2c: F0 00 00 4F 3C 7A [03:16:26]Write i2c OK [03:16:26]MH_I2C_Read... [03:16:26]Read from MH i2c: F0 [03:16:26]MH_I2C_Read... [03:16:26]Read from MH i2c: F0 09 00 [03:16:26]MH_I2C_Read... [03:16:26]Read from MH i2c: F0 09 00 4F 3C 00 8D 6A 18 67 6B 98 1E 66 80 [03:16:26]GetLastDocTimeStamp 1729652856 [03:16:26]current date 1729653389 [03:16:26]FM_GetShiftState [03:16:26]SAM_PROTO_GetShiftState [03:16:26]wFMCommunicate request_size=4 [03:16:26]MH_SAM_APDU [03:16:26]CAPDU: 80 13 01 00 [03:16:26]Write to MH i2c: E2 08 00 50 3C 80 13 01 00 00 00 00 00 09 [03:16:26]Write i2c OK [03:16:26]MH_I2C_Read... [03:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:26]Read from MH i2c: E2 [03:16:26]MH_I2C_Read... [03:16:26]Read from MH i2c: E2 0E 00 [03:16:26]MH_I2C_Read... [03:16:26]Read from MH i2c: E2 0E 00 50 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 96 [03:16:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:16:26]wFMCommunicate OK [03:16:26]SAM_PROTO_GetShiftState done [03:16:26]FM_GetShiftState done [03:16:26]opened in 1729642435 [03:16:26]opened+sec_in_day 1729728835 [03:16:26]quantity*price = 100015 [03:16:26]sum+1 = 100017 [03:16:26]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 СНО: Общий режим Чек 18 23.10.2024 03:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70502 ФПД: 224949572921395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70502&fm=224949572921395&tin=02508201610067®Number=0000000000156251&sum=100000 [03:16:27]StoreToDocumentArchive [03:16:27]shift 196 fd 70502 [03:16:27]save to /storage/0196/doc_00070502 [03:16:27]save last doc name /storage/0196/doc_00070502 to /storage/kkm_last_doc_name [03:16:27]save OK [03:16:27]Clear old archive folders... [03:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:16:27]tlvbuf is 00CF2300 [03:16:27]SAM_PROTO_ClearQueue [03:16:27]wFMCommunicate request_size=4 [03:16:27]MH_SAM_APDU [03:16:27]CAPDU: 80 09 00 00 [03:16:27]Write to MH i2c: E2 08 00 5D 3C 80 09 00 00 00 00 00 00 0B [03:16:27]Write i2c OK [03:16:27]MH_I2C_Read... [03:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:27]Read from MH i2c: E2 [03:16:27]MH_I2C_Read... [03:16:27]Read from MH i2c: E2 03 00 [03:16:27]MH_I2C_Read... [03:16:27]Read from MH i2c: E2 03 00 5D 3C 00 90 00 0D [03:16:27]RAPDU: 90 00 [03:16:27]wFMCommunicate OK [03:16:27]SAM_PROTO_ClearQueue done [03:16:27]KKMCreateOFDPacket [03:16:27]OFDProtocolAddRootSTLVToBuf [03:16:27]FM_MakeSignedData [03:16:27]FM_MakeSignedData [03:16:27]SAM_PROTO_SignData [03:16:27]wFMCommunicate request_size=4 [03:16:27]MH_SAM_APDU [03:16:27]CAPDU: 80 0D 01 02 [03:16:27]Write to MH i2c: E2 08 00 5E 3C 80 0D 01 02 00 00 00 00 13 [03:16:27]Write i2c OK [03:16:27]MH_I2C_Read... [03:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:27]Read from MH i2c: E2 [03:16:27]MH_I2C_Read... [03:16:27]Read from MH i2c: E2 03 00 [03:16:27]MH_I2C_Read... [03:16:27]Read from MH i2c: E2 03 00 5E 3C 00 90 00 0E [03:16:27]RAPDU: 90 00 [03:16:27]wFMCommunicate OK [03:16:27]wFMCommunicate request_size=255 [03:16:27]MH_SAM_APDU [03:16: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 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 12 00 00 00 F4 03 04 00 8D 6A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CC [03:16:27]Write to MH i2c: E2 02 01 5F 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 12 00 00 00 F4 03 04 00 8D 6A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CC 00 00 28 [03:16:27]Write i2c OK [03:16:27]MH_I2C_Read... [03:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:28]Read from MH i2c: E2 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 03 00 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 03 00 5F 3C 00 90 00 0F [03:16:28]RAPDU: 90 00 [03:16:28]wFMCommunicate OK [03:16:28]wFMCommunicate request_size=10 [03:16:28]MH_SAM_APDU [03:16:28]CAPDU: 80 0D 02 02 05 97 27 62 E8 33 [03:16:28]Write to MH i2c: E2 0D 00 60 3C 80 0D 02 02 05 00 97 27 62 E8 33 00 00 5B [03:16:28]Write i2c OK [03:16:28]MH_I2C_Read... [03:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:28]Read from MH i2c: E2 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 03 00 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 03 00 60 3C 00 90 00 10 [03:16:28]RAPDU: 90 00 [03:16:28]wFMCommunicate OK [03:16:28]wFMCommunicate request_size=4 [03:16:28]MH_SAM_APDU [03:16:28]CAPDU: 80 0D 03 02 [03:16:28]Write to MH i2c: E2 08 00 61 3C 80 0D 03 02 00 00 00 00 18 [03:16:28]Write i2c OK [03:16:28]MH_I2C_Read... [03:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:28]Read from MH i2c: E2 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 0B 00 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 0B 00 61 3C 00 ED 27 2F 83 C6 BC 6A DB 90 00 A6 [03:16:28]RAPDU: ED 27 2F 83 C6 BC 6A DB 90 00 [03:16:28]wFMCommunicate OK [03:16:28]SAM_PROTO_SignData done [03:16:28]FM_MakeSignedData done [03:16:28]CreateOFDProtocolMessage [03:16:28]wFMCommunicate request_size=4 [03:16:28]MH_SAM_APDU [03:16:28]CAPDU: 80 11 00 00 [03:16:28]Write to MH i2c: E2 08 00 62 3C 80 11 00 00 00 00 00 00 18 [03:16:28]Write i2c OK [03:16:28]MH_I2C_Read... [03:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:28]Read from MH i2c: E2 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 17 00 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: E2 17 00 62 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [03: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 [03:16:28]wFMCommunicate OK [03:16:28]CreateOFDProtocolMessage done [03:16:28]OFDSenderStorePacket 70502 [03:16:28]StoreOFDPacket docnum=70502 [03:16: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 43 44 07 01 AB 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 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 12 00 00 00 F4 03 04 00 8D 6A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CC 97 27 62 E8 33 ED 27 2F 83 C6 BC 6A DB [03:16:28]CheckFolder [03:16:28]dirname=/storage/ofd_packets [03:16:28]CheckFolder done [03:16:28]ProducePacketName [03:16:28]name=ofd_packets/00070502 [03:16:28]NVStorageSaveData ofd_packets/00070502 [03:16:28]File name is /storage/ofd_packets/00070502 [03:16:28]Write 301 bytes [03:16:28]NVStorageSaveData done [03:16:28]OFDSenderStorePacket done [03:16:28]KKMCreateOFDPacket done [03:16:28]NVStorageSaveData kkm_last_timestamp [03:16:28]File name is /storage/kkm_last_timestamp [03:16:28]Write 4 bytes [03:16:28]NVStorageSaveData done [03:16:28]ExternCall_PrintAddStr [03:16:28]wPrintStart [03:16:28]Write to MH i2c: 01 00 00 63 3C 9F [03:16:28]Write i2c OK [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: 01 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: 01 07 00 [03:16:28]MH_I2C_Read... [03:16:28]Read from MH i2c: 01 07 00 63 3C 00 00 00 00 00 FF 0F B4 [03:16:28]RasterBufferAndPrint [03:16:28]line Счет N : (1)2886269 [03:16:28]line ИНН: 02508201610067 [03:16:28]line Контрольно-Кассовый Чек [03:16:28]line ПРОДАЖА [03:16:28]line ТРК (МРК, ГНК) : 42 [03:16:28]line Товар: 2710124130 [03:16:28]line Аи-92-К-5 [03:16:28]line 14.950 * 66.90 [03:16:28]line = 1000.16 [03:16:28]line НДС 12% НСП 1% [03:16:28]line > о реализуемом товаре [03:16:28]line ОКРУГЛЕНИЕ: -0.16 [03:16:28]line ИТОГО: 1000.00 [03:16:28]line Внесено: 1000.00 [03:16:28]line СДАЧА: 0.00 [03:16:28]line НСП 1% : 8.85 [03:16:28]line НДС 12% : 106.21 [03:16:28]line Наличными: 1000.00 [03:16:28]line Безнал.: 0.00 [03:16:28]line Место: АЗС № 85 "Партнер Нефть" [03:16:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:16:28]line СНО: Общий режим [03:16:28]line Чек 18 23.10.2024 03:16 [03:16:28]line Смена: 196 ФФД: 1.0 [03:16:28]line ЗНМ: 0300000167 [03:16:28]line РНМ: 0000000000156251 [03:16:28]line Версия ККМ: v1.0 [03:16:28]line ФМ: 0000000000963346 [03:16:28]line ФД: 70502 [03:16:28]line ФПД: 224949572921395 [03:16:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70502&fm=224949572921395&tin=02508201610067®Number=0000000000156251&sum=100000 [03:16:28]OFD Sender: Processing packet 70502 [packets to send 18, broken 17] [03:16:28]ProducePacketName [03:16:28]name=ofd_packets/00070502 [03:16:28]OFD Sender: To server: pG, [03:16:28]CommunicateWithHost lk.salyk.kg:30040 [03:16:28]ConnectInit lk.salyk.kg [03:16:28]written 0, free lines is 4095 [03:16:28]Connected sock=10 [03:16: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 43 44 07 01 AB 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 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 12 00 00 00 F4 03 04 00 8D 6A 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CC 97 27 62 E8 33 ED 27 2F 83 C6 BC 6A DB [03:16: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 C5 2C 47 00 A4 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 66 13 01 00 F4 03 04 00 2C 14 18 67 B6 04 01 00 00 FE 8E 30 C5 6C BE 1B 66 [03:16:28]CommunicateWithHost err = 0 [03:16:28]CheckOFDResponse [03:16:28]1017 (14) - 77093643461234 [03:16:28]1041 (16) - 0000000000963346 [03:16:28]1040 (4) - 70502 [03:16:28]1012 (4) - 22.10.2024 21:07 [03:16:28]1206 (1) - 0 [03:16:28]OFD Sender: Remove packet 70502 [03:16:28]ProducePacketName [03:16:28]name=ofd_packets/00070502 [03:16:28]NVStorageDeleteData [03:16:29]Write to MH i2c: 01 00 00 8E 3C CA [03:16:29]Write i2c OK [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: 01 [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: 01 07 00 [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: 01 07 00 8E 3C 00 00 00 00 00 FA 0C D7 [03:16:29]RasterBufferAndPrint [03:16:29]line [03:16:29]line [03:16:29]line [03:16:29]line [03:16:29]line [03:16:29]written 0, free lines is 3332 [03:16:29]MH_Cut [03:16:29]Write to MH i2c: D1 01 00 95 3C 01 A3 [03:16:29]Write i2c OK [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: D1 [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: D1 01 00 [03:16:29]MH_I2C_Read... [03:16:29]Read from MH i2c: D1 01 00 95 3C 00 A2 [03:16:29]Write to MH i2c: 01 00 00 96 3C D2 [03:16:29]Write i2c OK [03:16:29]MH_I2C_Read... [03:16:29]OFD Sender: No OFD packet to send [03:16:29]*** Cut start [03:16:29]*** Partial cut [03:16:29]*** CUTSNS_PIN = 1 [03:16:29]*** CUTSNS_PIN = 0 [03:16:30]*** Brake cut motor [03:16:30]Read from MH i2c: 01 [03:16:30]MH_I2C_Read... [03:16:30]*** Stop cut motor [03:16:30]*** Cut end [03:16:30]Read from MH i2c: 01 07 00 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: 01 07 00 96 3C 00 00 00 00 00 FF 0F E7 [03:16:30]process_action close_receipt done [03:16:30]requested_data is exist [03:16:30]produce_requested_data [03:16:30]requested_item fm.sn is exist - process it [03:16:30]wFMCommunicate request_size=4 [03:16:30]MH_SAM_APDU [03:16:30]CAPDU: 80 11 00 00 [03:16:30]Write to MH i2c: E2 08 00 97 3C 80 11 00 00 00 00 00 00 4D [03:16:30]Write i2c OK [03:16:30]MH_I2C_Read... [03:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:30]Read from MH i2c: E2 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 17 00 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 17 00 97 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [03:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:16:30]wFMCommunicate OK [03:16:30]requested_item fd.num is exist - process it [03:16:30]SAM_PROTO_GetFieldsCounters [03:16:30]wFMCommunicate request_size=4 [03:16:30]MH_SAM_APDU [03:16:30]CAPDU: 80 13 00 00 [03:16:30]Write to MH i2c: E2 08 00 98 3C 80 13 00 00 00 00 00 00 50 [03:16:30]Write i2c OK [03:16:30]MH_I2C_Read... [03:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:30]Read from MH i2c: E2 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 62 00 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 62 00 98 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 66 13 01 00 0E 04 04 00 C4 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 DF [03:16: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 66 13 01 00 0E 04 04 00 C4 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 [03:16:30]wFMCommunicate OK [03:16:30]SAM_PROTO_GetFieldsCounters done [03:16:30]requested_item shift.num is exist - process it [03:16:30]requested_item shift.opened is exist - process it [03:16:30]req_shift_opened [03:16:30]FM_GetShiftState [03:16:30]SAM_PROTO_GetShiftState [03:16:30]wFMCommunicate request_size=4 [03:16:30]MH_SAM_APDU [03:16:30]CAPDU: 80 13 01 00 [03:16:30]Write to MH i2c: E2 08 00 99 3C 80 13 01 00 00 00 00 00 52 [03:16:30]Write i2c OK [03:16:30]MH_I2C_Read... [03:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:30]Read from MH i2c: E2 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 0E 00 [03:16:30]MH_I2C_Read... [03:16:30]Read from MH i2c: E2 0E 00 99 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DF [03:16:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:16:30]wFMCommunicate OK [03:16:30]SAM_PROTO_GetShiftState done [03:16:30]FM_GetShiftState done [03:16:30]req_shift_opened done [03:16:30]requested_item shift.open_date is exist - process it [03:16:30]req_shift_open_date [03:16:30]req_shift_open_date done [03:16:30]produce_requested_data done [03:16:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70502,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [03:16:30]process_action_free close_receipt [03:16:30]json_value_free [03:16:30]json_value_free done [03:16:30]process_json_proto returns [03:16:30]Send response to host [03:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70502,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [03:16:30]free response buf [03:16:30]execute_script done [03:16:30]execute_script returns [03:16:30]free content buf [03:16:30]Sock 9.Close socket [03:16:30]Sock 9.Thread stoped [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:30]accept exits with 7 [03:23:30]New connection [03:23:30]New thread 3066699108 created [03:23:30]Thread 3066555748 joined [03:23:30]Waiting for new connection... [03:23:30] Sock 7.Parse request [03:23:30]Sock 7.Check first char [03:23:30]Sock 7.First char is OK [03:23:30]request: POST /json_proto HTTP/1.0 [03:23:30]Method: POST [03:23:30]URL: /json_proto [03:23:30]Method is POST - this is cgi request [03:23:30]url: /json_proto [03:23:30]query_string will be loaded in cgi processing [03:23:30]execute_cgi json_proto POST (null) [03:23:30]execute_cgi path=json_proto method=POST [03:23:30]POST find Content-Length [03:23:30]Host: 172.17.50.3:8080 [03:23:30]Content-Length: 686 [03:23:30]Content-Type: application/json [03:23:30] [03:23:30]POST finish read [03:23:30]Found Content-Length = 686 [03:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886270", "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" ] } } [03:23:30]execute_script... [03:23: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)2886270", "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" ] } } [03:23:30]POST & json_proto [03:23:30]process_json_proto [03:23:30]json parsed OK: [03:23:30]protocol is kg_v1.0 [03:23:30]action value=close_receipt [03:23:30]process_action close_receipt [03:23:30]cmd_close_receipt [03:23:30]MH_GetDate [03:23:30]Write to MH i2c: F0 00 00 9A 3C C5 [03:23:30]Write i2c OK [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: F0 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: F0 09 00 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: F0 09 00 9A 3C 00 35 6C 18 67 6B 98 1E 66 75 [03:23:30]GetLastDocTimeStamp 1729653389 [03:23:30]current date 1729653813 [03:23:30]FM_GetShiftState [03:23:30]SAM_PROTO_GetShiftState [03:23:30]wFMCommunicate request_size=4 [03:23:30]MH_SAM_APDU [03:23:30]CAPDU: 80 13 01 00 [03:23:30]Write to MH i2c: E2 08 00 9B 3C 80 13 01 00 00 00 00 00 54 [03:23:30]Write i2c OK [03:23:30]MH_I2C_Read... [03:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:30]Read from MH i2c: E2 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: E2 0E 00 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: E2 0E 00 9B 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E1 [03:23:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:23:30]wFMCommunicate OK [03:23:30]SAM_PROTO_GetShiftState done [03:23:30]FM_GetShiftState done [03:23:30]opened in 1729642435 [03:23:30]opened+sec_in_day 1729728835 [03:23:30]quantity*price = 150037 [03:23:30]sum+1 = 150038 [03:23:30]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 СНО: Общий режим Чек 19 23.10.2024 03:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70503 ФПД: 216354424064185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T032333&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70503&fm=216354424064185&tin=02508201610067®Number=0000000000156251&sum=150000 [03:23:31]StoreToDocumentArchive [03:23:31]shift 196 fd 70503 [03:23:31]save to /storage/0196/doc_00070503 [03:23:31]save last doc name /storage/0196/doc_00070503 to /storage/kkm_last_doc_name [03:23:31]save OK [03:23:31]Clear old archive folders... [03:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:23:31]tlvbuf is 00CF21D0 [03:23:31]SAM_PROTO_ClearQueue [03:23:31]wFMCommunicate request_size=4 [03:23:31]MH_SAM_APDU [03:23:31]CAPDU: 80 09 00 00 [03:23:31]Write to MH i2c: E2 08 00 A8 3C 80 09 00 00 00 00 00 00 56 [03:23:31]Write i2c OK [03:23:31]MH_I2C_Read... [03:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:23:31]Read from MH i2c: E2 [03:23:31]MH_I2C_Read... [03:23:31]Read from MH i2c: E2 03 00 [03:23:31]MH_I2C_Read... [03:23:31]Read from MH i2c: E2 03 00 A8 3C 00 90 00 58 [03:23:31]RAPDU: 90 00 [03:23:31]wFMCommunicate OK [03:23:31]SAM_PROTO_ClearQueue done [03:23:31]KKMCreateOFDPacket [03:23:31]OFDProtocolAddRootSTLVToBuf [03:23:31]FM_MakeSignedData [03:23:31]FM_MakeSignedData [03:23:31]SAM_PROTO_SignData [03:23:31]wFMCommunicate request_size=4 [03:23:31]MH_SAM_APDU [03:23:31]CAPDU: 80 0D 01 02 [03:23:31]Write to MH i2c: E2 08 00 A9 3C 80 0D 01 02 00 00 00 00 5E [03:23:31]Write i2c OK [03:23:31]MH_I2C_Read... [03:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:23:31]Read from MH i2c: E2 [03:23:31]MH_I2C_Read... [03:23:31]Read from MH i2c: E2 03 00 [03:23:31]MH_I2C_Read... [03:23:31]Read from MH i2c: E2 03 00 A9 3C 00 90 00 59 [03:23:31]RAPDU: 90 00 [03:23:31]wFMCommunicate OK [03:23:31]wFMCommunicate request_size=255 [03:23:31]MH_SAM_APDU [03:23:31]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 13 00 00 00 F4 03 04 00 35 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C4 C5 [03:23:31]Write to MH i2c: E2 02 01 AA 3C 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 13 00 00 00 F4 03 04 00 35 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C4 C5 00 00 13 [03:23:31]Write i2c OK [03:23:31]MH_I2C_Read... [03:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:32]Read from MH i2c: E2 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 03 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 03 00 AA 3C 00 90 00 5A [03:23:32]RAPDU: 90 00 [03:23:32]wFMCommunicate OK [03:23:32]wFMCommunicate request_size=9 [03:23:32]MH_SAM_APDU [03:23:32]CAPDU: 80 0D 02 02 04 F0 97 88 B9 [03:23:32]Write to MH i2c: E2 0C 00 AB 3C 80 0D 02 02 04 00 F0 97 88 B9 00 00 31 [03:23:32]Write i2c OK [03:23:32]MH_I2C_Read... [03:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:32]Read from MH i2c: E2 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 03 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 03 00 AB 3C 00 90 00 5B [03:23:32]RAPDU: 90 00 [03:23:32]wFMCommunicate OK [03:23:32]wFMCommunicate request_size=4 [03:23:32]MH_SAM_APDU [03:23:32]CAPDU: 80 0D 03 02 [03:23:32]Write to MH i2c: E2 08 00 AC 3C 80 0D 03 02 00 00 00 00 63 [03:23:32]Write i2c OK [03:23:32]MH_I2C_Read... [03:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:23:32]Read from MH i2c: E2 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 0B 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 0B 00 AC 3C 00 85 D3 85 AA 63 40 9A FE 90 00 26 [03:23:32]RAPDU: 85 D3 85 AA 63 40 9A FE 90 00 [03:23:32]wFMCommunicate OK [03:23:32]SAM_PROTO_SignData done [03:23:32]FM_MakeSignedData done [03:23:32]CreateOFDProtocolMessage [03:23:32]wFMCommunicate request_size=4 [03:23:32]MH_SAM_APDU [03:23:32]CAPDU: 80 11 00 00 [03:23:32]Write to MH i2c: E2 08 00 AD 3C 80 11 00 00 00 00 00 00 63 [03:23:32]Write i2c OK [03:23:32]MH_I2C_Read... [03:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:32]Read from MH i2c: E2 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 17 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: E2 17 00 AD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [03:23:32]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:32]wFMCommunicate OK [03:23:32]CreateOFDProtocolMessage done [03:23:32]OFDSenderStorePacket 70503 [03:23:32]StoreOFDPacket docnum=70503 [03:23: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 07 5D 06 01 7D 64 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 13 00 00 00 F4 03 04 00 35 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C4 C5 F0 97 88 B9 85 D3 85 AA 63 40 9A FE [03:23:32]CheckFolder [03:23:32]dirname=/storage/ofd_packets [03:23:32]CheckFolder done [03:23:32]ProducePacketName [03:23:32]name=ofd_packets/00070503 [03:23:32]NVStorageSaveData ofd_packets/00070503 [03:23:32]File name is /storage/ofd_packets/00070503 [03:23:32]Write 300 bytes [03:23:32]NVStorageSaveData done [03:23:32]OFDSenderStorePacket done [03:23:32]KKMCreateOFDPacket done [03:23:32]NVStorageSaveData kkm_last_timestamp [03:23:32]File name is /storage/kkm_last_timestamp [03:23:32]Write 4 bytes [03:23:32]NVStorageSaveData done [03:23:32]ExternCall_PrintAddStr [03:23:32]wPrintStart [03:23:32]Write to MH i2c: 01 00 00 AE 3C EA [03:23:32]Write i2c OK [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 07 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 07 00 AE 3C 00 00 00 00 00 FF 0F FF [03:23:32]RasterBufferAndPrint [03:23:32]line Счет N : (1)2886270 [03:23:32]line ИНН: 02508201610067 [03:23:32]line Контрольно-Кассовый Чек [03:23:32]line ПРОДАЖА [03:23:32]line ТРК (МРК, ГНК) : 71 [03:23:32]line Товар: 2711129700 [03:23:32]line ГАЗ-К-3 [03:23:32]line 38.570 * 38.90 [03:23:32]line = 1500.37 [03:23:32]line НДС 12% НСП 1% [03:23:32]line > о реализуемом товаре [03:23:32]line ОКРУГЛЕНИЕ: -0.37 [03:23:32]line ИТОГО: 1500.00 [03:23:32]line Внесено: 1500.00 [03:23:32]line СДАЧА: 0.00 [03:23:32]line НСП 1% : 13.28 [03:23:32]line НДС 12% : 159.33 [03:23:32]line Наличными: 1500.00 [03:23:32]line Безнал.: 0.00 [03:23:32]line Место: АЗС № 85 "Партнер Нефть" [03:23:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:23:32]line СНО: Общий режим [03:23:32]line Чек 19 23.10.2024 03:23 [03:23:32]line Смена: 196 ФФД: 1.0 [03:23:32]line ЗНМ: 0300000167 [03:23:32]line РНМ: 0000000000156251 [03:23:32]line Версия ККМ: v1.0 [03:23:32]line ФМ: 0000000000963346 [03:23:32]line ФД: 70503 [03:23:32]line ФПД: 216354424064185 [03:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T032333&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70503&fm=216354424064185&tin=02508201610067®Number=0000000000156251&sum=150000 [03:23:32]OFD Sender: Processing packet 70503 [packets to send 18, broken 17] [03:23:32]ProducePacketName [03:23:32]name=ofd_packets/00070503 [03:23:32]OFD Sender: To server: pG, [03:23:32]CommunicateWithHost lk.salyk.kg:30040 [03:23:32]ConnectInit lk.salyk.kg [03:23:32]written 0, free lines is 4095 [03:23:32]Connected sock=10 [03:23: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 0E 01 00 00 07 5D 06 01 7D 64 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 13 00 00 00 F4 03 04 00 35 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C4 C5 F0 97 88 B9 85 D3 85 AA 63 40 9A FE [03:23: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 EB AE 47 00 B9 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 67 13 01 00 F4 03 04 00 D4 15 18 67 B6 04 01 00 00 C9 21 AE 44 FE 92 49 B0 [03:23:32]CommunicateWithHost err = 0 [03:23:32]CheckOFDResponse [03:23:32]1017 (14) - 77093643461234 [03:23:32]1041 (16) - 0000000000963346 [03:23:32]1040 (4) - 70503 [03:23:32]1012 (4) - 22.10.2024 21:15 [03:23:32]1206 (1) - 0 [03:23:32]OFD Sender: Remove packet 70503 [03:23:32]ProducePacketName [03:23:32]name=ofd_packets/00070503 [03:23:32]NVStorageDeleteData [03:23:33]Write to MH i2c: 01 00 00 D9 3C 15 [03:23:33]Write i2c OK [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: 01 [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: 01 07 00 [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: 01 07 00 D9 3C 00 00 00 00 00 04 0D 2D [03:23:33]RasterBufferAndPrint [03:23:33]line [03:23:33]line [03:23:33]line [03:23:33]line [03:23:33]line [03:23:33]written 0, free lines is 3341 [03:23:33]MH_Cut [03:23:33]Write to MH i2c: D1 01 00 E0 3C 01 EE [03:23:33]Write i2c OK [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: D1 [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: D1 01 00 [03:23:33]MH_I2C_Read... [03:23:33]Read from MH i2c: D1 01 00 E0 3C 00 ED [03:23:33]Write to MH i2c: 01 00 00 E1 3C 1D [03:23:33]Write i2c OK [03:23:33]MH_I2C_Read... [03:23:33]OFD Sender: No OFD packet to send [03:23:33]*** Cut start [03:23:33]*** Partial cut [03:23:33]*** CUTSNS_PIN = 1 [03:23:33]*** CUTSNS_PIN = 0 [03:23:33]*** Brake cut motor [03:23:34]Read from MH i2c: 01 [03:23:34]MH_I2C_Read... [03:23:34]*** Stop cut motor [03:23:34]*** Cut end [03:23:34]Read from MH i2c: 01 07 00 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: 01 07 00 E1 3C 00 00 00 00 00 FF 0F 32 [03:23:34]process_action close_receipt done [03:23:34]requested_data is exist [03:23:34]produce_requested_data [03:23:34]requested_item fm.sn is exist - process it [03:23:34]wFMCommunicate request_size=4 [03:23:34]MH_SAM_APDU [03:23:34]CAPDU: 80 11 00 00 [03:23:34]Write to MH i2c: E2 08 00 E2 3C 80 11 00 00 00 00 00 00 98 [03:23:34]Write i2c OK [03:23:34]MH_I2C_Read... [03:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:34]Read from MH i2c: E2 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 17 00 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 17 00 E2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [03:23:34]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:34]wFMCommunicate OK [03:23:34]requested_item fd.num is exist - process it [03:23:34]SAM_PROTO_GetFieldsCounters [03:23:34]wFMCommunicate request_size=4 [03:23:34]MH_SAM_APDU [03:23:34]CAPDU: 80 13 00 00 [03:23:34]Write to MH i2c: E2 08 00 E3 3C 80 13 00 00 00 00 00 00 9B [03:23:34]Write i2c OK [03:23:34]MH_I2C_Read... [03:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:23:34]Read from MH i2c: E2 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 62 00 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 62 00 E3 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 67 13 01 00 0E 04 04 00 C4 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 2E [03:23: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 67 13 01 00 0E 04 04 00 C4 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 [03:23:34]wFMCommunicate OK [03:23:34]SAM_PROTO_GetFieldsCounters done [03:23:34]requested_item shift.num is exist - process it [03:23:34]requested_item shift.opened is exist - process it [03:23:34]req_shift_opened [03:23:34]FM_GetShiftState [03:23:34]SAM_PROTO_GetShiftState [03:23:34]wFMCommunicate request_size=4 [03:23:34]MH_SAM_APDU [03:23:34]CAPDU: 80 13 01 00 [03:23:34]Write to MH i2c: E2 08 00 E4 3C 80 13 01 00 00 00 00 00 9D [03:23:34]Write i2c OK [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 [03:23:34]MH_I2C_Read... [03:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:34]Read from MH i2c: E2 0E 00 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: E2 0E 00 E4 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2A [03:23:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:23:34]wFMCommunicate OK [03:23:34]SAM_PROTO_GetShiftState done [03:23:34]FM_GetShiftState done [03:23:34]req_shift_opened done [03:23:34]requested_item shift.open_date is exist - process it [03:23:34]req_shift_open_date [03:23:34]req_shift_open_date done [03:23:34]produce_requested_data done [03:23:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70503,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [03:23:34]process_action_free close_receipt [03:23:34]json_value_free [03:23:34]json_value_free done [03:23:34]process_json_proto returns [03:23:34]Send response to host [03:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70503,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [03:23:34]free response buf [03:23:34]execute_script done [03:23:34]execute_script returns [03:23:34]free content buf [03:23:34]Sock 7.Close socket [03:23:34]Sock 7.Thread stoped [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:41]accept exits with 9 [03:26:41]New connection [03:26:41]New thread 3066555748 created [03:26:41]Thread 3066699108 joined [03:26:41]Waiting for new connection... [03:26:41] Sock 9.Parse request [03:26:41]Sock 9.Check first char [03:26:41]Sock 9.First char is OK [03:26:41]request: POST /json_proto HTTP/1.0 [03:26:41]Method: POST [03:26:41]URL: /json_proto [03:26:41]Method is POST - this is cgi request [03:26:41]url: /json_proto [03:26:41]query_string will be loaded in cgi processing [03:26:41]execute_cgi json_proto POST (null) [03:26:41]execute_cgi path=json_proto method=POST [03:26:41]POST find Content-Length [03:26:41]Host: 172.17.50.3:8080 [03:26:41]Content-Length: 680 [03:26:41]Content-Type: application/json [03:26:41] [03:26:41]POST finish read [03:26:41]Found Content-Length = 680 [03:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886271", "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.330, "sum" : 1015.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1015.00, "total" : 1015.00, "payments": [ { "type": 0, "sum" : 1015.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:41]execute_script... [03:26: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)2886271", "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.330, "sum" : 1015.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1015.00, "total" : 1015.00, "payments": [ { "type": 0, "sum" : 1015.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:41]POST & json_proto [03:26:41]process_json_proto [03:26:41]json parsed OK: [03:26:41]protocol is kg_v1.0 [03:26:41]action value=close_receipt [03:26:41]process_action close_receipt [03:26:41]cmd_close_receipt [03:26:41]MH_GetDate [03:26:41]Write to MH i2c: F0 00 00 E5 3C 10 [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: F0 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: F0 09 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: F0 09 00 E5 3C 00 F4 6C 18 67 6B 98 1E 66 7F [03:26:41]GetLastDocTimeStamp 1729653813 [03:26:41]current date 1729654004 [03:26:41]FM_GetShiftState [03:26:41]SAM_PROTO_GetShiftState [03:26:41]wFMCommunicate request_size=4 [03:26:41]MH_SAM_APDU [03:26:41]CAPDU: 80 13 01 00 [03:26:41]Write to MH i2c: E2 08 00 E6 3C 80 13 01 00 00 00 00 00 9F [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:41]Read from MH i2c: E2 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 0E 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 0E 00 E6 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2C [03:26:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:26:41]wFMCommunicate OK [03:26:41]SAM_PROTO_GetShiftState done [03:26:41]FM_GetShiftState done [03:26:41]opened in 1729642435 [03:26:41]opened+sec_in_day 1729728835 [03:26:41]quantity*price = 101574 [03:26:41]sum+1 = 101576 [03:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 1015.00 Внесено: 1015.00 СДАЧА: 0.00 НСП 1% : 8.99 НДС 12% : 107.87 Наличными: 1015.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 20 23.10.2024 03:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70504 ФПД: 9147093420391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T032644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70504&fm=9147093420391&tin=02508201610067®Number=0000000000156251&sum=101500 [03:26:42]StoreToDocumentArchive [03:26:42]shift 196 fd 70504 [03:26:42]save to /storage/0196/doc_00070504 [03:26:42]save last doc name /storage/0196/doc_00070504 to /storage/kkm_last_doc_name [03:26:42]save OK [03:26:42]Clear old archive folders... [03:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:26:42]tlvbuf is 00D78120 [03:26:42]SAM_PROTO_ClearQueue [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 09 00 00 [03:26:42]Write to MH i2c: E2 08 00 F3 3C 80 09 00 00 00 00 00 00 A1 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 F3 3C 00 90 00 A3 [03:26:42]RAPDU: 90 00 [03:26:42]wFMCommunicate OK [03:26:42]SAM_PROTO_ClearQueue done [03:26:42]KKMCreateOFDPacket [03:26:42]OFDProtocolAddRootSTLVToBuf [03:26:42]FM_MakeSignedData [03:26:42]FM_MakeSignedData [03:26:42]SAM_PROTO_SignData [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 0D 01 02 [03:26:42]Write to MH i2c: E2 08 00 F4 3C 80 0D 01 02 00 00 00 00 A9 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 F4 3C 00 90 00 A4 [03:26:42]RAPDU: 90 00 [03:26:42]wFMCommunicate OK [03:26:42]wFMCommunicate request_size=255 [03:26:42]MH_SAM_APDU [03:26: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 12 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 2A 00 00 00 00 07 04 06 00 7C 8C 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 00 00 00 F4 03 04 00 F4 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 51 B9 41 [03:26:42]Write to MH i2c: E2 02 01 F5 3C 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 12 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 2A 00 00 00 00 07 04 06 00 7C 8C 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 00 00 00 F4 03 04 00 F4 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 51 B9 41 00 00 E6 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:43]Read from MH i2c: E2 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 03 00 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 03 00 F5 3C 00 90 00 A5 [03:26:43]RAPDU: 90 00 [03:26:43]wFMCommunicate OK [03:26:43]wFMCommunicate request_size=7 [03:26:43]MH_SAM_APDU [03:26:43]CAPDU: 80 0D 02 02 02 09 67 [03:26:43]Write to MH i2c: E2 0A 00 F6 3C 80 0D 02 02 02 00 09 67 00 00 20 [03:26:43]Write i2c OK [03:26:43]MH_I2C_Read... [03:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:43]Read from MH i2c: E2 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 03 00 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 03 00 F6 3C 00 90 00 A6 [03:26:43]RAPDU: 90 00 [03:26:43]wFMCommunicate OK [03:26:43]wFMCommunicate request_size=4 [03:26:43]MH_SAM_APDU [03:26:43]CAPDU: 80 0D 03 02 [03:26:43]Write to MH i2c: E2 08 00 F7 3C 80 0D 03 02 00 00 00 00 AE [03:26:43]Write i2c OK [03:26:43]MH_I2C_Read... [03:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:43]Read from MH i2c: E2 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 0B 00 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 0B 00 F7 3C 00 75 A1 75 EC 66 3A E7 4A 90 00 F7 [03:26:43]RAPDU: 75 A1 75 EC 66 3A E7 4A 90 00 [03:26:43]wFMCommunicate OK [03:26:43]SAM_PROTO_SignData done [03:26:43]FM_MakeSignedData done [03:26:43]CreateOFDProtocolMessage [03:26:43]wFMCommunicate request_size=4 [03:26:43]MH_SAM_APDU [03:26:43]CAPDU: 80 11 00 00 [03:26:43]Write to MH i2c: E2 08 00 F8 3C 80 11 00 00 00 00 00 00 AE [03:26:43]Write i2c OK [03:26:43]MH_I2C_Read... [03:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:43]Read from MH i2c: E2 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 17 00 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: E2 17 00 F8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [03:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:26:43]wFMCommunicate OK [03:26:43]CreateOFDProtocolMessage done [03:26:43]OFDSenderStorePacket 70504 [03:26:43]StoreOFDPacket docnum=70504 [03:26: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 0C 01 00 00 64 F5 04 01 10 F6 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 12 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 2A 00 00 00 00 07 04 06 00 7C 8C 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 00 00 00 F4 03 04 00 F4 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 51 B9 41 09 67 75 A1 75 EC 66 3A E7 4A [03:26:43]CheckFolder [03:26:43]dirname=/storage/ofd_packets [03:26:43]CheckFolder done [03:26:43]ProducePacketName [03:26:43]name=ofd_packets/00070504 [03:26:43]NVStorageSaveData ofd_packets/00070504 [03:26:43]File name is /storage/ofd_packets/00070504 [03:26:43]Write 298 bytes [03:26:43]NVStorageSaveData done [03:26:43]OFDSenderStorePacket done [03:26:43]KKMCreateOFDPacket done [03:26:43]NVStorageSaveData kkm_last_timestamp [03:26:43]File name is /storage/kkm_last_timestamp [03:26:43]Write 4 bytes [03:26:43]NVStorageSaveData done [03:26:43]ExternCall_PrintAddStr [03:26:43]wPrintStart [03:26:43]Write to MH i2c: 01 00 00 F9 3C 35 [03:26:43]Write i2c OK [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: 01 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: 01 07 00 [03:26:43]MH_I2C_Read... [03:26:43]Read from MH i2c: 01 07 00 F9 3C 00 00 00 00 00 FF 0F 4A [03:26:43]RasterBufferAndPrint [03:26:43]line Счет N : (1)2886271 [03:26:43]line ИНН: 02508201610067 [03:26:43]line Контрольно-Кассовый Чек [03:26:43]line ПРОДАЖА [03:26:43]line ТРК (МРК, ГНК) : 51 [03:26:43]line Товар: 2710194210 [03:26:43]line ДТ-К-5 [03:26:43]line 13.330 * 76.20 [03:26:43]line = 1015.75 [03:26:43]line НДС 12% НСП 1% [03:26:43]line > о реализуемом товаре [03:26:43]line ОКРУГЛЕНИЕ: -0.75 [03:26:43]line ИТОГО: 1015.00 [03:26:43]line Внесено: 1015.00 [03:26:43]line СДАЧА: 0.00 [03:26:43]line НСП 1% : 8.99 [03:26:43]line НДС 12% : 107.87 [03:26:43]line Наличными: 1015.00 [03:26:43]line Безнал.: 0.00 [03:26:43]line Место: АЗС № 85 "Партнер Нефть" [03:26:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:26:43]line СНО: Общий режим [03:26:43]line Чек 20 23.10.2024 03:26 [03:26:43]line Смена: 196 ФФД: 1.0 [03:26:43]line ЗНМ: 0300000167 [03:26:43]line РНМ: 0000000000156251 [03:26:43]line Версия ККМ: v1.0 [03:26:43]line ФМ: 0000000000963346 [03:26:43]line ФД: 70504 [03:26:43]line ФПД: 9147093420391 [03:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T032644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70504&fm=9147093420391&tin=02508201610067®Number=0000000000156251&sum=101500 [03:26:43]OFD Sender: Processing packet 70504 [packets to send 18, broken 17] [03:26:43]ProducePacketName [03:26:43]name=ofd_packets/00070504 [03:26:43]OFD Sender: To server: pG, [03:26:43]CommunicateWithHost lk.salyk.kg:30040 [03:26:43]ConnectInit lk.salyk.kg [03:26:43]written 0, free lines is 4095 [03:26:43]Connected sock=10 [03:26: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 64 F5 04 01 10 F6 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 12 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 2A 00 00 00 00 07 04 06 00 7C 8C 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 00 00 00 F4 03 04 00 F4 6C 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 51 B9 41 09 67 75 A1 75 EC 66 3A E7 4A [03: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 E5 6C 47 00 9D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 13 01 00 F4 03 04 00 93 16 18 67 B6 04 01 00 00 02 F2 BF 64 C2 07 A7 B1 [03:26:43]CommunicateWithHost err = 0 [03:26:43]CheckOFDResponse [03:26:43]1017 (14) - 77093643461234 [03:26:43]1041 (16) - 0000000000963346 [03:26:43]1040 (4) - 70504 [03:26:43]1012 (4) - 22.10.2024 21:18 [03:26:43]1206 (1) - 0 [03:26:43]OFD Sender: Remove packet 70504 [03:26:43]ProducePacketName [03:26:43]name=ofd_packets/00070504 [03:26:43]NVStorageDeleteData [03:26:44]Write to MH i2c: 01 00 00 24 3D 61 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 07 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 07 00 24 3D 00 00 00 00 00 F4 0C 68 [03:26:44]RasterBufferAndPrint [03:26:44]line [03:26:44]line [03:26:44]line [03:26:44]line [03:26:44]line [03:26:44]written 0, free lines is 3326 [03:26:44]MH_Cut [03:26:44]Write to MH i2c: D1 01 00 2B 3D 01 3A [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: D1 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: D1 01 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: D1 01 00 2B 3D 00 39 [03:26:44]Write to MH i2c: 01 00 00 2C 3D 69 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]OFD Sender: No OFD packet to send [03:26:44]*** Cut start [03:26:44]*** Partial cut [03:26:44]*** CUTSNS_PIN = 1 [03:26:44]*** CUTSNS_PIN = 0 [03:26:45]*** Brake cut motor [03:26:45]Read from MH i2c: 01 [03:26:45]MH_I2C_Read... [03:26:45]*** Stop cut motor [03:26:45]*** Cut end [03:26:45]Read from MH i2c: 01 07 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: 01 07 00 2C 3D 00 00 00 00 00 FF 0F 7E [03:26:45]process_action close_receipt done [03:26:45]requested_data is exist [03:26:45]produce_requested_data [03:26:45]requested_item fm.sn is exist - process it [03:26:45]wFMCommunicate request_size=4 [03:26:45]MH_SAM_APDU [03:26:45]CAPDU: 80 11 00 00 [03:26:45]Write to MH i2c: E2 08 00 2D 3D 80 11 00 00 00 00 00 00 E4 [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:45]Read from MH i2c: E2 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 17 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 17 00 2D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [03:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:26:45]wFMCommunicate OK [03:26:45]requested_item fd.num is exist - process it [03:26:45]SAM_PROTO_GetFieldsCounters [03:26:45]wFMCommunicate request_size=4 [03:26:45]MH_SAM_APDU [03:26:45]CAPDU: 80 13 00 00 [03:26:45]Write to MH i2c: E2 08 00 2E 3D 80 13 00 00 00 00 00 00 E7 [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:45]Read from MH i2c: E2 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 62 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 62 00 2E 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 68 13 01 00 0E 04 04 00 C4 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 7E [03:26: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 68 13 01 00 0E 04 04 00 C4 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:26:45]wFMCommunicate OK [03:26:45]SAM_PROTO_GetFieldsCounters done [03:26:45]requested_item shift.num is exist - process it [03:26:45]requested_item shift.opened is exist - process it [03:26:45]req_shift_opened [03:26:45]FM_GetShiftState [03:26:45]SAM_PROTO_GetShiftState [03:26:45]wFMCommunicate request_size=4 [03:26:45]MH_SAM_APDU [03:26:45]CAPDU: 80 13 01 00 [03:26:45]Write to MH i2c: E2 08 00 2F 3D 80 13 01 00 00 00 00 00 E9 [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:45]Read from MH i2c: E2 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 0E 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 0E 00 2F 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 76 [03:26:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [03:26:45]wFMCommunicate OK [03:26:45]SAM_PROTO_GetShiftState done [03:26:45]FM_GetShiftState done [03:26:45]req_shift_opened done [03:26:45]requested_item shift.open_date is exist - process it [03:26:45]req_shift_open_date [03:26:45]req_shift_open_date done [03:26:45]produce_requested_data done [03:26:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70504,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [03:26:45]process_action_free close_receipt [03:26:45]json_value_free [03:26:45]json_value_free done [03:26:45]process_json_proto returns [03:26:45]Send response to host [03:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70504,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [03:26:45]free response buf [03:26:45]execute_script done [03:26:45]execute_script returns [03:26:45]free content buf [03:26:45]Sock 9.Close socket [03:26:45]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]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:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]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:28]accept exits with 7 [04:40:28]New connection [04:40:28]New thread 3066699108 created [04:40:28]Thread 3066555748 joined [04:40:28]Waiting for new connection... [04:40:28] Sock 7.Parse request [04:40:28]Sock 7.Check first char [04:40:28]Sock 7.First char is OK [04:40:28]request: POST /json_proto HTTP/1.0 [04:40:28]Method: POST [04:40:28]URL: /json_proto [04:40:28]Method is POST - this is cgi request [04:40:28]url: /json_proto [04:40:28]query_string will be loaded in cgi processing [04:40:28]execute_cgi json_proto POST (null) [04:40:28]execute_cgi path=json_proto method=POST [04:40:28]POST find Content-Length [04:40:28]Host: 172.17.50.3:8080 [04:40:28]Content-Length: 675 [04:40:28]Content-Type: application/json [04:40:28] [04:40:28]POST finish read [04:40:28]Found Content-Length = 675 [04:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886272", "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.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:28]execute_script... [04:40: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)2886272", "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.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:28]POST & json_proto [04:40:28]process_json_proto [04:40:28]json parsed OK: [04:40:28]protocol is kg_v1.0 [04:40:28]action value=close_receipt [04:40:28]process_action close_receipt [04:40:28]cmd_close_receipt [04:40:28]MH_GetDate [04:40:28]Write to MH i2c: F0 00 00 30 3D 5C [04:40:28]Write i2c OK [04:40:28]MH_I2C_Read... [04:40:28]Read from MH i2c: F0 [04:40:28]MH_I2C_Read... [04:40:28]Read from MH i2c: F0 09 00 [04:40:28]MH_I2C_Read... [04:40:28]Read from MH i2c: F0 09 00 30 3D 00 3F 7E 18 67 6B 98 1E 66 28 [04:40:28]GetLastDocTimeStamp 1729654004 [04:40:28]current date 1729658431 [04:40:28]FM_GetShiftState [04:40:28]SAM_PROTO_GetShiftState [04:40:28]wFMCommunicate request_size=4 [04:40:28]MH_SAM_APDU [04:40:28]CAPDU: 80 13 01 00 [04:40:28]Write to MH i2c: E2 08 00 31 3D 80 13 01 00 00 00 00 00 EB [04:40:28]Write i2c OK [04:40:28]MH_I2C_Read... [04:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:28]Read from MH i2c: E2 [04:40:28]MH_I2C_Read... [04:40:28]Read from MH i2c: E2 0E 00 [04:40:28]MH_I2C_Read... [04:40:28]Read from MH i2c: E2 0E 00 31 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 78 [04:40:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [04:40:28]wFMCommunicate OK [04:40:28]SAM_PROTO_GetShiftState done [04:40:28]FM_GetShiftState done [04:40:28]opened in 1729642435 [04:40:28]opened+sec_in_day 1729728835 [04:40:28]quantity*price = 30022 [04:40:28]sum+1 = 30024 [04:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 21 23.10.2024 04:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70505 ФПД: 687906958312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T044031&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70505&fm=687906958312&tin=02508201610067®Number=0000000000156251&sum=30000 [04:40:29]StoreToDocumentArchive [04:40:29]shift 196 fd 70505 [04:40:29]save to /storage/0196/doc_00070505 [04:40:29]save last doc name /storage/0196/doc_00070505 to /storage/kkm_last_doc_name [04:40:29]save OK [04:40:29]Clear old archive folders... [04:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:40:29]tlvbuf is 00CF2B60 [04:40:29]SAM_PROTO_ClearQueue [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 09 00 00 [04:40:29]Write to MH i2c: E2 08 00 3E 3D 80 09 00 00 00 00 00 00 ED [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 3E 3D 00 90 00 EF [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]SAM_PROTO_ClearQueue done [04:40:29]KKMCreateOFDPacket [04:40:29]OFDProtocolAddRootSTLVToBuf [04:40:29]FM_MakeSignedData [04:40:29]FM_MakeSignedData [04:40:29]SAM_PROTO_SignData [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 01 02 [04:40:29]Write to MH i2c: E2 08 00 3F 3D 80 0D 01 02 00 00 00 00 F5 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 3F 3D 00 90 00 F0 [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=255 [04:40:29]MH_SAM_APDU [04:40:29]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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 15 00 00 00 F4 03 04 00 3F 7E 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 A0 2A 73 [04:40:29]Write to MH i2c: E2 02 01 40 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 15 00 00 00 F4 03 04 00 3F 7E 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 A0 2A 73 00 00 00 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 40 3D 00 90 00 F1 [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=7 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 02 02 02 2B E8 [04:40:29]Write to MH i2c: E2 0A 00 41 3D 80 0D 02 02 02 00 2B E8 00 00 0F [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 41 3D 00 90 00 F2 [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 03 02 [04:40:29]Write to MH i2c: E2 08 00 42 3D 80 0D 03 02 00 00 00 00 FA [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 0B 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 0B 00 42 3D 00 C7 38 39 AF 0E 12 DF C2 90 00 A3 [04:40:29]RAPDU: C7 38 39 AF 0E 12 DF C2 90 00 [04:40:29]wFMCommunicate OK [04:40:29]SAM_PROTO_SignData done [04:40:29]FM_MakeSignedData done [04:40:29]CreateOFDProtocolMessage [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 11 00 00 [04:40:29]Write to MH i2c: E2 08 00 43 3D 80 11 00 00 00 00 00 00 FA [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 17 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 17 00 43 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [04:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:29]wFMCommunicate OK [04:40:29]CreateOFDProtocolMessage done [04:40:29]OFDSenderStorePacket 70505 [04:40:29]StoreOFDPacket docnum=70505 [04:40: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 B9 59 04 01 EA B9 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 15 00 00 00 F4 03 04 00 3F 7E 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 A0 2A 73 2B E8 C7 38 39 AF 0E 12 DF C2 [04:40:29]CheckFolder [04:40:29]dirname=/storage/ofd_packets [04:40:29]CheckFolder done [04:40:29]ProducePacketName [04:40:29]name=ofd_packets/00070505 [04:40:29]NVStorageSaveData ofd_packets/00070505 [04:40:29]File name is /storage/ofd_packets/00070505 [04:40:29]Write 298 bytes [04:40:29]NVStorageSaveData done [04:40:29]OFDSenderStorePacket done [04:40:29]KKMCreateOFDPacket done [04:40:29]NVStorageSaveData kkm_last_timestamp [04:40:29]File name is /storage/kkm_last_timestamp [04:40:29]Write 4 bytes [04:40:29]NVStorageSaveData done [04:40:29]ExternCall_PrintAddStr [04:40:29]wPrintStart [04:40:29]Write to MH i2c: 01 00 00 44 3D 81 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 44 3D 00 00 00 00 00 FF 0F 96 [04:40:29]RasterBufferAndPrint [04:40:29]line Счет N : (1)2886272 [04:40:29]line ИНН: 02508201610067 [04:40:29]line Контрольно-Кассовый Чек [04:40:29]line ПРОДАЖА [04:40:29]line ТРК (МРК, ГНК) : 51 [04:40:29]line Товар: 2710194210 [04:40:29]line ДТ-К-5 [04:40:29]line 3.940 * 76.20 [04:40:29]line = 300.23 [04:40:29]line НДС 12% НСП 1% [04:40:29]line > о реализуемом товаре [04:40:29]line ОКРУГЛЕНИЕ: -0.23 [04:40:29]line ИТОГО: 300.00 [04:40:29]line Внесено: 300.00 [04:40:29]line СДАЧА: 0.00 [04:40:29]line НСП 1% : 2.66 [04:40:29]line НДС 12% : 31.88 [04:40:29]line Наличными: 300.00 [04:40:29]line Безнал.: 0.00 [04:40:29]line Место: АЗС № 85 "Партнер Нефть" [04:40:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:40:29]line СНО: Общий режим [04:40:29]line Чек 21 23.10.2024 04:40 [04:40:29]line Смена: 196 ФФД: 1.0 [04:40:29]line ЗНМ: 0300000167 [04:40:29]line РНМ: 0000000000156251 [04:40:29]line Версия ККМ: v1.0 [04:40:30]line ФМ: 0000000000963346 [04:40:30]line ФД: 70505 [04:40:30]line ФПД: 687906958312 [04:40:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T044031&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70505&fm=687906958312&tin=02508201610067®Number=0000000000156251&sum=30000 [04:40:30]OFD Sender: Processing packet 70505 [packets to send 18, broken 17] [04:40:30]ProducePacketName [04:40:30]name=ofd_packets/00070505 [04:40:30]OFD Sender: To server: pG, [04:40:30]CommunicateWithHost lk.salyk.kg:30040 [04:40:30]ConnectInit lk.salyk.kg [04:40:30]written 0, free lines is 4095 [04:40:30]Connected sock=10 [04:40: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 0C 01 00 00 B9 59 04 01 EA B9 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 15 00 00 00 F4 03 04 00 3F 7E 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 A0 2A 73 2B E8 C7 38 39 AF 0E 12 DF C2 [04:40: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 0B A6 47 00 3F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 13 01 00 F4 03 04 00 DE 27 18 67 B6 04 01 00 00 DA B1 63 6C E8 31 B6 01 [04:40:30]CommunicateWithHost err = 0 [04:40:30]CheckOFDResponse [04:40:30]1017 (14) - 77093643461234 [04:40:30]1041 (16) - 0000000000963346 [04:40:30]1040 (4) - 70505 [04:40:30]1012 (4) - 22.10.2024 22:31 [04:40:30]1206 (1) - 0 [04:40:30]OFD Sender: Remove packet 70505 [04:40:30]ProducePacketName [04:40:30]name=ofd_packets/00070505 [04:40:30]NVStorageDeleteData [04:40:30]Write to MH i2c: 01 00 00 6F 3D AC [04:40:30]Write i2c OK [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: 01 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: 01 07 00 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: 01 07 00 6F 3D 00 00 00 00 00 EA 0C A9 [04:40:30]RasterBufferAndPrint [04:40:30]line [04:40:30]line [04:40:30]line [04:40:30]line [04:40:30]line [04:40:30]written 0, free lines is 3312 [04:40:30]MH_Cut [04:40:30]Write to MH i2c: D1 01 00 76 3D 01 85 [04:40:30]Write i2c OK [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 01 00 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 01 00 76 3D 00 84 [04:40:30]Write to MH i2c: 01 00 00 77 3D B4 [04:40:30]Write i2c OK [04:40:30]MH_I2C_Read... [04:40:31]OFD Sender: No OFD packet to send [04:40:31]*** Cut start [04:40:31]*** Partial cut [04:40:31]*** CUTSNS_PIN = 1 [04:40:31]*** CUTSNS_PIN = 0 [04:40:31]*** Brake cut motor [04:40:32]Read from MH i2c: 01 [04:40:32]MH_I2C_Read... [04:40:32]*** Stop cut motor [04:40:32]*** Cut end [04:40:32]Read from MH i2c: 01 07 00 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: 01 07 00 77 3D 00 00 00 00 00 FF 0F C9 [04:40:32]process_action close_receipt done [04:40:32]requested_data is exist [04:40:32]produce_requested_data [04:40:32]requested_item fm.sn is exist - process it [04:40:32]wFMCommunicate request_size=4 [04:40:32]MH_SAM_APDU [04:40:32]CAPDU: 80 11 00 00 [04:40:32]Write to MH i2c: E2 08 00 78 3D 80 11 00 00 00 00 00 00 2F [04:40:32]Write i2c OK [04:40:32]MH_I2C_Read... [04:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:32]Read from MH i2c: E2 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 17 00 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 17 00 78 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [04:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:40:32]wFMCommunicate OK [04:40:32]requested_item fd.num is exist - process it [04:40:32]SAM_PROTO_GetFieldsCounters [04:40:32]wFMCommunicate request_size=4 [04:40:32]MH_SAM_APDU [04:40:32]CAPDU: 80 13 00 00 [04:40:32]Write to MH i2c: E2 08 00 79 3D 80 13 00 00 00 00 00 00 32 [04:40:32]Write i2c OK [04:40:32]MH_I2C_Read... [04:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:32]Read from MH i2c: E2 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 62 00 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 62 00 79 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 69 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [04:40: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 69 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:32]wFMCommunicate OK [04:40:32]SAM_PROTO_GetFieldsCounters done [04:40:32]requested_item shift.num is exist - process it [04:40:32]requested_item shift.opened is exist - process it [04:40:32]req_shift_opened [04:40:32]FM_GetShiftState [04:40:32]SAM_PROTO_GetShiftState [04:40:32]wFMCommunicate request_size=4 [04:40:32]MH_SAM_APDU [04:40:32]CAPDU: 80 13 01 00 [04:40:32]Write to MH i2c: E2 08 00 7A 3D 80 13 01 00 00 00 00 00 34 [04:40:32]Write i2c OK [04:40:32]MH_I2C_Read... [04:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:32]Read from MH i2c: E2 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 0E 00 [04:40:32]MH_I2C_Read... [04:40:32]Read from MH i2c: E2 0E 00 7A 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C1 [04:40:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [04:40:32]wFMCommunicate OK [04:40:32]SAM_PROTO_GetShiftState done [04:40:32]FM_GetShiftState done [04:40:32]req_shift_opened done [04:40:32]requested_item shift.open_date is exist - process it [04:40:32]req_shift_open_date [04:40:32]req_shift_open_date done [04:40:32]produce_requested_data done [04:40:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70505,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [04:40:32]process_action_free close_receipt [04:40:32]json_value_free [04:40:32]json_value_free done [04:40:32]process_json_proto returns [04:40:32]Send response to host [04:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70505,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [04:40:32]free response buf [04:40:32]execute_script done [04:40:32]execute_script returns [04:40:32]free content buf [04:40:32]Sock 7.Close socket [04:40:32]Sock 7.Thread stoped [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:34]accept exits with 9 [06:33:34]New connection [06:33:34]New thread 3066555748 created [06:33:34]Thread 3066699108 joined [06:33:34]Waiting for new connection... [06:33:34] Sock 9.Parse request [06:33:34]Sock 9.Check first char [06:33:34]Sock 9.First char is OK [06:33:34]request: POST /json_proto HTTP/1.0 [06:33:34]Method: POST [06:33:34]URL: /json_proto [06:33:34]Method is POST - this is cgi request [06:33:34]url: /json_proto [06:33:34]query_string will be loaded in cgi processing [06:33:34]execute_cgi json_proto POST (null) [06:33:34]execute_cgi path=json_proto method=POST [06:33:34]POST find Content-Length [06:33:34]Host: 172.17.50.3:8080 [06:33:34]Content-Length: 689 [06:33:34]Content-Type: application/json [06:33:34] [06:33:34]POST finish read [06:33:34]Found Content-Length = 689 [06:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886273", "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" ] } } [06:33:34]execute_script... [06:33: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)2886273", "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" ] } } [06:33:34]POST & json_proto [06:33:34]process_json_proto [06:33:34]json parsed OK: [06:33:34]protocol is kg_v1.0 [06:33:34]action value=close_receipt [06:33:34]process_action close_receipt [06:33:34]cmd_close_receipt [06:33:34]MH_GetDate [06:33:34]Write to MH i2c: F0 00 00 7B 3D A7 [06:33:34]Write i2c OK [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 09 00 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 09 00 7B 3D 00 C1 98 18 67 6B 98 1E 66 0F [06:33:34]GetLastDocTimeStamp 1729658431 [06:33:34]current date 1729665217 [06:33:34]FM_GetShiftState [06:33:34]SAM_PROTO_GetShiftState [06:33:34]wFMCommunicate request_size=4 [06:33:34]MH_SAM_APDU [06:33:34]CAPDU: 80 13 01 00 [06:33:34]Write to MH i2c: E2 08 00 7C 3D 80 13 01 00 00 00 00 00 36 [06:33:34]Write i2c OK [06:33:34]MH_I2C_Read... [06:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:34]Read from MH i2c: E2 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: E2 0E 00 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: E2 0E 00 7C 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [06:33:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [06:33:34]wFMCommunicate OK [06:33:34]SAM_PROTO_GetShiftState done [06:33:34]FM_GetShiftState done [06:33:34]opened in 1729642435 [06:33:34]opened+sec_in_day 1729728835 [06:33:34]quantity*price = 100051 [06:33:34]sum+1 = 100052 [06:33:34]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 СНО: Общий режим Чек 22 23.10.2024 06:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70506 ФПД: 116638728083312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70506&fm=116638728083312&tin=02508201610067®Number=0000000000156251&sum=100000 [06:33:35]StoreToDocumentArchive [06:33:35]shift 196 fd 70506 [06:33:35]save to /storage/0196/doc_00070506 [06:33:35]save last doc name /storage/0196/doc_00070506 to /storage/kkm_last_doc_name [06:33:35]save OK [06:33:35]Clear old archive folders... [06:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:33:35]tlvbuf is B6F1A370 [06:33:35]SAM_PROTO_ClearQueue [06:33:35]wFMCommunicate request_size=4 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 09 00 00 [06:33:35]Write to MH i2c: E2 08 00 89 3D 80 09 00 00 00 00 00 00 38 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 89 3D 00 90 00 3A [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]SAM_PROTO_ClearQueue done [06:33:35]KKMCreateOFDPacket [06:33:35]OFDProtocolAddRootSTLVToBuf [06:33:35]FM_MakeSignedData [06:33:35]FM_MakeSignedData [06:33:35]SAM_PROTO_SignData [06:33:35]wFMCommunicate request_size=4 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 0D 01 02 [06:33:35]Write to MH i2c: E2 08 00 8A 3D 80 0D 01 02 00 00 00 00 40 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 8A 3D 00 90 00 3B [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]wFMCommunicate request_size=255 [06:33:35]MH_SAM_APDU [06:33: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 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 16 00 00 00 F4 03 04 00 C1 98 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [06:33:35]Write to MH i2c: E2 02 01 8B 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 16 00 00 00 F4 03 04 00 C1 98 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 C2 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 8B 3D 00 90 00 3C [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]wFMCommunicate request_size=16 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6A 15 11 F4 57 70 [06:33:35]Write to MH i2c: E2 13 00 8C 3D 80 0D 02 02 0B 00 00 35 04 06 00 6A 15 11 F4 57 70 00 00 E3 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 8C 3D 00 90 00 3D [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]wFMCommunicate request_size=4 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 0D 03 02 [06:33:35]Write to MH i2c: E2 08 00 8D 3D 80 0D 03 02 00 00 00 00 45 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 0B 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 0B 00 8D 3D 00 CF CE EB 0F 27 9D 16 FF 90 00 B6 [06:33:36]RAPDU: CF CE EB 0F 27 9D 16 FF 90 00 [06:33:36]wFMCommunicate OK [06:33:36]SAM_PROTO_SignData done [06:33:36]FM_MakeSignedData done [06:33:36]CreateOFDProtocolMessage [06:33:36]wFMCommunicate request_size=4 [06:33:36]MH_SAM_APDU [06:33:36]CAPDU: 80 11 00 00 [06:33:36]Write to MH i2c: E2 08 00 8E 3D 80 11 00 00 00 00 00 00 45 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 17 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 17 00 8E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [06:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:33:36]wFMCommunicate OK [06:33:36]CreateOFDProtocolMessage done [06:33:36]OFDSenderStorePacket 70506 [06:33:36]StoreOFDPacket docnum=70506 [06:33: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 15 01 00 00 6C A5 0D 01 20 BE 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 16 00 00 00 F4 03 04 00 C1 98 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A 15 11 F4 57 70 CF CE EB 0F 27 9D 16 FF [06:33:36]CheckFolder [06:33:36]dirname=/storage/ofd_packets [06:33:36]CheckFolder done [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00070506 [06:33:36]NVStorageSaveData ofd_packets/00070506 [06:33:36]File name is /storage/ofd_packets/00070506 [06:33:36]Write 307 bytes [06:33:36]NVStorageSaveData done [06:33:36]OFDSenderStorePacket done [06:33:36]KKMCreateOFDPacket done [06:33:36]NVStorageSaveData kkm_last_timestamp [06:33:36]File name is /storage/kkm_last_timestamp [06:33:36]Write 4 bytes [06:33:36]NVStorageSaveData done [06:33:36]ExternCall_PrintAddStr [06:33:36]wPrintStart [06:33:36]Write to MH i2c: 01 00 00 8F 3D CC [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 8F 3D 00 00 00 00 00 FF 0F E1 [06:33:36]RasterBufferAndPrint [06:33:36]line Счет N : (1)2886273 [06:33:36]line ИНН: 02508201610067 [06:33:36]line Контрольно-Кассовый Чек [06:33:36]line ПРОДАЖА [06:33:36]line ТРК (МРК, ГНК) : 31 [06:33:36]line Товар: 2710194240 [06:33:36]line D-ENERGY Дт-К-2 [06:33:36]line 12.960 * 77.20 [06:33:36]line = 1000.51 [06:33:36]line НДС 12% НСП 1% [06:33:36]line > о реализуемом товаре [06:33:36]line ОКРУГЛЕНИЕ: -0.51 [06:33:36]line ИТОГО: 1000.00 [06:33:36]line Внесено: 1000.00 [06:33:36]line СДАЧА: 0.00 [06:33:36]line НСП 1% : 8.85 [06:33:36]line НДС 12% : 106.25 [06:33:36]line Наличными: 1000.00 [06:33:36]line Безнал.: 0.00 [06:33:36]line Место: АЗС № 85 "Партнер Нефть" [06:33:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:33:36]line СНО: Общий режим [06:33:36]line Чек 22 23.10.2024 06:33 [06:33:36]line Смена: 196 ФФД: 1.0 [06:33:36]line ЗНМ: 0300000167 [06:33:36]line РНМ: 0000000000156251 [06:33:36]line Версия ККМ: v1.0 [06:33:36]line ФМ: 0000000000963346 [06:33:36]line ФД: 70506 [06:33:36]line ФПД: 116638728083312 [06:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70506&fm=116638728083312&tin=02508201610067®Number=0000000000156251&sum=100000 [06:33:36]OFD Sender: Processing packet 70506 [packets to send 18, broken 17] [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00070506 [06:33:36]OFD Sender: To server: pG, [06:33:36]CommunicateWithHost lk.salyk.kg:30040 [06:33:36]ConnectInit lk.salyk.kg [06:33:36]written 0, free lines is 4095 [06:33:36]Connected sock=10 [06:33: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 6C A5 0D 01 20 BE 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 16 00 00 00 F4 03 04 00 C1 98 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A 15 11 F4 57 70 CF CE EB 0F 27 9D 16 FF [06:33: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 FE B2 47 00 F8 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 6A 13 01 00 F4 03 04 00 60 42 18 67 B6 04 01 00 00 3D F9 EC 8E 2F AE 48 AE [06:33:36]CommunicateWithHost err = 0 [06:33:36]CheckOFDResponse [06:33:36]1017 (14) - 77093643461234 [06:33:36]1041 (16) - 0000000000963346 [06:33:36]1040 (4) - 70506 [06:33:36]1012 (4) - 23.10.2024 00:25 [06:33:36]1206 (1) - 0 [06:33:36]OFD Sender: Remove packet 70506 [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00070506 [06:33:36]NVStorageDeleteData [06:33:36]Write to MH i2c: 01 00 00 BA 3D F7 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 BA 3D 00 00 00 00 00 E4 0C EE [06:33:36]RasterBufferAndPrint [06:33:36]line [06:33:36]line [06:33:36]line [06:33:36]line [06:33:36]line [06:33:36]written 0, free lines is 3306 [06:33:36]MH_Cut [06:33:36]Write to MH i2c: D1 01 00 C1 3D 01 D0 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: D1 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: D1 01 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: D1 01 00 C1 3D 00 CF [06:33:36]Write to MH i2c: 01 00 00 C2 3D FF [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:37]OFD Sender: No OFD packet to send [06:33:37]*** Cut start [06:33:37]*** Partial cut [06:33:37]*** CUTSNS_PIN = 1 [06:33:37]*** CUTSNS_PIN = 0 [06:33:37]*** Brake cut motor [06:33:38]Read from MH i2c: 01 [06:33:38]MH_I2C_Read... [06:33:38]*** Stop cut motor [06:33:38]*** Cut end [06:33:38]Read from MH i2c: 01 07 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: 01 07 00 C2 3D 00 00 00 00 00 FF 0F 14 [06:33:38]process_action close_receipt done [06:33:38]requested_data is exist [06:33:38]produce_requested_data [06:33:38]requested_item fm.sn is exist - process it [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 11 00 00 [06:33:38]Write to MH i2c: E2 08 00 C3 3D 80 11 00 00 00 00 00 00 7A [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 C3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [06:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:33:38]wFMCommunicate OK [06:33:38]requested_item fd.num is exist - process it [06:33:38]SAM_PROTO_GetFieldsCounters [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 13 00 00 [06:33:38]Write to MH i2c: E2 08 00 C4 3D 80 13 00 00 00 00 00 00 7D [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 62 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 62 00 C4 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 6A 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [06:33: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 6A 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_GetFieldsCounters done [06:33:38]requested_item shift.num is exist - process it [06:33:38]requested_item shift.opened is exist - process it [06:33:38]req_shift_opened [06:33:38]FM_GetShiftState [06:33:38]SAM_PROTO_GetShiftState [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 13 01 00 [06:33:38]Write to MH i2c: E2 08 00 C5 3D 80 13 01 00 00 00 00 00 7F [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:38]Read from MH i2c: E2 0E 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 0E 00 C5 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0C [06:33:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_GetShiftState done [06:33:38]FM_GetShiftState done [06:33:38]req_shift_opened done [06:33:38]requested_item shift.open_date is exist - process it [06:33:38]req_shift_open_date [06:33:38]req_shift_open_date done [06:33:38]produce_requested_data done [06:33:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70506,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [06:33:38]process_action_free close_receipt [06:33:38]json_value_free [06:33:38]json_value_free done [06:33:38]process_json_proto returns [06:33:38]Send response to host [06:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70506,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [06:33:38]free response buf [06:33:38]execute_script done [06:33:38]execute_script returns [06:33:38]free content buf [06:33:38]Sock 9.Close socket [06:33:38]Sock 9.Thread stoped [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:17]accept exits with 7 [07:18:17]New connection [07:18:17]New thread 3066699108 created [07:18:17]Thread 3066555748 joined [07:18:17]Waiting for new connection... [07:18:17] Sock 7.Parse request [07:18:17]Sock 7.Check first char [07:18:17]Sock 7.First char is OK [07:18:17]request: POST /json_proto HTTP/1.0 [07:18:17]Method: POST [07:18:17]URL: /json_proto [07:18:17]Method is POST - this is cgi request [07:18:17]url: /json_proto [07:18:17]query_string will be loaded in cgi processing [07:18:17]execute_cgi json_proto POST (null) [07:18:17]execute_cgi path=json_proto method=POST [07:18:17]POST find Content-Length [07:18:17]Host: 172.17.50.3:8080 [07:18:17]Content-Length: 753 [07:18:17]Content-Type: application/json [07:18:17] [07:18:17]POST finish read [07:18:17]Found Content-Length = 753 [07:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886274", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:17]execute_script... [07:18: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)2886274", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:17]POST & json_proto [07:18:17]process_json_proto [07:18:17]json parsed OK: [07:18:17]protocol is kg_v1.0 [07:18:17]action value=close_receipt [07:18:17]process_action close_receipt [07:18:17]cmd_close_receipt [07:18:17]MH_GetDate [07:18:17]Write to MH i2c: F0 00 00 C6 3D F2 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: F0 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: F0 09 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: F0 09 00 C6 3D 00 3C A3 18 67 6B 98 1E 66 E0 [07:18:17]GetLastDocTimeStamp 1729665217 [07:18:17]current date 1729667900 [07:18:17]FM_GetShiftState [07:18:17]SAM_PROTO_GetShiftState [07:18:17]wFMCommunicate request_size=4 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 13 01 00 [07:18:17]Write to MH i2c: E2 08 00 C7 3D 80 13 01 00 00 00 00 00 81 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 0E 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 0E 00 C7 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0E [07:18:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:18:17]wFMCommunicate OK [07:18:17]SAM_PROTO_GetShiftState done [07:18:17]FM_GetShiftState done [07:18:17]opened in 1729642435 [07:18:17]opened+sec_in_day 1729728835 [07:18:17]quantity*price = 0 [07:18:17]sum+1 = 1 [07:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 23 23.10.2024 07:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30047742 ФМ: 0000000000963346 ФД: 70507 ФПД: 68017236454666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071820&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70507&fm=68017236454666&tin=02508201610067®Number=0000000000156251&sum=0 [07:18:18]StoreToDocumentArchive [07:18:18]shift 196 fd 70507 [07:18:18]save to /storage/0196/doc_00070507 [07:18:18]save last doc name /storage/0196/doc_00070507 to /storage/kkm_last_doc_name [07:18:18]save OK [07:18:18]Clear old archive folders... [07:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:18:18]tlvbuf is 00AE35C0 [07:18:18]SAM_PROTO_ClearQueue [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 09 00 00 [07:18:18]Write to MH i2c: E2 08 00 D4 3D 80 09 00 00 00 00 00 00 83 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 D4 3D 00 90 00 85 [07:18:18]RAPDU: 90 00 [07:18:18]wFMCommunicate OK [07:18:18]SAM_PROTO_ClearQueue done [07:18:18]KKMCreateOFDPacket [07:18:18]OFDProtocolAddRootSTLVToBuf [07:18:18]FM_MakeSignedData [07:18:18]FM_MakeSignedData [07:18:18]SAM_PROTO_SignData [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 0D 01 02 [07:18:18]Write to MH i2c: E2 08 00 D5 3D 80 0D 01 02 00 00 00 00 8B [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 D5 3D 00 90 00 86 [07:18:18]RAPDU: 90 00 [07:18:18]wFMCommunicate OK [07:18:18]wFMCommunicate request_size=255 [07:18:18]MH_SAM_APDU [07:18: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 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 17 00 00 00 F4 03 04 00 3C A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3D DC 7F 37 [07:18:18]Write to MH i2c: E2 02 01 D6 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 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 17 00 00 00 F4 03 04 00 3C A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3D DC 7F 37 00 00 90 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 D6 3D 00 90 00 87 [07:18:18]RAPDU: 90 00 [07:18:18]wFMCommunicate OK [07:18:18]wFMCommunicate request_size=7 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 0D 02 02 02 AD 0A [07:18:18]Write to MH i2c: E2 0A 00 D7 3D 80 0D 02 02 02 00 AD 0A 00 00 49 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 D7 3D 00 90 00 88 [07:18:18]RAPDU: 90 00 [07:18:18]wFMCommunicate OK [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 0D 03 02 [07:18:18]Write to MH i2c: E2 08 00 D8 3D 80 0D 03 02 00 00 00 00 90 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 0B 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 0B 00 D8 3D 00 3F 54 D9 30 F2 96 71 7D 90 00 A3 [07:18:18]RAPDU: 3F 54 D9 30 F2 96 71 7D 90 00 [07:18:18]wFMCommunicate OK [07:18:18]SAM_PROTO_SignData done [07:18:18]FM_MakeSignedData done [07:18:18]CreateOFDProtocolMessage [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 11 00 00 [07:18:18]Write to MH i2c: E2 08 00 D9 3D 80 11 00 00 00 00 00 00 90 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 17 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 17 00 D9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [07:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:18:18]wFMCommunicate OK [07:18:18]CreateOFDProtocolMessage done [07:18:18]OFDSenderStorePacket 70507 [07:18:18]StoreOFDPacket docnum=70507 [07:18: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 93 D5 04 01 1D CD 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 17 00 00 00 F4 03 04 00 3C A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3D DC 7F 37 AD 0A 3F 54 D9 30 F2 96 71 7D [07:18:18]CheckFolder [07:18:18]dirname=/storage/ofd_packets [07:18:18]CheckFolder done [07:18:18]ProducePacketName [07:18:18]name=ofd_packets/00070507 [07:18:18]NVStorageSaveData ofd_packets/00070507 [07:18:18]File name is /storage/ofd_packets/00070507 [07:18:18]Write 298 bytes [07:18:18]NVStorageSaveData done [07:18:18]OFDSenderStorePacket done [07:18:18]KKMCreateOFDPacket done [07:18:18]NVStorageSaveData kkm_last_timestamp [07:18:18]File name is /storage/kkm_last_timestamp [07:18:18]Write 4 bytes [07:18:18]NVStorageSaveData done [07:18:18]ExternCall_PrintAddStr [07:18:18]wPrintStart [07:18:18]Write to MH i2c: 01 00 00 DA 3D 17 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 DA 3D 00 00 00 00 00 FF 0F 2C [07:18:18]RasterBufferAndPrint [07:18:18]line Счет N : (1)2886274 [07:18:18]line ИНН: 02508201610067 [07:18:18]line Контрольно-Кассовый Чек [07:18:18]line ПРОДАЖА [07:18:18]line ТРК (МРК, ГНК) : 51 [07:18:18]line Товар: 2710194210 [07:18:18]line ДТ-К-5 [07:18:18]line 100.000 * 0.00 [07:18:18]line = 0.00 [07:18:18]line НДС 12% НСП 1% [07:18:18]line > о реализуемом товаре [07:18:18]line ИТОГО: 0.00 [07:18:18]line НСП 1% : 0.00 [07:18:18]line НДС 12% : 0.00 [07:18:18]line Наличными: 0.00 [07:18:18]line Безнал.: 0.00 [07:18:18]line Место: АЗС № 85 "Партнер Нефть" [07:18:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:18:18]line СНО: Общий режим [07:18:18]line Чек 23 23.10.2024 07:18 [07:18:18]line Смена: 196 ФФД: 1.0 [07:18:18]line ЗНМ: 0300000167 [07:18:18]line РНМ: 0000000000156251 [07:18:18]line Версия ККМ: v1.0 [07:18:18]line Талоны: ТК ГПНА Online [07:18:18]line 30047742 [07:18:18]line ФМ: 0000000000963346 [07:18:18]line ФД: 70507 [07:18:18]line ФПД: 68017236454666 [07:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071820&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70507&fm=68017236454666&tin=02508201610067®Number=0000000000156251&sum=0 [07:18:19]OFD Sender: Processing packet 70507 [packets to send 18, broken 17] [07:18:19]ProducePacketName [07:18:19]name=ofd_packets/00070507 [07:18:19]OFD Sender: To server: pG, [07:18:19]CommunicateWithHost lk.salyk.kg:30040 [07:18:19]ConnectInit lk.salyk.kg [07:18:19]written 0, free lines is 4095 [07:18:19]Connected sock=10 [07:18: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 93 D5 04 01 1D CD 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 17 00 00 00 F4 03 04 00 3C A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3D DC 7F 37 AD 0A 3F 54 D9 30 F2 96 71 7D [07:18: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 0E 05 47 00 09 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 6B 13 01 00 F4 03 04 00 DB 4C 18 67 B6 04 01 00 00 39 5F 96 51 4D 8D 45 DD [07:18:19]CommunicateWithHost err = 0 [07:18:19]CheckOFDResponse [07:18:19]1017 (14) - 77093643461234 [07:18:19]1041 (16) - 0000000000963346 [07:18:19]1040 (4) - 70507 [07:18:19]1012 (4) - 23.10.2024 01:09 [07:18:19]1206 (1) - 0 [07:18:19]OFD Sender: Remove packet 70507 [07:18:19]ProducePacketName [07:18:19]name=ofd_packets/00070507 [07:18:19]NVStorageDeleteData [07:18:19]Write to MH i2c: 01 00 00 04 3E 42 [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: 01 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: 01 07 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: 01 07 00 04 3E 00 00 00 00 00 FB 0C 50 [07:18:19]RasterBufferAndPrint [07:18:19]line [07:18:19]line [07:18:19]line [07:18:19]line [07:18:19]line [07:18:19]written 0, free lines is 3332 [07:18:19]MH_Cut [07:18:19]Write to MH i2c: D1 01 00 0B 3E 01 1B [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: D1 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: D1 01 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: D1 01 00 0B 3E 00 1A [07:18:19]Write to MH i2c: 01 00 00 0C 3E 4A [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:20]OFD Sender: No OFD packet to send [07:18:20]*** Cut start [07:18:20]*** Partial cut [07:18:20]*** CUTSNS_PIN = 1 [07:18:20]*** CUTSNS_PIN = 0 [07:18:20]*** Brake cut motor [07:18:21]Read from MH i2c: 01 [07:18:21]MH_I2C_Read... [07:18:21]*** Stop cut motor [07:18:21]*** Cut end [07:18:21]Read from MH i2c: 01 07 00 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: 01 07 00 0C 3E 00 00 00 00 00 FF 0F 5F [07:18:21]process_action close_receipt done [07:18:21]requested_data is exist [07:18:21]produce_requested_data [07:18:21]requested_item fm.sn is exist - process it [07:18:21]wFMCommunicate request_size=4 [07:18:21]MH_SAM_APDU [07:18:21]CAPDU: 80 11 00 00 [07:18:21]Write to MH i2c: E2 08 00 0D 3E 80 11 00 00 00 00 00 00 C5 [07:18:21]Write i2c OK [07:18:21]MH_I2C_Read... [07:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:21]Read from MH i2c: E2 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 17 00 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 17 00 0D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [07: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 [07:18:21]wFMCommunicate OK [07:18:21]requested_item fd.num is exist - process it [07:18:21]SAM_PROTO_GetFieldsCounters [07:18:21]wFMCommunicate request_size=4 [07:18:21]MH_SAM_APDU [07:18:21]CAPDU: 80 13 00 00 [07:18:21]Write to MH i2c: E2 08 00 0E 3E 80 13 00 00 00 00 00 00 C8 [07:18:21]Write i2c OK [07:18:21]MH_I2C_Read... [07:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:21]Read from MH i2c: E2 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 62 00 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 62 00 0E 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 6B 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [07:18: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 6B 13 01 00 0E 04 04 00 C4 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:21]wFMCommunicate OK [07:18:21]SAM_PROTO_GetFieldsCounters done [07:18:21]requested_item shift.num is exist - process it [07:18:21]requested_item shift.opened is exist - process it [07:18:21]req_shift_opened [07:18:21]FM_GetShiftState [07:18:21]SAM_PROTO_GetShiftState [07:18:21]wFMCommunicate request_size=4 [07:18:21]MH_SAM_APDU [07:18:21]CAPDU: 80 13 01 00 [07:18:21]Write to MH i2c: E2 08 00 0F 3E 80 13 01 00 00 00 00 00 CA [07:18:21]Write i2c OK [07:18:21]MH_I2C_Read... [07:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:21]Read from MH i2c: E2 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 0E 00 [07:18:21]MH_I2C_Read... [07:18:21]Read from MH i2c: E2 0E 00 0F 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 57 [07:18:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:18:21]wFMCommunicate OK [07:18:21]SAM_PROTO_GetShiftState done [07:18:21]FM_GetShiftState done [07:18:21]req_shift_opened done [07:18:21]requested_item shift.open_date is exist - process it [07:18:21]req_shift_open_date [07:18:21]req_shift_open_date done [07:18:21]produce_requested_data done [07:18:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70507,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:18:21]process_action_free close_receipt [07:18:21]json_value_free [07:18:21]json_value_free done [07:18:21]process_json_proto returns [07:18:21]Send response to host [07:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70507,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:18:21]free response buf [07:18:21]execute_script done [07:18:21]execute_script returns [07:18:21]free content buf [07:18:21]Sock 7.Close socket [07:18:21]Sock 7.Thread stoped [07:18:25]accept exits with 9 [07:18:25]New connection [07:18:25]New thread 3066555748 created [07:18:25]Thread 3066699108 joined [07:18:25]Waiting for new connection... [07:18:25] Sock 9.Parse request [07:18:25]Sock 9.Check first char [07:18:25]Sock 9.First char is OK [07:18:25]request: POST /json_proto HTTP/1.0 [07:18:25]Method: POST [07:18:25]URL: /json_proto [07:18:25]Method is POST - this is cgi request [07:18:25]url: /json_proto [07:18:25]query_string will be loaded in cgi processing [07:18:25]execute_cgi json_proto POST (null) [07:18:25]execute_cgi path=json_proto method=POST [07:18:25]POST find Content-Length [07:18:25]Host: 172.17.50.3:8080 [07:18:25]Content-Length: 753 [07:18:25]Content-Type: application/json [07:18:25] [07:18:25]POST finish read [07:18:25]Found Content-Length = 753 [07:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886275", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:25]execute_script... [07:18: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)2886275", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:25]POST & json_proto [07:18:25]process_json_proto [07:18:25]json parsed OK: [07:18:25]protocol is kg_v1.0 [07:18:25]action value=close_receipt [07:18:25]process_action close_receipt [07:18:25]cmd_close_receipt [07:18:25]MH_GetDate [07:18:25]Write to MH i2c: F0 00 00 10 3E 3D [07:18:25]Write i2c OK [07:18:25]MH_I2C_Read... [07:18:25]Read from MH i2c: F0 [07:18:25]MH_I2C_Read... [07:18:25]Read from MH i2c: F0 09 00 [07:18:25]MH_I2C_Read... [07:18:25]Read from MH i2c: F0 09 00 10 3E 00 44 A3 18 67 6B 98 1E 66 33 [07:18:25]GetLastDocTimeStamp 1729667900 [07:18:25]current date 1729667908 [07:18:25]FM_GetShiftState [07:18:25]SAM_PROTO_GetShiftState [07:18:25]wFMCommunicate request_size=4 [07:18:25]MH_SAM_APDU [07:18:25]CAPDU: 80 13 01 00 [07:18:25]Write to MH i2c: E2 08 00 11 3E 80 13 01 00 00 00 00 00 CC [07:18:25]Write i2c OK [07:18:25]MH_I2C_Read... [07:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:25]Read from MH i2c: E2 [07:18:25]MH_I2C_Read... [07:18:25]Read from MH i2c: E2 0E 00 [07:18:25]MH_I2C_Read... [07:18:25]Read from MH i2c: E2 0E 00 11 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [07:18:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:18:25]wFMCommunicate OK [07:18:25]SAM_PROTO_GetShiftState done [07:18:25]FM_GetShiftState done [07:18:25]opened in 1729642435 [07:18:25]opened+sec_in_day 1729728835 [07:18:25]quantity*price = 0 [07:18:25]sum+1 = 1 [07:18: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 СНО: Общий режим Чек 24 23.10.2024 07:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30047742 ФМ: 0000000000963346 ФД: 70508 ФПД: 167876536964794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70508&fm=167876536964794&tin=02508201610067®Number=0000000000156251&sum=0 [07:18:26]StoreToDocumentArchive [07:18:26]shift 196 fd 70508 [07:18:26]save to /storage/0196/doc_00070508 [07:18:26]save last doc name /storage/0196/doc_00070508 to /storage/kkm_last_doc_name [07:18:26]save OK [07:18:26]Clear old archive folders... [07:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:18:26]tlvbuf is 00ED4870 [07:18:26]SAM_PROTO_ClearQueue [07:18:26]wFMCommunicate request_size=4 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 09 00 00 [07:18:26]Write to MH i2c: E2 08 00 1E 3E 80 09 00 00 00 00 00 00 CE [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 1E 3E 00 90 00 D0 [07:18:26]RAPDU: 90 00 [07:18:26]wFMCommunicate OK [07:18:26]SAM_PROTO_ClearQueue done [07:18:26]KKMCreateOFDPacket [07:18:26]OFDProtocolAddRootSTLVToBuf [07:18:26]FM_MakeSignedData [07:18:26]FM_MakeSignedData [07:18:26]SAM_PROTO_SignData [07:18:26]wFMCommunicate request_size=4 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 0D 01 02 [07:18:26]Write to MH i2c: E2 08 00 1F 3E 80 0D 01 02 00 00 00 00 D6 [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 1F 3E 00 90 00 D1 [07:18:26]RAPDU: 90 00 [07:18:26]wFMCommunicate OK [07:18:26]wFMCommunicate request_size=255 [07:18:26]MH_SAM_APDU [07:18: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 18 00 00 00 F4 03 04 00 44 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 AE CD 5A [07:18:26]Write to MH i2c: E2 02 01 20 3E 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 18 00 00 00 F4 03 04 00 44 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 AE CD 5A 00 00 83 [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 20 3E 00 90 00 D2 [07:18:26]RAPDU: 90 00 [07:18:26]wFMCommunicate OK [07:18:26]wFMCommunicate request_size=7 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 0D 02 02 02 16 BA [07:18:26]Write to MH i2c: E2 0A 00 21 3E 80 0D 02 02 02 00 16 BA 00 00 AD [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 03 00 21 3E 00 90 00 D3 [07:18:26]RAPDU: 90 00 [07:18:26]wFMCommunicate OK [07:18:26]wFMCommunicate request_size=4 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 0D 03 02 [07:18:26]Write to MH i2c: E2 08 00 22 3E 80 0D 03 02 00 00 00 00 DB [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 0B 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 0B 00 22 3E 00 F3 40 37 8B 97 13 13 51 90 00 DF [07:18:26]RAPDU: F3 40 37 8B 97 13 13 51 90 00 [07:18:26]wFMCommunicate OK [07:18:26]SAM_PROTO_SignData done [07:18:26]FM_MakeSignedData done [07:18:26]CreateOFDProtocolMessage [07:18:26]wFMCommunicate request_size=4 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 11 00 00 [07:18:26]Write to MH i2c: E2 08 00 23 3E 80 11 00 00 00 00 00 00 DB [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 17 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 17 00 23 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [07:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:18:26]wFMCommunicate OK [07:18:26]CreateOFDProtocolMessage done [07:18:26]OFDSenderStorePacket 70508 [07:18:26]StoreOFDPacket docnum=70508 [07:18: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 0C 01 00 00 27 7F 04 01 9C 98 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 18 00 00 00 F4 03 04 00 44 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 AE CD 5A 16 BA F3 40 37 8B 97 13 13 51 [07:18:26]CheckFolder [07:18:26]dirname=/storage/ofd_packets [07:18:26]CheckFolder done [07:18:26]ProducePacketName [07:18:26]name=ofd_packets/00070508 [07:18:26]NVStorageSaveData ofd_packets/00070508 [07:18:26]File name is /storage/ofd_packets/00070508 [07:18:26]Write 298 bytes [07:18:26]NVStorageSaveData done [07:18:26]OFDSenderStorePacket done [07:18:26]KKMCreateOFDPacket done [07:18:26]NVStorageSaveData kkm_last_timestamp [07:18:26]File name is /storage/kkm_last_timestamp [07:18:26]Write 4 bytes [07:18:26]NVStorageSaveData done [07:18:26]ExternCall_PrintAddStr [07:18:26]wPrintStart [07:18:26]Write to MH i2c: 01 00 00 24 3E 62 [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: 01 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: 01 07 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: 01 07 00 24 3E 00 00 00 00 00 FF 0F 77 [07:18:26]RasterBufferAndPrint [07:18:26]line Счет N : (1)2886275 [07:18:26]line ИНН: 02508201610067 [07:18:26]line Контрольно-Кассовый Чек [07:18:26]line ПРОДАЖА [07:18:26]line ТРК (МРК, ГНК) : 61 [07:18:26]line Товар: 2710194210 [07:18:26]line ДТ-К-5 [07:18:26]line 100.000 * 0.00 [07:18:26]line = 0.00 [07:18:26]line НДС 12% НСП 1% [07:18:26]line > о реализуемом товаре [07:18:26]line ИТОГО: 0.00 [07:18:26]line НСП 1% : 0.00 [07:18:26]line НДС 12% : 0.00 [07:18:26]line Наличными: 0.00 [07:18:26]line Безнал.: 0.00 [07:18:26]line Место: АЗС № 85 "Партнер Нефть" [07:18:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:18:26]line СНО: Общий режим [07:18:26]line Чек 24 23.10.2024 07:18 [07:18:26]line Смена: 196 ФФД: 1.0 [07:18:26]line ЗНМ: 0300000167 [07:18:26]line РНМ: 0000000000156251 [07:18:26]line Версия ККМ: v1.0 [07:18:26]line Талоны: ТК ГПНА Online [07:18:26]line 30047742 [07:18:26]line ФМ: 0000000000963346 [07:18:26]line ФД: 70508 [07:18:26]line ФПД: 167876536964794 [07:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70508&fm=167876536964794&tin=02508201610067®Number=0000000000156251&sum=0 [07:18:26]written 0, free lines is 4095 [07:18:26]OFD Sender: Processing packet 70508 [packets to send 18, broken 17] [07:18:26]ProducePacketName [07:18:26]name=ofd_packets/00070508 [07:18:26]OFD Sender: To server: pG, [07:18:26]CommunicateWithHost lk.salyk.kg:30040 [07:18:26]ConnectInit lk.salyk.kg [07:18:26]Connected sock=10 [07:18: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 7F 04 01 9C 98 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 18 00 00 00 F4 03 04 00 44 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 AE CD 5A 16 BA F3 40 37 8B 97 13 13 51 [07:18: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 DA BE 47 00 E6 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 6C 13 01 00 F4 03 04 00 E2 4C 18 67 B6 04 01 00 00 47 EA E2 B4 F4 5F 4C AB [07:18:27]CommunicateWithHost err = 0 [07:18:27]CheckOFDResponse [07:18:27]1017 (14) - 77093643461234 [07:18:27]1041 (16) - 0000000000963346 [07:18:27]1040 (4) - 70508 [07:18:27]1012 (4) - 23.10.2024 01:09 [07:18:27]1206 (1) - 0 [07:18:27]OFD Sender: Remove packet 70508 [07:18:27]ProducePacketName [07:18:27]name=ofd_packets/00070508 [07:18:27]NVStorageDeleteData [07:18:27]Write to MH i2c: 01 00 00 4E 3E 8C [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 07 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 07 00 4E 3E 00 00 00 00 00 09 0D A9 [07:18:27]RasterBufferAndPrint [07:18:27]line [07:18:27]line [07:18:27]line [07:18:27]line [07:18:27]line [07:18:27]written 0, free lines is 3347 [07:18:27]MH_Cut [07:18:27]Write to MH i2c: D1 01 00 55 3E 01 65 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: D1 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: D1 01 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: D1 01 00 55 3E 00 64 [07:18:27]Write to MH i2c: 01 00 00 56 3E 94 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]OFD Sender: No OFD packet to send [07:18:27]*** Cut start [07:18:27]*** Partial cut [07:18:27]*** CUTSNS_PIN = 1 [07:18:27]*** CUTSNS_PIN = 0 [07:18:28]*** Brake cut motor [07:18:28]Read from MH i2c: 01 [07:18:28]MH_I2C_Read... [07:18:28]*** Stop cut motor [07:18:28]*** Cut end [07:18:28]Read from MH i2c: 01 07 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: 01 07 00 56 3E 00 00 00 00 00 FF 0F A9 [07:18:28]process_action close_receipt done [07:18:28]requested_data is exist [07:18:28]produce_requested_data [07:18:28]requested_item fm.sn is exist - process it [07:18:28]wFMCommunicate request_size=4 [07:18:28]MH_SAM_APDU [07:18:28]CAPDU: 80 11 00 00 [07:18:28]Write to MH i2c: E2 08 00 57 3E 80 11 00 00 00 00 00 00 0F [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:28]Read from MH i2c: E2 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 17 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 17 00 57 3E 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:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:18:28]wFMCommunicate OK [07:18:28]requested_item fd.num is exist - process it [07:18:28]SAM_PROTO_GetFieldsCounters [07:18:28]wFMCommunicate request_size=4 [07:18:28]MH_SAM_APDU [07:18:28]CAPDU: 80 13 00 00 [07:18:28]Write to MH i2c: E2 08 00 58 3E 80 13 00 00 00 00 00 00 12 [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:28]Read from MH i2c: E2 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 62 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 62 00 58 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 6C 13 01 00 0E 04 04 00 C4 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 B9 [07:18: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 6C 13 01 00 0E 04 04 00 C4 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 [07:18:28]wFMCommunicate OK [07:18:28]SAM_PROTO_GetFieldsCounters done [07:18:28]requested_item shift.num is exist - process it [07:18:28]requested_item shift.opened is exist - process it [07:18:28]req_shift_opened [07:18:28]FM_GetShiftState [07:18:28]SAM_PROTO_GetShiftState [07:18:28]wFMCommunicate request_size=4 [07:18:28]MH_SAM_APDU [07:18:28]CAPDU: 80 13 01 00 [07:18:28]Write to MH i2c: E2 08 00 59 3E 80 13 01 00 00 00 00 00 14 [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:28]Read from MH i2c: E2 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 0E 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: E2 0E 00 59 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A1 [07:18:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:18:28]wFMCommunicate OK [07:18:28]SAM_PROTO_GetShiftState done [07:18:28]FM_GetShiftState done [07:18:28]req_shift_opened done [07:18:28]requested_item shift.open_date is exist - process it [07:18:28]req_shift_open_date [07:18:28]req_shift_open_date done [07:18:28]produce_requested_data done [07:18:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70508,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:18:28]process_action_free close_receipt [07:18:28]json_value_free [07:18:28]json_value_free done [07:18:28]process_json_proto returns [07:18:28]Send response to host [07:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70508,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:18:28]free response buf [07:18:28]execute_script done [07:18:28]execute_script returns [07:18:28]free content buf [07:18:28]Sock 9.Close socket [07:18:28]Sock 9.Thread stoped [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]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:26]accept exits with 7 [07:19:26]New connection [07:19:26]New thread 3066699108 created [07:19:26]Thread 3066555748 joined [07:19:26]Waiting for new connection... [07:19:26] Sock 7.Parse request [07:19:26]Sock 7.Check first char [07:19:26]Sock 7.First char is OK [07:19:26]request: POST /json_proto HTTP/1.0 [07:19:26]Method: POST [07:19:26]URL: /json_proto [07:19:26]Method is POST - this is cgi request [07:19:26]url: /json_proto [07:19:26]query_string will be loaded in cgi processing [07:19:26]execute_cgi json_proto POST (null) [07:19:26]execute_cgi path=json_proto method=POST [07:19:26]POST find Content-Length [07:19:26]Host: 172.17.50.3:8080 [07:19:26]Content-Length: 683 [07:19:26]Content-Type: application/json [07:19:26] [07:19:26]POST finish read [07:19:26]Found Content-Length = 683 [07:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886276", "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" ] } } [07:19:26]execute_script... [07:19: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)2886276", "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" ] } } [07:19:26]POST & json_proto [07:19:26]process_json_proto [07:19:26]json parsed OK: [07:19:26]protocol is kg_v1.0 [07:19:26]action value=close_receipt [07:19:26]process_action close_receipt [07:19:26]cmd_close_receipt [07:19:26]MH_GetDate [07:19:26]Write to MH i2c: F0 00 00 5A 3E 87 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: F0 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: F0 09 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: F0 09 00 5A 3E 00 82 A3 18 67 6B 98 1E 66 BB [07:19:26]GetLastDocTimeStamp 1729667908 [07:19:26]current date 1729667970 [07:19:26]FM_GetShiftState [07:19:26]SAM_PROTO_GetShiftState [07:19:26]wFMCommunicate request_size=4 [07:19:26]MH_SAM_APDU [07:19:26]CAPDU: 80 13 01 00 [07:19:26]Write to MH i2c: E2 08 00 5B 3E 80 13 01 00 00 00 00 00 16 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:26]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 0E 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 0E 00 5B 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A3 [07:19:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:19:26]wFMCommunicate OK [07:19:26]SAM_PROTO_GetShiftState done [07:19:26]FM_GetShiftState done [07:19:26]opened in 1729642435 [07:19:26]opened+sec_in_day 1729728835 [07:19:26]quantity*price = 200031 [07:19:26]sum+1 = 200032 [07:19:26]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 СНО: Общий режим Чек 25 23.10.2024 07:19 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70509 ФПД: 35095794276463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071930&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70509&fm=35095794276463&tin=02508201610067®Number=0000000000156251&sum=200000 [07:19:27]StoreToDocumentArchive [07:19:27]shift 196 fd 70509 [07:19:27]save to /storage/0196/doc_00070509 [07:19:27]save last doc name /storage/0196/doc_00070509 to /storage/kkm_last_doc_name [07:19:27]save OK [07:19:27]Clear old archive folders... [07:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:27]tlvbuf is 00ED2290 [07:19:27]SAM_PROTO_ClearQueue [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 09 00 00 [07:19:27]Write to MH i2c: E2 08 00 68 3E 80 09 00 00 00 00 00 00 18 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]OFD Sender: No OFD packet to send [07:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 03 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 03 00 68 3E 00 90 00 1A [07:19:27]RAPDU: 90 00 [07:19:27]wFMCommunicate OK [07:19:27]SAM_PROTO_ClearQueue done [07:19:27]KKMCreateOFDPacket [07:19:27]OFDProtocolAddRootSTLVToBuf [07:19:27]FM_MakeSignedData [07:19:27]FM_MakeSignedData [07:19:27]SAM_PROTO_SignData [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 0D 01 02 [07:19:27]Write to MH i2c: E2 08 00 69 3E 80 0D 01 02 00 00 00 00 20 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 03 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 03 00 69 3E 00 90 00 1B [07:19:27]RAPDU: 90 00 [07:19:27]wFMCommunicate OK [07:19:27]wFMCommunicate request_size=255 [07:19:27]MH_SAM_APDU [07:19: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 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 19 00 00 00 F4 03 04 00 82 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1F [07:19:27]Write to MH i2c: E2 02 01 6A 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 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 19 00 00 00 F4 03 04 00 82 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1F 00 00 0C [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 03 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 03 00 6A 3E 00 90 00 1C [07:19:28]RAPDU: 90 00 [07:19:28]wFMCommunicate OK [07:19:28]wFMCommunicate request_size=10 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 0D 02 02 05 EB 60 59 D8 6F [07:19:28]Write to MH i2c: E2 0D 00 6B 3E 80 0D 02 02 05 00 EB 60 59 D8 6F 00 00 18 [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 03 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 03 00 6B 3E 00 90 00 1D [07:19:28]RAPDU: 90 00 [07:19:28]wFMCommunicate OK [07:19:28]wFMCommunicate request_size=4 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 0D 03 02 [07:19:28]Write to MH i2c: E2 08 00 6C 3E 80 0D 03 02 00 00 00 00 25 [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 0B 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 0B 00 6C 3E 00 25 0E 41 31 6E D0 D5 57 90 00 35 [07:19:28]RAPDU: 25 0E 41 31 6E D0 D5 57 90 00 [07:19:28]wFMCommunicate OK [07:19:28]SAM_PROTO_SignData done [07:19:28]FM_MakeSignedData done [07:19:28]CreateOFDProtocolMessage [07:19:28]wFMCommunicate request_size=4 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 11 00 00 [07:19:28]Write to MH i2c: E2 08 00 6D 3E 80 11 00 00 00 00 00 00 25 [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 17 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 17 00 6D 3E 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: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 [07:19:28]wFMCommunicate OK [07:19:28]CreateOFDProtocolMessage done [07:19:28]OFDSenderStorePacket 70509 [07:19:28]StoreOFDPacket docnum=70509 [07:19: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 A7 3F 07 01 4D 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 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 19 00 00 00 F4 03 04 00 82 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1F EB 60 59 D8 6F 25 0E 41 31 6E D0 D5 57 [07:19:28]CheckFolder [07:19:28]dirname=/storage/ofd_packets [07:19:28]CheckFolder done [07:19:28]ProducePacketName [07:19:28]name=ofd_packets/00070509 [07:19:28]NVStorageSaveData ofd_packets/00070509 [07:19:28]File name is /storage/ofd_packets/00070509 [07:19:28]Write 301 bytes [07:19:28]NVStorageSaveData done [07:19:28]OFDSenderStorePacket done [07:19:28]KKMCreateOFDPacket done [07:19:28]NVStorageSaveData kkm_last_timestamp [07:19:28]File name is /storage/kkm_last_timestamp [07:19:28]Write 4 bytes [07:19:28]NVStorageSaveData done [07:19:28]ExternCall_PrintAddStr [07:19:28]wPrintStart [07:19:28]Write to MH i2c: 01 00 00 6E 3E AC [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: 01 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: 01 07 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: 01 07 00 6E 3E 00 00 00 00 00 FF 0F C1 [07:19:28]RasterBufferAndPrint [07:19:28]line Счет N : (1)2886276 [07:19:28]line ИНН: 02508201610067 [07:19:28]line Контрольно-Кассовый Чек [07:19:28]line ПРОДАЖА [07:19:28]line ТРК (МРК, ГНК) : 42 [07:19:28]line Товар: 2710124130 [07:19:28]line Аи-92-К-5 [07:19:28]line 29.900 * 66.90 [07:19:28]line = 2000.31 [07:19:28]line НДС 12% НСП 1% [07:19:28]line > о реализуемом товаре [07:19:28]line ОКРУГЛЕНИЕ: -0.31 [07:19:28]line ИТОГО: 2000.00 [07:19:28]line Внесено: 2000.00 [07:19:28]line СДАЧА: 0.00 [07:19:28]line НСП 1% : 17.70 [07:19:28]line НДС 12% : 212.42 [07:19:28]line Наличными: 2000.00 [07:19:28]line Безнал.: 0.00 [07:19:28]line Место: АЗС № 85 "Партнер Нефть" [07:19:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:19:28]line СНО: Общий режим [07:19:28]line Чек 25 23.10.2024 07:19 [07:19:28]line Смена: 196 ФФД: 1.0 [07:19:28]line ЗНМ: 0300000167 [07:19:28]line РНМ: 0000000000156251 [07:19:28]line Версия ККМ: v1.0 [07:19:28]line ФМ: 0000000000963346 [07:19:28]line ФД: 70509 [07:19:28]line ФПД: 35095794276463 [07:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071930&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70509&fm=35095794276463&tin=02508201610067®Number=0000000000156251&sum=200000 [07:19:28]OFD Sender: Processing packet 70509 [packets to send 18, broken 17] [07:19:28]ProducePacketName [07:19:28]name=ofd_packets/00070509 [07:19:28]OFD Sender: To server: pG, [07:19:28]CommunicateWithHost lk.salyk.kg:30040 [07:19:28]ConnectInit lk.salyk.kg [07:19:28]written 0, free lines is 4095 [07:19:28]Connected sock=11 [07:19: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 A7 3F 07 01 4D 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 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 19 00 00 00 F4 03 04 00 82 A3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1F EB 60 59 D8 6F 25 0E 41 31 6E D0 D5 57 [07:19: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 81 26 47 00 CC 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 6D 13 01 00 F4 03 04 00 20 4D 18 67 B6 04 01 00 00 E5 AC 68 67 38 39 BD 82 [07:19:28]CommunicateWithHost err = 0 [07:19:28]CheckOFDResponse [07:19:28]1017 (14) - 77093643461234 [07:19:28]1041 (16) - 0000000000963346 [07:19:28]1040 (4) - 70509 [07:19:28]1012 (4) - 23.10.2024 01:10 [07:19:28]1206 (1) - 0 [07:19:28]OFD Sender: Remove packet 70509 [07:19:28]ProducePacketName [07:19:28]name=ofd_packets/00070509 [07:19:28]NVStorageDeleteData [07:19:29]Write to MH i2c: 01 00 00 99 3E D7 [07:19:29]Write i2c OK [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: 01 [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: 01 07 00 [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: 01 07 00 99 3E 00 00 00 00 00 E9 0C D3 [07:19:29]RasterBufferAndPrint [07:19:29]line [07:19:29]line [07:19:29]line [07:19:29]line [07:19:29]line [07:19:29]written 0, free lines is 3311 [07:19:29]MH_Cut [07:19:29]Write to MH i2c: D1 01 00 A0 3E 01 B0 [07:19:29]Write i2c OK [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: D1 [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: D1 01 00 [07:19:29]MH_I2C_Read... [07:19:29]Read from MH i2c: D1 01 00 A0 3E 00 AF [07:19:29]Write to MH i2c: 01 00 00 A1 3E DF [07:19:29]Write i2c OK [07:19:29]MH_I2C_Read... [07:19:29]OFD Sender: No OFD packet to send [07:19:29]*** Cut start [07:19:29]*** Partial cut [07:19:29]*** CUTSNS_PIN = 1 [07:19:29]*** CUTSNS_PIN = 0 [07:19:30]*** Brake cut motor [07:19:30]Read from MH i2c: 01 [07:19:30]*** Stop cut motor [07:19:30]*** Cut end [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: 01 07 00 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: 01 07 00 A1 3E 00 00 00 00 00 FF 0F F4 [07:19:30]process_action close_receipt done [07:19:30]requested_data is exist [07:19:30]produce_requested_data [07:19:30]requested_item fm.sn is exist - process it [07:19:30]wFMCommunicate request_size=4 [07:19:30]MH_SAM_APDU [07:19:30]CAPDU: 80 11 00 00 [07:19:30]Write to MH i2c: E2 08 00 A2 3E 80 11 00 00 00 00 00 00 5A [07:19:30]Write i2c OK [07:19:30]MH_I2C_Read... [07:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:30]Read from MH i2c: E2 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 17 00 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 17 00 A2 3E 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:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:19:30]wFMCommunicate OK [07:19:30]requested_item fd.num is exist - process it [07:19:30]SAM_PROTO_GetFieldsCounters [07:19:30]wFMCommunicate request_size=4 [07:19:30]MH_SAM_APDU [07:19:30]CAPDU: 80 13 00 00 [07:19:30]Write to MH i2c: E2 08 00 A3 3E 80 13 00 00 00 00 00 00 5D [07:19:30]Write i2c OK [07:19:30]MH_I2C_Read... [07:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:30]Read from MH i2c: E2 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 62 00 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 62 00 A3 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 6D 13 01 00 0E 04 04 00 C4 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 08 [07:19: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 6D 13 01 00 0E 04 04 00 C4 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 [07:19:30]wFMCommunicate OK [07:19:30]SAM_PROTO_GetFieldsCounters done [07:19:30]requested_item shift.num is exist - process it [07:19:30]requested_item shift.opened is exist - process it [07:19:30]req_shift_opened [07:19:30]FM_GetShiftState [07:19:30]SAM_PROTO_GetShiftState [07:19:30]wFMCommunicate request_size=4 [07:19:30]MH_SAM_APDU [07:19:30]CAPDU: 80 13 01 00 [07:19:30]Write to MH i2c: E2 08 00 A4 3E 80 13 01 00 00 00 00 00 5F [07:19:30]Write i2c OK [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 [07:19:30]MH_I2C_Read... [07:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:30]Read from MH i2c: E2 0E 00 [07:19:30]MH_I2C_Read... [07:19:30]Read from MH i2c: E2 0E 00 A4 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EC [07:19:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:19:30]wFMCommunicate OK [07:19:30]SAM_PROTO_GetShiftState done [07:19:30]FM_GetShiftState done [07:19:30]req_shift_opened done [07:19:30]requested_item shift.open_date is exist - process it [07:19:30]req_shift_open_date [07:19:30]req_shift_open_date done [07:19:30]produce_requested_data done [07:19:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70509,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:19:30]process_action_free close_receipt [07:19:30]json_value_free [07:19:30]json_value_free done [07:19:30]process_json_proto returns [07:19:30]Send response to host [07:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70509,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:19:30]free response buf [07:19:30]execute_script done [07:19:30]execute_script returns [07:19:30]free content buf [07:19:30]Sock 7.Close socket [07:19:30]Sock 7.Thread stoped [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:30]accept exits with 9 [07:22:30]New connection [07:22:30]New thread 3066555748 created [07:22:30]Thread 3066699108 joined [07:22:30]Waiting for new connection... [07:22:30] Sock 9.Parse request [07:22:30]Sock 9.Check first char [07:22:30]Sock 9.First char is OK [07:22:30]request: POST /json_proto HTTP/1.0 [07:22:30]Method: POST [07:22:30]URL: /json_proto [07:22:30]Method is POST - this is cgi request [07:22:30]url: /json_proto [07:22:30]query_string will be loaded in cgi processing [07:22:30]execute_cgi json_proto POST (null) [07:22:30]execute_cgi path=json_proto method=POST [07:22:30]POST find Content-Length [07:22:30]Host: 172.17.50.3:8080 [07:22:30]Content-Length: 753 [07:22:30]Content-Type: application/json [07:22:30] [07:22:30]POST finish read [07:22:30]Found Content-Length = 753 [07:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886277", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:30]execute_script... [07:22: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)2886277", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30047742", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:30]POST & json_proto [07:22:30]process_json_proto [07:22:30]json parsed OK: [07:22:30]protocol is kg_v1.0 [07:22:30]action value=close_receipt [07:22:30]process_action close_receipt [07:22:30]cmd_close_receipt [07:22:30]MH_GetDate [07:22:30]Write to MH i2c: F0 00 00 A5 3E D2 [07:22:30]Write i2c OK [07:22:30]MH_I2C_Read... [07:22:30]Read from MH i2c: F0 [07:22:30]MH_I2C_Read... [07:22:30]Read from MH i2c: F0 09 00 [07:22:30]MH_I2C_Read... [07:22:30]Read from MH i2c: F0 09 00 A5 3E 00 3A A4 18 67 6B 98 1E 66 BF [07:22:30]GetLastDocTimeStamp 1729667970 [07:22:30]current date 1729668154 [07:22:30]FM_GetShiftState [07:22:30]SAM_PROTO_GetShiftState [07:22:30]wFMCommunicate request_size=4 [07:22:30]MH_SAM_APDU [07:22:30]CAPDU: 80 13 01 00 [07:22:30]Write to MH i2c: E2 08 00 A6 3E 80 13 01 00 00 00 00 00 61 [07:22:30]Write i2c OK [07:22:30]MH_I2C_Read... [07:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:30]Read from MH i2c: E2 [07:22:30]MH_I2C_Read... [07:22:30]Read from MH i2c: E2 0E 00 [07:22:30]MH_I2C_Read... [07:22:30]Read from MH i2c: E2 0E 00 A6 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EE [07:22:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:22:30]wFMCommunicate OK [07:22:30]SAM_PROTO_GetShiftState done [07:22:30]FM_GetShiftState done [07:22:30]opened in 1729642435 [07:22:30]opened+sec_in_day 1729728835 [07:22:30]quantity*price = 0 [07:22:30]sum+1 = 1 [07:22: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 СНО: Общий режим Чек 26 23.10.2024 07:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30047742 ФМ: 0000000000963346 ФД: 70510 ФПД: 47181629794922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70510&fm=47181629794922&tin=02508201610067®Number=0000000000156251&sum=0 [07:22:31]StoreToDocumentArchive [07:22:31]shift 196 fd 70510 [07:22:31]save to /storage/0196/doc_00070510 [07:22:31]save last doc name /storage/0196/doc_00070510 to /storage/kkm_last_doc_name [07:22:31]save OK [07:22:31]Clear old archive folders... [07:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:22:31]tlvbuf is 00EA5250 [07:22:31]SAM_PROTO_ClearQueue [07:22:31]wFMCommunicate request_size=4 [07:22:31]MH_SAM_APDU [07:22:31]CAPDU: 80 09 00 00 [07:22:31]Write to MH i2c: E2 08 00 B3 3E 80 09 00 00 00 00 00 00 63 [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:31]Read from MH i2c: E2 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 03 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 03 00 B3 3E 00 90 00 65 [07:22:31]RAPDU: 90 00 [07:22:31]wFMCommunicate OK [07:22:31]SAM_PROTO_ClearQueue done [07:22:31]KKMCreateOFDPacket [07:22:31]OFDProtocolAddRootSTLVToBuf [07:22:31]FM_MakeSignedData [07:22:31]FM_MakeSignedData [07:22:31]SAM_PROTO_SignData [07:22:31]wFMCommunicate request_size=4 [07:22:31]MH_SAM_APDU [07:22:31]CAPDU: 80 0D 01 02 [07:22:31]Write to MH i2c: E2 08 00 B4 3E 80 0D 01 02 00 00 00 00 6B [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:31]Read from MH i2c: E2 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 03 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 03 00 B4 3E 00 90 00 66 [07:22:31]RAPDU: 90 00 [07:22:31]wFMCommunicate OK [07:22:31]wFMCommunicate request_size=255 [07:22:31]MH_SAM_APDU [07:22:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 1A 00 00 00 F4 03 04 00 3A A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2A E9 54 48 [07:22:31]Write to MH i2c: E2 02 01 B5 3E 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 1A 00 00 00 F4 03 04 00 3A A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2A E9 54 48 00 00 55 [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 B5 3E 00 90 00 67 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]wFMCommunicate request_size=7 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 02 02 02 AA 6A [07:22:32]Write to MH i2c: E2 0A 00 B6 3E 80 0D 02 02 02 00 AA 6A 00 00 86 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 B6 3E 00 90 00 68 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 03 02 [07:22:32]Write to MH i2c: E2 08 00 B7 3E 80 0D 03 02 00 00 00 00 70 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 0B 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 0B 00 B7 3E 00 D1 D8 69 C2 8F 20 3B 20 90 00 4F [07:22:32]RAPDU: D1 D8 69 C2 8F 20 3B 20 90 00 [07:22:32]wFMCommunicate OK [07:22:32]SAM_PROTO_SignData done [07:22:32]FM_MakeSignedData done [07:22:32]CreateOFDProtocolMessage [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 11 00 00 [07:22:32]Write to MH i2c: E2 08 00 B8 3E 80 11 00 00 00 00 00 00 70 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 17 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 17 00 B8 3E 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:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:22:32]wFMCommunicate OK [07:22:32]CreateOFDProtocolMessage done [07:22:32]OFDSenderStorePacket 70510 [07:22:32]StoreOFDPacket docnum=70510 [07:22: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 DE 01 04 01 FB 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 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 1A 00 00 00 F4 03 04 00 3A A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2A E9 54 48 AA 6A D1 D8 69 C2 8F 20 3B 20 [07:22:32]CheckFolder [07:22:32]dirname=/storage/ofd_packets [07:22:32]CheckFolder done [07:22:32]ProducePacketName [07:22:32]name=ofd_packets/00070510 [07:22:32]NVStorageSaveData ofd_packets/00070510 [07:22:32]File name is /storage/ofd_packets/00070510 [07:22:32]Write 298 bytes [07:22:32]NVStorageSaveData done [07:22:32]OFDSenderStorePacket done [07:22:32]KKMCreateOFDPacket done [07:22:32]NVStorageSaveData kkm_last_timestamp [07:22:32]File name is /storage/kkm_last_timestamp [07:22:32]Write 4 bytes [07:22:32]NVStorageSaveData done [07:22:32]ExternCall_PrintAddStr [07:22:32]wPrintStart [07:22:32]Write to MH i2c: 01 00 00 B9 3E F7 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: 01 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: 01 07 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: 01 07 00 B9 3E 00 00 00 00 00 FF 0F 0C [07:22:32]RasterBufferAndPrint [07:22:32]line Счет N : (1)2886277 [07:22:32]line ИНН: 02508201610067 [07:22:32]line Контрольно-Кассовый Чек [07:22:32]line ПРОДАЖА [07:22:32]line ТРК (МРК, ГНК) : 61 [07:22:32]line Товар: 2710194210 [07:22:32]line ДТ-К-5 [07:22:32]line 100.000 * 0.00 [07:22:32]line = 0.00 [07:22:32]line НДС 12% НСП 1% [07:22:32]line > о реализуемом товаре [07:22:32]line ИТОГО: 0.00 [07:22:32]line НСП 1% : 0.00 [07:22:32]line НДС 12% : 0.00 [07:22:32]line Наличными: 0.00 [07:22:32]line Безнал.: 0.00 [07:22:32]line Место: АЗС № 85 "Партнер Нефть" [07:22:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:22:32]line СНО: Общий режим [07:22:32]line Чек 26 23.10.2024 07:22 [07:22:32]line Смена: 196 ФФД: 1.0 [07:22:32]line ЗНМ: 0300000167 [07:22:32]line РНМ: 0000000000156251 [07:22:32]line Версия ККМ: v1.0 [07:22:32]line Талоны: ТК ГПНА Online [07:22:32]line 30047742 [07:22:32]line ФМ: 0000000000963346 [07:22:32]line ФД: 70510 [07:22:32]line ФПД: 47181629794922 [07:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70510&fm=47181629794922&tin=02508201610067®Number=0000000000156251&sum=0 [07:22:32]OFD Sender: Processing packet 70510 [packets to send 18, broken 17] [07:22:32]ProducePacketName [07:22:32]name=ofd_packets/00070510 [07:22:32]OFD Sender: To server: pG, [07:22:32]CommunicateWithHost lk.salyk.kg:30040 [07:22:32]ConnectInit lk.salyk.kg [07:22:32]written 0, free lines is 4095 [07:22:32]Connected sock=10 [07:22: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 DE 01 04 01 FB 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 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 1A 00 00 00 F4 03 04 00 3A A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2A E9 54 48 AA 6A D1 D8 69 C2 8F 20 3B 20 [07:22: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 70 B8 47 00 11 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 6E 13 01 00 F4 03 04 00 D8 4D 18 67 B6 04 01 00 00 8D F3 DA 7F 0E 75 D4 F2 [07:22:33]CommunicateWithHost err = 0 [07:22:33]CheckOFDResponse [07:22:33]1017 (14) - 77093643461234 [07:22:33]1041 (16) - 0000000000963346 [07:22:33]1040 (4) - 70510 [07:22:33]1012 (4) - 23.10.2024 01:14 [07:22:33]1206 (1) - 0 [07:22:33]OFD Sender: Remove packet 70510 [07:22:33]ProducePacketName [07:22:33]name=ofd_packets/00070510 [07:22:33]NVStorageDeleteData [07:22:33]Write to MH i2c: 01 00 00 E3 3E 21 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 E3 3E 00 00 00 00 00 FD 0C 31 [07:22:33]RasterBufferAndPrint [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]written 0, free lines is 3331 [07:22:33]MH_Cut [07:22:33]Write to MH i2c: D1 01 00 EA 3E 01 FA [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 EA 3E 00 F9 [07:22:33]Write to MH i2c: 01 00 00 EB 3E 29 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]OFD Sender: No OFD packet to send [07:22:33]*** Cut start [07:22:33]*** Partial cut [07:22:33]*** CUTSNS_PIN = 1 [07:22:33]*** CUTSNS_PIN = 0 [07:22:34]*** Brake cut motor [07:22:34]Read from MH i2c: 01 [07:22:34]MH_I2C_Read... [07:22:34]*** Stop cut motor [07:22:34]*** Cut end [07:22:34]Read from MH i2c: 01 07 00 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: 01 07 00 EB 3E 00 00 00 00 00 FF 0F 3E [07:22:34]process_action close_receipt done [07:22:34]requested_data is exist [07:22:34]produce_requested_data [07:22:34]requested_item fm.sn is exist - process it [07:22:34]wFMCommunicate request_size=4 [07:22:34]MH_SAM_APDU [07:22:34]CAPDU: 80 11 00 00 [07:22:34]Write to MH i2c: E2 08 00 EC 3E 80 11 00 00 00 00 00 00 A4 [07:22:34]Write i2c OK [07:22:34]MH_I2C_Read... [07:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:34]Read from MH i2c: E2 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 17 00 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 17 00 EC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [07:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:22:34]wFMCommunicate OK [07:22:34]requested_item fd.num is exist - process it [07:22:34]SAM_PROTO_GetFieldsCounters [07:22:34]wFMCommunicate request_size=4 [07:22:34]MH_SAM_APDU [07:22:34]CAPDU: 80 13 00 00 [07:22:34]Write to MH i2c: E2 08 00 ED 3E 80 13 00 00 00 00 00 00 A7 [07:22:34]Write i2c OK [07:22:34]MH_I2C_Read... [07:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:34]Read from MH i2c: E2 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 62 00 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 62 00 ED 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 6E 13 01 00 0E 04 04 00 C4 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 56 [07:22: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 6E 13 01 00 0E 04 04 00 C4 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 [07:22:34]wFMCommunicate OK [07:22:34]SAM_PROTO_GetFieldsCounters done [07:22:34]requested_item shift.num is exist - process it [07:22:34]requested_item shift.opened is exist - process it [07:22:34]req_shift_opened [07:22:34]FM_GetShiftState [07:22:34]SAM_PROTO_GetShiftState [07:22:34]wFMCommunicate request_size=4 [07:22:34]MH_SAM_APDU [07:22:34]CAPDU: 80 13 01 00 [07:22:34]Write to MH i2c: E2 08 00 EE 3E 80 13 01 00 00 00 00 00 A9 [07:22:34]Write i2c OK [07:22:34]MH_I2C_Read... [07:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:34]Read from MH i2c: E2 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 0E 00 [07:22:34]MH_I2C_Read... [07:22:34]Read from MH i2c: E2 0E 00 EE 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 36 [07:22:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:22:34]wFMCommunicate OK [07:22:34]SAM_PROTO_GetShiftState done [07:22:34]FM_GetShiftState done [07:22:34]req_shift_opened done [07:22:34]requested_item shift.open_date is exist - process it [07:22:34]req_shift_open_date [07:22:34]req_shift_open_date done [07:22:34]produce_requested_data done [07:22:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70510,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:22:34]process_action_free close_receipt [07:22:34]json_value_free [07:22:34]json_value_free done [07:22:34]process_json_proto returns [07:22:34]Send response to host [07:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70510,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:22:34]free response buf [07:22:34]execute_script done [07:22:34]execute_script returns [07:22:34]free content buf [07:22:34]Sock 9.Close socket [07:22:34]Sock 9.Thread stoped [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:40]accept exits with 7 [07:24:40]New connection [07:24:40]New thread 3066699108 created [07:24:40]Thread 3066555748 joined [07:24:40]Waiting for new connection... [07:24:40] Sock 7.Parse request [07:24:40]Sock 7.Check first char [07:24:40]Sock 7.First char is OK [07:24:40]request: POST /json_proto HTTP/1.0 [07:24:40]Method: POST [07:24:40]URL: /json_proto [07:24:40]Method is POST - this is cgi request [07:24:40]url: /json_proto [07:24:40]query_string will be loaded in cgi processing [07:24:40]execute_cgi json_proto POST (null) [07:24:40]execute_cgi path=json_proto method=POST [07:24:40]POST find Content-Length [07:24:40]Host: 172.17.50.3:8080 [07:24:40]Content-Length: 689 [07:24:40]Content-Type: application/json [07:24:40] [07:24:40]POST finish read [07:24:40]Found Content-Length = 689 [07:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886278", "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 }]} ], "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:24:40]execute_script... [07:24: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)2886278", "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 }]} ], "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:24:40]POST & json_proto [07:24:40]process_json_proto [07:24:40]json parsed OK: [07:24:40]protocol is kg_v1.0 [07:24:40]action value=close_receipt [07:24:40]process_action close_receipt [07:24:40]cmd_close_receipt [07:24:40]MH_GetDate [07:24:40]Write to MH i2c: F0 00 00 EF 3E 1C [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 09 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 09 00 EF 3E 00 BC A4 18 67 6B 98 1E 66 8B [07:24:40]GetLastDocTimeStamp 1729668154 [07:24:40]current date 1729668284 [07:24:40]FM_GetShiftState [07:24:40]SAM_PROTO_GetShiftState [07:24:40]wFMCommunicate request_size=4 [07:24:40]MH_SAM_APDU [07:24:40]CAPDU: 80 13 01 00 [07:24:40]Write to MH i2c: E2 08 00 F0 3E 80 13 01 00 00 00 00 00 AB [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:40]Read from MH i2c: E2 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 F0 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 38 [07:24:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:24:40]wFMCommunicate OK [07:24:40]SAM_PROTO_GetShiftState done [07:24:40]FM_GetShiftState done [07:24:40]opened in 1729642435 [07:24:40]opened+sec_in_day 1729728835 [07:24:40]quantity*price = 200025 [07:24:40]sum+1 = 200026 [07:24:40]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 СНО: Общий режим Чек 27 23.10.2024 07:24 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70511 ФПД: 100853189863427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072444&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70511&fm=100853189863427&tin=02508201610067®Number=0000000000156251&sum=200000 [07:24:41]StoreToDocumentArchive [07:24:41]shift 196 fd 70511 [07:24:41]save to /storage/0196/doc_00070511 [07:24:41]save last doc name /storage/0196/doc_00070511 to /storage/kkm_last_doc_name [07:24:41]save OK [07:24:41]Clear old archive folders... [07:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:24:41]tlvbuf is 00E04350 [07:24:41]SAM_PROTO_ClearQueue [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 09 00 00 [07:24:41]Write to MH i2c: E2 08 00 FD 3E 80 09 00 00 00 00 00 00 AD [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 FD 3E 00 90 00 AF [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_ClearQueue done [07:24:41]KKMCreateOFDPacket [07:24:41]OFDProtocolAddRootSTLVToBuf [07:24:41]FM_MakeSignedData [07:24:41]FM_MakeSignedData [07:24:41]SAM_PROTO_SignData [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 0D 01 02 [07:24:41]Write to MH i2c: E2 08 00 FE 3E 80 0D 01 02 00 00 00 00 B5 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 FE 3E 00 90 00 B0 [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]wFMCommunicate request_size=255 [07:24:41]MH_SAM_APDU [07:24: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 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 1B 00 00 00 F4 03 04 00 BC A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [07:24:41]Write to MH i2c: E2 02 01 FF 3E 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 1B 00 00 00 F4 03 04 00 BC A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 8C [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [07:24:42]RAPDU: 90 00 [07:24:42]wFMCommunicate OK [07:24:42]wFMCommunicate request_size=16 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5B B9 B6 8E 68 03 [07:24:42]Write to MH i2c: E2 13 00 00 3F 80 0D 02 02 0B 00 00 35 04 06 00 5B B9 B6 8E 68 03 00 00 D1 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 03 00 00 3F 00 90 00 B3 [07:24:42]RAPDU: 90 00 [07:24:42]wFMCommunicate OK [07:24:42]wFMCommunicate request_size=4 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 0D 03 02 [07:24:42]Write to MH i2c: E2 08 00 01 3F 80 0D 03 02 00 00 00 00 BB [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 0B 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 0B 00 01 3F 00 38 51 7E 2C 7C 7D F6 89 90 00 67 [07:24:42]RAPDU: 38 51 7E 2C 7C 7D F6 89 90 00 [07:24:42]wFMCommunicate OK [07:24:42]SAM_PROTO_SignData done [07:24:42]FM_MakeSignedData done [07:24:42]CreateOFDProtocolMessage [07:24:42]wFMCommunicate request_size=4 [07:24:42]MH_SAM_APDU [07:24:42]CAPDU: 80 11 00 00 [07:24:42]Write to MH i2c: E2 08 00 02 3F 80 11 00 00 00 00 00 00 BB [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 17 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 17 00 02 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [07:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:24:42]wFMCommunicate OK [07:24:42]CreateOFDProtocolMessage done [07:24:42]OFDSenderStorePacket 70511 [07:24:42]StoreOFDPacket docnum=70511 [07:24: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 2B 06 0D 01 97 06 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 1B 00 00 00 F4 03 04 00 BC A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5B B9 B6 8E 68 03 38 51 7E 2C 7C 7D F6 89 [07:24:42]CheckFolder [07:24:42]dirname=/storage/ofd_packets [07:24:42]CheckFolder done [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00070511 [07:24:42]NVStorageSaveData ofd_packets/00070511 [07:24:42]File name is /storage/ofd_packets/00070511 [07:24:42]Write 307 bytes [07:24:42]NVStorageSaveData done [07:24:42]OFDSenderStorePacket done [07:24:42]KKMCreateOFDPacket done [07:24:42]NVStorageSaveData kkm_last_timestamp [07:24:42]File name is /storage/kkm_last_timestamp [07:24:42]Write 4 bytes [07:24:42]OFD Sender: Processing packet 70511 [packets to send 18, broken 17] [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00070511 [07:24:42]OFD Sender: To server: pG, [07:24:42]CommunicateWithHost lk.salyk.kg:30040 [07:24:42]ConnectInit lk.salyk.kg [07:24:42]NVStorageSaveData done [07:24:42]ExternCall_PrintAddStr [07:24:42]wPrintStart [07:24:42]Write to MH i2c: 01 00 00 03 3F 42 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 03 3F 00 00 00 00 00 FF 0F 57 [07:24:42]RasterBufferAndPrint [07:24:42]line Счет N : (1)2886278 [07:24:42]line ИНН: 02508201610067 [07:24:42]line Контрольно-Кассовый Чек [07:24:42]line ПРОДАЖА [07:24:42]line ТРК (МРК, ГНК) : 11 [07:24:42]line Товар: 2710194240 [07:24:42]line D-ENERGY Дт-К-2 [07:24:42]line 25.910 * 77.20 [07:24:42]line = 2000.25 [07:24:42]line НДС 12% НСП 1% [07:24:42]line > о реализуемом товаре [07:24:42]line ОКРУГЛЕНИЕ: -0.25 [07:24:42]line ИТОГО: 2000.00 [07:24:42]line Внесено: 2000.00 [07:24:42]line СДАЧА: 0.00 [07:24:42]line НСП 1% : 17.70 [07:24:42]line НДС 12% : 212.42 [07:24:42]line Наличными: 2000.00 [07:24:42]line Безнал.: 0.00 [07:24:42]line Место: АЗС № 85 "Партнер Нефть" [07:24:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:24:42]line СНО: Общий режим [07:24:42]line Чек 27 23.10.2024 07:24 [07:24:42]line Смена: 196 ФФД: 1.0 [07:24:42]line ЗНМ: 0300000167 [07:24:42]line РНМ: 0000000000156251 [07:24:42]line Версия ККМ: v1.0 [07:24:42]line ФМ: 0000000000963346 [07:24:42]line ФД: 70511 [07:24:42]line ФПД: 100853189863427 [07:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072444&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70511&fm=100853189863427&tin=02508201610067®Number=0000000000156251&sum=200000 [07:24:42]Connected sock=11 [07:24: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 2B 06 0D 01 97 06 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 1B 00 00 00 F4 03 04 00 BC A4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5B B9 B6 8E 68 03 38 51 7E 2C 7C 7D F6 89 [07:24:42]written 0, free lines is 4095 [07:24: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 71 FE 47 00 4C 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 6F 13 01 00 F4 03 04 00 5A 4E 18 67 B6 04 01 00 00 6B 94 9A D1 B2 96 50 F4 [07:24:42]CommunicateWithHost err = 0 [07:24:42]CheckOFDResponse [07:24:42]1017 (14) - 77093643461234 [07:24:42]1041 (16) - 0000000000963346 [07:24:42]1040 (4) - 70511 [07:24:42]1012 (4) - 23.10.2024 01:16 [07:24:42]1206 (1) - 0 [07:24:42]OFD Sender: Remove packet 70511 [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00070511 [07:24:42]NVStorageDeleteData [07:24:42]Write to MH i2c: 01 00 00 2E 3F 6D [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 2E 3F 00 00 00 00 00 E1 0C 61 [07:24:42]RasterBufferAndPrint [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]written 0, free lines is 3303 [07:24:42]MH_Cut [07:24:42]Write to MH i2c: D1 01 00 35 3F 01 46 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 01 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 01 00 35 3F 00 45 [07:24:42]Write to MH i2c: 01 00 00 36 3F 75 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:43]OFD Sender: No OFD packet to send [07:24:43]*** Cut start [07:24:43]*** Partial cut [07:24:43]*** CUTSNS_PIN = 1 [07:24:43]*** CUTSNS_PIN = 0 [07:24:43]*** Brake cut motor [07:24:44]Read from MH i2c: 01 [07:24:44]MH_I2C_Read... [07:24:44]*** Stop cut motor [07:24:44]*** Cut end [07:24:44]Read from MH i2c: 01 07 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: 01 07 00 36 3F 00 00 00 00 00 FF 0F 8A [07:24:44]process_action close_receipt done [07:24:44]requested_data is exist [07:24:44]produce_requested_data [07:24:44]requested_item fm.sn is exist - process it [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 11 00 00 [07:24:44]Write to MH i2c: E2 08 00 37 3F 80 11 00 00 00 00 00 00 F0 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 17 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 17 00 37 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [07:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:24:44]wFMCommunicate OK [07:24:44]requested_item fd.num is exist - process it [07:24:44]SAM_PROTO_GetFieldsCounters [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 13 00 00 [07:24:44]Write to MH i2c: E2 08 00 38 3F 80 13 00 00 00 00 00 00 F3 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 62 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 62 00 38 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 6F 13 01 00 0E 04 04 00 C4 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 A6 [07:24: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 6F 13 01 00 0E 04 04 00 C4 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 [07:24:44]wFMCommunicate OK [07:24:44]SAM_PROTO_GetFieldsCounters done [07:24:44]requested_item shift.num is exist - process it [07:24:44]requested_item shift.opened is exist - process it [07:24:44]req_shift_opened [07:24:44]FM_GetShiftState [07:24:44]SAM_PROTO_GetShiftState [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 13 01 00 [07:24:44]Write to MH i2c: E2 08 00 39 3F 80 13 01 00 00 00 00 00 F5 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 39 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 82 [07:24:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:24:44]wFMCommunicate OK [07:24:44]SAM_PROTO_GetShiftState done [07:24:44]FM_GetShiftState done [07:24:44]req_shift_opened done [07:24:44]requested_item shift.open_date is exist - process it [07:24:44]req_shift_open_date [07:24:44]req_shift_open_date done [07:24:44]produce_requested_data done [07:24:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70511,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:24:44]process_action_free close_receipt [07:24:44]json_value_free [07:24:44]json_value_free done [07:24:44]process_json_proto returns [07:24:44]Send response to host [07:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70511,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:24:44]free response buf [07:24:44]execute_script done [07:24:44]execute_script returns [07:24:44]free content buf [07:24:44]Sock 7.Close socket [07:24:44]Sock 7.Thread stoped [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:54]accept exits with 9 [07:34:54]New connection [07:34:54]New thread 3066555748 created [07:34:54]Thread 3066699108 joined [07:34:54]Waiting for new connection... [07:34:54] Sock 9.Parse request [07:34:54]Sock 9.Check first char [07:34:54]Sock 9.First char is OK [07:34:54]request: POST /json_proto HTTP/1.0 [07:34:54]Method: POST [07:34:54]URL: /json_proto [07:34:54]Method is POST - this is cgi request [07:34:54]url: /json_proto [07:34:54]query_string will be loaded in cgi processing [07:34:54]execute_cgi json_proto POST (null) [07:34:54]execute_cgi path=json_proto method=POST [07:34:54]POST find Content-Length [07:34:54]Host: 172.17.50.3:8080 [07:34:54]Content-Length: 680 [07:34:54]Content-Type: application/json [07:34:54] [07:34:54]POST finish read [07:34:54]Found Content-Length = 680 [07:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886279", "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" ] } } [07:34:54]execute_script... [07:34: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)2886279", "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" ] } } [07:34:54]POST & json_proto [07:34:54]process_json_proto [07:34:54]json parsed OK: [07:34:54]protocol is kg_v1.0 [07:34:54]action value=close_receipt [07:34:54]process_action close_receipt [07:34:54]cmd_close_receipt [07:34:54]MH_GetDate [07:34:54]Write to MH i2c: F0 00 00 3A 3F 68 [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 09 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 09 00 3A 3F 00 22 A7 18 67 6B 98 1E 66 40 [07:34:54]GetLastDocTimeStamp 1729668284 [07:34:54]current date 1729668898 [07:34:54]FM_GetShiftState [07:34:54]SAM_PROTO_GetShiftState [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 13 01 00 [07:34:54]Write to MH i2c: E2 08 00 3B 3F 80 13 01 00 00 00 00 00 F7 [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:54]Read from MH i2c: E2 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 3B 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 84 [07:34:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:34:54]wFMCommunicate OK [07:34:54]SAM_PROTO_GetShiftState done [07:34:54]FM_GetShiftState done [07:34:54]opened in 1729642435 [07:34:54]opened+sec_in_day 1729728835 [07:34:54]quantity*price = 200025 [07:34:54]sum+1 = 200026 [07:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 28 23.10.2024 07:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70512 ФПД: 230007561636944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70512&fm=230007561636944&tin=02508201610067®Number=0000000000156251&sum=200000 [07:34:55]StoreToDocumentArchive [07:34:55]shift 196 fd 70512 [07:34:55]save to /storage/0196/doc_00070512 [07:34:55]save last doc name /storage/0196/doc_00070512 to /storage/kkm_last_doc_name [07:34:55]save OK [07:34:55]Clear old archive folders... [07:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:34:55]tlvbuf is B6D6A210 [07:34:55]SAM_PROTO_ClearQueue [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 09 00 00 [07:34:55]Write to MH i2c: E2 08 00 48 3F 80 09 00 00 00 00 00 00 F9 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 48 3F 00 90 00 FB [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]SAM_PROTO_ClearQueue done [07:34:55]KKMCreateOFDPacket [07:34:55]OFDProtocolAddRootSTLVToBuf [07:34:55]FM_MakeSignedData [07:34:55]FM_MakeSignedData [07:34:55]SAM_PROTO_SignData [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 01 02 [07:34:55]Write to MH i2c: E2 08 00 49 3F 80 0D 01 02 00 00 00 00 01 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 49 3F 00 90 00 FC [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=255 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 1C 00 00 00 F4 03 04 00 22 A7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D1 30 CF 01 [07:34:55]Write to MH i2c: E2 02 01 4A 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 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 1C 00 00 00 F4 03 04 00 22 A7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D1 30 CF 01 00 00 EB [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 03 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 03 00 4A 3F 00 90 00 FD [07:34:56]RAPDU: 90 00 [07:34:56]wFMCommunicate OK [07:34:56]wFMCommunicate request_size=7 [07:34:56]MH_SAM_APDU [07:34:56]CAPDU: 80 0D 02 02 02 CC 50 [07:34:56]Write to MH i2c: E2 0A 00 4B 3F 80 0D 02 02 02 00 CC 50 00 00 24 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 03 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 03 00 4B 3F 00 90 00 FE [07:34:56]RAPDU: 90 00 [07:34:56]wFMCommunicate OK [07:34:56]wFMCommunicate request_size=4 [07:34:56]MH_SAM_APDU [07:34:56]CAPDU: 80 0D 03 02 [07:34:56]Write to MH i2c: E2 08 00 4C 3F 80 0D 03 02 00 00 00 00 06 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0B 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 0B 00 4C 3F 00 06 E6 E1 B7 DB B8 2E 5F 90 00 AB [07:34:56]RAPDU: 06 E6 E1 B7 DB B8 2E 5F 90 00 [07:34:56]wFMCommunicate OK [07:34:56]SAM_PROTO_SignData done [07:34:56]FM_MakeSignedData done [07:34:56]CreateOFDProtocolMessage [07:34:56]wFMCommunicate request_size=4 [07:34:56]MH_SAM_APDU [07:34:56]CAPDU: 80 11 00 00 [07:34:56]Write to MH i2c: E2 08 00 4D 3F 80 11 00 00 00 00 00 00 06 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:56]Read from MH i2c: E2 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 17 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: E2 17 00 4D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [07: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 [07:34:56]wFMCommunicate OK [07:34:56]CreateOFDProtocolMessage done [07:34:56]OFDSenderStorePacket 70512 [07:34:56]StoreOFDPacket docnum=70512 [07:34: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 61 47 04 01 44 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 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 1C 00 00 00 F4 03 04 00 22 A7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D1 30 CF 01 CC 50 06 E6 E1 B7 DB B8 2E 5F [07:34:56]CheckFolder [07:34:56]dirname=/storage/ofd_packets [07:34:56]CheckFolder done [07:34:56]ProducePacketName [07:34:56]name=ofd_packets/00070512 [07:34:56]NVStorageSaveData ofd_packets/00070512 [07:34:56]File name is /storage/ofd_packets/00070512 [07:34:56]Write 298 bytes [07:34:56]NVStorageSaveData done [07:34:56]OFDSenderStorePacket done [07:34:56]KKMCreateOFDPacket done [07:34:56]NVStorageSaveData kkm_last_timestamp [07:34:56]File name is /storage/kkm_last_timestamp [07:34:56]Write 4 bytes [07:34:56]NVStorageSaveData done [07:34:56]ExternCall_PrintAddStr [07:34:56]wPrintStart [07:34:56]Write to MH i2c: 01 00 00 4E 3F 8D [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 4E 3F 00 00 00 00 00 FF 0F A2 [07:34:56]RasterBufferAndPrint [07:34:56]line Счет N : (1)2886279 [07:34:56]line ИНН: 02508201610067 [07:34:56]line Контрольно-Кассовый Чек [07:34:56]line ПРОДАЖА [07:34:56]line ТРК (МРК, ГНК) : 61 [07:34:56]line Товар: 2710194210 [07:34:56]line ДТ-К-5 [07:34:56]line 26.250 * 76.20 [07:34:56]line = 2000.25 [07:34:56]line НДС 12% НСП 1% [07:34:56]line > о реализуемом товаре [07:34:56]line ОКРУГЛЕНИЕ: -0.25 [07:34:56]line ИТОГО: 2000.00 [07:34:56]line Внесено: 2000.00 [07:34:56]line СДАЧА: 0.00 [07:34:56]line НСП 1% : 17.70 [07:34:56]line НДС 12% : 212.42 [07:34:56]line Наличными: 2000.00 [07:34:56]line Безнал.: 0.00 [07:34:56]line Место: АЗС № 85 "Партнер Нефть" [07:34:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:34:56]line СНО: Общий режим [07:34:56]line Чек 28 23.10.2024 07:34 [07:34:56]line Смена: 196 ФФД: 1.0 [07:34:56]line ЗНМ: 0300000167 [07:34:56]line РНМ: 0000000000156251 [07:34:56]line Версия ККМ: v1.0 [07:34:56]line ФМ: 0000000000963346 [07:34:56]line ФД: 70512 [07:34:56]line ФПД: 230007561636944 [07:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T073458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70512&fm=230007561636944&tin=02508201610067®Number=0000000000156251&sum=200000 [07:34:56]OFD Sender: Processing packet 70512 [packets to send 18, broken 17] [07:34:56]ProducePacketName [07:34:56]name=ofd_packets/00070512 [07:34:56]OFD Sender: To server: pG, [07:34:56]CommunicateWithHost lk.salyk.kg:30040 [07:34:56]ConnectInit lk.salyk.kg [07:34:56]written 0, free lines is 4095 [07:34:56]Connected sock=10 [07: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 0C 01 00 00 61 47 04 01 44 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 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 1C 00 00 00 F4 03 04 00 22 A7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D1 30 CF 01 CC 50 06 E6 E1 B7 DB B8 2E 5F [07: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 53 F7 47 00 06 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 C0 50 18 67 B6 04 01 00 00 5C E7 88 8C E7 3E 7A 35 [07:34:57]CommunicateWithHost err = 0 [07:34:57]CheckOFDResponse [07:34:57]1017 (14) - 77093643461234 [07:34:57]1041 (16) - 0000000000963346 [07:34:57]1040 (4) - 70512 [07:34:57]1012 (4) - 23.10.2024 01:26 [07:34:57]1206 (1) - 0 [07:34:57]OFD Sender: Remove packet 70512 [07:34:57]ProducePacketName [07:34:57]name=ofd_packets/00070512 [07:34:57]NVStorageDeleteData [07:34:57]Write to MH i2c: 01 00 00 79 3F B8 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 07 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 07 00 79 3F 00 00 00 00 00 EF 0C BA [07:34:57]RasterBufferAndPrint [07:34:57]line [07:34:57]line [07:34:57]line [07:34:57]line [07:34:57]line [07:34:57]written 0, free lines is 3318 [07:34:57]MH_Cut [07:34:57]Write to MH i2c: D1 01 00 80 3F 01 91 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: D1 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: D1 01 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: D1 01 00 80 3F 00 90 [07:34:57]Write to MH i2c: 01 00 00 81 3F C0 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]OFD Sender: No OFD packet to send [07:34:57]*** Cut start [07:34:57]*** Partial cut [07:34:57]*** CUTSNS_PIN = 1 [07:34:57]*** CUTSNS_PIN = 0 [07:34:58]*** Brake cut motor [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]*** Stop cut motor [07:34:58]*** Cut end [07:34:58]Read from MH i2c: 01 07 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 81 3F 00 00 00 00 00 FF 0F D5 [07:34:58]process_action close_receipt done [07:34:58]requested_data is exist [07:34:58]produce_requested_data [07:34:58]requested_item fm.sn is exist - process it [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 11 00 00 [07:34:58]Write to MH i2c: E2 08 00 82 3F 80 11 00 00 00 00 00 00 3B [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 82 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [07:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:34:58]wFMCommunicate OK [07:34:58]requested_item fd.num is exist - process it [07:34:58]SAM_PROTO_GetFieldsCounters [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 00 00 [07:34:58]Write to MH i2c: E2 08 00 83 3F 80 13 00 00 00 00 00 00 3E [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 83 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 70 13 01 00 0E 04 04 00 C4 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 F5 [07:34: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 70 13 01 00 0E 04 04 00 C4 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 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetFieldsCounters done [07:34:58]requested_item shift.num is exist - process it [07:34:58]requested_item shift.opened is exist - process it [07:34:58]req_shift_opened [07:34:58]FM_GetShiftState [07:34:58]SAM_PROTO_GetShiftState [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 01 00 [07:34:58]Write to MH i2c: E2 08 00 84 3F 80 13 01 00 00 00 00 00 40 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 84 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CD [07:34:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetShiftState done [07:34:58]FM_GetShiftState done [07:34:58]req_shift_opened done [07:34:58]requested_item shift.open_date is exist - process it [07:34:58]req_shift_open_date [07:34:58]req_shift_open_date done [07:34:58]produce_requested_data done [07:34:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70512,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:34:58]process_action_free close_receipt [07:34:58]json_value_free [07:34:58]json_value_free done [07:34:58]process_json_proto returns [07:34:58]Send response to host [07:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70512,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:34:58]free response buf [07:34:58]execute_script done [07:34:58]execute_script returns [07:34:58]free content buf [07:34:58]Sock 9.Close socket [07:34:58]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:21]accept exits with 7 [07:48:21]New connection [07:48:21]New thread 3066699108 created [07:48:21]Thread 3066555748 joined [07:48:21]Waiting for new connection... [07:48:21] Sock 7.Parse request [07:48:21]Sock 7.Check first char [07:48:21]Sock 7.First char is OK [07:48:21]request: POST /json_proto HTTP/1.0 [07:48:21]Method: POST [07:48:21]URL: /json_proto [07:48:21]Method is POST - this is cgi request [07:48:21]url: /json_proto [07:48:21]query_string will be loaded in cgi processing [07:48:21]execute_cgi json_proto POST (null) [07:48:21]execute_cgi path=json_proto method=POST [07:48:21]POST find Content-Length [07:48:21]Host: 172.17.50.3:8080 [07:48:21]Content-Length: 689 [07:48:21]Content-Type: application/json [07:48:21] [07:48:21]POST finish read [07:48:21]Found Content-Length = 689 [07:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886280", "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" ] } } [07:48:21]execute_script... [07:48: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)2886280", "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" ] } } [07:48:21]POST & json_proto [07:48:21]process_json_proto [07:48:21]json parsed OK: [07:48:21]protocol is kg_v1.0 [07:48:21]action value=close_receipt [07:48:21]process_action close_receipt [07:48:21]cmd_close_receipt [07:48:21]MH_GetDate [07:48:21]Write to MH i2c: F0 00 00 85 3F B3 [07:48:21]Write i2c OK [07:48:21]MH_I2C_Read... [07:48:21]Read from MH i2c: F0 [07:48:21]MH_I2C_Read... [07:48:21]Read from MH i2c: F0 09 00 [07:48:21]MH_I2C_Read... [07:48:21]Read from MH i2c: F0 09 00 85 3F 00 49 AA 18 67 6B 98 1E 66 B5 [07:48:21]GetLastDocTimeStamp 1729668898 [07:48:21]current date 1729669705 [07:48:21]FM_GetShiftState [07:48:21]SAM_PROTO_GetShiftState [07:48:21]wFMCommunicate request_size=4 [07:48:21]MH_SAM_APDU [07:48:21]CAPDU: 80 13 01 00 [07:48:21]Write to MH i2c: E2 08 00 86 3F 80 13 01 00 00 00 00 00 42 [07:48:21]Write i2c OK [07:48:21]MH_I2C_Read... [07:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:21]Read from MH i2c: E2 [07:48:21]MH_I2C_Read... [07:48:21]Read from MH i2c: E2 0E 00 [07:48:21]MH_I2C_Read... [07:48:21]Read from MH i2c: E2 0E 00 86 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CF [07:48:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:48:21]wFMCommunicate OK [07:48:21]SAM_PROTO_GetShiftState done [07:48:21]FM_GetShiftState done [07:48:21]opened in 1729642435 [07:48:21]opened+sec_in_day 1729728835 [07:48:21]quantity*price = 100051 [07:48:21]sum+1 = 100052 [07:48:21]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 СНО: Общий режим Чек 29 23.10.2024 07:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70513 ФПД: 242585152962918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70513&fm=242585152962918&tin=02508201610067®Number=0000000000156251&sum=100000 [07:48:22]StoreToDocumentArchive [07:48:22]shift 196 fd 70513 [07:48:22]save to /storage/0196/doc_00070513 [07:48:22]save last doc name /storage/0196/doc_00070513 to /storage/kkm_last_doc_name [07:48:22]save OK [07:48:22]Clear old archive folders... [07:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:48:22]tlvbuf is B6E9C350 [07:48:22]SAM_PROTO_ClearQueue [07:48:22]wFMCommunicate request_size=4 [07:48:22]MH_SAM_APDU [07:48:22]CAPDU: 80 09 00 00 [07:48:22]Write to MH i2c: E2 08 00 93 3F 80 09 00 00 00 00 00 00 44 [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:22]Read from MH i2c: E2 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 93 3F 00 90 00 46 [07:48:22]RAPDU: 90 00 [07:48:22]wFMCommunicate OK [07:48:22]SAM_PROTO_ClearQueue done [07:48:22]KKMCreateOFDPacket [07:48:22]OFDProtocolAddRootSTLVToBuf [07:48:22]FM_MakeSignedData [07:48:22]FM_MakeSignedData [07:48:22]SAM_PROTO_SignData [07:48:22]wFMCommunicate request_size=4 [07:48:22]MH_SAM_APDU [07:48:22]CAPDU: 80 0D 01 02 [07:48:22]Write to MH i2c: E2 08 00 94 3F 80 0D 01 02 00 00 00 00 4C [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:22]Read from MH i2c: E2 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 94 3F 00 90 00 47 [07:48:22]RAPDU: 90 00 [07:48:22]wFMCommunicate OK [07:48:22]wFMCommunicate request_size=255 [07:48:22]MH_SAM_APDU [07:48: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 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 1D 00 00 00 F4 03 04 00 49 AA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [07:48:22]Write to MH i2c: E2 02 01 95 3F 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 1D 00 00 00 F4 03 04 00 49 AA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 76 [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:22]Read from MH i2c: E2 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 03 00 95 3F 00 90 00 48 [07:48:22]RAPDU: 90 00 [07:48:22]wFMCommunicate OK [07:48:22]wFMCommunicate request_size=16 [07:48:22]MH_SAM_APDU [07:48:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DC A1 41 DE C1 66 [07:48:22]Write to MH i2c: E2 13 00 96 3F 80 0D 02 02 0B 00 00 35 04 06 00 DC A1 41 DE C1 66 00 00 67 [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 96 3F 00 90 00 49 [07:48:23]RAPDU: 90 00 [07:48:23]wFMCommunicate OK [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 0D 03 02 [07:48:23]Write to MH i2c: E2 08 00 97 3F 80 0D 03 02 00 00 00 00 51 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0B 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0B 00 97 3F 00 AF 88 28 79 88 96 CD 9E 90 00 B3 [07:48:23]RAPDU: AF 88 28 79 88 96 CD 9E 90 00 [07:48:23]wFMCommunicate OK [07:48:23]SAM_PROTO_SignData done [07:48:23]FM_MakeSignedData done [07:48:23]CreateOFDProtocolMessage [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 11 00 00 [07:48:23]Write to MH i2c: E2 08 00 98 3F 80 11 00 00 00 00 00 00 51 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 17 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 17 00 98 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [07:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:48:23]wFMCommunicate OK [07:48:23]CreateOFDProtocolMessage done [07:48:23]OFDSenderStorePacket 70513 [07:48:23]StoreOFDPacket docnum=70513 [07:48: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 8C 13 0D 01 64 97 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 1D 00 00 00 F4 03 04 00 49 AA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DC A1 41 DE C1 66 AF 88 28 79 88 96 CD 9E [07:48:23]CheckFolder [07:48:23]dirname=/storage/ofd_packets [07:48:23]CheckFolder done [07:48:23]ProducePacketName [07:48:23]name=ofd_packets/00070513 [07:48:23]NVStorageSaveData ofd_packets/00070513 [07:48:23]File name is /storage/ofd_packets/00070513 [07:48:23]Write 307 bytes [07:48:23]NVStorageSaveData done [07:48:23]OFDSenderStorePacket done [07:48:23]KKMCreateOFDPacket done [07:48:23]NVStorageSaveData kkm_last_timestamp [07:48:23]File name is /storage/kkm_last_timestamp [07:48:23]Write 4 bytes [07:48:23]NVStorageSaveData done [07:48:23]ExternCall_PrintAddStr [07:48:23]wPrintStart [07:48:23]Write to MH i2c: 01 00 00 99 3F D8 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 99 3F 00 00 00 00 00 FF 0F ED [07:48:23]RasterBufferAndPrint [07:48:23]line Счет N : (1)2886280 [07:48:23]line ИНН: 02508201610067 [07:48:23]line Контрольно-Кассовый Чек [07:48:23]line ПРОДАЖА [07:48:23]line ТРК (МРК, ГНК) : 11 [07:48:23]line Товар: 2710194240 [07:48:23]line D-ENERGY Дт-К-2 [07:48:23]line 12.960 * 77.20 [07:48:23]line = 1000.51 [07:48:23]line НДС 12% НСП 1% [07:48:23]line > о реализуемом товаре [07:48:23]line ОКРУГЛЕНИЕ: -0.51 [07:48:23]line ИТОГО: 1000.00 [07:48:23]line Внесено: 1000.00 [07:48:23]line СДАЧА: 0.00 [07:48:23]line НСП 1% : 8.85 [07:48:23]line НДС 12% : 106.25 [07:48:23]line Наличными: 1000.00 [07:48:23]line Безнал.: 0.00 [07:48:23]line Место: АЗС № 85 "Партнер Нефть" [07:48:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:48:23]line СНО: Общий режим [07:48:23]line Чек 29 23.10.2024 07:48 [07:48:23]line Смена: 196 ФФД: 1.0 [07:48:23]line ЗНМ: 0300000167 [07:48:23]line РНМ: 0000000000156251 [07:48:23]line Версия ККМ: v1.0 [07:48:23]line ФМ: 0000000000963346 [07:48:23]line ФД: 70513 [07:48:23]line ФПД: 242585152962918 [07:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70513&fm=242585152962918&tin=02508201610067®Number=0000000000156251&sum=100000 [07:48:23]OFD Sender: Processing packet 70513 [packets to send 18, broken 17] [07:48:23]ProducePacketName [07:48:23]name=ofd_packets/00070513 [07:48:23]OFD Sender: To server: pG, [07:48:23]CommunicateWithHost lk.salyk.kg:30040 [07:48:23]ConnectInit lk.salyk.kg [07:48:23]written 0, free lines is 4095 [07:48:23]Write to MH i2c: 01 00 00 C4 3F 03 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 C4 3F 00 00 00 00 00 E8 0C FE [07:48:23]RasterBufferAndPrint [07:48:23]line [07:48:23]line [07:48:23]line [07:48:23]line [07:48:23]line [07:48:23]written 0, free lines is 3311 [07:48:23]MH_Cut [07:48:23]Write to MH i2c: D1 01 00 CB 3F 01 DC [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: D1 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: D1 01 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: D1 01 00 CB 3F 00 DB [07:48:23]Write to MH i2c: 01 00 00 CC 3F 0B [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:24]*** Cut start [07:48:24]*** Partial cut [07:48:24]*** CUTSNS_PIN = 1 [07:48:24]*** CUTSNS_PIN = 0 [07:48:24]*** Brake cut motor [07:48:25]Read from MH i2c: 01 [07:48:25]MH_I2C_Read... [07:48:25]*** Stop cut motor [07:48:25]*** Cut end [07:48:25]Read from MH i2c: 01 07 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 07 00 CC 3F 00 00 00 00 00 FF 0F 20 [07:48:25]process_action close_receipt done [07:48:25]requested_data is exist [07:48:25]produce_requested_data [07:48:25]requested_item fm.sn is exist - process it [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 11 00 00 [07:48:25]Write to MH i2c: E2 08 00 CD 3F 80 11 00 00 00 00 00 00 86 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 CD 3F 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:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:48:25]wFMCommunicate OK [07:48:25]requested_item fd.num is exist - process it [07:48:25]SAM_PROTO_GetFieldsCounters [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 13 00 00 [07:48:25]Write to MH i2c: E2 08 00 CE 3F 80 13 00 00 00 00 00 00 89 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 62 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 62 00 CE 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 71 13 01 00 0E 04 04 00 C4 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 44 [07:48: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 71 13 01 00 0E 04 04 00 C4 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 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_GetFieldsCounters done [07:48:25]requested_item shift.num is exist - process it [07:48:25]requested_item shift.opened is exist - process it [07:48:25]req_shift_opened [07:48:25]FM_GetShiftState [07:48:25]SAM_PROTO_GetShiftState [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 13 01 00 [07:48:25]Write to MH i2c: E2 08 00 CF 3F 80 13 01 00 00 00 00 00 8B [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0E 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0E 00 CF 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 18 [07:48:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_GetShiftState done [07:48:25]FM_GetShiftState done [07:48:25]req_shift_opened done [07:48:25]requested_item shift.open_date is exist - process it [07:48:25]req_shift_open_date [07:48:25]req_shift_open_date done [07:48:25]produce_requested_data done [07:48:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70513,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:48:25]process_action_free close_receipt [07:48:25]json_value_free [07:48:25]json_value_free done [07:48:25]process_json_proto returns [07:48:25]Send response to host [07:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70513,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:48:25]free response buf [07:48:25]execute_script done [07:48:25]execute_script returns [07:48:25]free content buf [07:48:25]Sock 7.Close socket [07:48:25]Sock 7.Thread stoped [07:50:32]ConnectInit Can't connect to host [07:50:32]CommunicateWithHost connect error [07:50:32]CommunicateWithHost err = -1 [07:50:32]OFD Sender: Server communicate error [07:50:37]OFD Sender: Processing packet 70513 [packets to send 18, broken 17] [07:50:37]ProducePacketName [07:50:37]name=ofd_packets/00070513 [07:50:37]OFD Sender: To server: pG, [07:50:37]CommunicateWithHost lk.salyk.kg:30040 [07:50:37]ConnectInit lk.salyk.kg [07:50:38]Connected sock=7 [07:50: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 8C 13 0D 01 64 97 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 1D 00 00 00 F4 03 04 00 49 AA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DC A1 41 DE C1 66 AF 88 28 79 88 96 CD 9E [07:50: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 6A 20 47 00 0A 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 71 13 01 00 F4 03 04 00 6E 54 18 67 B6 04 01 00 00 28 F0 4E 46 B7 ED 63 AD [07:50:38]CommunicateWithHost err = 0 [07:50:38]CheckOFDResponse [07:50:38]1017 (14) - 77093643461234 [07:50:38]1041 (16) - 0000000000963346 [07:50:38]1040 (4) - 70513 [07:50:38]1012 (4) - 23.10.2024 01:42 [07:50:38]1206 (1) - 0 [07:50:38]OFD Sender: Remove packet 70513 [07:50:38]ProducePacketName [07:50:38]name=ofd_packets/00070513 [07:50:38]NVStorageDeleteData [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]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:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:53]accept exits with 9 [07:56:53]New connection [07:56:53]New thread 3066555748 created [07:56:53]Thread 3066699108 joined [07:56:53]Waiting for new connection... [07:56:53] Sock 9.Parse request [07:56:53]Sock 9.Check first char [07:56:53]Sock 9.First char is OK [07:56:53]request: POST /json_proto HTTP/1.0 [07:56:53]Method: POST [07:56:53]URL: /json_proto [07:56:53]Method is POST - this is cgi request [07:56:53]url: /json_proto [07:56:53]query_string will be loaded in cgi processing [07:56:53]execute_cgi json_proto POST (null) [07:56:53]execute_cgi path=json_proto method=POST [07:56:53]POST find Content-Length [07:56:53]Host: 172.17.50.3:8080 [07:56:53]Content-Length: 754 [07:56:53]Content-Type: application/json [07:56:53] [07:56:53]POST finish read [07:56:53]Found Content-Length = 754 [07:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886281", "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" ] } } [07:56:53]execute_script... [07:56: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)2886281", "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" ] } } [07:56:53]POST & json_proto [07:56:53]process_json_proto [07:56:53]json parsed OK: [07:56:53]protocol is kg_v1.0 [07:56:53]action value=close_receipt [07:56:53]process_action close_receipt [07:56:53]cmd_close_receipt [07:56:53]MH_GetDate [07:56:53]Write to MH i2c: F0 00 00 D0 3F FE [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: F0 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: F0 09 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: F0 09 00 D0 3F 00 49 AC 18 67 6B 98 1E 66 02 [07:56:53]GetLastDocTimeStamp 1729669705 [07:56:53]current date 1729670217 [07:56:53]FM_GetShiftState [07:56:53]SAM_PROTO_GetShiftState [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 13 01 00 [07:56:53]Write to MH i2c: E2 08 00 D1 3F 80 13 01 00 00 00 00 00 8D [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 0E 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 0E 00 D1 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1A [07:56:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:56:53]wFMCommunicate OK [07:56:53]SAM_PROTO_GetShiftState done [07:56:53]FM_GetShiftState done [07:56:53]opened in 1729642435 [07:56:53]opened+sec_in_day 1729728835 [07:56:53]quantity*price = 0 [07:56:53]sum+1 = 1 [07:56: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 СНО: Общий режим Чек 30 23.10.2024 07:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70514 ФПД: 60296246193026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075657&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70514&fm=60296246193026&tin=02508201610067®Number=0000000000156251&sum=0 [07:56:54]StoreToDocumentArchive [07:56:54]shift 196 fd 70514 [07:56:54]save to /storage/0196/doc_00070514 [07:56:54]save last doc name /storage/0196/doc_00070514 to /storage/kkm_last_doc_name [07:56:54]save OK [07:56:54]Clear old archive folders... [07:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:54]tlvbuf is 00ED4580 [07:56:54]SAM_PROTO_ClearQueue [07:56:54]wFMCommunicate request_size=4 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 09 00 00 [07:56:54]Write to MH i2c: E2 08 00 DE 3F 80 09 00 00 00 00 00 00 8F [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 DE 3F 00 90 00 91 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]SAM_PROTO_ClearQueue done [07:56:54]KKMCreateOFDPacket [07:56:54]OFDProtocolAddRootSTLVToBuf [07:56:54]FM_MakeSignedData [07:56:54]FM_MakeSignedData [07:56:54]SAM_PROTO_SignData [07:56:54]wFMCommunicate request_size=4 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 0D 01 02 [07:56:54]Write to MH i2c: E2 08 00 DF 3F 80 0D 01 02 00 00 00 00 97 [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 DF 3F 00 90 00 92 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]wFMCommunicate request_size=255 [07:56:54]MH_SAM_APDU [07:56: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 1E 00 00 00 F4 03 04 00 49 AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 [07:56:54]Write to MH i2c: E2 02 01 E0 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 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 1E 00 00 00 F4 03 04 00 49 AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 00 00 48 [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 E0 3F 00 90 00 93 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]wFMCommunicate request_size=10 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 0D 02 02 05 D6 D0 55 EB 82 [07:56:54]Write to MH i2c: E2 0D 00 E1 3F 80 0D 02 02 05 00 D6 D0 55 EB 82 00 00 0C [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 E1 3F 00 90 00 94 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]wFMCommunicate request_size=4 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 0D 03 02 [07:56:54]Write to MH i2c: E2 08 00 E2 3F 80 0D 03 02 00 00 00 00 9C [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:55]Read from MH i2c: E2 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 0B 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 0B 00 E2 3F 00 D7 19 4E E3 D9 BF AB AE 90 00 AF [07:56:55]RAPDU: D7 19 4E E3 D9 BF AB AE 90 00 [07:56:55]wFMCommunicate OK [07:56:55]SAM_PROTO_SignData done [07:56:55]FM_MakeSignedData done [07:56:55]CreateOFDProtocolMessage [07:56:55]wFMCommunicate request_size=4 [07:56:55]MH_SAM_APDU [07:56:55]CAPDU: 80 11 00 00 [07:56:55]Write to MH i2c: E2 08 00 E3 3F 80 11 00 00 00 00 00 00 9C [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:55]Read from MH i2c: E2 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 17 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 17 00 E3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [07:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:56:55]wFMCommunicate OK [07:56:55]CreateOFDProtocolMessage done [07:56:55]OFDSenderStorePacket 70514 [07:56:55]StoreOFDPacket docnum=70514 [07:56: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 D6 B4 07 01 52 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 F4 03 04 00 49 AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 D6 D0 55 EB 82 D7 19 4E E3 D9 BF AB AE [07:56:55]CheckFolder [07:56:55]dirname=/storage/ofd_packets [07:56:55]CheckFolder done [07:56:55]ProducePacketName [07:56:55]name=ofd_packets/00070514 [07:56:55]NVStorageSaveData ofd_packets/00070514 [07:56:55]File name is /storage/ofd_packets/00070514 [07:56:55]Write 301 bytes [07:56:55]NVStorageSaveData done [07:56:55]OFDSenderStorePacket done [07:56:55]KKMCreateOFDPacket done [07:56:55]NVStorageSaveData kkm_last_timestamp [07:56:55]File name is /storage/kkm_last_timestamp [07:56:55]Write 4 bytes [07:56:55]NVStorageSaveData done [07:56:55]ExternCall_PrintAddStr [07:56:55]wPrintStart [07:56:55]Write to MH i2c: 01 00 00 E4 3F 23 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 E4 3F 00 00 00 00 00 FF 0F 38 [07:56:55]RasterBufferAndPrint [07:56:55]line Счет N : (1)2886281 [07:56:55]line ИНН: 02508201610067 [07:56:55]line Контрольно-Кассовый Чек [07:56:55]line ПРОДАЖА [07:56:55]line ТРК (МРК, ГНК) : 32 [07:56:55]line Товар: 2710124130 [07:56:55]line Аи-92-К-5 [07:56:55]line 5.000 * 0.00 [07:56:55]line = 0.00 [07:56:55]line НДС 12% НСП 1% [07:56:55]line > о реализуемом товаре [07:56:55]line ИТОГО: 0.00 [07:56:55]line НСП 1% : 0.00 [07:56:55]line НДС 12% : 0.00 [07:56:55]line Наличными: 0.00 [07:56:55]line Безнал.: 0.00 [07:56:55]line Место: АЗС № 85 "Партнер Нефть" [07:56:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:56:55]line СНО: Общий режим [07:56:55]line Чек 30 23.10.2024 07:56 [07:56:55]line Смена: 196 ФФД: 1.0 [07:56:55]line ЗНМ: 0300000167 [07:56:55]line РНМ: 0000000000156251 [07:56:55]line Версия ККМ: v1.0 [07:56:55]line Талоны: ТК ГПНА Online [07:56:55]line 30100970 [07:56:55]line ФМ: 0000000000963346 [07:56:55]line ФД: 70514 [07:56:55]line ФПД: 60296246193026 [07:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075657&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70514&fm=60296246193026&tin=02508201610067®Number=0000000000156251&sum=0 [07:56:55]written 0, free lines is 4095 [07:56:55]OFD Sender: Processing packet 70514 [packets to send 18, broken 17] [07:56:55]ProducePacketName [07:56:55]name=ofd_packets/00070514 [07:56:55]OFD Sender: To server: pG, [07:56:55]CommunicateWithHost lk.salyk.kg:30040 [07:56:55]ConnectInit lk.salyk.kg [07:56:55]Connected sock=10 [07:56: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 D6 B4 07 01 52 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 F4 03 04 00 49 AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 D6 D0 55 EB 82 D7 19 4E E3 D9 BF AB AE [07:56:55]Write to MH i2c: 01 00 00 0E 40 4E [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 0E 40 00 00 00 00 00 ED 0C 4E [07:56:55]RasterBufferAndPrint [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]written 0, free lines is 3314 [07:56: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 19 D2 47 00 BC 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 72 13 01 00 F4 03 04 00 E7 55 18 67 B6 04 01 00 00 FC 01 E2 56 FC 58 3B A3 [07:56:55]CommunicateWithHost err = 0 [07:56:55]CheckOFDResponse [07:56:55]1017 (14) - 77093643461234 [07:56:55]1041 (16) - 0000000000963346 [07:56:55]1040 (4) - 70514 [07:56:55]1012 (4) - 23.10.2024 01:48 [07:56:55]1206 (1) - 0 [07:56:55]OFD Sender: Remove packet 70514 [07:56:55]ProducePacketName [07:56:55]name=ofd_packets/00070514 [07:56:55]NVStorageDeleteData [07:56:55]MH_Cut [07:56:55]Write to MH i2c: D1 01 00 15 40 01 27 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 01 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 01 00 15 40 00 26 [07:56:55]Write to MH i2c: 01 00 00 16 40 56 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:56]OFD Sender: No OFD packet to send [07:56:56]*** Cut start [07:56:56]*** Partial cut [07:56:56]*** CUTSNS_PIN = 1 [07:56:56]*** CUTSNS_PIN = 0 [07:56:56]*** Brake cut motor [07:56:56]Read from MH i2c: 01 [07:56:56]MH_I2C_Read... [07:56:56]*** Stop cut motor [07:56:56]*** Cut end [07:56:56]Read from MH i2c: 01 07 00 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: 01 07 00 16 40 00 00 00 00 00 FF 0F 6B [07:56:56]process_action close_receipt done [07:56:56]requested_data is exist [07:56:56]produce_requested_data [07:56:56]requested_item fm.sn is exist - process it [07:56:56]wFMCommunicate request_size=4 [07:56:56]MH_SAM_APDU [07:56:56]CAPDU: 80 11 00 00 [07:56:56]Write to MH i2c: E2 08 00 17 40 80 11 00 00 00 00 00 00 D1 [07:56:56]Write i2c OK [07:56:56]MH_I2C_Read... [07:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:56]Read from MH i2c: E2 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 17 00 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 17 00 17 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [07:56: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:56:56]wFMCommunicate OK [07:56:56]requested_item fd.num is exist - process it [07:56:56]SAM_PROTO_GetFieldsCounters [07:56:56]wFMCommunicate request_size=4 [07:56:56]MH_SAM_APDU [07:56:56]CAPDU: 80 13 00 00 [07:56:56]Write to MH i2c: E2 08 00 18 40 80 13 00 00 00 00 00 00 D4 [07:56:56]Write i2c OK [07:56:56]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 62 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 62 00 18 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 72 13 01 00 0E 04 04 00 C4 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 93 [07:56: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 72 13 01 00 0E 04 04 00 C4 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 [07:56:57]wFMCommunicate OK [07:56:57]SAM_PROTO_GetFieldsCounters done [07:56:57]requested_item shift.num is exist - process it [07:56:57]requested_item shift.opened is exist - process it [07:56:57]req_shift_opened [07:56:57]FM_GetShiftState [07:56:57]SAM_PROTO_GetShiftState [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 13 01 00 [07:56:57]Write to MH i2c: E2 08 00 19 40 80 13 01 00 00 00 00 00 D6 [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0E 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0E 00 19 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 63 [07:56:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:56:57]wFMCommunicate OK [07:56:57]SAM_PROTO_GetShiftState done [07:56:57]FM_GetShiftState done [07:56:57]req_shift_opened done [07:56:57]requested_item shift.open_date is exist - process it [07:56:57]req_shift_open_date [07:56:57]req_shift_open_date done [07:56:57]produce_requested_data done [07:56:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70514,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:56:57]process_action_free close_receipt [07:56:57]json_value_free [07:56:57]json_value_free done [07:56:57]process_json_proto returns [07:56:57]Send response to host [07:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70514,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:56:57]free response buf [07:56:57]execute_script done [07:56:57]execute_script returns [07:56:57]free content buf [07:56:57]Sock 9.Close socket [07:56:57]Sock 9.Thread stoped [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [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:23]accept exits with 7 [07:59:23]New connection [07:59:23]New thread 3066699108 created [07:59:23]Thread 3066555748 joined [07:59:23]Waiting for new connection... [07:59:23] Sock 7.Parse request [07:59:23]Sock 7.Check first char [07:59:23]Sock 7.First char is OK [07:59:23]request: POST /json_proto HTTP/1.0 [07:59:23]Method: POST [07:59:23]URL: /json_proto [07:59:23]Method is POST - this is cgi request [07:59:23]url: /json_proto [07:59:23]query_string will be loaded in cgi processing [07:59:23]execute_cgi json_proto POST (null) [07:59:23]execute_cgi path=json_proto method=POST [07:59:23]POST find Content-Length [07:59:23]Host: 172.17.50.3:8080 [07:59:23]Content-Length: 683 [07:59:23]Content-Type: application/json [07:59:23] [07:59:23]POST finish read [07:59:23]Found Content-Length = 683 [07:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886282", "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:59:23]execute_script... [07:59: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)2886282", "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:59:23]POST & json_proto [07:59:23]process_json_proto [07:59:23]json parsed OK: [07:59:23]protocol is kg_v1.0 [07:59:23]action value=close_receipt [07:59:23]process_action close_receipt [07:59:23]cmd_close_receipt [07:59:23]MH_GetDate [07:59:23]Write to MH i2c: F0 00 00 1A 40 49 [07:59:23]Write i2c OK [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: F0 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: F0 09 00 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: F0 09 00 1A 40 00 DF AC 18 67 6B 98 1E 66 E3 [07:59:23]GetLastDocTimeStamp 1729670217 [07:59:23]current date 1729670367 [07:59:23]FM_GetShiftState [07:59:23]SAM_PROTO_GetShiftState [07:59:23]wFMCommunicate request_size=4 [07:59:23]MH_SAM_APDU [07:59:23]CAPDU: 80 13 01 00 [07:59:23]Write to MH i2c: E2 08 00 1B 40 80 13 01 00 00 00 00 00 D8 [07:59:23]Write i2c OK [07:59:23]MH_I2C_Read... [07:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:23]Read from MH i2c: E2 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: E2 0E 00 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: E2 0E 00 1B 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 65 [07:59:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:59:23]wFMCommunicate OK [07:59:23]SAM_PROTO_GetShiftState done [07:59:23]FM_GetShiftState done [07:59:23]opened in 1729642435 [07:59:23]opened+sec_in_day 1729728835 [07:59:23]quantity*price = 100015 [07:59:23]sum+1 = 100017 [07:59:23]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 СНО: Общий режим Чек 31 23.10.2024 07:59 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70515 ФПД: 29771891103960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70515&fm=29771891103960&tin=02508201610067®Number=0000000000156251&sum=100000 [07:59:24]StoreToDocumentArchive [07:59:24]shift 196 fd 70515 [07:59:24]save to /storage/0196/doc_00070515 [07:59:24]save last doc name /storage/0196/doc_00070515 to /storage/kkm_last_doc_name [07:59:24]save OK [07:59:24]Clear old archive folders... [07:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:24]tlvbuf is 00C330E0 [07:59:24]SAM_PROTO_ClearQueue [07:59:24]wFMCommunicate request_size=4 [07:59:24]MH_SAM_APDU [07:59:24]CAPDU: 80 09 00 00 [07:59:24]Write to MH i2c: E2 08 00 28 40 80 09 00 00 00 00 00 00 DA [07:59:24]Write i2c OK [07:59:24]MH_I2C_Read... [07:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:24]Read from MH i2c: E2 [07:59:24]MH_I2C_Read... [07:59:24]Read from MH i2c: E2 03 00 [07:59:24]MH_I2C_Read... [07:59:24]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [07:59:24]RAPDU: 90 00 [07:59:24]wFMCommunicate OK [07:59:24]SAM_PROTO_ClearQueue done [07:59:24]KKMCreateOFDPacket [07:59:24]OFDProtocolAddRootSTLVToBuf [07:59:24]FM_MakeSignedData [07:59:24]FM_MakeSignedData [07:59:24]SAM_PROTO_SignData [07:59:24]wFMCommunicate request_size=4 [07:59:24]MH_SAM_APDU [07:59:24]CAPDU: 80 0D 01 02 [07:59:24]Write to MH i2c: E2 08 00 29 40 80 0D 01 02 00 00 00 00 E2 [07:59:24]Write i2c OK [07:59:24]MH_I2C_Read... [07:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:24]Read from MH i2c: E2 [07:59:24]MH_I2C_Read... [07:59:24]Read from MH i2c: E2 03 00 [07:59:24]MH_I2C_Read... [07:59:24]Read from MH i2c: E2 03 00 29 40 00 90 00 DD [07:59:24]RAPDU: 90 00 [07:59:24]wFMCommunicate OK [07:59:24]wFMCommunicate request_size=255 [07:59:24]MH_SAM_APDU [07:59: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 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 1F 00 00 00 F4 03 04 00 DF AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1B [07:59:24]Write to MH i2c: E2 02 01 2A 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 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 1F 00 00 00 F4 03 04 00 DF AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1B 00 00 F4 [07:59:24]Write i2c OK [07:59:24]MH_I2C_Read... [07:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 03 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 03 00 2A 40 00 90 00 DE [07:59:25]RAPDU: 90 00 [07:59:25]wFMCommunicate OK [07:59:25]wFMCommunicate request_size=10 [07:59:25]MH_SAM_APDU [07:59:25]CAPDU: 80 0D 02 02 05 13 CE FE 58 D8 [07:59:25]Write to MH i2c: E2 0D 00 2B 40 80 0D 02 02 05 00 13 CE FE 58 D8 00 00 FE [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 03 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 03 00 2B 40 00 90 00 DF [07:59:25]RAPDU: 90 00 [07:59:25]wFMCommunicate OK [07:59:25]wFMCommunicate request_size=4 [07:59:25]MH_SAM_APDU [07:59:25]CAPDU: 80 0D 03 02 [07:59:25]Write to MH i2c: E2 08 00 2C 40 80 0D 03 02 00 00 00 00 E7 [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 0B 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 0B 00 2C 40 00 58 F5 F2 F7 EB 64 81 D3 90 00 C1 [07:59:25]RAPDU: 58 F5 F2 F7 EB 64 81 D3 90 00 [07:59:25]wFMCommunicate OK [07:59:25]SAM_PROTO_SignData done [07:59:25]FM_MakeSignedData done [07:59:25]CreateOFDProtocolMessage [07:59:25]wFMCommunicate request_size=4 [07:59:25]MH_SAM_APDU [07:59:25]CAPDU: 80 11 00 00 [07:59:25]Write to MH i2c: E2 08 00 2D 40 80 11 00 00 00 00 00 00 E7 [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 17 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 17 00 2D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [07:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:59:25]wFMCommunicate OK [07:59:25]CreateOFDProtocolMessage done [07:59:25]OFDSenderStorePacket 70515 [07:59:25]StoreOFDPacket docnum=70515 [07:59: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 AD E2 07 01 F4 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 DF AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1B 13 CE FE 58 D8 58 F5 F2 F7 EB 64 81 D3 [07:59:25]CheckFolder [07:59:25]dirname=/storage/ofd_packets [07:59:25]CheckFolder done [07:59:25]ProducePacketName [07:59:25]name=ofd_packets/00070515 [07:59:25]NVStorageSaveData ofd_packets/00070515 [07:59:25]File name is /storage/ofd_packets/00070515 [07:59:25]Write 301 bytes [07:59:25]NVStorageSaveData done [07:59:25]OFDSenderStorePacket done [07:59:25]KKMCreateOFDPacket done [07:59:25]NVStorageSaveData kkm_last_timestamp [07:59:25]File name is /storage/kkm_last_timestamp [07:59:25]Write 4 bytes [07:59:25]NVStorageSaveData done [07:59:25]ExternCall_PrintAddStr [07:59:25]wPrintStart [07:59:25]Write to MH i2c: 01 00 00 2E 40 6E [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 07 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 07 00 2E 40 00 00 00 00 00 FF 0F 83 [07:59:25]RasterBufferAndPrint [07:59:25]line Счет N : (1)2886282 [07:59:25]line ИНН: 02508201610067 [07:59:25]line Контрольно-Кассовый Чек [07:59:25]line ПРОДАЖА [07:59:25]line ТРК (МРК, ГНК) : 42 [07:59:25]line Товар: 2710124130 [07:59:25]line Аи-92-К-5 [07:59:25]line 14.950 * 66.90 [07:59:25]line = 1000.16 [07:59:25]line НДС 12% НСП 1% [07:59:25]line > о реализуемом товаре [07:59:25]line ОКРУГЛЕНИЕ: -0.16 [07:59:25]line ИТОГО: 1000.00 [07:59:25]line Внесено: 1000.00 [07:59:25]line СДАЧА: 0.00 [07:59:25]line НСП 1% : 8.85 [07:59:25]line НДС 12% : 106.21 [07:59:25]line Наличными: 1000.00 [07:59:25]line Безнал.: 0.00 [07:59:25]line Место: АЗС № 85 "Партнер Нефть" [07:59:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:59:25]line СНО: Общий режим [07:59:25]line Чек 31 23.10.2024 07:59 [07:59:25]line Смена: 196 ФФД: 1.0 [07:59:25]line ЗНМ: 0300000167 [07:59:25]line РНМ: 0000000000156251 [07:59:25]line Версия ККМ: v1.0 [07:59:25]line ФМ: 0000000000963346 [07:59:25]line ФД: 70515 [07:59:25]line ФПД: 29771891103960 [07:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70515&fm=29771891103960&tin=02508201610067®Number=0000000000156251&sum=100000 [07:59:25]OFD Sender: Processing packet 70515 [packets to send 18, broken 17] [07:59:25]ProducePacketName [07:59:25]name=ofd_packets/00070515 [07:59:25]OFD Sender: To server: pG, [07:59:25]CommunicateWithHost lk.salyk.kg:30040 [07:59:25]ConnectInit lk.salyk.kg [07:59:25]written 0, free lines is 4095 [07:59:25]Connected sock=10 [07:59: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 AD E2 07 01 F4 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 DF AC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1B 13 CE FE 58 D8 58 F5 F2 F7 EB 64 81 D3 [07:59: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 AD 18 47 00 24 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 73 13 01 00 F4 03 04 00 7D 56 18 67 B6 04 01 00 00 6F C5 1C 61 ED ED 5A 04 [07:59:25]CommunicateWithHost err = 0 [07:59:25]CheckOFDResponse [07:59:25]1017 (14) - 77093643461234 [07:59:25]1041 (16) - 0000000000963346 [07:59:25]1040 (4) - 70515 [07:59:25]1012 (4) - 23.10.2024 01:50 [07:59:25]1206 (1) - 0 [07:59:25]OFD Sender: Remove packet 70515 [07:59:25]ProducePacketName [07:59:25]name=ofd_packets/00070515 [07:59:25]NVStorageDeleteData [07:59:25]Write to MH i2c: 01 00 00 59 40 99 [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 07 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: 01 07 00 59 40 00 00 00 00 00 E4 0C 90 [07:59:25]RasterBufferAndPrint [07:59:25]line [07:59:25]line [07:59:25]line [07:59:25]line [07:59:25]line [07:59:25]written 0, free lines is 3309 [07:59:25]MH_Cut [07:59:25]Write to MH i2c: D1 01 00 60 40 01 72 [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: D1 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: D1 01 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: D1 01 00 60 40 00 71 [07:59:25]Write to MH i2c: 01 00 00 61 40 A1 [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:26]OFD Sender: No OFD packet to send [07:59:26]*** Cut start [07:59:26]*** Partial cut [07:59:26]*** CUTSNS_PIN = 1 [07:59:26]*** CUTSNS_PIN = 0 [07:59:26]*** Brake cut motor [07:59:27]Read from MH i2c: 01 [07:59:27]MH_I2C_Read... [07:59:27]*** Stop cut motor [07:59:27]*** Cut end [07:59:27]Read from MH i2c: 01 07 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: 01 07 00 61 40 00 00 00 00 00 FF 0F B6 [07:59:27]process_action close_receipt done [07:59:27]requested_data is exist [07:59:27]produce_requested_data [07:59:27]requested_item fm.sn is exist - process it [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 11 00 00 [07:59:27]Write to MH i2c: E2 08 00 62 40 80 11 00 00 00 00 00 00 1C [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 17 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 17 00 62 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [07:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:59:27]wFMCommunicate OK [07:59:27]requested_item fd.num is exist - process it [07:59:27]SAM_PROTO_GetFieldsCounters [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 13 00 00 [07:59:27]Write to MH i2c: E2 08 00 63 40 80 13 00 00 00 00 00 00 1F [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 62 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 62 00 63 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 73 13 01 00 0E 04 04 00 C4 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 E2 [07:59: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 73 13 01 00 0E 04 04 00 C4 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 [07:59:27]wFMCommunicate OK [07:59:27]SAM_PROTO_GetFieldsCounters done [07:59:27]requested_item shift.num is exist - process it [07:59:27]requested_item shift.opened is exist - process it [07:59:27]req_shift_opened [07:59:27]FM_GetShiftState [07:59:27]SAM_PROTO_GetShiftState [07:59:27]wFMCommunicate request_size=4 [07:59:27]MH_SAM_APDU [07:59:27]CAPDU: 80 13 01 00 [07:59:27]Write to MH i2c: E2 08 00 64 40 80 13 01 00 00 00 00 00 21 [07:59:27]Write i2c OK [07:59:27]MH_I2C_Read... [07:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:27]Read from MH i2c: E2 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 0E 00 [07:59:27]MH_I2C_Read... [07:59:27]Read from MH i2c: E2 0E 00 64 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [07:59:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [07:59:27]wFMCommunicate OK [07:59:27]SAM_PROTO_GetShiftState done [07:59:27]FM_GetShiftState done [07:59:27]req_shift_opened done [07:59:27]requested_item shift.open_date is exist - process it [07:59:27]req_shift_open_date [07:59:27]req_shift_open_date done [07:59:27]produce_requested_data done [07:59:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70515,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [07:59:27]process_action_free close_receipt [07:59:27]json_value_free [07:59:27]json_value_free done [07:59:27]process_json_proto returns [07:59:27]Send response to host [07:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70515,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [07:59:27]free response buf [07:59:27]execute_script done [07:59:27]execute_script returns [07:59:27]free content buf [07:59:27]Sock 7.Close socket [07:59:27]Sock 7.Thread stoped [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:49]accept exits with 9 [08:05:49]New connection [08:05:49]New thread 3066555748 created [08:05:49]Thread 3066699108 joined [08:05:49]Waiting for new connection... [08:05:49] Sock 9.Parse request [08:05:49]Sock 9.Check first char [08:05:49]Sock 9.First char is OK [08:05:49]request: POST /json_proto HTTP/1.0 [08:05:49]Method: POST [08:05:49]URL: /json_proto [08:05:49]Method is POST - this is cgi request [08:05:49]url: /json_proto [08:05:49]query_string will be loaded in cgi processing [08:05:49]execute_cgi json_proto POST (null) [08:05:49]execute_cgi path=json_proto method=POST [08:05:49]POST find Content-Length [08:05:49]Host: 172.17.50.3:8080 [08:05:49]Content-Length: 689 [08:05:49]Content-Type: application/json [08:05:49] [08:05:49]POST finish read [08:05:49]Found Content-Length = 689 [08:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886283", "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" ] } } [08:05:49]execute_script... [08:05: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)2886283", "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" ] } } [08:05:49]POST & json_proto [08:05:49]process_json_proto [08:05:49]json parsed OK: [08:05:49]protocol is kg_v1.0 [08:05:49]action value=close_receipt [08:05:49]process_action close_receipt [08:05:49]cmd_close_receipt [08:05:49]MH_GetDate [08:05:49]Write to MH i2c: F0 00 00 65 40 94 [08:05:49]Write i2c OK [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: F0 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: F0 09 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: F0 09 00 65 40 00 61 AE 18 67 6B 98 1E 66 B2 [08:05:49]GetLastDocTimeStamp 1729670367 [08:05:49]current date 1729670753 [08:05:49]FM_GetShiftState [08:05:49]SAM_PROTO_GetShiftState [08:05:49]wFMCommunicate request_size=4 [08:05:49]MH_SAM_APDU [08:05:49]CAPDU: 80 13 01 00 [08:05:49]Write to MH i2c: E2 08 00 66 40 80 13 01 00 00 00 00 00 23 [08:05:49]Write i2c OK [08:05:49]MH_I2C_Read... [08:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:49]Read from MH i2c: E2 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 0E 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 0E 00 66 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B0 [08:05:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:05:49]wFMCommunicate OK [08:05:49]SAM_PROTO_GetShiftState done [08:05:49]FM_GetShiftState done [08:05:49]opened in 1729642435 [08:05:49]opened+sec_in_day 1729728835 [08:05:49]quantity*price = 100051 [08:05:49]sum+1 = 100052 [08:05:49]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 СНО: Общий режим Чек 32 23.10.2024 08:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70516 ФПД: 23907326080851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70516&fm=23907326080851&tin=02508201610067®Number=0000000000156251&sum=100000 [08:05:50]StoreToDocumentArchive [08:05:50]shift 196 fd 70516 [08:05:50]save to /storage/0196/doc_00070516 [08:05:50]save last doc name /storage/0196/doc_00070516 to /storage/kkm_last_doc_name [08:05:50]save OK [08:05:50]Clear old archive folders... [08:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:05:50]tlvbuf is 00C332D0 [08:05:50]SAM_PROTO_ClearQueue [08:05:50]wFMCommunicate request_size=4 [08:05:50]MH_SAM_APDU [08:05:50]CAPDU: 80 09 00 00 [08:05:50]Write to MH i2c: E2 08 00 73 40 80 09 00 00 00 00 00 00 25 [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [08:05:50]RAPDU: 90 00 [08:05:50]wFMCommunicate OK [08:05:50]SAM_PROTO_ClearQueue done [08:05:50]KKMCreateOFDPacket [08:05:50]OFDProtocolAddRootSTLVToBuf [08:05:50]FM_MakeSignedData [08:05:50]FM_MakeSignedData [08:05:50]SAM_PROTO_SignData [08:05:50]wFMCommunicate request_size=4 [08:05:50]MH_SAM_APDU [08:05:50]CAPDU: 80 0D 01 02 [08:05:50]Write to MH i2c: E2 08 00 74 40 80 0D 01 02 00 00 00 00 2D [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 74 40 00 90 00 28 [08:05:50]RAPDU: 90 00 [08:05:50]wFMCommunicate OK [08:05:50]wFMCommunicate request_size=255 [08:05:50]MH_SAM_APDU [08:05:50]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 20 00 00 00 F4 03 04 00 61 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [08:05:50]Write to MH i2c: E2 02 01 75 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 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 20 00 00 00 F4 03 04 00 61 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 79 [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 75 40 00 90 00 29 [08:05:50]RAPDU: 90 00 [08:05:50]wFMCommunicate OK [08:05:50]wFMCommunicate request_size=16 [08:05:50]MH_SAM_APDU [08:05:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 15 BE 5B AD B7 53 [08:05:50]Write to MH i2c: E2 13 00 76 40 80 0D 02 02 0B 00 00 35 04 06 00 15 BE 5B AD B7 53 00 00 6A [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 03 00 76 40 00 90 00 2A [08:05:50]RAPDU: 90 00 [08:05:50]wFMCommunicate OK [08:05:50]wFMCommunicate request_size=4 [08:05:50]MH_SAM_APDU [08:05:50]CAPDU: 80 0D 03 02 [08:05:50]Write to MH i2c: E2 08 00 77 40 80 0D 03 02 00 00 00 00 32 [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 0B 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 0B 00 77 40 00 83 B2 B1 02 E1 D4 19 25 90 00 0E [08:05:50]RAPDU: 83 B2 B1 02 E1 D4 19 25 90 00 [08:05:50]wFMCommunicate OK [08:05:50]SAM_PROTO_SignData done [08:05:50]FM_MakeSignedData done [08:05:50]CreateOFDProtocolMessage [08:05:50]wFMCommunicate request_size=4 [08:05:50]MH_SAM_APDU [08:05:50]CAPDU: 80 11 00 00 [08:05:50]Write to MH i2c: E2 08 00 78 40 80 11 00 00 00 00 00 00 32 [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:50]Read from MH i2c: E2 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 17 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: E2 17 00 78 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [08:05: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:05:50]wFMCommunicate OK [08:05:50]CreateOFDProtocolMessage done [08:05:50]OFDSenderStorePacket 70516 [08:05:50]StoreOFDPacket docnum=70516 [08:05: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 15 01 00 00 0B F7 0D 01 20 1E 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 20 00 00 00 F4 03 04 00 61 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 15 BE 5B AD B7 53 83 B2 B1 02 E1 D4 19 25 [08:05:50]CheckFolder [08:05:50]dirname=/storage/ofd_packets [08:05:50]CheckFolder done [08:05:50]ProducePacketName [08:05:50]name=ofd_packets/00070516 [08:05:50]NVStorageSaveData ofd_packets/00070516 [08:05:50]File name is /storage/ofd_packets/00070516 [08:05:50]Write 307 bytes [08:05:50]NVStorageSaveData done [08:05:50]OFDSenderStorePacket done [08:05:50]KKMCreateOFDPacket done [08:05:50]NVStorageSaveData kkm_last_timestamp [08:05:50]File name is /storage/kkm_last_timestamp [08:05:50]Write 4 bytes [08:05:50]NVStorageSaveData done [08:05:50]ExternCall_PrintAddStr [08:05:50]wPrintStart [08:05:50]Write to MH i2c: 01 00 00 79 40 B9 [08:05:50]Write i2c OK [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: 01 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: 01 07 00 [08:05:50]MH_I2C_Read... [08:05:50]Read from MH i2c: 01 07 00 79 40 00 00 00 00 00 FF 0F CE [08:05:50]RasterBufferAndPrint [08:05:50]line Счет N : (1)2886283 [08:05:50]line ИНН: 02508201610067 [08:05:50]line Контрольно-Кассовый Чек [08:05:50]line ПРОДАЖА [08:05:50]line ТРК (МРК, ГНК) : 31 [08:05:50]line Товар: 2710194240 [08:05:50]line D-ENERGY Дт-К-2 [08:05:50]line 12.960 * 77.20 [08:05:50]line = 1000.51 [08:05:50]line НДС 12% НСП 1% [08:05:50]line > о реализуемом товаре [08:05:50]line ОКРУГЛЕНИЕ: -0.51 [08:05:50]line ИТОГО: 1000.00 [08:05:50]line Внесено: 1000.00 [08:05:50]line СДАЧА: 0.00 [08:05:50]line НСП 1% : 8.85 [08:05:50]line НДС 12% : 106.25 [08:05:50]line Наличными: 1000.00 [08:05:50]line Безнал.: 0.00 [08:05:50]line Место: АЗС № 85 "Партнер Нефть" [08:05:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:05:50]line СНО: Общий режим [08:05:50]line Чек 32 23.10.2024 08:05 [08:05:50]line Смена: 196 ФФД: 1.0 [08:05:50]line ЗНМ: 0300000167 [08:05:50]line РНМ: 0000000000156251 [08:05:50]line Версия ККМ: v1.0 [08:05:50]line ФМ: 0000000000963346 [08:05:50]line ФД: 70516 [08:05:50]line ФПД: 23907326080851 [08:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70516&fm=23907326080851&tin=02508201610067®Number=0000000000156251&sum=100000 [08:05:51]OFD Sender: Processing packet 70516 [packets to send 18, broken 17] [08:05:51]ProducePacketName [08:05:51]name=ofd_packets/00070516 [08:05:51]OFD Sender: To server: pG, [08:05:51]CommunicateWithHost lk.salyk.kg:30040 [08:05:51]ConnectInit lk.salyk.kg [08:05:51]written 0, free lines is 4095 [08:05:51]Connected sock=7 [08:05: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 0B F7 0D 01 20 1E 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 20 00 00 00 F4 03 04 00 61 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 15 BE 5B AD B7 53 83 B2 B1 02 E1 D4 19 25 [08:05: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 3A D9 47 00 32 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 74 13 01 00 F4 03 04 00 FF 57 18 67 B6 04 01 00 00 69 11 59 35 15 59 7D FE [08:05:51]CommunicateWithHost err = 0 [08:05:51]CheckOFDResponse [08:05:51]1017 (14) - 77093643461234 [08:05:51]1041 (16) - 0000000000963346 [08:05:51]1040 (4) - 70516 [08:05:51]1012 (4) - 23.10.2024 01:57 [08:05:51]1206 (1) - 0 [08:05:51]OFD Sender: Remove packet 70516 [08:05:51]ProducePacketName [08:05:51]name=ofd_packets/00070516 [08:05:51]NVStorageDeleteData [08:05:51]Write to MH i2c: 01 00 00 A4 40 E4 [08:05:51]Write i2c OK [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: 01 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: 01 07 00 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: 01 07 00 A4 40 00 00 00 00 00 E9 0C E0 [08:05:51]RasterBufferAndPrint [08:05:51]line [08:05:51]line [08:05:51]line [08:05:51]line [08:05:51]line [08:05:51]written 0, free lines is 3311 [08:05:51]MH_Cut [08:05:51]Write to MH i2c: D1 01 00 AB 40 01 BD [08:05:51]Write i2c OK [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: D1 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: D1 01 00 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: D1 01 00 AB 40 00 BC [08:05:51]Write to MH i2c: 01 00 00 AC 40 EC [08:05:51]Write i2c OK [08:05:51]MH_I2C_Read... [08:05:52]OFD Sender: No OFD packet to send [08:05:52]*** Cut start [08:05:52]*** Partial cut [08:05:52]*** CUTSNS_PIN = 1 [08:05:52]*** CUTSNS_PIN = 0 [08:05:52]*** Brake cut motor [08:05:52]Read from MH i2c: 01 [08:05:52]MH_I2C_Read... [08:05:52]*** Stop cut motor [08:05:52]*** Cut end [08:05:52]Read from MH i2c: 01 07 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: 01 07 00 AC 40 00 00 00 00 00 FF 0F 01 [08:05:52]process_action close_receipt done [08:05:52]requested_data is exist [08:05:52]produce_requested_data [08:05:52]requested_item fm.sn is exist - process it [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 11 00 00 [08:05:52]Write to MH i2c: E2 08 00 AD 40 80 11 00 00 00 00 00 00 67 [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 17 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 17 00 AD 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [08:05: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:05:53]wFMCommunicate OK [08:05:53]requested_item fd.num is exist - process it [08:05:53]SAM_PROTO_GetFieldsCounters [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 13 00 00 [08:05:53]Write to MH i2c: E2 08 00 AE 40 80 13 00 00 00 00 00 00 6A [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 62 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 62 00 AE 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 74 13 01 00 0E 04 04 00 C4 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 31 [08:05: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 74 13 01 00 0E 04 04 00 C4 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 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_GetFieldsCounters done [08:05:53]requested_item shift.num is exist - process it [08:05:53]requested_item shift.opened is exist - process it [08:05:53]req_shift_opened [08:05:53]FM_GetShiftState [08:05:53]SAM_PROTO_GetShiftState [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 13 01 00 [08:05:53]Write to MH i2c: E2 08 00 AF 40 80 13 01 00 00 00 00 00 6C [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 AF 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [08:05:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_GetShiftState done [08:05:53]FM_GetShiftState done [08:05:53]req_shift_opened done [08:05:53]requested_item shift.open_date is exist - process it [08:05:53]req_shift_open_date [08:05:53]req_shift_open_date done [08:05:53]produce_requested_data done [08:05:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70516,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:05:53]process_action_free close_receipt [08:05:53]json_value_free [08:05:53]json_value_free done [08:05:53]process_json_proto returns [08:05:53]Send response to host [08:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70516,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:05:53]free response buf [08:05:53]execute_script done [08:05:53]execute_script returns [08:05:53]free content buf [08:05:53]Sock 9.Close socket [08:05:53]Sock 9.Thread stoped [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:15]accept exits with 10 [08:08:15]New connection [08:08:15]New thread 3066699108 created [08:08:15]Thread 3066555748 joined [08:08:15]Waiting for new connection... [08:08:15] Sock 10.Parse request [08:08:15]Sock 10.Check first char [08:08:15]Sock 10.First char is OK [08:08:15]request: POST /json_proto HTTP/1.0 [08:08:15]Method: POST [08:08:15]URL: /json_proto [08:08:15]Method is POST - this is cgi request [08:08:15]url: /json_proto [08:08:15]query_string will be loaded in cgi processing [08:08:15]execute_cgi json_proto POST (null) [08:08:15]execute_cgi path=json_proto method=POST [08:08:15]POST find Content-Length [08:08:15]Host: 172.17.50.3:8080 [08:08:15]Content-Length: 689 [08:08:15]Content-Type: application/json [08:08:15] [08:08:15]POST finish read [08:08:15]Found Content-Length = 689 [08:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886284", "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" : 14.250, "sum" : 1100.10, "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" ] } } [08:08:15]execute_script... [08:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886284", "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" : 14.250, "sum" : 1100.10, "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" ] } } [08:08:15]POST & json_proto [08:08:15]process_json_proto [08:08:15]json parsed OK: [08:08:15]protocol is kg_v1.0 [08:08:15]action value=close_receipt [08:08:15]process_action close_receipt [08:08:15]cmd_close_receipt [08:08:15]MH_GetDate [08:08:15]Write to MH i2c: F0 00 00 B0 40 DF [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: F0 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: F0 09 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: F0 09 00 B0 40 00 F3 AE 18 67 6B 98 1E 66 8F [08:08:15]GetLastDocTimeStamp 1729670753 [08:08:15]current date 1729670899 [08:08:15]FM_GetShiftState [08:08:15]SAM_PROTO_GetShiftState [08:08:15]wFMCommunicate request_size=4 [08:08:15]MH_SAM_APDU [08:08:15]CAPDU: 80 13 01 00 [08:08:15]Write to MH i2c: E2 08 00 B1 40 80 13 01 00 00 00 00 00 6E [08:08:15]Write i2c OK [08:08:15]MH_I2C_Read... [08:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:15]Read from MH i2c: E2 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 0E 00 [08:08:15]MH_I2C_Read... [08:08:15]Read from MH i2c: E2 0E 00 B1 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [08:08:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:08:15]wFMCommunicate OK [08:08:15]SAM_PROTO_GetShiftState done [08:08:15]FM_GetShiftState done [08:08:15]opened in 1729642435 [08:08:15]opened+sec_in_day 1729728835 [08:08:15]quantity*price = 110010 [08:08:15]sum+1 = 110011 [08:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 33 23.10.2024 08:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70517 ФПД: 9477296049799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70517&fm=9477296049799&tin=02508201610067®Number=0000000000156251&sum=110000 [08:08:16]StoreToDocumentArchive [08:08:16]shift 196 fd 70517 [08:08:16]save to /storage/0196/doc_00070517 [08:08:16]save last doc name /storage/0196/doc_00070517 to /storage/kkm_last_doc_name [08:08:16]save OK [08:08:16]Clear old archive folders... [08:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:08:16]tlvbuf is 00C332D0 [08:08:16]SAM_PROTO_ClearQueue [08:08:16]wFMCommunicate request_size=4 [08:08:16]MH_SAM_APDU [08:08:16]CAPDU: 80 09 00 00 [08:08:16]Write to MH i2c: E2 08 00 BE 40 80 09 00 00 00 00 00 00 70 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:16]Read from MH i2c: E2 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 BE 40 00 90 00 72 [08:08:16]RAPDU: 90 00 [08:08:16]wFMCommunicate OK [08:08:16]SAM_PROTO_ClearQueue done [08:08:16]KKMCreateOFDPacket [08:08:16]OFDProtocolAddRootSTLVToBuf [08:08:16]FM_MakeSignedData [08:08:16]FM_MakeSignedData [08:08:16]SAM_PROTO_SignData [08:08:16]wFMCommunicate request_size=4 [08:08:16]MH_SAM_APDU [08:08:16]CAPDU: 80 0D 01 02 [08:08:16]Write to MH i2c: E2 08 00 BF 40 80 0D 01 02 00 00 00 00 78 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:16]Read from MH i2c: E2 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 BF 40 00 90 00 73 [08:08:16]RAPDU: 90 00 [08:08:16]wFMCommunicate OK [08:08:16]wFMCommunicate request_size=255 [08:08:16]MH_SAM_APDU [08:08: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 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 21 00 00 00 F4 03 04 00 F3 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [08:08:16]Write to MH i2c: E2 02 01 C0 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 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 21 00 00 00 F4 03 04 00 F3 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 60 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:16]Read from MH i2c: E2 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 C0 40 00 90 00 74 [08:08:16]RAPDU: 90 00 [08:08:16]wFMCommunicate OK [08:08:16]wFMCommunicate request_size=16 [08:08:16]MH_SAM_APDU [08:08:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 08 9E 9A DD 4E 87 [08:08:16]Write to MH i2c: E2 13 00 C1 40 80 0D 02 02 0B 00 00 35 04 06 00 08 9E 9A DD 4E 87 00 00 C2 [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:16]Read from MH i2c: E2 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 03 00 C1 40 00 90 00 75 [08:08:16]RAPDU: 90 00 [08:08:16]wFMCommunicate OK [08:08:16]wFMCommunicate request_size=4 [08:08:16]MH_SAM_APDU [08:08:16]CAPDU: 80 0D 03 02 [08:08:16]Write to MH i2c: E2 08 00 C2 40 80 0D 03 02 00 00 00 00 7D [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:16]Read from MH i2c: E2 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 0B 00 [08:08:16]MH_I2C_Read... [08:08:16]Read from MH i2c: E2 0B 00 C2 40 00 FF E9 A0 D3 32 11 6D E3 90 00 6C [08:08:16]RAPDU: FF E9 A0 D3 32 11 6D E3 90 00 [08:08:16]wFMCommunicate OK [08:08:16]SAM_PROTO_SignData done [08:08:16]FM_MakeSignedData done [08:08:16]CreateOFDProtocolMessage [08:08:16]wFMCommunicate request_size=4 [08:08:16]MH_SAM_APDU [08:08:16]CAPDU: 80 11 00 00 [08:08:16]Write to MH i2c: E2 08 00 C3 40 80 11 00 00 00 00 00 00 7D [08:08:16]Write i2c OK [08:08:16]MH_I2C_Read... [08:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:17]Read from MH i2c: E2 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: E2 17 00 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: E2 17 00 C3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [08:08: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:08:17]wFMCommunicate OK [08:08:17]CreateOFDProtocolMessage done [08:08:17]OFDSenderStorePacket 70517 [08:08:17]StoreOFDPacket docnum=70517 [08:08: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 15 01 00 00 1C 26 0D 01 A3 27 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 21 00 00 00 F4 03 04 00 F3 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 9E 9A DD 4E 87 FF E9 A0 D3 32 11 6D E3 [08:08:17]CheckFolder [08:08:17]dirname=/storage/ofd_packets [08:08:17]CheckFolder done [08:08:17]ProducePacketName [08:08:17]name=ofd_packets/00070517 [08:08:17]NVStorageSaveData ofd_packets/00070517 [08:08:17]File name is /storage/ofd_packets/00070517 [08:08:17]Write 307 bytes [08:08:17]NVStorageSaveData done [08:08:17]OFDSenderStorePacket done [08:08:17]KKMCreateOFDPacket done [08:08:17]NVStorageSaveData kkm_last_timestamp [08:08:17]File name is /storage/kkm_last_timestamp [08:08:17]Write 4 bytes [08:08:17]NVStorageSaveData done [08:08:17]ExternCall_PrintAddStr [08:08:17]wPrintStart [08:08:17]Write to MH i2c: 01 00 00 C4 40 04 [08:08:17]Write i2c OK [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 07 00 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 07 00 C4 40 00 00 00 00 00 FF 0F 19 [08:08:17]RasterBufferAndPrint [08:08:17]line Счет N : (1)2886284 [08:08:17]line ИНН: 02508201610067 [08:08:17]line Контрольно-Кассовый Чек [08:08:17]line ПРОДАЖА [08:08:17]line ТРК (МРК, ГНК) : 11 [08:08:17]line Товар: 2710194240 [08:08:17]line D-ENERGY Дт-К-2 [08:08:17]line 14.250 * 77.20 [08:08:17]line = 1100.10 [08:08:17]line НДС 12% НСП 1% [08:08:17]line > о реализуемом товаре [08:08:17]line ОКРУГЛЕНИЕ: -0.10 [08:08:17]line ИТОГО: 1100.00 [08:08:17]line Внесено: 1100.00 [08:08:17]line СДАЧА: 0.00 [08:08:17]line НСП 1% : 9.73 [08:08:17]line НДС 12% : 116.82 [08:08:17]line Наличными: 1100.00 [08:08:17]line Безнал.: 0.00 [08:08:17]line Место: АЗС № 85 "Партнер Нефть" [08:08:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:08:17]line СНО: Общий режим [08:08:17]line Чек 33 23.10.2024 08:08 [08:08:17]line Смена: 196 ФФД: 1.0 [08:08:17]line ЗНМ: 0300000167 [08:08:17]line РНМ: 0000000000156251 [08:08:17]line Версия ККМ: v1.0 [08:08:17]line ФМ: 0000000000963346 [08:08:17]line ФД: 70517 [08:08:17]line ФПД: 9477296049799 [08:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70517&fm=9477296049799&tin=02508201610067®Number=0000000000156251&sum=110000 [08:08:17]OFD Sender: Processing packet 70517 [packets to send 18, broken 17] [08:08:17]ProducePacketName [08:08:17]name=ofd_packets/00070517 [08:08:17]OFD Sender: To server: pG, [08:08:17]CommunicateWithHost lk.salyk.kg:30040 [08:08:17]ConnectInit lk.salyk.kg [08:08:17]written 0, free lines is 4095 [08:08:17]Connected sock=9 [08:08: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 1C 26 0D 01 A3 27 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 21 00 00 00 F4 03 04 00 F3 AE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 08 9E 9A DD 4E 87 FF E9 A0 D3 32 11 6D E3 [08:08: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 66 AB 47 00 5D 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 75 13 01 00 F4 03 04 00 91 58 18 67 B6 04 01 00 00 5D 81 A7 C7 F8 30 17 40 [08:08:17]CommunicateWithHost err = 0 [08:08:17]CheckOFDResponse [08:08:17]1017 (14) - 77093643461234 [08:08:17]1041 (16) - 0000000000963346 [08:08:17]1040 (4) - 70517 [08:08:17]1012 (4) - 23.10.2024 01:59 [08:08:17]1206 (1) - 0 [08:08:17]OFD Sender: Remove packet 70517 [08:08:17]ProducePacketName [08:08:17]name=ofd_packets/00070517 [08:08:17]NVStorageDeleteData [08:08:17]Write to MH i2c: 01 00 00 EF 40 2F [08:08:17]Write i2c OK [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 07 00 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: 01 07 00 EF 40 00 00 00 00 00 F4 0C 36 [08:08:17]RasterBufferAndPrint [08:08:17]line [08:08:17]line [08:08:17]line [08:08:17]line [08:08:17]line [08:08:17]written 0, free lines is 3322 [08:08:17]MH_Cut [08:08:17]Write to MH i2c: D1 01 00 F6 40 01 08 [08:08:17]Write i2c OK [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: D1 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: D1 01 00 [08:08:17]MH_I2C_Read... [08:08:17]Read from MH i2c: D1 01 00 F6 40 00 07 [08:08:17]Write to MH i2c: 01 00 00 F7 40 37 [08:08:17]Write i2c OK [08:08:17]MH_I2C_Read... [08:08:18]OFD Sender: No OFD packet to send [08:08:18]*** Cut start [08:08:18]*** Partial cut [08:08:18]*** CUTSNS_PIN = 1 [08:08:18]*** CUTSNS_PIN = 0 [08:08:18]*** Brake cut motor [08:08:19]Read from MH i2c: 01 [08:08:19]MH_I2C_Read... [08:08:19]*** Stop cut motor [08:08:19]*** Cut end [08:08:19]Read from MH i2c: 01 07 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: 01 07 00 F7 40 00 00 00 00 00 FF 0F 4C [08:08:19]process_action close_receipt done [08:08:19]requested_data is exist [08:08:19]produce_requested_data [08:08:19]requested_item fm.sn is exist - process it [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 11 00 00 [08:08:19]Write to MH i2c: E2 08 00 F8 40 80 11 00 00 00 00 00 00 B2 [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 17 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 17 00 F8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [08:08: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:08:19]wFMCommunicate OK [08:08:19]requested_item fd.num is exist - process it [08:08:19]SAM_PROTO_GetFieldsCounters [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 13 00 00 [08:08:19]Write to MH i2c: E2 08 00 F9 40 80 13 00 00 00 00 00 00 B5 [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 62 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 62 00 F9 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 75 13 01 00 0E 04 04 00 C4 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 80 [08:08: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 75 13 01 00 0E 04 04 00 C4 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 [08:08:19]wFMCommunicate OK [08:08:19]SAM_PROTO_GetFieldsCounters done [08:08:19]requested_item shift.num is exist - process it [08:08:19]requested_item shift.opened is exist - process it [08:08:19]req_shift_opened [08:08:19]FM_GetShiftState [08:08:19]SAM_PROTO_GetShiftState [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 13 01 00 [08:08:19]Write to MH i2c: E2 08 00 FA 40 80 13 01 00 00 00 00 00 B7 [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 0E 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 0E 00 FA 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 44 [08:08:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:08:19]wFMCommunicate OK [08:08:19]SAM_PROTO_GetShiftState done [08:08:19]FM_GetShiftState done [08:08:19]req_shift_opened done [08:08:19]requested_item shift.open_date is exist - process it [08:08:19]req_shift_open_date [08:08:19]req_shift_open_date done [08:08:19]produce_requested_data done [08:08:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70517,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:08:19]process_action_free close_receipt [08:08:19]json_value_free [08:08:19]json_value_free done [08:08:19]process_json_proto returns [08:08:19]Send response to host [08:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70517,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:08:19]free response buf [08:08:19]execute_script done [08:08:19]execute_script returns [08:08:19]free content buf [08:08:19]Sock 10.Close socket [08:08:19]Sock 10.Thread stoped [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:29]accept exits with 7 [08:12:29]New connection [08:12:29]New thread 3066555748 created [08:12:29]Thread 3066699108 joined [08:12:29]Waiting for new connection... [08:12:29] Sock 7.Parse request [08:12:29]Sock 7.Check first char [08:12:29]Sock 7.First char is OK [08:12:29]request: POST /json_proto HTTP/1.0 [08:12:29]Method: POST [08:12:29]URL: /json_proto [08:12:29]Method is POST - this is cgi request [08:12:29]url: /json_proto [08:12:29]query_string will be loaded in cgi processing [08:12:29]execute_cgi json_proto POST (null) [08:12:29]execute_cgi path=json_proto method=POST [08:12:29]POST find Content-Length [08:12:29]Host: 172.17.50.3:8080 [08:12:29]Content-Length: 678 [08:12:29]Content-Type: application/json [08:12:29] [08:12:29]POST finish read [08:12:29]Found Content-Length = 678 [08:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886285", "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:12:29]execute_script... [08:12: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)2886285", "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:12:29]POST & json_proto [08:12:29]process_json_proto [08:12:29]json parsed OK: [08:12:29]protocol is kg_v1.0 [08:12:29]action value=close_receipt [08:12:29]process_action close_receipt [08:12:29]cmd_close_receipt [08:12:29]MH_GetDate [08:12:29]Write to MH i2c: F0 00 00 FB 40 2A [08:12:29]Write i2c OK [08:12:29]MH_I2C_Read... [08:12:29]Read from MH i2c: F0 [08:12:29]MH_I2C_Read... [08:12:29]Read from MH i2c: F0 09 00 [08:12:29]MH_I2C_Read... [08:12:29]Read from MH i2c: F0 09 00 FB 40 00 F1 AF 18 67 6B 98 1E 66 D9 [08:12:29]GetLastDocTimeStamp 1729670899 [08:12:29]current date 1729671153 [08:12:29]FM_GetShiftState [08:12:29]SAM_PROTO_GetShiftState [08:12:29]wFMCommunicate request_size=4 [08:12:29]MH_SAM_APDU [08:12:29]CAPDU: 80 13 01 00 [08:12:29]Write to MH i2c: E2 08 00 FC 40 80 13 01 00 00 00 00 00 B9 [08:12:29]Write i2c OK [08:12:29]MH_I2C_Read... [08:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:29]Read from MH i2c: E2 [08:12:29]MH_I2C_Read... [08:12:29]Read from MH i2c: E2 0E 00 [08:12:29]MH_I2C_Read... [08:12:29]Read from MH i2c: E2 0E 00 FC 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 46 [08:12:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:12:29]wFMCommunicate OK [08:12:29]SAM_PROTO_GetShiftState done [08:12:29]FM_GetShiftState done [08:12:29]opened in 1729642435 [08:12:29]opened+sec_in_day 1729728835 [08:12:29]quantity*price = 50041 [08:12:29]sum+1 = 50042 [08:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 34 23.10.2024 08:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70518 ФПД: 10078000296197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70518&fm=10078000296197&tin=02508201610067®Number=0000000000156251&sum=50000 [08:12:31]StoreToDocumentArchive [08:12:31]shift 196 fd 70518 [08:12:31]save to /storage/0196/doc_00070518 [08:12:31]save last doc name /storage/0196/doc_00070518 to /storage/kkm_last_doc_name [08:12:31]save OK [08:12:31]Clear old archive folders... [08:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:31]tlvbuf is 00D87730 [08:12:31]SAM_PROTO_ClearQueue [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 09 00 00 [08:12:31]Write to MH i2c: E2 08 00 09 41 80 09 00 00 00 00 00 00 BC [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 09 41 00 90 00 BE [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]SAM_PROTO_ClearQueue done [08:12:31]KKMCreateOFDPacket [08:12:31]OFDProtocolAddRootSTLVToBuf [08:12:31]FM_MakeSignedData [08:12:31]FM_MakeSignedData [08:12:31]SAM_PROTO_SignData [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 0D 01 02 [08:12:31]Write to MH i2c: E2 08 00 0A 41 80 0D 01 02 00 00 00 00 C4 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 0A 41 00 90 00 BF [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]wFMCommunicate request_size=255 [08:12:31]MH_SAM_APDU [08:12: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 22 00 00 00 F4 03 04 00 F1 AF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 09 [08:12:31]Write to MH i2c: E2 02 01 0B 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 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 22 00 00 00 F4 03 04 00 F1 AF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 09 00 00 E5 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 0B 41 00 90 00 C0 [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]wFMCommunicate request_size=10 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 0D 02 02 05 2A 77 A0 B1 05 [08:12:31]Write to MH i2c: E2 0D 00 0C 41 80 0D 02 02 05 00 2A 77 A0 B1 05 00 00 C8 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 0C 41 00 90 00 C1 [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 0D 03 02 [08:12:31]Write to MH i2c: E2 08 00 0D 41 80 0D 03 02 00 00 00 00 C9 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 0B 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 0B 00 0D 41 00 DC B8 2B 20 5F D5 5E 88 90 00 C3 [08:12:31]RAPDU: DC B8 2B 20 5F D5 5E 88 90 00 [08:12:31]wFMCommunicate OK [08:12:31]SAM_PROTO_SignData done [08:12:31]FM_MakeSignedData done [08:12:31]CreateOFDProtocolMessage [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 11 00 00 [08:12:31]Write to MH i2c: E2 08 00 0E 41 80 11 00 00 00 00 00 00 C9 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 17 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 17 00 0E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [08:12: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:12:31]wFMCommunicate OK [08:12:31]CreateOFDProtocolMessage done [08:12:31]OFDSenderStorePacket 70518 [08:12:31]StoreOFDPacket docnum=70518 [08:12: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 2F 21 07 01 11 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 F1 AF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 09 2A 77 A0 B1 05 DC B8 2B 20 5F D5 5E 88 [08:12:31]CheckFolder [08:12:31]dirname=/storage/ofd_packets [08:12:31]CheckFolder done [08:12:31]ProducePacketName [08:12:31]name=ofd_packets/00070518 [08:12:31]NVStorageSaveData ofd_packets/00070518 [08:12:31]File name is /storage/ofd_packets/00070518 [08:12:31]Write 301 bytes [08:12:31]NVStorageSaveData done [08:12:31]OFDSenderStorePacket done [08:12:31]KKMCreateOFDPacket done [08:12:31]NVStorageSaveData kkm_last_timestamp [08:12:31]File name is /storage/kkm_last_timestamp [08:12:31]Write 4 bytes [08:12:31]NVStorageSaveData done [08:12:31]ExternCall_PrintAddStr [08:12:31]wPrintStart [08:12:31]Write to MH i2c: 01 00 00 0F 41 50 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: 01 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: 01 07 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: 01 07 00 0F 41 00 00 00 00 00 FF 0F 65 [08:12:31]RasterBufferAndPrint [08:12:31]line Счет N : (1)2886285 [08:12:31]line ИНН: 02508201610067 [08:12:31]line Контрольно-Кассовый Чек [08:12:31]line ПРОДАЖА [08:12:31]line ТРК (МРК, ГНК) : 12 [08:12:31]line Товар: 2710124130 [08:12:31]line Аи-92-К-5 [08:12:31]line 7.480 * 66.90 [08:12:31]line = 500.41 [08:12:31]line НДС 12% НСП 1% [08:12:31]line > о реализуемом товаре [08:12:31]line ОКРУГЛЕНИЕ: -0.41 [08:12:31]line ИТОГО: 500.00 [08:12:31]line Внесено: 500.00 [08:12:31]line СДАЧА: 0.00 [08:12:31]line НСП 1% : 4.43 [08:12:31]line НДС 12% : 53.14 [08:12:31]line Наличными: 500.00 [08:12:31]line Безнал.: 0.00 [08:12:31]line Место: АЗС № 85 "Партнер Нефть" [08:12:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:12:31]line СНО: Общий режим [08:12:31]line Чек 34 23.10.2024 08:12 [08:12:31]line Смена: 196 ФФД: 1.0 [08:12:31]line ЗНМ: 0300000167 [08:12:31]line РНМ: 0000000000156251 [08:12:31]line Версия ККМ: v1.0 [08:12:31]line ФМ: 0000000000963346 [08:12:31]line ФД: 70518 [08:12:31]line ФПД: 10078000296197 [08:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70518&fm=10078000296197&tin=02508201610067®Number=0000000000156251&sum=50000 [08:12:31]OFD Sender: Processing packet 70518 [packets to send 18, broken 17] [08:12:31]ProducePacketName [08:12:31]name=ofd_packets/00070518 [08:12:31]OFD Sender: To server: pG, [08:12:31]CommunicateWithHost lk.salyk.kg:30040 [08:12:31]ConnectInit lk.salyk.kg [08:12:31]written 0, free lines is 4095 [08:12:31]Connected sock=10 [08:12: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 2F 21 07 01 11 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 F1 AF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 09 2A 77 A0 B1 05 DC B8 2B 20 5F D5 5E 88 [08:12: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 25 CA 47 00 03 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 76 13 01 00 F4 03 04 00 90 59 18 67 B6 04 01 00 00 C6 04 C7 64 CA C2 AA 08 [08:12:32]CommunicateWithHost err = 0 [08:12:32]CheckOFDResponse [08:12:32]1017 (14) - 77093643461234 [08:12:32]1041 (16) - 0000000000963346 [08:12:32]1040 (4) - 70518 [08:12:32]1012 (4) - 23.10.2024 02:04 [08:12:32]1206 (1) - 0 [08:12:32]OFD Sender: Remove packet 70518 [08:12:32]ProducePacketName [08:12:32]name=ofd_packets/00070518 [08:12:32]NVStorageDeleteData [08:12:32]Write to MH i2c: 01 00 00 3A 41 7B [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 3A 41 00 00 00 00 00 DC 0C 6A [08:12:32]RasterBufferAndPrint [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]written 0, free lines is 3297 [08:12:32]MH_Cut [08:12:32]Write to MH i2c: D1 01 00 41 41 01 54 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 01 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 01 00 41 41 00 53 [08:12:32]Write to MH i2c: 01 00 00 42 41 83 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]OFD Sender: No OFD packet to send [08:12:33]*** Cut start [08:12:33]*** Partial cut [08:12:33]*** CUTSNS_PIN = 1 [08:12:33]*** CUTSNS_PIN = 0 [08:12:33]*** Brake cut motor [08:12:33]Read from MH i2c: 01 [08:12:33]MH_I2C_Read... [08:12:33]*** Stop cut motor [08:12:33]*** Cut end [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 42 41 00 00 00 00 00 FF 0F 98 [08:12:33]process_action close_receipt done [08:12:33]requested_data is exist [08:12:33]produce_requested_data [08:12:33]requested_item fm.sn is exist - process it [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 43 41 80 11 00 00 00 00 00 00 FE [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 43 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [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]requested_item fd.num is exist - process it [08:12:33]SAM_PROTO_GetFieldsCounters [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 13 00 00 [08:12:33]Write to MH i2c: E2 08 00 44 41 80 13 00 00 00 00 00 00 01 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 62 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 62 00 44 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 76 13 01 00 0E 04 04 00 C4 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 D0 [08:12: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 76 13 01 00 0E 04 04 00 C4 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 [08:12:33]wFMCommunicate OK [08:12:33]SAM_PROTO_GetFieldsCounters done [08:12:33]requested_item shift.num is exist - process it [08:12:33]requested_item shift.opened is exist - process it [08:12:33]req_shift_opened [08:12:33]FM_GetShiftState [08:12:33]SAM_PROTO_GetShiftState [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 13 01 00 [08:12:33]Write to MH i2c: E2 08 00 45 41 80 13 01 00 00 00 00 00 03 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 0E 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 0E 00 45 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 90 [08:12:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:12:33]wFMCommunicate OK [08:12:33]SAM_PROTO_GetShiftState done [08:12:33]FM_GetShiftState done [08:12:33]req_shift_opened done [08:12:33]requested_item shift.open_date is exist - process it [08:12:33]req_shift_open_date [08:12:33]req_shift_open_date done [08:12:33]produce_requested_data done [08:12:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70518,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:12:33]process_action_free close_receipt [08:12:33]json_value_free [08:12:33]json_value_free done [08:12:33]process_json_proto returns [08:12:33]Send response to host [08:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70518,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:12:33]free response buf [08:12:33]execute_script done [08:12:33]execute_script returns [08:12:33]free content buf [08:12:33]Sock 7.Close socket [08:12:33]Sock 7.Thread stoped [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:49]accept exits with 9 [08:13:49]New connection [08:13:49]New thread 3066699108 created [08:13:49]Thread 3066555748 joined [08:13:49]Waiting for new connection... [08:13:49] Sock 9.Parse request [08:13:49]Sock 9.Check first char [08:13:49]Sock 9.First char is OK [08:13:49]request: POST /json_proto HTTP/1.0 [08:13:49]Method: POST [08:13:49]URL: /json_proto [08:13:49]Method is POST - this is cgi request [08:13:49]url: /json_proto [08:13:49]query_string will be loaded in cgi processing [08:13:49]execute_cgi json_proto POST (null) [08:13:49]execute_cgi path=json_proto method=POST [08:13:49]POST find Content-Length [08:13:49]Host: 172.17.50.3:8080 [08:13:49]Content-Length: 682 [08:13:49]Content-Type: application/json [08:13:49] [08:13:49]POST finish read [08:13:49]Found Content-Length = 682 [08:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886286", "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:13:49]execute_script... [08: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)2886286", "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:13:49]POST & json_proto [08:13:49]process_json_proto [08:13:49]json parsed OK: [08:13:49]protocol is kg_v1.0 [08:13:49]action value=close_receipt [08:13:49]process_action close_receipt [08:13:49]cmd_close_receipt [08:13:49]MH_GetDate [08:13:49]Write to MH i2c: F0 00 00 46 41 76 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 09 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 09 00 46 41 00 41 B0 18 67 6B 98 1E 66 76 [08:13:49]GetLastDocTimeStamp 1729671153 [08:13:49]current date 1729671233 [08:13:49]FM_GetShiftState [08:13:49]SAM_PROTO_GetShiftState [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 13 01 00 [08:13:49]Write to MH i2c: E2 08 00 47 41 80 13 01 00 00 00 00 00 05 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 47 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 92 [08:13:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetShiftState done [08:13:49]FM_GetShiftState done [08:13:49]opened in 1729642435 [08:13:49]opened+sec_in_day 1729728835 [08:13:49]quantity*price = 50025 [08:13:49]sum+1 = 50026 [08:13:49]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 СНО: Общий режим Чек 35 23.10.2024 08:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70519 ФПД: 221150938316191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081353&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70519&fm=221150938316191&tin=02508201610067®Number=0000000000156251&sum=50000 [08:13:50]StoreToDocumentArchive [08:13:50]shift 196 fd 70519 [08:13:50]save to /storage/0196/doc_00070519 [08:13:50]save last doc name /storage/0196/doc_00070519 to /storage/kkm_last_doc_name [08:13:50]save OK [08:13:50]Clear old archive folders... [08:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:13:50]tlvbuf is 00B49A80 [08:13:50]SAM_PROTO_ClearQueue [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 09 00 00 [08:13:50]Write to MH i2c: E2 08 00 54 41 80 09 00 00 00 00 00 00 07 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 54 41 00 90 00 09 [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_ClearQueue done [08:13:50]KKMCreateOFDPacket [08:13:50]OFDProtocolAddRootSTLVToBuf [08:13:50]FM_MakeSignedData [08:13:50]FM_MakeSignedData [08:13:50]SAM_PROTO_SignData [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 0D 01 02 [08:13:50]Write to MH i2c: E2 08 00 55 41 80 0D 01 02 00 00 00 00 0F [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 55 41 00 90 00 0A [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]wFMCommunicate request_size=255 [08:13:50]MH_SAM_APDU [08:13:50]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 23 00 00 00 F4 03 04 00 41 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 22 [08:13:50]Write to MH i2c: E2 02 01 56 41 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 23 00 00 00 F4 03 04 00 41 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 22 00 00 1F [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 56 41 00 90 00 0B [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=9 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 02 02 04 B7 1E BD 9F [08:13:51]Write to MH i2c: E2 0C 00 57 41 80 0D 02 02 04 00 B7 1E BD 9F 00 00 4B [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 57 41 00 90 00 0C [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 03 02 [08:13:51]Write to MH i2c: E2 08 00 58 41 80 0D 03 02 00 00 00 00 14 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 58 41 00 25 4F E9 1A A3 45 0C 62 90 00 E2 [08:13:51]RAPDU: 25 4F E9 1A A3 45 0C 62 90 00 [08:13:51]wFMCommunicate OK [08:13:51]SAM_PROTO_SignData done [08:13:51]FM_MakeSignedData done [08:13:51]CreateOFDProtocolMessage [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 11 00 00 [08:13:51]Write to MH i2c: E2 08 00 59 41 80 11 00 00 00 00 00 00 14 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 17 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 17 00 59 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [08:13: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:13:51]wFMCommunicate OK [08:13:51]CreateOFDProtocolMessage done [08:13:51]OFDSenderStorePacket 70519 [08:13:51]StoreOFDPacket docnum=70519 [08:13: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 F7 CD 06 01 AD 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 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 23 00 00 00 F4 03 04 00 41 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 22 B7 1E BD 9F 25 4F E9 1A A3 45 0C 62 [08:13:51]CheckFolder [08:13:51]dirname=/storage/ofd_packets [08:13:51]CheckFolder done [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00070519 [08:13:51]NVStorageSaveData ofd_packets/00070519 [08:13:51]File name is /storage/ofd_packets/00070519 [08:13:51]Write 300 bytes [08:13:51]NVStorageSaveData done [08:13:51]OFDSenderStorePacket done [08:13:51]KKMCreateOFDPacket done [08:13:51]NVStorageSaveData kkm_last_timestamp [08:13:51]File name is /storage/kkm_last_timestamp [08:13:51]Write 4 bytes [08:13:51]NVStorageSaveData done [08:13:51]ExternCall_PrintAddStr [08:13:51]wPrintStart [08:13:51]Write to MH i2c: 01 00 00 5A 41 9B [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 5A 41 00 00 00 00 00 FF 0F B0 [08:13:51]RasterBufferAndPrint [08:13:51]line Счет N : (1)2886286 [08:13:51]line ИНН: 02508201610067 [08:13:51]line Контрольно-Кассовый Чек [08:13:51]line ПРОДАЖА [08:13:51]line ТРК (МРК, ГНК) : 71 [08:13:51]line Товар: 2711129700 [08:13:51]line ГАЗ-К-3 [08:13:51]line 12.860 * 38.90 [08:13:51]line = 500.25 [08:13:51]line НДС 12% НСП 1% [08:13:51]line > о реализуемом товаре [08:13:51]line ОКРУГЛЕНИЕ: -0.25 [08:13:51]line ИТОГО: 500.00 [08:13:51]line Внесено: 500.00 [08:13:51]line СДАЧА: 0.00 [08:13:51]line НСП 1% : 4.43 [08:13:51]line НДС 12% : 53.12 [08:13:51]line Наличными: 500.00 [08:13:51]line Безнал.: 0.00 [08:13:51]line Место: АЗС № 85 "Партнер Нефть" [08:13:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:13:51]line СНО: Общий режим [08:13:51]line Чек 35 23.10.2024 08:13 [08:13:51]line Смена: 196 ФФД: 1.0 [08:13:51]line ЗНМ: 0300000167 [08:13:51]line РНМ: 0000000000156251 [08:13:51]line Версия ККМ: v1.0 [08:13:51]line ФМ: 0000000000963346 [08:13:51]line ФД: 70519 [08:13:51]line ФПД: 221150938316191 [08:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081353&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70519&fm=221150938316191&tin=02508201610067®Number=0000000000156251&sum=50000 [08:13:51]OFD Sender: Processing packet 70519 [packets to send 18, broken 17] [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00070519 [08:13:51]OFD Sender: To server: pG, [08:13:51]CommunicateWithHost lk.salyk.kg:30040 [08:13:51]ConnectInit lk.salyk.kg [08:13:51]written 0, free lines is 4095 [08:13:51]Connected sock=10 [08: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 0E 01 00 00 F7 CD 06 01 AD 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 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 23 00 00 00 F4 03 04 00 41 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 22 B7 1E BD 9F 25 4F E9 1A A3 45 0C 62 [08: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 F7 8D 47 00 63 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 77 13 01 00 F4 03 04 00 DF 59 18 67 B6 04 01 00 00 D9 BF FE 4F 66 4A CA 92 [08:13:51]CommunicateWithHost err = 0 [08:13:51]CheckOFDResponse [08:13:51]1017 (14) - 77093643461234 [08:13:51]1041 (16) - 0000000000963346 [08:13:51]1040 (4) - 70519 [08:13:51]1012 (4) - 23.10.2024 02:05 [08:13:51]1206 (1) - 0 [08:13:51]OFD Sender: Remove packet 70519 [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00070519 [08:13:51]NVStorageDeleteData [08:13:51]Write to MH i2c: 01 00 00 85 41 C6 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 85 41 00 00 00 00 00 EB 0C C4 [08:13:51]RasterBufferAndPrint [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]written 0, free lines is 3313 [08:13:51]MH_Cut [08:13:51]Write to MH i2c: D1 01 00 8C 41 01 9F [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 01 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 01 00 8C 41 00 9E [08:13:51]Write to MH i2c: 01 00 00 8D 41 CE [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:52]OFD Sender: No OFD packet to send [08:13:52]*** Cut start [08:13:52]*** Partial cut [08:13:52]*** CUTSNS_PIN = 1 [08:13:52]*** CUTSNS_PIN = 0 [08:13:52]*** Brake cut motor [08:13:53]Read from MH i2c: 01 [08:13:53]MH_I2C_Read... [08:13:53]*** Stop cut motor [08:13:53]*** Cut end [08:13:53]Read from MH i2c: 01 07 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 8D 41 00 00 00 00 00 FF 0F E3 [08:13:53]process_action close_receipt done [08:13:53]requested_data is exist [08:13:53]produce_requested_data [08:13:53]requested_item fm.sn is exist - process it [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 11 00 00 [08:13:53]Write to MH i2c: E2 08 00 8E 41 80 11 00 00 00 00 00 00 49 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 8E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [08:13: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:13:53]wFMCommunicate OK [08:13:53]requested_item fd.num is exist - process it [08:13:53]SAM_PROTO_GetFieldsCounters [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 00 00 [08:13:53]Write to MH i2c: E2 08 00 8F 41 80 13 00 00 00 00 00 00 4C [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 8F 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 77 13 01 00 0E 04 04 00 C4 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 1F [08: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 77 13 01 00 0E 04 04 00 C4 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 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetFieldsCounters done [08:13:53]requested_item shift.num is exist - process it [08:13:53]requested_item shift.opened is exist - process it [08:13:53]req_shift_opened [08:13:53]FM_GetShiftState [08:13:53]SAM_PROTO_GetShiftState [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 01 00 [08:13:53]Write to MH i2c: E2 08 00 90 41 80 13 01 00 00 00 00 00 4E [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 90 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DB [08:13:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetShiftState done [08:13:53]FM_GetShiftState done [08:13:53]req_shift_opened done [08:13:53]requested_item shift.open_date is exist - process it [08:13:53]req_shift_open_date [08:13:53]req_shift_open_date done [08:13:53]produce_requested_data done [08:13:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70519,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:13:53]process_action_free close_receipt [08:13:53]json_value_free [08:13:53]json_value_free done [08:13:53]process_json_proto returns [08:13:53]Send response to host [08:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70519,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:13:53]free response buf [08:13:53]execute_script done [08:13:53]execute_script returns [08:13:53]free content buf [08:13:53]Sock 9.Close socket [08:13:53]Sock 9.Thread stoped [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:07]accept exits with 7 [08:14:07]New connection [08:14:07]New thread 3066555748 created [08:14:07]Thread 3066699108 joined [08:14:07]Waiting for new connection... [08:14:07] Sock 7.Parse request [08:14:07]Sock 7.Check first char [08:14:07]Sock 7.First char is OK [08:14:07]request: POST /json_proto HTTP/1.0 [08:14:07]Method: POST [08:14:07]URL: /json_proto [08:14:07]Method is POST - this is cgi request [08:14:07]url: /json_proto [08:14:07]query_string will be loaded in cgi processing [08:14:07]execute_cgi json_proto POST (null) [08:14:07]execute_cgi path=json_proto method=POST [08:14:07]POST find Content-Length [08:14:07]Host: 172.17.50.3:8080 [08:14:07]Content-Length: 689 [08:14:07]Content-Type: application/json [08:14:07] [08:14:07]POST finish read [08:14:07]Found Content-Length = 689 [08:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886287", "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 }]} ], "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:14:07]execute_script... [08:14: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)2886287", "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 }]} ], "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:14:07]POST & json_proto [08:14:07]process_json_proto [08:14:07]json parsed OK: [08:14:07]protocol is kg_v1.0 [08:14:07]action value=close_receipt [08:14:07]process_action close_receipt [08:14:07]cmd_close_receipt [08:14:07]MH_GetDate [08:14:07]Write to MH i2c: F0 00 00 91 41 C1 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: F0 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: F0 09 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: F0 09 00 91 41 00 53 B0 18 67 6B 98 1E 66 D3 [08:14:07]GetLastDocTimeStamp 1729671233 [08:14:07]current date 1729671251 [08:14:07]FM_GetShiftState [08:14:07]SAM_PROTO_GetShiftState [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 13 01 00 [08:14:07]Write to MH i2c: E2 08 00 92 41 80 13 01 00 00 00 00 00 50 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0E 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0E 00 92 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DD [08:14:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_GetShiftState done [08:14:07]FM_GetShiftState done [08:14:07]opened in 1729642435 [08:14:07]opened+sec_in_day 1729728835 [08:14:07]quantity*price = 200025 [08:14:07]sum+1 = 200026 [08:14:07]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 СНО: Общий режим Чек 36 23.10.2024 08:14 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70520 ФПД: 103594986802875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70520&fm=103594986802875&tin=02508201610067®Number=0000000000156251&sum=200000 [08:14:08]StoreToDocumentArchive [08:14:08]shift 196 fd 70520 [08:14:08]save to /storage/0196/doc_00070520 [08:14:08]save last doc name /storage/0196/doc_00070520 to /storage/kkm_last_doc_name [08:14:08]save OK [08:14:08]Clear old archive folders... [08:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:14:08]tlvbuf is 00EA56A0 [08:14:08]SAM_PROTO_ClearQueue [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 09 00 00 [08:14:08]Write to MH i2c: E2 08 00 9F 41 80 09 00 00 00 00 00 00 52 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 9F 41 00 90 00 54 [08:14:08]RAPDU: 90 00 [08:14:08]wFMCommunicate OK [08:14:08]SAM_PROTO_ClearQueue done [08:14:08]KKMCreateOFDPacket [08:14:08]OFDProtocolAddRootSTLVToBuf [08:14:08]FM_MakeSignedData [08:14:08]FM_MakeSignedData [08:14:08]SAM_PROTO_SignData [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 0D 01 02 [08:14:08]Write to MH i2c: E2 08 00 A0 41 80 0D 01 02 00 00 00 00 5A [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 A0 41 00 90 00 55 [08:14:08]RAPDU: 90 00 [08:14:08]wFMCommunicate OK [08:14:08]wFMCommunicate request_size=255 [08:14:08]MH_SAM_APDU [08:14: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 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 24 00 00 00 F4 03 04 00 53 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [08:14:08]Write to MH i2c: E2 02 01 A1 41 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 24 00 00 00 F4 03 04 00 53 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 E6 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:09]Read from MH i2c: E2 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 03 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 03 00 A1 41 00 90 00 56 [08:14:09]RAPDU: 90 00 [08:14:09]wFMCommunicate OK [08:14:09]wFMCommunicate request_size=16 [08:14:09]MH_SAM_APDU [08:14:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5E 38 16 63 8E BB [08:14:09]Write to MH i2c: E2 13 00 A2 41 80 0D 02 02 0B 00 00 35 04 06 00 5E 38 16 63 8E BB 00 00 0A [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:09]Read from MH i2c: E2 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 03 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 03 00 A2 41 00 90 00 57 [08:14:09]RAPDU: 90 00 [08:14:09]wFMCommunicate OK [08:14:09]wFMCommunicate request_size=4 [08:14:09]MH_SAM_APDU [08:14:09]CAPDU: 80 0D 03 02 [08:14:09]Write to MH i2c: E2 08 00 A3 41 80 0D 03 02 00 00 00 00 5F [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:09]Read from MH i2c: E2 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 0B 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 0B 00 A3 41 00 77 82 FC 94 63 88 DF 6C 90 00 1F [08:14:09]RAPDU: 77 82 FC 94 63 88 DF 6C 90 00 [08:14:09]wFMCommunicate OK [08:14:09]SAM_PROTO_SignData done [08:14:09]FM_MakeSignedData done [08:14:09]CreateOFDProtocolMessage [08:14:09]wFMCommunicate request_size=4 [08:14:09]MH_SAM_APDU [08:14:09]CAPDU: 80 11 00 00 [08:14:09]Write to MH i2c: E2 08 00 A4 41 80 11 00 00 00 00 00 00 5F [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:09]Read from MH i2c: E2 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 17 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: E2 17 00 A4 41 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:14: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:14:09]wFMCommunicate OK [08:14:09]CreateOFDProtocolMessage done [08:14:09]OFDSenderStorePacket 70520 [08:14:09]StoreOFDPacket docnum=70520 [08:14: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 66 93 0D 01 E1 82 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 24 00 00 00 F4 03 04 00 53 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E 38 16 63 8E BB 77 82 FC 94 63 88 DF 6C [08:14:09]CheckFolder [08:14:09]dirname=/storage/ofd_packets [08:14:09]CheckFolder done [08:14:09]ProducePacketName [08:14:09]name=ofd_packets/00070520 [08:14:09]NVStorageSaveData ofd_packets/00070520 [08:14:09]File name is /storage/ofd_packets/00070520 [08:14:09]Write 307 bytes [08:14:09]NVStorageSaveData done [08:14:09]OFDSenderStorePacket done [08:14:09]KKMCreateOFDPacket done [08:14:09]NVStorageSaveData kkm_last_timestamp [08:14:09]File name is /storage/kkm_last_timestamp [08:14:09]Write 4 bytes [08:14:09]NVStorageSaveData done [08:14:09]ExternCall_PrintAddStr [08:14:09]wPrintStart [08:14:09]Write to MH i2c: 01 00 00 A5 41 E6 [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 07 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 07 00 A5 41 00 00 00 00 00 FF 0F FB [08:14:09]RasterBufferAndPrint [08:14:09]line Счет N : (1)2886287 [08:14:09]line ИНН: 02508201610067 [08:14:09]line Контрольно-Кассовый Чек [08:14:09]line ПРОДАЖА [08:14:09]line ТРК (МРК, ГНК) : 11 [08:14:09]line Товар: 2710194240 [08:14:09]line D-ENERGY Дт-К-2 [08:14:09]line 25.910 * 77.20 [08:14:09]line = 2000.25 [08:14:09]line НДС 12% НСП 1% [08:14:09]line > о реализуемом товаре [08:14:09]line ОКРУГЛЕНИЕ: -0.25 [08:14:09]line ИТОГО: 2000.00 [08:14:09]line Внесено: 2000.00 [08:14:09]line СДАЧА: 0.00 [08:14:09]line НСП 1% : 17.70 [08:14:09]line НДС 12% : 212.42 [08:14:09]line Наличными: 2000.00 [08:14:09]line Безнал.: 0.00 [08:14:09]line Место: АЗС № 85 "Партнер Нефть" [08:14:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:14:09]line СНО: Общий режим [08:14:09]line Чек 36 23.10.2024 08:14 [08:14:09]line Смена: 196 ФФД: 1.0 [08:14:09]line ЗНМ: 0300000167 [08:14:09]line РНМ: 0000000000156251 [08:14:09]line Версия ККМ: v1.0 [08:14:09]line ФМ: 0000000000963346 [08:14:09]line ФД: 70520 [08:14:09]line ФПД: 103594986802875 [08:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70520&fm=103594986802875&tin=02508201610067®Number=0000000000156251&sum=200000 [08:14:09]OFD Sender: Processing packet 70520 [packets to send 18, broken 17] [08:14:09]ProducePacketName [08:14:09]name=ofd_packets/00070520 [08:14:09]OFD Sender: To server: pG, [08:14:09]CommunicateWithHost lk.salyk.kg:30040 [08:14:09]ConnectInit lk.salyk.kg [08:14:09]written 0, free lines is 4095 [08:14:09]Connected sock=10 [08:14: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 66 93 0D 01 E1 82 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 24 00 00 00 F4 03 04 00 53 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E 38 16 63 8E BB 77 82 FC 94 63 88 DF 6C [08:14: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 E9 D7 47 00 85 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 78 13 01 00 F4 03 04 00 F1 59 18 67 B6 04 01 00 00 89 8F BC 00 A5 BB D2 EA [08:14:09]CommunicateWithHost err = 0 [08:14:09]CheckOFDResponse [08:14:09]1017 (14) - 77093643461234 [08:14:09]1041 (16) - 0000000000963346 [08:14:09]1040 (4) - 70520 [08:14:09]1012 (4) - 23.10.2024 02:05 [08:14:09]1206 (1) - 0 [08:14:09]OFD Sender: Remove packet 70520 [08:14:09]ProducePacketName [08:14:09]name=ofd_packets/00070520 [08:14:09]NVStorageDeleteData [08:14:10]Write to MH i2c: 01 00 00 D0 41 11 [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: 01 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: 01 07 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: 01 07 00 D0 41 00 00 00 00 00 F7 0C 1B [08:14:10]RasterBufferAndPrint [08:14:10]line [08:14:10]line [08:14:10]line [08:14:10]line [08:14:10]line [08:14:10]written 0, free lines is 3330 [08:14:10]MH_Cut [08:14:10]Write to MH i2c: D1 01 00 D7 41 01 EA [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: D1 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: D1 01 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: D1 01 00 D7 41 00 E9 [08:14:10]Write to MH i2c: 01 00 00 D8 41 19 [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]OFD Sender: No OFD packet to send [08:14:10]*** Cut start [08:14:10]*** Partial cut [08:14:10]*** CUTSNS_PIN = 1 [08:14:10]*** CUTSNS_PIN = 0 [08:14:10]*** Brake cut motor [08:14:11]Read from MH i2c: 01 [08:14:11]MH_I2C_Read... [08:14:11]*** Stop cut motor [08:14:11]*** Cut end [08:14:11]Read from MH i2c: 01 07 00 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: 01 07 00 D8 41 00 00 00 00 00 FF 0F 2E [08:14:11]process_action close_receipt done [08:14:11]requested_data is exist [08:14:11]produce_requested_data [08:14:11]requested_item fm.sn is exist - process it [08:14:11]wFMCommunicate request_size=4 [08:14:11]MH_SAM_APDU [08:14:11]CAPDU: 80 11 00 00 [08:14:11]Write to MH i2c: E2 08 00 D9 41 80 11 00 00 00 00 00 00 94 [08:14:11]Write i2c OK [08:14:11]MH_I2C_Read... [08:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:11]Read from MH i2c: E2 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 17 00 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 17 00 D9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [08:14: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:14:11]wFMCommunicate OK [08:14:11]requested_item fd.num is exist - process it [08:14:11]SAM_PROTO_GetFieldsCounters [08:14:11]wFMCommunicate request_size=4 [08:14:11]MH_SAM_APDU [08:14:11]CAPDU: 80 13 00 00 [08:14:11]Write to MH i2c: E2 08 00 DA 41 80 13 00 00 00 00 00 00 97 [08:14:11]Write i2c OK [08:14:11]MH_I2C_Read... [08:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:11]Read from MH i2c: E2 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 62 00 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 62 00 DA 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 78 13 01 00 0E 04 04 00 C4 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 6E [08:14: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 78 13 01 00 0E 04 04 00 C4 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 [08:14:11]wFMCommunicate OK [08:14:11]SAM_PROTO_GetFieldsCounters done [08:14:11]requested_item shift.num is exist - process it [08:14:11]requested_item shift.opened is exist - process it [08:14:11]req_shift_opened [08:14:11]FM_GetShiftState [08:14:11]SAM_PROTO_GetShiftState [08:14:11]wFMCommunicate request_size=4 [08:14:11]MH_SAM_APDU [08:14:11]CAPDU: 80 13 01 00 [08:14:11]Write to MH i2c: E2 08 00 DB 41 80 13 01 00 00 00 00 00 99 [08:14:11]Write i2c OK [08:14:11]MH_I2C_Read... [08:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:11]Read from MH i2c: E2 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 0E 00 [08:14:11]MH_I2C_Read... [08:14:11]Read from MH i2c: E2 0E 00 DB 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 26 [08:14:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:14:11]wFMCommunicate OK [08:14:11]SAM_PROTO_GetShiftState done [08:14:11]FM_GetShiftState done [08:14:11]req_shift_opened done [08:14:11]requested_item shift.open_date is exist - process it [08:14:11]req_shift_open_date [08:14:11]req_shift_open_date done [08:14:11]produce_requested_data done [08:14:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70520,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:14:11]process_action_free close_receipt [08:14:11]json_value_free [08:14:11]json_value_free done [08:14:11]process_json_proto returns [08:14:11]Send response to host [08:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70520,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:14:11]free response buf [08:14:11]execute_script done [08:14:11]execute_script returns [08:14:11]free content buf [08:14:11]Sock 7.Close socket [08:14:11]Sock 7.Thread stoped [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:43]accept exits with 9 [08:15:43]New connection [08:15:43]New thread 3066699108 created [08:15:43]Thread 3066555748 joined [08:15:43]Waiting for new connection... [08:15:43] Sock 9.Parse request [08:15:43]Sock 9.Check first char [08:15:43]Sock 9.First char is OK [08:15:43]request: POST /json_proto HTTP/1.0 [08:15:43]Method: POST [08:15:43]URL: /json_proto [08:15:43]Method is POST - this is cgi request [08:15:43]url: /json_proto [08:15:43]query_string will be loaded in cgi processing [08:15:43]execute_cgi json_proto POST (null) [08:15:43]execute_cgi path=json_proto method=POST [08:15:43]POST find Content-Length [08:15:43]Host: 172.17.50.3:8080 [08:15:43]Content-Length: 683 [08:15:43]Content-Type: application/json [08:15:43] [08:15:43]POST finish read [08:15:43]Found Content-Length = 683 [08:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886288", "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" ] } } [08:15:43]execute_script... [08:15: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)2886288", "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" ] } } [08:15:43]POST & json_proto [08:15:43]process_json_proto [08:15:43]json parsed OK: [08:15:43]protocol is kg_v1.0 [08:15:43]action value=close_receipt [08:15:43]process_action close_receipt [08:15:43]cmd_close_receipt [08:15:43]MH_GetDate [08:15:43]Write to MH i2c: F0 00 00 DC 41 0C [08:15:43]Write i2c OK [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: F0 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: F0 09 00 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: F0 09 00 DC 41 00 B3 B0 18 67 6B 98 1E 66 7E [08:15:43]GetLastDocTimeStamp 1729671251 [08:15:43]current date 1729671347 [08:15:43]FM_GetShiftState [08:15:43]SAM_PROTO_GetShiftState [08:15:43]wFMCommunicate request_size=4 [08:15:43]MH_SAM_APDU [08:15:43]CAPDU: 80 13 01 00 [08:15:43]Write to MH i2c: E2 08 00 DD 41 80 13 01 00 00 00 00 00 9B [08:15:43]Write i2c OK [08:15:43]MH_I2C_Read... [08:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:43]Read from MH i2c: E2 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 0E 00 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 0E 00 DD 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 28 [08:15:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:15:43]wFMCommunicate OK [08:15:43]SAM_PROTO_GetShiftState done [08:15:43]FM_GetShiftState done [08:15:43]opened in 1729642435 [08:15:43]opened+sec_in_day 1729728835 [08:15:43]quantity*price = 100021 [08:15:43]sum+1 = 100023 [08:15:43]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 СНО: Общий режим Чек 37 23.10.2024 08:15 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70521 ФПД: 257085501707293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70521&fm=257085501707293&tin=02508201610067®Number=0000000000156251&sum=100000 [08:15:44]StoreToDocumentArchive [08:15:44]shift 196 fd 70521 [08:15:44]save to /storage/0196/doc_00070521 [08:15:44]save last doc name /storage/0196/doc_00070521 to /storage/kkm_last_doc_name [08:15:44]save OK [08:15:44]Clear old archive folders... [08:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:44]tlvbuf is 00D788D0 [08:15:44]SAM_PROTO_ClearQueue [08:15:44]wFMCommunicate request_size=4 [08:15:44]MH_SAM_APDU [08:15:44]CAPDU: 80 09 00 00 [08:15:44]Write to MH i2c: E2 08 00 EA 41 80 09 00 00 00 00 00 00 9D [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 EA 41 00 90 00 9F [08:15:44]RAPDU: 90 00 [08:15:44]wFMCommunicate OK [08:15:44]SAM_PROTO_ClearQueue done [08:15:44]KKMCreateOFDPacket [08:15:44]OFDProtocolAddRootSTLVToBuf [08:15:44]FM_MakeSignedData [08:15:44]FM_MakeSignedData [08:15:44]SAM_PROTO_SignData [08:15:44]wFMCommunicate request_size=4 [08:15:44]MH_SAM_APDU [08:15:44]CAPDU: 80 0D 01 02 [08:15:44]Write to MH i2c: E2 08 00 EB 41 80 0D 01 02 00 00 00 00 A5 [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 EB 41 00 90 00 A0 [08:15:44]RAPDU: 90 00 [08:15:44]wFMCommunicate OK [08:15:44]wFMCommunicate request_size=255 [08:15:44]MH_SAM_APDU [08:15: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 25 00 00 00 F4 03 04 00 B3 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E9 [08:15:44]Write to MH i2c: E2 02 01 EC 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 25 00 00 00 F4 03 04 00 B3 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E9 00 00 8C [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:45]Read from MH i2c: E2 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 03 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 03 00 EC 41 00 90 00 A1 [08:15:45]RAPDU: 90 00 [08:15:45]wFMCommunicate OK [08:15:45]wFMCommunicate request_size=10 [08:15:45]MH_SAM_APDU [08:15:45]CAPDU: 80 0D 02 02 05 D1 62 01 94 1D [08:15:45]Write to MH i2c: E2 0D 00 ED 41 80 0D 02 02 05 00 D1 62 01 94 1D 00 00 97 [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:45]Read from MH i2c: E2 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 03 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 03 00 ED 41 00 90 00 A2 [08:15:45]RAPDU: 90 00 [08:15:45]wFMCommunicate OK [08:15:45]wFMCommunicate request_size=4 [08:15:45]MH_SAM_APDU [08:15:45]CAPDU: 80 0D 03 02 [08:15:45]Write to MH i2c: E2 08 00 EE 41 80 0D 03 02 00 00 00 00 AA [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:45]Read from MH i2c: E2 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 0B 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 0B 00 EE 41 00 2D E0 CB 5B 34 BF 07 FB 90 00 D3 [08:15:45]RAPDU: 2D E0 CB 5B 34 BF 07 FB 90 00 [08:15:45]wFMCommunicate OK [08:15:45]SAM_PROTO_SignData done [08:15:45]FM_MakeSignedData done [08:15:45]CreateOFDProtocolMessage [08:15:45]wFMCommunicate request_size=4 [08:15:45]MH_SAM_APDU [08:15:45]CAPDU: 80 11 00 00 [08:15:45]Write to MH i2c: E2 08 00 EF 41 80 11 00 00 00 00 00 00 AA [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:45]Read from MH i2c: E2 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 17 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: E2 17 00 EF 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [08:15: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:15:45]wFMCommunicate OK [08:15:45]CreateOFDProtocolMessage done [08:15:45]OFDSenderStorePacket 70521 [08:15:45]StoreOFDPacket docnum=70521 [08:15: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 2C 8D 07 01 43 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 25 00 00 00 F4 03 04 00 B3 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E9 D1 62 01 94 1D 2D E0 CB 5B 34 BF 07 FB [08:15:45]CheckFolder [08:15:45]dirname=/storage/ofd_packets [08:15:45]CheckFolder done [08:15:45]ProducePacketName [08:15:45]name=ofd_packets/00070521 [08:15:45]NVStorageSaveData ofd_packets/00070521 [08:15:45]File name is /storage/ofd_packets/00070521 [08:15:45]Write 301 bytes [08:15:45]NVStorageSaveData done [08:15:45]OFDSenderStorePacket done [08:15:45]KKMCreateOFDPacket done [08:15:45]NVStorageSaveData kkm_last_timestamp [08:15:45]File name is /storage/kkm_last_timestamp [08:15:45]Write 4 bytes [08:15:45]NVStorageSaveData done [08:15:45]ExternCall_PrintAddStr [08:15:45]wPrintStart [08:15:45]Write to MH i2c: 01 00 00 F0 41 31 [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 07 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 07 00 F0 41 00 00 00 00 00 FF 0F 46 [08:15:45]RasterBufferAndPrint [08:15:45]line Счет N : (1)2886288 [08:15:45]line ИНН: 02508201610067 [08:15:45]line Контрольно-Кассовый Чек [08:15:45]line ПРОДАЖА [08:15:45]line ТРК (МРК, ГНК) : 33 [08:15:45]line Товар: 2710124500 [08:15:45]line Аи-95-К-5 [08:15:45]line 13.480 * 74.20 [08:15:45]line = 1000.22 [08:15:45]line НДС 12% НСП 1% [08:15:45]line > о реализуемом товаре [08:15:45]line ОКРУГЛЕНИЕ: -0.22 [08:15:45]line ИТОГО: 1000.00 [08:15:45]line Внесено: 1000.00 [08:15:45]line СДАЧА: 0.00 [08:15:45]line НСП 1% : 8.85 [08:15:45]line НДС 12% : 106.22 [08:15:45]line Наличными: 1000.00 [08:15:45]line Безнал.: 0.00 [08:15:45]line Место: АЗС № 85 "Партнер Нефть" [08:15:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:15:45]line СНО: Общий режим [08:15:45]line Чек 37 23.10.2024 08:15 [08:15:45]line Смена: 196 ФФД: 1.0 [08:15:45]line ЗНМ: 0300000167 [08:15:45]line РНМ: 0000000000156251 [08:15:45]line Версия ККМ: v1.0 [08:15:45]line ФМ: 0000000000963346 [08:15:45]line ФД: 70521 [08:15:45]line ФПД: 257085501707293 [08:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70521&fm=257085501707293&tin=02508201610067®Number=0000000000156251&sum=100000 [08:15:45]written 0, free lines is 4095 [08:15:45]OFD Sender: Processing packet 70521 [packets to send 18, broken 17] [08:15:45]ProducePacketName [08:15:45]name=ofd_packets/00070521 [08:15:45]OFD Sender: To server: pG, [08:15:45]CommunicateWithHost lk.salyk.kg:30040 [08:15:45]ConnectInit lk.salyk.kg [08:15:45]Connected sock=10 [08:15: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 2C 8D 07 01 43 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 25 00 00 00 F4 03 04 00 B3 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E9 D1 62 01 94 1D 2D E0 CB 5B 34 BF 07 FB [08:15: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 26 33 47 00 5F 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 79 13 01 00 F4 03 04 00 51 5A 18 67 B6 04 01 00 00 F3 F7 31 C0 27 DB 48 10 [08:15:45]CommunicateWithHost err = 0 [08:15:45]CheckOFDResponse [08:15:45]1017 (14) - 77093643461234 [08:15:45]1041 (16) - 0000000000963346 [08:15:45]1040 (4) - 70521 [08:15:45]1012 (4) - 23.10.2024 02:07 [08:15:45]1206 (1) - 0 [08:15:45]OFD Sender: Remove packet 70521 [08:15:45]ProducePacketName [08:15:45]name=ofd_packets/00070521 [08:15:45]NVStorageDeleteData [08:15:45]Write to MH i2c: 01 00 00 1B 42 5D [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 07 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: 01 07 00 1B 42 00 00 00 00 00 F1 0C 61 [08:15:45]RasterBufferAndPrint [08:15:45]line [08:15:45]line [08:15:45]line [08:15:45]line [08:15:45]line [08:15:45]written 0, free lines is 3322 [08:15:45]MH_Cut [08:15:45]Write to MH i2c: D1 01 00 22 42 01 36 [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: D1 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: D1 01 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: D1 01 00 22 42 00 35 [08:15:45]Write to MH i2c: 01 00 00 23 42 65 [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:46]OFD Sender: No OFD packet to send [08:15:46]*** Cut start [08:15:46]*** Partial cut [08:15:46]*** CUTSNS_PIN = 1 [08:15:46]*** CUTSNS_PIN = 0 [08:15:46]*** Brake cut motor [08:15:46]Read from MH i2c: 01 [08:15:46]MH_I2C_Read... [08:15:46]*** Stop cut motor [08:15:46]*** Cut end [08:15:46]Read from MH i2c: 01 07 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: 01 07 00 23 42 00 00 00 00 00 FF 0F 7A [08:15:46]process_action close_receipt done [08:15:46]requested_data is exist [08:15:46]produce_requested_data [08:15:46]requested_item fm.sn is exist - process it [08:15:46]wFMCommunicate request_size=4 [08:15:46]MH_SAM_APDU [08:15:46]CAPDU: 80 11 00 00 [08:15:46]Write to MH i2c: E2 08 00 24 42 80 11 00 00 00 00 00 00 E0 [08:15:46]Write i2c OK [08:15:46]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 17 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 17 00 24 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [08:15: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:15:47]wFMCommunicate OK [08:15:47]requested_item fd.num is exist - process it [08:15:47]SAM_PROTO_GetFieldsCounters [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 13 00 00 [08:15:47]Write to MH i2c: E2 08 00 25 42 80 13 00 00 00 00 00 00 E3 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 62 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 62 00 25 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 79 13 01 00 0E 04 04 00 C4 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 BE [08:15: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 79 13 01 00 0E 04 04 00 C4 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 [08:15:47]wFMCommunicate OK [08:15:47]SAM_PROTO_GetFieldsCounters done [08:15:47]requested_item shift.num is exist - process it [08:15:47]requested_item shift.opened is exist - process it [08:15:47]req_shift_opened [08:15:47]FM_GetShiftState [08:15:47]SAM_PROTO_GetShiftState [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 13 01 00 [08:15:47]Write to MH i2c: E2 08 00 26 42 80 13 01 00 00 00 00 00 E5 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 0E 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 0E 00 26 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 72 [08:15:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:15:47]wFMCommunicate OK [08:15:47]SAM_PROTO_GetShiftState done [08:15:47]FM_GetShiftState done [08:15:47]req_shift_opened done [08:15:47]requested_item shift.open_date is exist - process it [08:15:47]req_shift_open_date [08:15:47]req_shift_open_date done [08:15:47]produce_requested_data done [08:15:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70521,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:15:47]process_action_free close_receipt [08:15:47]json_value_free [08:15:47]json_value_free done [08:15:47]process_json_proto returns [08:15:47]Send response to host [08:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70521,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:15:47]free response buf [08:15:47]execute_script done [08:15:47]execute_script returns [08:15:47]free content buf [08:15:47]Sock 9.Close socket [08:15:47]Sock 9.Thread stoped [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:32]accept exits with 7 [08:16:32]New connection [08:16:32]New thread 3066555748 created [08:16:32]Thread 3066699108 joined [08:16:32]Waiting for new connection... [08:16:32] Sock 7.Parse request [08:16:32]Sock 7.Check first char [08:16:32]Sock 7.First char is OK [08:16:32]request: POST /json_proto HTTP/1.0 [08:16:32]Method: POST [08:16:32]URL: /json_proto [08:16:32]Method is POST - this is cgi request [08:16:32]url: /json_proto [08:16:32]query_string will be loaded in cgi processing [08:16:32]execute_cgi json_proto POST (null) [08:16:32]execute_cgi path=json_proto method=POST [08:16:32]POST find Content-Length [08:16:32]Host: 172.17.50.3:8080 [08:16:32]Content-Length: 770 [08:16:32]Content-Type: application/json [08:16:32] [08:16:32]POST finish read [08:16:32]Found Content-Length = 770 [08:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886289", "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" ] } } [08:16:32]execute_script... [08:16: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)2886289", "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" ] } } [08:16:32]POST & json_proto [08:16:32]process_json_proto [08:16:32]json parsed OK: [08:16:32]protocol is kg_v1.0 [08:16:32]action value=close_receipt [08:16:32]process_action close_receipt [08:16:32]cmd_close_receipt [08:16:32]MH_GetDate [08:16:32]Write to MH i2c: F0 00 00 27 42 58 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: F0 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: F0 09 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: F0 09 00 27 42 00 E4 B0 18 67 6B 98 1E 66 FB [08:16:32]GetLastDocTimeStamp 1729671347 [08:16:32]current date 1729671396 [08:16:32]FM_GetShiftState [08:16:32]SAM_PROTO_GetShiftState [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 13 01 00 [08:16:32]Write to MH i2c: E2 08 00 28 42 80 13 01 00 00 00 00 00 E7 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0E 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0E 00 28 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 74 [08:16:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:16:32]wFMCommunicate OK [08:16:32]SAM_PROTO_GetShiftState done [08:16:32]FM_GetShiftState done [08:16:32]opened in 1729642435 [08:16:32]opened+sec_in_day 1729728835 [08:16:32]quantity*price = 100015 [08:16:32]sum+1 = 100017 [08:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 38 23.10.2024 08:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70522 ФПД: 16204224694313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70522&fm=16204224694313&tin=02508201610067®Number=0000000000156251&sum=100016 [08:16:34]StoreToDocumentArchive [08:16:34]shift 196 fd 70522 [08:16:34]save to /storage/0196/doc_00070522 [08:16:34]save last doc name /storage/0196/doc_00070522 to /storage/kkm_last_doc_name [08:16:34]save OK [08:16:34]Clear old archive folders... [08:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:34]tlvbuf is 00AF05A0 [08:16:34]SAM_PROTO_ClearQueue [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 09 00 00 [08:16:34]Write to MH i2c: E2 08 00 35 42 80 09 00 00 00 00 00 00 E9 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 35 42 00 90 00 EB [08:16:34]RAPDU: 90 00 [08:16:34]wFMCommunicate OK [08:16:34]SAM_PROTO_ClearQueue done [08:16:34]KKMCreateOFDPacket [08:16:34]OFDProtocolAddRootSTLVToBuf [08:16:34]FM_MakeSignedData [08:16:34]FM_MakeSignedData [08:16:34]SAM_PROTO_SignData [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 0D 01 02 [08:16:34]Write to MH i2c: E2 08 00 36 42 80 0D 01 02 00 00 00 00 F1 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [08:16:34]RAPDU: 90 00 [08:16:34]wFMCommunicate OK [08:16:34]wFMCommunicate request_size=255 [08:16:34]MH_SAM_APDU [08:16: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 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 26 00 00 00 F4 03 04 00 E4 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0E [08:16:34]Write to MH i2c: E2 02 01 37 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 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 26 00 00 00 F4 03 04 00 E4 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0E 00 00 2D [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 37 42 00 90 00 ED [08:16:34]RAPDU: 90 00 [08:16:34]wFMCommunicate OK [08:16:34]wFMCommunicate request_size=10 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 0D 02 02 05 BC D7 0E 88 29 [08:16:34]Write to MH i2c: E2 0D 00 38 42 80 0D 02 02 05 00 BC D7 0E 88 29 00 00 50 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 03 00 38 42 00 90 00 EE [08:16:34]RAPDU: 90 00 [08:16:34]wFMCommunicate OK [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 0D 03 02 [08:16:34]Write to MH i2c: E2 08 00 39 42 80 0D 03 02 00 00 00 00 F6 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0B 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0B 00 39 42 00 B7 C7 5D 7D EE C8 D9 AD 90 00 8B [08:16:34]RAPDU: B7 C7 5D 7D EE C8 D9 AD 90 00 [08:16:34]wFMCommunicate OK [08:16:34]SAM_PROTO_SignData done [08:16:34]FM_MakeSignedData done [08:16:34]CreateOFDProtocolMessage [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 11 00 00 [08:16:34]Write to MH i2c: E2 08 00 3A 42 80 11 00 00 00 00 00 00 F6 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 17 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 17 00 3A 42 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:16:34]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:34]wFMCommunicate OK [08:16:34]CreateOFDProtocolMessage done [08:16:34]OFDSenderStorePacket 70522 [08:16:34]StoreOFDPacket docnum=70522 [08:16: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 BE 32 07 01 D1 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 26 00 00 00 F4 03 04 00 E4 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0E BC D7 0E 88 29 B7 C7 5D 7D EE C8 D9 AD [08:16:34]CheckFolder [08:16:34]dirname=/storage/ofd_packets [08:16:34]CheckFolder done [08:16:34]ProducePacketName [08:16:34]name=ofd_packets/00070522 [08:16:34]NVStorageSaveData ofd_packets/00070522 [08:16:34]File name is /storage/ofd_packets/00070522 [08:16:34]Write 301 bytes [08:16:34]NVStorageSaveData done [08:16:34]OFDSenderStorePacket done [08:16:34]KKMCreateOFDPacket done [08:16:34]NVStorageSaveData kkm_last_timestamp [08:16:34]File name is /storage/kkm_last_timestamp [08:16:34]Write 4 bytes [08:16:34]NVStorageSaveData done [08:16:34]ExternCall_PrintAddStr [08:16:34]wPrintStart [08:16:34]Write to MH i2c: 01 00 00 3B 42 7D [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 07 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 07 00 3B 42 00 00 00 00 00 FF 0F 92 [08:16:34]RasterBufferAndPrint [08:16:34]line Счет N : (1)2886289 [08:16:34]line ИНН: 02508201610067 [08:16:34]line Контрольно-Кассовый Чек [08:16:34]line ПРОДАЖА [08:16:34]line ТРК (МРК, ГНК) : 42 [08:16:34]line Товар: 2710124130 [08:16:34]line Аи-92-К-5 [08:16:34]line 14.950 * 66.90 [08:16:34]line = 1000.16 [08:16:34]line НДС 12% НСП 1% [08:16:34]line > о реализуемом товаре [08:16:34]line ИТОГО: 1000.16 [08:16:34]line НСП 1% : 8.85 [08:16:34]line НДС 12% : 106.21 [08:16:34]line Наличными: 0.00 [08:16:34]line Безнал.: 1000.16 [08:16:34]line Место: АЗС № 85 "Партнер Нефть" [08:16:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:16:34]line СНО: Общий режим [08:16:34]line Чек 38 23.10.2024 08:16 [08:16:34]line Смена: 196 ФФД: 1.0 [08:16:34]line ЗНМ: 0300000167 [08:16:34]line РНМ: 0000000000156251 [08:16:34]line Версия ККМ: v1.0 [08:16:34]line Платежная система: Mbank [08:16:34]line ФМ: 0000000000963346 [08:16:34]line ФД: 70522 [08:16:34]line ФПД: 16204224694313 [08:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70522&fm=16204224694313&tin=02508201610067®Number=0000000000156251&sum=100016 [08:16:34]OFD Sender: Processing packet 70522 [packets to send 18, broken 17] [08:16:34]ProducePacketName [08:16:34]name=ofd_packets/00070522 [08:16:34]OFD Sender: To server: pG, [08:16:34]CommunicateWithHost lk.salyk.kg:30040 [08:16:34]ConnectInit lk.salyk.kg [08:16:34]written 0, free lines is 4095 [08:16:34]Connected sock=10 [08:16: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 BE 32 07 01 D1 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 26 00 00 00 F4 03 04 00 E4 B0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0E BC D7 0E 88 29 B7 C7 5D 7D EE C8 D9 AD [08:16: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 3B 7D 47 00 30 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 7A 13 01 00 F4 03 04 00 83 5A 18 67 B6 04 01 00 00 31 B4 83 EB 56 41 D4 82 [08:16:35]CommunicateWithHost err = 0 [08:16:35]CheckOFDResponse [08:16:35]1017 (14) - 77093643461234 [08:16:35]1041 (16) - 0000000000963346 [08:16:35]1040 (4) - 70522 [08:16:35]1012 (4) - 23.10.2024 02:08 [08:16:35]1206 (1) - 0 [08:16:35]OFD Sender: Remove packet 70522 [08:16:35]ProducePacketName [08:16:35]name=ofd_packets/00070522 [08:16:35]NVStorageDeleteData [08:16:35]Write to MH i2c: 01 00 00 64 42 A6 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: 01 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: 01 07 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: 01 07 00 64 42 00 00 00 00 00 0B 0D C5 [08:16:35]RasterBufferAndPrint [08:16:35]line [08:16:35]line [08:16:35]line [08:16:35]line [08:16:35]line [08:16:35]written 0, free lines is 3345 [08:16:35]MH_Cut [08:16:35]Write to MH i2c: D1 01 00 6B 42 01 7F [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: D1 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: D1 01 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: D1 01 00 6B 42 00 7E [08:16:35]Write to MH i2c: 01 00 00 6C 42 AE [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]OFD Sender: No OFD packet to send [08:16:35]*** Cut start [08:16:35]*** Partial cut [08:16:35]*** CUTSNS_PIN = 1 [08:16:36]*** CUTSNS_PIN = 0 [08:16:36]*** Brake cut motor [08:16:36]Read from MH i2c: 01 [08:16:36]MH_I2C_Read... [08:16:36]*** Stop cut motor [08:16:36]*** Cut end [08:16:36]Read from MH i2c: 01 07 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 6C 42 00 00 00 00 00 FF 0F C3 [08:16:36]process_action close_receipt done [08:16:36]requested_data is exist [08:16:36]produce_requested_data [08:16:36]requested_item fm.sn is exist - process it [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 11 00 00 [08:16:36]Write to MH i2c: E2 08 00 6D 42 80 11 00 00 00 00 00 00 29 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 17 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 17 00 6D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [08:16: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:16:36]wFMCommunicate OK [08:16:36]requested_item fd.num is exist - process it [08:16:36]SAM_PROTO_GetFieldsCounters [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 13 00 00 [08:16:36]Write to MH i2c: E2 08 00 6E 42 80 13 00 00 00 00 00 00 2C [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 62 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 62 00 6E 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 7A 13 01 00 0E 04 04 00 C4 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 0B [08:16: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 7A 13 01 00 0E 04 04 00 C4 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 [08:16:36]wFMCommunicate OK [08:16:36]SAM_PROTO_GetFieldsCounters done [08:16:36]requested_item shift.num is exist - process it [08:16:36]requested_item shift.opened is exist - process it [08:16:36]req_shift_opened [08:16:36]FM_GetShiftState [08:16:36]SAM_PROTO_GetShiftState [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 13 01 00 [08:16:36]Write to MH i2c: E2 08 00 6F 42 80 13 01 00 00 00 00 00 2E [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 0E 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 0E 00 6F 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BB [08:16:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:16:36]wFMCommunicate OK [08:16:36]SAM_PROTO_GetShiftState done [08:16:36]FM_GetShiftState done [08:16:36]req_shift_opened done [08:16:36]requested_item shift.open_date is exist - process it [08:16:36]req_shift_open_date [08:16:36]req_shift_open_date done [08:16:36]produce_requested_data done [08:16:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70522,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:16:36]process_action_free close_receipt [08:16:36]json_value_free [08:16:36]json_value_free done [08:16:36]process_json_proto returns [08:16:36]Send response to host [08:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70522,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:16:36]free response buf [08:16:36]execute_script done [08:16:36]execute_script returns [08:16:36]free content buf [08:16:36]Sock 7.Close socket [08:16:36]Sock 7.Thread stoped [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:40]accept exits with 9 [08:27:40]New connection [08:27:40]New thread 3066699108 created [08:27:40]Thread 3066555748 joined [08:27:40]Waiting for new connection... [08:27:40] Sock 9.Parse request [08:27:40]Sock 9.Check first char [08:27:40]Sock 9.First char is OK [08:27:40]request: POST /json_proto HTTP/1.0 [08:27:40]Method: POST [08:27:40]URL: /json_proto [08:27:40]Method is POST - this is cgi request [08:27:40]url: /json_proto [08:27:40]query_string will be loaded in cgi processing [08:27:40]execute_cgi json_proto POST (null) [08:27:40]execute_cgi path=json_proto method=POST [08:27:40]POST find Content-Length [08:27:40]Host: 172.17.50.3:8080 [08:27:40]Content-Length: 801 [08:27:40]Content-Type: application/json [08:27:40] [08:27:40]POST finish read [08:27:40]Found Content-Length = 801 [08:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886290", "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" : 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\u000A1645898", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:40]execute_script... [08:27: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)2886290", "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" : 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\u000A1645898", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:40]POST & json_proto [08:27:40]process_json_proto [08:27:40]json parsed OK: [08:27:40]protocol is kg_v1.0 [08:27:40]action value=close_receipt [08:27:40]process_action close_receipt [08:27:40]cmd_close_receipt [08:27:40]MH_GetDate [08:27:40]Write to MH i2c: F0 00 00 70 42 A1 [08:27:40]Write i2c OK [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: F0 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: F0 09 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: F0 09 00 70 42 00 80 B3 18 67 6B 98 1E 66 E3 [08:27:40]GetLastDocTimeStamp 1729671396 [08:27:40]current date 1729672064 [08:27:40]FM_GetShiftState [08:27:40]SAM_PROTO_GetShiftState [08:27:40]wFMCommunicate request_size=4 [08:27:40]MH_SAM_APDU [08:27:40]CAPDU: 80 13 01 00 [08:27:40]Write to MH i2c: E2 08 00 71 42 80 13 01 00 00 00 00 00 30 [08:27:41]Write i2c OK [08:27:41]MH_I2C_Read... [08:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:41]Read from MH i2c: E2 [08:27:41]MH_I2C_Read... [08:27:41]Read from MH i2c: E2 0E 00 [08:27:41]MH_I2C_Read... [08:27:41]Read from MH i2c: E2 0E 00 71 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BD [08:27:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:27:41]wFMCommunicate OK [08:27:41]SAM_PROTO_GetShiftState done [08:27:41]FM_GetShiftState done [08:27:41]opened in 1729642435 [08:27:41]opened+sec_in_day 1729728835 [08:27:41]quantity*price = 0 [08:27:41]sum+1 = 1 [08:27: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 СНО: Общий режим Чек 39 23.10.2024 08:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 1645898 ФМ: 0000000000963346 ФД: 70523 ФПД: 132040990189912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70523&fm=132040990189912&tin=02508201610067®Number=0000000000156251&sum=0 [08:27:42]StoreToDocumentArchive [08:27:42]shift 196 fd 70523 [08:27:42]save to /storage/0196/doc_00070523 [08:27:42]save last doc name /storage/0196/doc_00070523 to /storage/kkm_last_doc_name [08:27:42]save OK [08:27:42]Clear old archive folders... [08:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:42]tlvbuf is 00CB78B0 [08:27:42]SAM_PROTO_ClearQueue [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 09 00 00 [08:27:42]Write to MH i2c: E2 08 00 7E 42 80 09 00 00 00 00 00 00 32 [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 7E 42 00 90 00 34 [08:27:42]RAPDU: 90 00 [08:27:42]wFMCommunicate OK [08:27:42]SAM_PROTO_ClearQueue done [08:27:42]KKMCreateOFDPacket [08:27:42]OFDProtocolAddRootSTLVToBuf [08:27:42]FM_MakeSignedData [08:27:42]FM_MakeSignedData [08:27:42]SAM_PROTO_SignData [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 0D 01 02 [08:27:42]Write to MH i2c: E2 08 00 7F 42 80 0D 01 02 00 00 00 00 3A [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 7F 42 00 90 00 35 [08:27:42]RAPDU: 90 00 [08:27:42]wFMCommunicate OK [08:27:42]wFMCommunicate request_size=255 [08:27:42]MH_SAM_APDU [08:27: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 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 27 00 00 00 F4 03 04 00 80 B3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 [08:27:42]Write to MH i2c: E2 02 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 27 00 00 00 F4 03 04 00 80 B3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 00 00 1D [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 80 42 00 90 00 36 [08:27:42]RAPDU: 90 00 [08:27:42]wFMCommunicate OK [08:27:42]wFMCommunicate request_size=10 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 0D 02 02 05 17 30 50 E9 58 [08:27:42]Write to MH i2c: E2 0D 00 81 42 80 0D 02 02 05 00 17 30 50 E9 58 00 00 1F [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 03 00 81 42 00 90 00 37 [08:27:42]RAPDU: 90 00 [08:27:42]wFMCommunicate OK [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 0D 03 02 [08:27:42]Write to MH i2c: E2 08 00 82 42 80 0D 03 02 00 00 00 00 3F [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0B 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0B 00 82 42 00 6B 46 92 3D 78 1F C0 8D 90 00 A4 [08:27:42]RAPDU: 6B 46 92 3D 78 1F C0 8D 90 00 [08:27:42]wFMCommunicate OK [08:27:42]SAM_PROTO_SignData done [08:27:42]FM_MakeSignedData done [08:27:42]CreateOFDProtocolMessage [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 11 00 00 [08:27:42]Write to MH i2c: E2 08 00 83 42 80 11 00 00 00 00 00 00 3F [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 17 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 17 00 83 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [08:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:27:42]wFMCommunicate OK [08:27:42]CreateOFDProtocolMessage done [08:27:42]OFDSenderStorePacket 70523 [08:27:42]StoreOFDPacket docnum=70523 [08:27: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 DA 88 07 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 27 00 00 00 F4 03 04 00 80 B3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 17 30 50 E9 58 6B 46 92 3D 78 1F C0 8D [08:27:42]CheckFolder [08:27:42]dirname=/storage/ofd_packets [08:27:42]CheckFolder done [08:27:42]ProducePacketName [08:27:42]name=ofd_packets/00070523 [08:27:42]NVStorageSaveData ofd_packets/00070523 [08:27:42]File name is /storage/ofd_packets/00070523 [08:27:42]Write 301 bytes [08:27:42]NVStorageSaveData done [08:27:42]OFDSenderStorePacket done [08:27:42]KKMCreateOFDPacket done [08:27:42]NVStorageSaveData kkm_last_timestamp [08:27:42]File name is /storage/kkm_last_timestamp [08:27:42]Write 4 bytes [08:27:42]NVStorageSaveData done [08:27:42]ExternCall_PrintAddStr [08:27:42]wPrintStart [08:27:42]Write to MH i2c: 01 00 00 84 42 C6 [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: 01 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: 01 07 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: 01 07 00 84 42 00 00 00 00 00 FF 0F DB [08:27:42]RasterBufferAndPrint [08:27:42]line Счет N : (1)2886290 [08:27:42]line ИНН: 02508201610067 [08:27:42]line Контрольно-Кассовый Чек [08:27:42]line ПРОДАЖА [08:27:42]line ТРК (МРК, ГНК) : 33 [08:27:42]line Товар: 2710124500 [08:27:42]line Аи-95-К-5 [08:27:42]line 10.000 * 0.00 [08:27:42]line = 0.00 [08:27:42]line НДС 12% НСП 1% [08:27:42]line > о реализуемом товаре [08:27:42]line ИТОГО: 0.00 [08:27:42]line НСП 1% : 0.00 [08:27:42]line НДС 12% : 0.00 [08:27:42]line Наличными: 0.00 [08:27:42]line Безнал.: 0.00 [08:27:42]line Место: АЗС № 85 "Партнер Нефть" [08:27:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:27:42]line СНО: Общий режим [08:27:42]line Чек 39 23.10.2024 08:27 [08:27:42]line Смена: 196 ФФД: 1.0 [08:27:42]line ЗНМ: 0300000167 [08:27:42]line РНМ: 0000000000156251 [08:27:42]line Версия ККМ: v1.0 [08:27:42]line Талоны: Топливные Талоны [08:27:42]line 1645898 [08:27:42]line ФМ: 0000000000963346 [08:27:42]line ФД: 70523 [08:27:42]line ФПД: 132040990189912 [08:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70523&fm=132040990189912&tin=02508201610067®Number=0000000000156251&sum=0 [08:27:43]OFD Sender: Processing packet 70523 [packets to send 18, broken 17] [08:27:43]ProducePacketName [08:27:43]name=ofd_packets/00070523 [08:27:43]OFD Sender: To server: pG, [08:27:43]CommunicateWithHost lk.salyk.kg:30040 [08:27:43]ConnectInit lk.salyk.kg [08:27:43]written 0, free lines is 4095 [08:27:43]Connected sock=10 [08:27: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 DA 88 07 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 27 00 00 00 F4 03 04 00 80 B3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 17 30 50 E9 58 6B 46 92 3D 78 1F C0 8D [08:27: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 A7 5F 47 00 F5 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 7B 13 01 00 F4 03 04 00 1F 5D 18 67 B6 04 01 00 00 7C 23 F2 66 92 B7 C6 07 [08:27:43]CommunicateWithHost err = 0 [08:27:43]CheckOFDResponse [08:27:43]1017 (14) - 77093643461234 [08:27:43]1041 (16) - 0000000000963346 [08:27:43]1040 (4) - 70523 [08:27:43]1012 (4) - 23.10.2024 02:19 [08:27:43]1206 (1) - 0 [08:27:43]OFD Sender: Remove packet 70523 [08:27:43]ProducePacketName [08:27:43]name=ofd_packets/00070523 [08:27:43]NVStorageDeleteData [08:27:43]Write to MH i2c: 01 00 00 AE 42 F0 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: 01 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: 01 07 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: 01 07 00 AE 42 00 00 00 00 00 F2 0C F5 [08:27:43]RasterBufferAndPrint [08:27:43]line [08:27:43]line [08:27:43]line [08:27:43]line [08:27:43]line [08:27:43]written 0, free lines is 3323 [08:27:43]MH_Cut [08:27:43]Write to MH i2c: D1 01 00 B5 42 01 C9 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: D1 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: D1 01 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: D1 01 00 B5 42 00 C8 [08:27:43]Write to MH i2c: 01 00 00 B6 42 F8 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]OFD Sender: No OFD packet to send [08:27:44]*** Cut start [08:27:44]*** Partial cut [08:27:44]*** CUTSNS_PIN = 1 [08:27:44]*** CUTSNS_PIN = 0 [08:27:44]*** Brake cut motor [08:27:44]Read from MH i2c: 01 [08:27:44]MH_I2C_Read... [08:27:44]*** Stop cut motor [08:27:44]*** Cut end [08:27:44]Read from MH i2c: 01 07 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 B6 42 00 00 00 00 00 FF 0F 0D [08:27:44]process_action close_receipt done [08:27:44]requested_data is exist [08:27:44]produce_requested_data [08:27:44]requested_item fm.sn is exist - process it [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 11 00 00 [08:27:44]Write to MH i2c: E2 08 00 B7 42 80 11 00 00 00 00 00 00 73 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:44]Read from MH i2c: E2 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 17 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 17 00 B7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [08: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 [08:27:44]wFMCommunicate OK [08:27:44]requested_item fd.num is exist - process it [08:27:44]SAM_PROTO_GetFieldsCounters [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 13 00 00 [08:27:44]Write to MH i2c: E2 08 00 B8 42 80 13 00 00 00 00 00 00 76 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:44]Read from MH i2c: E2 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 62 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 62 00 B8 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 7B 13 01 00 0E 04 04 00 C4 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 59 [08:27: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 7B 13 01 00 0E 04 04 00 C4 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 [08:27:44]wFMCommunicate OK [08:27:44]SAM_PROTO_GetFieldsCounters done [08:27:44]requested_item shift.num is exist - process it [08:27:44]requested_item shift.opened is exist - process it [08:27:44]req_shift_opened [08:27:44]FM_GetShiftState [08:27:44]SAM_PROTO_GetShiftState [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 13 01 00 [08:27:44]Write to MH i2c: E2 08 00 B9 42 80 13 01 00 00 00 00 00 78 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 0E 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 0E 00 B9 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 05 [08:27:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:27:45]wFMCommunicate OK [08:27:45]SAM_PROTO_GetShiftState done [08:27:45]FM_GetShiftState done [08:27:45]req_shift_opened done [08:27:45]requested_item shift.open_date is exist - process it [08:27:45]req_shift_open_date [08:27:45]req_shift_open_date done [08:27:45]produce_requested_data done [08:27:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70523,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:27:45]process_action_free close_receipt [08:27:45]json_value_free [08:27:45]json_value_free done [08:27:45]process_json_proto returns [08:27:45]Send response to host [08:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70523,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:27:45]free response buf [08:27:45]execute_script done [08:27:45]execute_script returns [08:27:45]free content buf [08:27:45]Sock 9.Close socket [08:27:45]Sock 9.Thread stoped [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:08]accept exits with 7 [08:32:08]New connection [08:32:08]New thread 3066555748 created [08:32:08]Thread 3066699108 joined [08:32:08]Waiting for new connection... [08:32:08] Sock 7.Parse request [08:32:08]Sock 7.Check first char [08:32:08]Sock 7.First char is OK [08:32:08]request: POST /json_proto HTTP/1.0 [08:32:08]Method: POST [08:32:08]URL: /json_proto [08:32:08]Method is POST - this is cgi request [08:32:08]url: /json_proto [08:32:08]query_string will be loaded in cgi processing [08:32:08]execute_cgi json_proto POST (null) [08:32:08]execute_cgi path=json_proto method=POST [08:32:08]POST find Content-Length [08:32:08]Host: 172.17.50.3:8080 [08:32:08]Content-Length: 686 [08:32:08]Content-Type: application/json [08:32:08] [08:32:08]POST finish read [08:32:08]Found Content-Length = 686 [08:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886291", "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" ] } } [08:32:08]execute_script... [08:32: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)2886291", "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" ] } } [08:32:08]POST & json_proto [08:32:08]process_json_proto [08:32:08]json parsed OK: [08:32:08]protocol is kg_v1.0 [08:32:08]action value=close_receipt [08:32:08]process_action close_receipt [08:32:08]cmd_close_receipt [08:32:08]MH_GetDate [08:32:08]Write to MH i2c: F0 00 00 BA 42 EB [08:32:08]Write i2c OK [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: F0 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: F0 09 00 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: F0 09 00 BA 42 00 8C B4 18 67 6B 98 1E 66 3A [08:32:08]GetLastDocTimeStamp 1729672064 [08:32:08]current date 1729672332 [08:32:08]FM_GetShiftState [08:32:08]SAM_PROTO_GetShiftState [08:32:08]wFMCommunicate request_size=4 [08:32:08]MH_SAM_APDU [08:32:08]CAPDU: 80 13 01 00 [08:32:08]Write to MH i2c: E2 08 00 BB 42 80 13 01 00 00 00 00 00 7A [08:32:08]Write i2c OK [08:32:08]MH_I2C_Read... [08:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:08]Read from MH i2c: E2 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 0E 00 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 0E 00 BB 42 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 07 [08:32:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:32:08]wFMCommunicate OK [08:32:08]SAM_PROTO_GetShiftState done [08:32:08]FM_GetShiftState done [08:32:08]opened in 1729642435 [08:32:08]opened+sec_in_day 1729728835 [08:32:08]quantity*price = 150037 [08:32:08]sum+1 = 150038 [08:32:08]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 СНО: Общий режим Чек 40 23.10.2024 08:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70524 ФПД: 277205038491177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70524&fm=277205038491177&tin=02508201610067®Number=0000000000156251&sum=150000 [08:32:09]StoreToDocumentArchive [08:32:09]shift 196 fd 70524 [08:32:09]save to /storage/0196/doc_00070524 [08:32:09]save last doc name /storage/0196/doc_00070524 to /storage/kkm_last_doc_name [08:32:09]save OK [08:32:09]Clear old archive folders... [08:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:32:09]tlvbuf is 00ED2820 [08:32:09]SAM_PROTO_ClearQueue [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 09 00 00 [08:32:09]Write to MH i2c: E2 08 00 C8 42 80 09 00 00 00 00 00 00 7C [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 C8 42 00 90 00 7E [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]SAM_PROTO_ClearQueue done [08:32:09]KKMCreateOFDPacket [08:32:09]OFDProtocolAddRootSTLVToBuf [08:32:09]FM_MakeSignedData [08:32:09]FM_MakeSignedData [08:32:09]SAM_PROTO_SignData [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 0D 01 02 [08:32:09]Write to MH i2c: E2 08 00 C9 42 80 0D 01 02 00 00 00 00 84 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 C9 42 00 90 00 7F [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]wFMCommunicate request_size=255 [08:32:09]MH_SAM_APDU [08:32: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 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 28 00 00 00 F4 03 04 00 8C B4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 1D [08:32:09]Write to MH i2c: E2 02 01 CA 42 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 28 00 00 00 F4 03 04 00 8C B4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 1D 00 00 92 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 CA 42 00 90 00 80 [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]wFMCommunicate request_size=9 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 0D 02 02 04 D3 D9 66 29 [08:32:09]Write to MH i2c: E2 0C 00 CB 42 80 0D 02 02 04 00 D3 D9 66 29 00 00 CA [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 CB 42 00 90 00 81 [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 0D 03 02 [08:32:09]Write to MH i2c: E2 08 00 CC 42 80 0D 03 02 00 00 00 00 89 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 0B 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 0B 00 CC 42 00 C5 60 A3 B6 78 95 EC 13 90 00 14 [08:32:09]RAPDU: C5 60 A3 B6 78 95 EC 13 90 00 [08:32:09]wFMCommunicate OK [08:32:09]SAM_PROTO_SignData done [08:32:09]FM_MakeSignedData done [08:32:09]CreateOFDProtocolMessage [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 11 00 00 [08:32:09]Write to MH i2c: E2 08 00 CD 42 80 11 00 00 00 00 00 00 89 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 17 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 17 00 CD 42 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:32: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:32:09]wFMCommunicate OK [08:32:09]CreateOFDProtocolMessage done [08:32:09]OFDSenderStorePacket 70524 [08:32:09]StoreOFDPacket docnum=70524 [08:32: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 0E 01 00 00 35 36 06 01 F6 2F 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 28 00 00 00 F4 03 04 00 8C B4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 1D D3 D9 66 29 C5 60 A3 B6 78 95 EC 13 [08:32:09]CheckFolder [08:32:09]dirname=/storage/ofd_packets [08:32:09]CheckFolder done [08:32:09]ProducePacketName [08:32:09]name=ofd_packets/00070524 [08:32:09]NVStorageSaveData ofd_packets/00070524 [08:32:09]File name is /storage/ofd_packets/00070524 [08:32:09]Write 300 bytes [08:32:09]NVStorageSaveData done [08:32:09]OFDSenderStorePacket done [08:32:09]KKMCreateOFDPacket done [08:32:09]NVStorageSaveData kkm_last_timestamp [08:32:09]File name is /storage/kkm_last_timestamp [08:32:09]Write 4 bytes [08:32:09]NVStorageSaveData done [08:32:09]ExternCall_PrintAddStr [08:32:09]wPrintStart [08:32:09]Write to MH i2c: 01 00 00 CE 42 10 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 CE 42 00 00 00 00 00 FF 0F 25 [08:32:09]RasterBufferAndPrint [08:32:09]line Счет N : (1)2886291 [08:32:09]line ИНН: 02508201610067 [08:32:09]line Контрольно-Кассовый Чек [08:32:09]line ПРОДАЖА [08:32:09]line ТРК (МРК, ГНК) : 71 [08:32:09]line Товар: 2711129700 [08:32:09]line ГАЗ-К-3 [08:32:09]line 38.570 * 38.90 [08:32:09]line = 1500.37 [08:32:09]line НДС 12% НСП 1% [08:32:09]line > о реализуемом товаре [08:32:09]line ОКРУГЛЕНИЕ: -0.37 [08:32:09]line ИТОГО: 1500.00 [08:32:09]line Внесено: 1500.00 [08:32:09]line СДАЧА: 0.00 [08:32:09]line НСП 1% : 13.28 [08:32:09]line НДС 12% : 159.33 [08:32:09]line Наличными: 1500.00 [08:32:09]line Безнал.: 0.00 [08:32:09]line Место: АЗС № 85 "Партнер Нефть" [08:32:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:32:09]line СНО: Общий режим [08:32:09]line Чек 40 23.10.2024 08:32 [08:32:09]line Смена: 196 ФФД: 1.0 [08:32:09]line ЗНМ: 0300000167 [08:32:09]line РНМ: 0000000000156251 [08:32:09]line Версия ККМ: v1.0 [08:32:09]line ФМ: 0000000000963346 [08:32:09]line ФД: 70524 [08:32:09]line ФПД: 277205038491177 [08:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70524&fm=277205038491177&tin=02508201610067®Number=0000000000156251&sum=150000 [08:32:10]OFD Sender: Processing packet 70524 [packets to send 18, broken 17] [08:32:10]ProducePacketName [08:32:10]name=ofd_packets/00070524 [08:32:10]OFD Sender: To server: pG, [08:32:10]CommunicateWithHost lk.salyk.kg:30040 [08:32:10]ConnectInit lk.salyk.kg [08:32:10]written 0, free lines is 4095 [08:32:10]Connected sock=10 [08:32: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 35 36 06 01 F6 2F 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 28 00 00 00 F4 03 04 00 8C B4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 1D D3 D9 66 29 C5 60 A3 B6 78 95 EC 13 [08:32: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 80 81 47 00 3A 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 7C 13 01 00 F4 03 04 00 2A 5E 18 67 B6 04 01 00 00 71 AF A7 DF E5 30 D7 DD [08:32:10]CommunicateWithHost err = 0 [08:32:10]CheckOFDResponse [08:32:10]1017 (14) - 77093643461234 [08:32:10]1041 (16) - 0000000000963346 [08:32:10]1040 (4) - 70524 [08:32:10]1012 (4) - 23.10.2024 02:23 [08:32:10]1206 (1) - 0 [08:32:10]OFD Sender: Remove packet 70524 [08:32:10]ProducePacketName [08:32:10]name=ofd_packets/00070524 [08:32:10]NVStorageDeleteData [08:32:10]Write to MH i2c: 01 00 00 F9 42 3B [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 07 00 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 07 00 F9 42 00 00 00 00 00 E4 0C 32 [08:32:10]RasterBufferAndPrint [08:32:10]line [08:32:10]line [08:32:10]line [08:32:10]line [08:32:10]line [08:32:10]written 0, free lines is 3306 [08:32:10]MH_Cut [08:32:10]Write to MH i2c: D1 01 00 00 43 01 15 [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: D1 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: D1 01 00 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: D1 01 00 00 43 00 14 [08:32:10]Write to MH i2c: 01 00 00 01 43 44 [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:11]OFD Sender: No OFD packet to send [08:32:11]*** Cut start [08:32:11]*** Partial cut [08:32:11]*** CUTSNS_PIN = 1 [08:32:11]*** CUTSNS_PIN = 0 [08:32:11]*** Brake cut motor [08:32:12]Read from MH i2c: 01 [08:32:12]MH_I2C_Read... [08:32:12]*** Stop cut motor [08:32:12]*** Cut end [08:32:12]Read from MH i2c: 01 07 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: 01 07 00 01 43 00 00 00 00 00 FF 0F 59 [08:32:12]process_action close_receipt done [08:32:12]requested_data is exist [08:32:12]produce_requested_data [08:32:12]requested_item fm.sn is exist - process it [08:32:12]wFMCommunicate request_size=4 [08:32:12]MH_SAM_APDU [08:32:12]CAPDU: 80 11 00 00 [08:32:12]Write to MH i2c: E2 08 00 02 43 80 11 00 00 00 00 00 00 BF [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:12]Read from MH i2c: E2 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 17 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 17 00 02 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [08:32: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:32:12]wFMCommunicate OK [08:32:12]requested_item fd.num is exist - process it [08:32:12]SAM_PROTO_GetFieldsCounters [08:32:12]wFMCommunicate request_size=4 [08:32:12]MH_SAM_APDU [08:32:12]CAPDU: 80 13 00 00 [08:32:12]Write to MH i2c: E2 08 00 03 43 80 13 00 00 00 00 00 00 C2 [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:12]Read from MH i2c: E2 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 62 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 62 00 03 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 7C 13 01 00 0E 04 04 00 C4 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 A9 [08:32: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 7C 13 01 00 0E 04 04 00 C4 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 [08:32:12]wFMCommunicate OK [08:32:12]SAM_PROTO_GetFieldsCounters done [08:32:12]requested_item shift.num is exist - process it [08:32:12]requested_item shift.opened is exist - process it [08:32:12]req_shift_opened [08:32:12]FM_GetShiftState [08:32:12]SAM_PROTO_GetShiftState [08:32:12]wFMCommunicate request_size=4 [08:32:12]MH_SAM_APDU [08:32:12]CAPDU: 80 13 01 00 [08:32:12]Write to MH i2c: E2 08 00 04 43 80 13 01 00 00 00 00 00 C4 [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:12]Read from MH i2c: E2 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 0E 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 0E 00 04 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 51 [08:32:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:32:12]wFMCommunicate OK [08:32:12]SAM_PROTO_GetShiftState done [08:32:12]FM_GetShiftState done [08:32:12]req_shift_opened done [08:32:12]requested_item shift.open_date is exist - process it [08:32:12]req_shift_open_date [08:32:12]req_shift_open_date done [08:32:12]produce_requested_data done [08:32:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70524,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:32:12]process_action_free close_receipt [08:32:12]json_value_free [08:32:12]json_value_free done [08:32:12]process_json_proto returns [08:32:12]Send response to host [08:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70524,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:32:12]free response buf [08:32:12]execute_script done [08:32:12]execute_script returns [08:32:12]free content buf [08:32:12]Sock 7.Close socket [08:32:12]Sock 7.Thread stoped [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:52]accept exits with 9 [08:34:52]New connection [08:34:52]New thread 3066699108 created [08:34:52]Thread 3066555748 joined [08:34:52]Waiting for new connection... [08:34:52] Sock 9.Parse request [08:34:52]Sock 9.Check first char [08:34:52]Sock 9.First char is OK [08:34:52]request: POST /json_proto HTTP/1.0 [08:34:52]Method: POST [08:34:52]URL: /json_proto [08:34:52]Method is POST - this is cgi request [08:34:52]url: /json_proto [08:34:52]query_string will be loaded in cgi processing [08:34:52]execute_cgi json_proto POST (null) [08:34:52]execute_cgi path=json_proto method=POST [08:34:52]POST find Content-Length [08:34:52]Host: 172.17.50.3:8080 [08:34:52]Content-Length: 773 [08:34:52]Content-Type: application/json [08:34:52] [08:34:52]POST finish read [08:34:52]Found Content-Length = 773 [08:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886292", "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" ] } } [08:34:52]execute_script... [08: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)2886292", "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" ] } } [08:34:52]POST & json_proto [08:34:52]process_json_proto [08:34:52]json parsed OK: [08:34:52]protocol is kg_v1.0 [08:34:52]action value=close_receipt [08:34:52]process_action close_receipt [08:34:52]cmd_close_receipt [08:34:52]MH_GetDate [08:34:52]Write to MH i2c: F0 00 00 05 43 37 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: F0 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: F0 09 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: F0 09 00 05 43 00 30 B5 18 67 6B 98 1E 66 2B [08:34:52]GetLastDocTimeStamp 1729672332 [08:34:52]current date 1729672496 [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 06 43 80 13 01 00 00 00 00 00 C6 [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 06 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 53 [08:34:52]RAPDU: 09 00 01 C3 3F 18 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]opened in 1729642435 [08:34:52]opened+sec_in_day 1729728835 [08:34:52]quantity*price = 100011 [08:34:52]sum+1 = 100013 [08:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 41 23.10.2024 08:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70525 ФПД: 222917360271414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70525&fm=222917360271414&tin=02508201610067®Number=0000000000156251&sum=100012 [08:34:53]StoreToDocumentArchive [08:34:53]shift 196 fd 70525 [08:34:53]save to /storage/0196/doc_00070525 [08:34:53]save last doc name /storage/0196/doc_00070525 to /storage/kkm_last_doc_name [08:34:53]save OK [08:34:53]Clear old archive folders... [08:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:34:53]tlvbuf is 00CB7AD0 [08:34:53]SAM_PROTO_ClearQueue [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 09 00 00 [08:34:53]Write to MH i2c: E2 08 00 13 43 80 09 00 00 00 00 00 00 C8 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [08:34:53]RAPDU: 90 00 [08:34:53]wFMCommunicate OK [08:34:53]SAM_PROTO_ClearQueue done [08:34:53]KKMCreateOFDPacket [08:34:53]OFDProtocolAddRootSTLVToBuf [08:34:53]FM_MakeSignedData [08:34:53]FM_MakeSignedData [08:34:53]SAM_PROTO_SignData [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 0D 01 02 [08:34:53]Write to MH i2c: E2 08 00 14 43 80 0D 01 02 00 00 00 00 D0 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [08:34:53]RAPDU: 90 00 [08:34:53]wFMCommunicate OK [08:34:53]wFMCommunicate request_size=255 [08:34:53]MH_SAM_APDU [08:34: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 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 29 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CA BD [08:34:53]Write to MH i2c: E2 02 01 15 43 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 29 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CA BD 00 00 B5 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 15 43 00 90 00 CC [08:34:53]RAPDU: 90 00 [08:34:53]wFMCommunicate OK [08:34:53]wFMCommunicate request_size=9 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 0D 02 02 04 FE 12 C0 36 [08:34:53]Write to MH i2c: E2 0C 00 16 43 80 0D 02 02 04 00 FE 12 C0 36 00 00 E1 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 03 00 16 43 00 90 00 CD [08:34:53]RAPDU: 90 00 [08:34:53]wFMCommunicate OK [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 0D 03 02 [08:34:53]Write to MH i2c: E2 08 00 17 43 80 0D 03 02 00 00 00 00 D5 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 0B 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 0B 00 17 43 00 64 C3 CB B9 7C FB 04 D0 90 00 CC [08:34:53]RAPDU: 64 C3 CB B9 7C FB 04 D0 90 00 [08:34:53]wFMCommunicate OK [08:34:53]SAM_PROTO_SignData done [08:34:53]FM_MakeSignedData done [08:34:53]CreateOFDProtocolMessage [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 11 00 00 [08:34:53]Write to MH i2c: E2 08 00 18 43 80 11 00 00 00 00 00 00 D5 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 18 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [08:34: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:34:53]wFMCommunicate OK [08:34:53]CreateOFDProtocolMessage done [08:34:53]OFDSenderStorePacket 70525 [08:34:53]StoreOFDPacket docnum=70525 [08:34: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 C8 2A 06 01 28 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 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 29 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CA BD FE 12 C0 36 64 C3 CB B9 7C FB 04 D0 [08:34:53]CheckFolder [08:34:53]dirname=/storage/ofd_packets [08:34:53]CheckFolder done [08:34:53]ProducePacketName [08:34:53]name=ofd_packets/00070525 [08:34:53]NVStorageSaveData ofd_packets/00070525 [08:34:53]File name is /storage/ofd_packets/00070525 [08:34:53]Write 300 bytes [08:34:53]NVStorageSaveData done [08:34:53]OFDSenderStorePacket done [08:34:53]KKMCreateOFDPacket done [08:34:53]NVStorageSaveData kkm_last_timestamp [08:34:53]File name is /storage/kkm_last_timestamp [08:34:53]Write 4 bytes [08:34:53]NVStorageSaveData done [08:34:53]ExternCall_PrintAddStr [08:34:53]wPrintStart [08:34:53]Write to MH i2c: 01 00 00 19 43 5C [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 07 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 07 00 19 43 00 00 00 00 00 FF 0F 71 [08:34:53]RasterBufferAndPrint [08:34:53]line Счет N : (1)2886292 [08:34:53]line ИНН: 02508201610067 [08:34:53]line Контрольно-Кассовый Чек [08:34:53]line ПРОДАЖА [08:34:53]line ТРК (МРК, ГНК) : 71 [08:34:53]line Товар: 2711129700 [08:34:53]line ГАЗ-К-3 [08:34:53]line 25.710 * 38.90 [08:34:53]line = 1000.12 [08:34:53]line НДС 12% НСП 1% [08:34:53]line > о реализуемом товаре [08:34:53]line ИТОГО: 1000.12 [08:34:53]line НСП 1% : 8.85 [08:34:53]line НДС 12% : 106.21 [08:34:53]line Наличными: 0.00 [08:34:53]line Безнал.: 1000.12 [08:34:53]line Место: АЗС № 85 "Партнер Нефть" [08:34:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:34:53]line СНО: Общий режим [08:34:53]line Чек 41 23.10.2024 08:34 [08:34:53]line Смена: 196 ФФД: 1.0 [08:34:53]line ЗНМ: 0300000167 [08:34:53]line РНМ: 0000000000156251 [08:34:53]line Версия ККМ: v1.0 [08:34:53]line Платежная система: Mbank [08:34:53]line ФМ: 0000000000963346 [08:34:53]line ФД: 70525 [08:34:53]line ФПД: 222917360271414 [08:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70525&fm=222917360271414&tin=02508201610067®Number=0000000000156251&sum=100012 [08:34:54]OFD Sender: Processing packet 70525 [packets to send 18, broken 17] [08:34:54]ProducePacketName [08:34:54]name=ofd_packets/00070525 [08:34:54]OFD Sender: To server: pG, [08:34:54]CommunicateWithHost lk.salyk.kg:30040 [08:34:54]ConnectInit lk.salyk.kg [08:34:54]written 0, free lines is 4095 [08:34:54]Connected sock=11 [08: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 0E 01 00 00 C8 2A 06 01 28 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 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 29 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CA BD FE 12 C0 36 64 C3 CB B9 7C FB 04 D0 [08:34:54]Write to MH i2c: 01 00 00 42 43 85 [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: 01 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: 01 07 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: 01 07 00 42 43 00 00 00 00 00 10 0D A9 [08:34:54]RasterBufferAndPrint [08:34:54]line [08:34:54]line [08:34:54]line [08:34:54]line [08:34:54]line [08:34:54]written 0, free lines is 3351 [08:34:54]MH_Cut [08:34:54]Write to MH i2c: D1 01 00 49 43 01 5E [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: D1 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: D1 01 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: D1 01 00 49 43 00 5D [08:34:54]Write to MH i2c: 01 00 00 4A 43 8D [08:34: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 A8 69 47 00 44 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 7D 13 01 00 F4 03 04 00 CE 5E 18 67 B6 04 01 00 00 A1 44 2D 08 B3 ED 9C FF [08:34:54]CommunicateWithHost err = 0 [08:34:54]CheckOFDResponse [08:34:54]1017 (14) - 77093643461234 [08:34:54]1041 (16) - 0000000000963346 [08:34:54]1040 (4) - 70525 [08:34:54]1012 (4) - 23.10.2024 02:26 [08:34:54]1206 (1) - 0 [08:34:54]OFD Sender: Remove packet 70525 [08:34:54]ProducePacketName [08:34:54]name=ofd_packets/00070525 [08:34:54]NVStorageDeleteData [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:55]OFD Sender: No OFD packet to send [08:34:55]*** Cut start [08:34:55]*** Partial cut [08:34:55]*** CUTSNS_PIN = 1 [08:34:55]*** CUTSNS_PIN = 0 [08:34:55]*** Brake cut motor [08:34:55]Read from MH i2c: 01 [08:34:55]MH_I2C_Read... [08:34:55]*** Stop cut motor [08:34:55]*** Cut end [08:34:55]Read from MH i2c: 01 07 00 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: 01 07 00 4A 43 00 00 00 00 00 FF 0F A2 [08:34:55]process_action close_receipt done [08:34:55]requested_data is exist [08:34:55]produce_requested_data [08:34:55]requested_item fm.sn is exist - process it [08:34:55]wFMCommunicate request_size=4 [08:34:55]MH_SAM_APDU [08:34:55]CAPDU: 80 11 00 00 [08:34:55]Write to MH i2c: E2 08 00 4B 43 80 11 00 00 00 00 00 00 08 [08:34:55]Write i2c OK [08:34:55]MH_I2C_Read... [08:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:55]Read from MH i2c: E2 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: E2 17 00 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: E2 17 00 4B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [08: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 [08:34:55]wFMCommunicate OK [08:34:55]requested_item fd.num is exist - process it [08:34:55]SAM_PROTO_GetFieldsCounters [08:34:55]wFMCommunicate request_size=4 [08:34:55]MH_SAM_APDU [08:34:55]CAPDU: 80 13 00 00 [08:34:55]Write to MH i2c: E2 08 00 4C 43 80 13 00 00 00 00 00 00 0B [08:34:55]Write i2c OK [08:34:55]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 62 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 62 00 4C 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 7D 13 01 00 0E 04 04 00 C4 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 F6 [08: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 7D 13 01 00 0E 04 04 00 C4 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 [08:34:56]wFMCommunicate OK [08:34:56]SAM_PROTO_GetFieldsCounters done [08:34:56]requested_item shift.num is exist - process it [08:34:56]requested_item shift.opened is exist - process it [08:34:56]req_shift_opened [08:34:56]FM_GetShiftState [08:34:56]SAM_PROTO_GetShiftState [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 13 01 00 [08:34:56]Write to MH i2c: E2 08 00 4D 43 80 13 01 00 00 00 00 00 0D [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0E 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0E 00 4D 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9A [08:34:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:34:56]wFMCommunicate OK [08:34:56]SAM_PROTO_GetShiftState done [08:34:56]FM_GetShiftState done [08:34:56]req_shift_opened done [08:34:56]requested_item shift.open_date is exist - process it [08:34:56]req_shift_open_date [08:34:56]req_shift_open_date done [08:34:56]produce_requested_data done [08:34:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70525,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:34:56]process_action_free close_receipt [08:34:56]json_value_free [08:34:56]json_value_free done [08:34:56]process_json_proto returns [08:34:56]Send response to host [08:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70525,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:34:56]free response buf [08:34:56]execute_script done [08:34:56]execute_script returns [08:34:56]free content buf [08:34:56]Sock 9.Close socket [08:34:56]Sock 9.Thread stoped [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:07]accept exits with 7 [08:35:07]New connection [08:35:07]New thread 3066555748 created [08:35:07]Thread 3066699108 joined [08:35:07]Waiting for new connection... [08:35:07] Sock 7.Parse request [08:35:07]Sock 7.Check first char [08:35:07]Sock 7.First char is OK [08:35:07]request: POST /json_proto HTTP/1.0 [08:35:07]Method: POST [08:35:07]URL: /json_proto [08:35:07]Method is POST - this is cgi request [08:35:07]url: /json_proto [08:35:07]query_string will be loaded in cgi processing [08:35:07]execute_cgi json_proto POST (null) [08:35:07]execute_cgi path=json_proto method=POST [08:35:07]POST find Content-Length [08:35:07]Host: 172.17.50.3:8080 [08:35:07]Content-Length: 683 [08:35:07]Content-Type: application/json [08:35:07] [08:35:07]POST finish read [08:35:07]Found Content-Length = 683 [08:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886293", "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:35:07]execute_script... [08:35: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)2886293", "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:35:07]POST & json_proto [08:35:07]process_json_proto [08:35:07]json parsed OK: [08:35:07]protocol is kg_v1.0 [08:35:07]action value=close_receipt [08:35:07]process_action close_receipt [08:35:07]cmd_close_receipt [08:35:07]MH_GetDate [08:35:07]Write to MH i2c: F0 00 00 4E 43 80 [08:35:07]Write i2c OK [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: F0 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: F0 09 00 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: F0 09 00 4E 43 00 3F B5 18 67 6B 98 1E 66 83 [08:35:07]GetLastDocTimeStamp 1729672496 [08:35:07]current date 1729672511 [08:35:07]FM_GetShiftState [08:35:07]SAM_PROTO_GetShiftState [08:35:07]wFMCommunicate request_size=4 [08:35:07]MH_SAM_APDU [08:35:07]CAPDU: 80 13 01 00 [08:35:07]Write to MH i2c: E2 08 00 4F 43 80 13 01 00 00 00 00 00 0F [08:35:07]Write i2c OK [08:35:07]MH_I2C_Read... [08:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:07]Read from MH i2c: E2 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 0E 00 [08:35:07]MH_I2C_Read... [08:35:07]Read from MH i2c: E2 0E 00 4F 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9C [08:35:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:35:07]wFMCommunicate OK [08:35:07]SAM_PROTO_GetShiftState done [08:35:07]FM_GetShiftState done [08:35:07]opened in 1729642435 [08:35:07]opened+sec_in_day 1729728835 [08:35:07]quantity*price = 100015 [08:35:07]sum+1 = 100017 [08:35: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 СНО: Общий режим Чек 42 23.10.2024 08:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70526 ФПД: 1123387406039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70526&fm=1123387406039&tin=02508201610067®Number=0000000000156251&sum=100000 [08:35:08]StoreToDocumentArchive [08:35:08]shift 196 fd 70526 [08:35:08]save to /storage/0196/doc_00070526 [08:35:08]save last doc name /storage/0196/doc_00070526 to /storage/kkm_last_doc_name [08:35:08]save OK [08:35:08]Clear old archive folders... [08:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:08]tlvbuf is 00CB3260 [08:35:08]SAM_PROTO_ClearQueue [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 09 00 00 [08:35:08]Write to MH i2c: E2 08 00 5C 43 80 09 00 00 00 00 00 00 11 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 5C 43 00 90 00 13 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_ClearQueue done [08:35:08]KKMCreateOFDPacket [08:35:08]OFDProtocolAddRootSTLVToBuf [08:35:08]FM_MakeSignedData [08:35:08]FM_MakeSignedData [08:35:08]SAM_PROTO_SignData [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 01 02 [08:35:08]Write to MH i2c: E2 08 00 5D 43 80 0D 01 02 00 00 00 00 19 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 5D 43 00 90 00 14 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=255 [08:35:08]MH_SAM_APDU [08:35: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 2A 00 00 00 F4 03 04 00 3F B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 01 [08:35:08]Write to MH i2c: E2 02 01 5E 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 3F B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 01 00 00 90 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 5E 43 00 90 00 15 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=10 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 02 02 05 05 8F 1B 76 D7 [08:35:08]Write to MH i2c: E2 0D 00 5F 43 80 0D 02 02 05 00 05 8F 1B 76 D7 00 00 22 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 03 00 5F 43 00 90 00 16 [08:35:08]RAPDU: 90 00 [08:35:08]wFMCommunicate OK [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 0D 03 02 [08:35:08]Write to MH i2c: E2 08 00 60 43 80 0D 03 02 00 00 00 00 1E [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 0B 00 60 43 00 2E 89 6D 31 D1 2A 13 61 90 00 E3 [08:35:08]RAPDU: 2E 89 6D 31 D1 2A 13 61 90 00 [08:35:08]wFMCommunicate OK [08:35:08]SAM_PROTO_SignData done [08:35:08]FM_MakeSignedData done [08:35:08]CreateOFDProtocolMessage [08:35:08]wFMCommunicate request_size=4 [08:35:08]MH_SAM_APDU [08:35:08]CAPDU: 80 11 00 00 [08:35:08]Write to MH i2c: E2 08 00 61 43 80 11 00 00 00 00 00 00 1E [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:08]Read from MH i2c: E2 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: E2 17 00 61 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [08:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:35:08]wFMCommunicate OK [08:35:08]CreateOFDProtocolMessage done [08:35:08]OFDSenderStorePacket 70526 [08:35:08]StoreOFDPacket docnum=70526 [08:35: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 78 4F 07 01 BE 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 F4 03 04 00 3F B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 01 05 8F 1B 76 D7 2E 89 6D 31 D1 2A 13 61 [08:35:08]CheckFolder [08:35:08]dirname=/storage/ofd_packets [08:35:08]CheckFolder done [08:35:08]ProducePacketName [08:35:08]name=ofd_packets/00070526 [08:35:08]NVStorageSaveData ofd_packets/00070526 [08:35:08]File name is /storage/ofd_packets/00070526 [08:35:08]Write 301 bytes [08:35:08]NVStorageSaveData done [08:35:08]OFDSenderStorePacket done [08:35:08]KKMCreateOFDPacket done [08:35:08]NVStorageSaveData kkm_last_timestamp [08:35:08]File name is /storage/kkm_last_timestamp [08:35:08]Write 4 bytes [08:35:08]NVStorageSaveData done [08:35:08]ExternCall_PrintAddStr [08:35:08]wPrintStart [08:35:08]Write to MH i2c: 01 00 00 62 43 A5 [08:35:08]Write i2c OK [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 [08:35:08]MH_I2C_Read... [08:35:08]Read from MH i2c: 01 07 00 62 43 00 00 00 00 00 FF 0F BA [08:35:08]RasterBufferAndPrint [08:35:08]line Счет N : (1)2886293 [08:35:08]line ИНН: 02508201610067 [08:35:08]line Контрольно-Кассовый Чек [08:35:08]line ПРОДАЖА [08:35:08]line ТРК (МРК, ГНК) : 12 [08:35:08]line Товар: 2710124130 [08:35:08]line Аи-92-К-5 [08:35:08]line 14.950 * 66.90 [08:35:08]line = 1000.16 [08:35:08]line НДС 12% НСП 1% [08:35:08]line > о реализуемом товаре [08:35:08]line ОКРУГЛЕНИЕ: -0.16 [08:35:08]line ИТОГО: 1000.00 [08:35:08]line Внесено: 1000.00 [08:35:08]line СДАЧА: 0.00 [08:35:08]line НСП 1% : 8.85 [08:35:08]line НДС 12% : 106.21 [08:35:08]line Наличными: 1000.00 [08:35:08]line Безнал.: 0.00 [08:35:08]line Место: АЗС № 85 "Партнер Нефть" [08:35:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:35:08]line СНО: Общий режим [08:35:08]line Чек 42 23.10.2024 08:35 [08:35:08]line Смена: 196 ФФД: 1.0 [08:35:08]line ЗНМ: 0300000167 [08:35:08]line РНМ: 0000000000156251 [08:35:08]line Версия ККМ: v1.0 [08:35:08]line ФМ: 0000000000963346 [08:35:08]line ФД: 70526 [08:35:08]line ФПД: 1123387406039 [08:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70526&fm=1123387406039&tin=02508201610067®Number=0000000000156251&sum=100000 [08:35:09]OFD Sender: Processing packet 70526 [packets to send 18, broken 17] [08:35:09]ProducePacketName [08:35:09]name=ofd_packets/00070526 [08:35:09]OFD Sender: To server: pG, [08:35:09]CommunicateWithHost lk.salyk.kg:30040 [08:35:09]ConnectInit lk.salyk.kg [08:35:09]written 0, free lines is 4095 [08:35:09]Connected sock=10 [08:35: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 78 4F 07 01 BE 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 F4 03 04 00 3F B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 01 05 8F 1B 76 D7 2E 89 6D 31 D1 2A 13 61 [08:35: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 E0 71 47 00 1D F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 DD 5E 18 67 B6 04 01 00 00 89 A9 E2 FA B2 B1 CB 59 [08:35:09]CommunicateWithHost err = 0 [08:35:09]CheckOFDResponse [08:35:09]1017 (14) - 77093643461234 [08:35:09]1041 (16) - 0000000000963346 [08:35:09]1040 (4) - 70526 [08:35:09]1012 (4) - 23.10.2024 02:26 [08:35:09]1206 (1) - 0 [08:35:09]OFD Sender: Remove packet 70526 [08:35:09]ProducePacketName [08:35:09]name=ofd_packets/00070526 [08:35:09]NVStorageDeleteData [08:35:09]Write to MH i2c: 01 00 00 8D 43 D0 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: 01 07 00 8D 43 00 00 00 00 00 E7 0C CA [08:35:09]RasterBufferAndPrint [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]line [08:35:09]written 0, free lines is 3312 [08:35:09]MH_Cut [08:35:09]Write to MH i2c: D1 01 00 94 43 01 A9 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 [08:35:09]MH_I2C_Read... [08:35:09]Read from MH i2c: D1 01 00 94 43 00 A8 [08:35:09]Write to MH i2c: 01 00 00 95 43 D8 [08:35:09]Write i2c OK [08:35:09]MH_I2C_Read... [08:35:10]OFD Sender: No OFD packet to send [08:35:10]*** Cut start [08:35:10]*** Partial cut [08:35:10]*** CUTSNS_PIN = 1 [08:35:10]*** CUTSNS_PIN = 0 [08:35:10]*** Brake cut motor [08:35:10]Read from MH i2c: 01 [08:35:10]MH_I2C_Read... [08:35:10]*** Stop cut motor [08:35:11]*** Cut end [08:35:11]Read from MH i2c: 01 07 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 FF 0F ED [08:35:11]process_action close_receipt done [08:35:11]requested_data is exist [08:35:11]produce_requested_data [08:35:11]requested_item fm.sn is exist - process it [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 11 00 00 [08:35:11]Write to MH i2c: E2 08 00 96 43 80 11 00 00 00 00 00 00 53 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 17 00 96 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [08:35: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:35:11]wFMCommunicate OK [08:35:11]requested_item fd.num is exist - process it [08:35:11]SAM_PROTO_GetFieldsCounters [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 00 00 [08:35:11]Write to MH i2c: E2 08 00 97 43 80 13 00 00 00 00 00 00 56 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 62 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 62 00 97 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 7E 13 01 00 0E 04 04 00 C4 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 45 [08:35: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 7E 13 01 00 0E 04 04 00 C4 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 [08:35:11]wFMCommunicate OK [08:35:11]SAM_PROTO_GetFieldsCounters done [08:35:11]requested_item shift.num is exist - process it [08:35:11]requested_item shift.opened is exist - process it [08:35:11]req_shift_opened [08:35:11]FM_GetShiftState [08:35:11]SAM_PROTO_GetShiftState [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 01 00 [08:35:11]Write to MH i2c: E2 08 00 98 43 80 13 01 00 00 00 00 00 58 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 98 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E5 [08:35:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:35:11]wFMCommunicate OK [08:35:11]SAM_PROTO_GetShiftState done [08:35:11]FM_GetShiftState done [08:35:11]req_shift_opened done [08:35:11]requested_item shift.open_date is exist - process it [08:35:11]req_shift_open_date [08:35:11]req_shift_open_date done [08:35:11]produce_requested_data done [08:35:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70526,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:35:11]process_action_free close_receipt [08:35:11]json_value_free [08:35:11]json_value_free done [08:35:11]process_json_proto returns [08:35:11]Send response to host [08:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70526,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:35:11]free response buf [08:35:11]execute_script done [08:35:11]execute_script returns [08:35:11]free content buf [08:35:11]Sock 7.Close socket [08:35:11]Sock 7.Thread stoped [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:54]accept exits with 9 [08:37:54]New connection [08:37:54]New thread 3066699108 created [08:37:54]Thread 3066555748 joined [08:37:54]Waiting for new connection... [08:37:54] Sock 9.Parse request [08:37:54]Sock 9.Check first char [08:37:54]Sock 9.First char is OK [08:37:54]request: POST /json_proto HTTP/1.0 [08:37:54]Method: POST [08:37:54]URL: /json_proto [08:37:54]Method is POST - this is cgi request [08:37:54]url: /json_proto [08:37:54]query_string will be loaded in cgi processing [08:37:54]execute_cgi json_proto POST (null) [08:37:54]execute_cgi path=json_proto method=POST [08:37:54]POST find Content-Length [08:37:54]Host: 172.17.50.3:8080 [08:37:54]Content-Length: 678 [08:37:54]Content-Type: application/json [08:37:54] [08:37:54]POST finish read [08:37:54]Found Content-Length = 678 [08:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886294", "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:37:54]execute_script... [08:37:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886294", "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:37:54]POST & json_proto [08:37:54]process_json_proto [08:37:54]json parsed OK: [08:37:54]protocol is kg_v1.0 [08:37:54]action value=close_receipt [08:37:54]process_action close_receipt [08:37:54]cmd_close_receipt [08:37:54]MH_GetDate [08:37:54]Write to MH i2c: F0 00 00 99 43 CB [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: F0 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: F0 09 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: F0 09 00 99 43 00 E6 B5 18 67 6B 98 1E 66 75 [08:37:54]GetLastDocTimeStamp 1729672511 [08:37:54]current date 1729672678 [08:37:54]FM_GetShiftState [08:37:54]SAM_PROTO_GetShiftState [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 13 01 00 [08:37:54]Write to MH i2c: E2 08 00 9A 43 80 13 01 00 00 00 00 00 5A [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0E 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0E 00 9A 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E7 [08:37:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:37:54]wFMCommunicate OK [08:37:54]SAM_PROTO_GetShiftState done [08:37:54]FM_GetShiftState done [08:37:54]opened in 1729642435 [08:37:54]opened+sec_in_day 1729728835 [08:37:54]quantity*price = 50041 [08:37:54]sum+1 = 50042 [08:37:54]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 СНО: Общий режим Чек 43 23.10.2024 08:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70527 ФПД: 268925139815353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70527&fm=268925139815353&tin=02508201610067®Number=0000000000156251&sum=50000 [08:37:55]StoreToDocumentArchive [08:37:55]shift 196 fd 70527 [08:37:55]save to /storage/0196/doc_00070527 [08:37:55]save last doc name /storage/0196/doc_00070527 to /storage/kkm_last_doc_name [08:37:55]save OK [08:37:55]Clear old archive folders... [08:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:55]tlvbuf is 00ED2270 [08:37:55]SAM_PROTO_ClearQueue [08:37:55]wFMCommunicate request_size=4 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 09 00 00 [08:37:55]Write to MH i2c: E2 08 00 A7 43 80 09 00 00 00 00 00 00 5C [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:55]Read from MH i2c: E2 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 A7 43 00 90 00 5E [08:37:55]RAPDU: 90 00 [08:37:55]wFMCommunicate OK [08:37:55]SAM_PROTO_ClearQueue done [08:37:55]KKMCreateOFDPacket [08:37:55]OFDProtocolAddRootSTLVToBuf [08:37:55]FM_MakeSignedData [08:37:55]FM_MakeSignedData [08:37:55]SAM_PROTO_SignData [08:37:55]wFMCommunicate request_size=4 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 0D 01 02 [08:37:55]Write to MH i2c: E2 08 00 A8 43 80 0D 01 02 00 00 00 00 64 [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:55]Read from MH i2c: E2 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 A8 43 00 90 00 5F [08:37:55]RAPDU: 90 00 [08:37:55]wFMCommunicate OK [08:37:55]wFMCommunicate request_size=255 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2B 00 00 00 F4 03 04 00 E6 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F4 [08:37:55]Write to MH i2c: E2 02 01 A9 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 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 2B 00 00 00 F4 03 04 00 E6 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F4 00 00 7D [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:55]Read from MH i2c: E2 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [08:37:55]RAPDU: 90 00 [08:37:55]wFMCommunicate OK [08:37:55]wFMCommunicate request_size=10 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 0D 02 02 05 96 03 6E 0B B9 [08:37:55]Write to MH i2c: E2 0D 00 AA 43 80 0D 02 02 05 00 96 03 6E 0B B9 00 00 3C [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:55]Read from MH i2c: E2 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [08:37:55]RAPDU: 90 00 [08:37:55]wFMCommunicate OK [08:37:55]wFMCommunicate request_size=4 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 0D 03 02 [08:37:55]Write to MH i2c: E2 08 00 AB 43 80 0D 03 02 00 00 00 00 69 [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:55]Read from MH i2c: E2 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 0B 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: E2 0B 00 AB 43 00 BF 37 B4 5F 75 02 39 62 90 00 85 [08:37:55]RAPDU: BF 37 B4 5F 75 02 39 62 90 00 [08:37:55]wFMCommunicate OK [08:37:55]SAM_PROTO_SignData done [08:37:55]FM_MakeSignedData done [08:37:55]CreateOFDProtocolMessage [08:37:55]wFMCommunicate request_size=4 [08:37:55]MH_SAM_APDU [08:37:55]CAPDU: 80 11 00 00 [08:37:55]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:56]Read from MH i2c: E2 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 17 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [08:37: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:37:56]wFMCommunicate OK [08:37:56]CreateOFDProtocolMessage done [08:37:56]OFDSenderStorePacket 70527 [08:37:56]StoreOFDPacket docnum=70527 [08:37: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 13 1B 07 01 B4 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 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 2B 00 00 00 F4 03 04 00 E6 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F4 96 03 6E 0B B9 BF 37 B4 5F 75 02 39 62 [08:37:56]CheckFolder [08:37:56]dirname=/storage/ofd_packets [08:37:56]CheckFolder done [08:37:56]ProducePacketName [08:37:56]name=ofd_packets/00070527 [08:37:56]NVStorageSaveData ofd_packets/00070527 [08:37:56]File name is /storage/ofd_packets/00070527 [08:37:56]Write 301 bytes [08:37:56]NVStorageSaveData done [08:37:56]OFDSenderStorePacket done [08:37:56]KKMCreateOFDPacket done [08:37:56]NVStorageSaveData kkm_last_timestamp [08:37:56]File name is /storage/kkm_last_timestamp [08:37:56]Write 4 bytes [08:37:56]NVStorageSaveData done [08:37:56]ExternCall_PrintAddStr [08:37:56]wPrintStart [08:37:56]Write to MH i2c: 01 00 00 AD 43 F0 [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 AD 43 00 00 00 00 00 FF 0F 05 [08:37:56]RasterBufferAndPrint [08:37:56]line Счет N : (1)2886294 [08:37:56]line ИНН: 02508201610067 [08:37:56]line Контрольно-Кассовый Чек [08:37:56]line ПРОДАЖА [08:37:56]line ТРК (МРК, ГНК) : 12 [08:37:56]line Товар: 2710124130 [08:37:56]line Аи-92-К-5 [08:37:56]line 7.480 * 66.90 [08:37:56]line = 500.41 [08:37:56]line НДС 12% НСП 1% [08:37:56]line > о реализуемом товаре [08:37:56]line ОКРУГЛЕНИЕ: -0.41 [08:37:56]line ИТОГО: 500.00 [08:37:56]line Внесено: 500.00 [08:37:56]line СДАЧА: 0.00 [08:37:56]line НСП 1% : 4.43 [08:37:56]line НДС 12% : 53.14 [08:37:56]line Наличными: 500.00 [08:37:56]line Безнал.: 0.00 [08:37:56]line Место: АЗС № 85 "Партнер Нефть" [08:37:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:37:56]line СНО: Общий режим [08:37:56]line Чек 43 23.10.2024 08:37 [08:37:56]line Смена: 196 ФФД: 1.0 [08:37:56]line ЗНМ: 0300000167 [08:37:56]line РНМ: 0000000000156251 [08:37:56]line Версия ККМ: v1.0 [08:37:56]line ФМ: 0000000000963346 [08:37:56]line ФД: 70527 [08:37:56]line ФПД: 268925139815353 [08:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70527&fm=268925139815353&tin=02508201610067®Number=0000000000156251&sum=50000 [08:37:56]OFD Sender: Processing packet 70527 [packets to send 18, broken 17] [08:37:56]ProducePacketName [08:37:56]name=ofd_packets/00070527 [08:37:56]OFD Sender: To server: pG, [08:37:56]CommunicateWithHost lk.salyk.kg:30040 [08:37:56]ConnectInit lk.salyk.kg [08:37:56]written 0, free lines is 4095 [08:37:56]Connected sock=10 [08:37: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 13 1B 07 01 B4 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 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 2B 00 00 00 F4 03 04 00 E6 B5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F4 96 03 6E 0B B9 BF 37 B4 5F 75 02 39 62 [08:37: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 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 7F 13 01 00 F4 03 04 00 84 5F 18 67 B6 04 01 00 00 4C 08 5A 0C 5A 99 68 DD [08:37:56]CommunicateWithHost err = 0 [08:37:56]CheckOFDResponse [08:37:56]1017 (14) - 77093643461234 [08:37:56]1041 (16) - 0000000000963346 [08:37:56]1040 (4) - 70527 [08:37:56]1012 (4) - 23.10.2024 02:29 [08:37:56]1206 (1) - 0 [08:37:56]OFD Sender: Remove packet 70527 [08:37:56]ProducePacketName [08:37:56]name=ofd_packets/00070527 [08:37:56]NVStorageDeleteData [08:37:56]Write to MH i2c: 01 00 00 D8 43 1B [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 D8 43 00 00 00 00 00 E4 0C 12 [08:37:56]RasterBufferAndPrint [08:37:56]line [08:37:56]line [08:37:56]line [08:37:56]line [08:37:56]line [08:37:56]written 0, free lines is 3309 [08:37:56]MH_Cut [08:37:56]Write to MH i2c: D1 01 00 DF 43 01 F4 [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: D1 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: D1 01 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: D1 01 00 DF 43 00 F3 [08:37:56]Write to MH i2c: 01 00 00 E0 43 23 [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:57]OFD Sender: No OFD packet to send [08:37:57]*** Cut start [08:37:57]*** Partial cut [08:37:57]*** CUTSNS_PIN = 1 [08:37:57]*** CUTSNS_PIN = 0 [08:37:57]*** Brake cut motor [08:37:58]Read from MH i2c: 01 [08:37:58]MH_I2C_Read... [08:37:58]*** Stop cut motor [08:37:58]*** Cut end [08:37:58]Read from MH i2c: 01 07 00 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 FF 0F 38 [08:37:58]process_action close_receipt done [08:37:58]requested_data is exist [08:37:58]produce_requested_data [08:37:58]requested_item fm.sn is exist - process it [08:37:58]wFMCommunicate request_size=4 [08:37:58]MH_SAM_APDU [08:37:58]CAPDU: 80 11 00 00 [08:37:58]Write to MH i2c: E2 08 00 E1 43 80 11 00 00 00 00 00 00 9E [08:37:58]Write i2c OK [08:37:58]MH_I2C_Read... [08:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:58]Read from MH i2c: E2 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 17 00 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 17 00 E1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [08:37: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:37:58]wFMCommunicate OK [08:37:58]requested_item fd.num is exist - process it [08:37:58]SAM_PROTO_GetFieldsCounters [08:37:58]wFMCommunicate request_size=4 [08:37:58]MH_SAM_APDU [08:37:58]CAPDU: 80 13 00 00 [08:37:58]Write to MH i2c: E2 08 00 E2 43 80 13 00 00 00 00 00 00 A1 [08:37:58]Write i2c OK [08:37:58]MH_I2C_Read... [08:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:58]Read from MH i2c: E2 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 62 00 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 62 00 E2 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 7F 13 01 00 0E 04 04 00 C4 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 94 [08:37: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 7F 13 01 00 0E 04 04 00 C4 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 [08:37:58]wFMCommunicate OK [08:37:58]SAM_PROTO_GetFieldsCounters done [08:37:58]requested_item shift.num is exist - process it [08:37:58]requested_item shift.opened is exist - process it [08:37:58]req_shift_opened [08:37:58]FM_GetShiftState [08:37:58]SAM_PROTO_GetShiftState [08:37:58]wFMCommunicate request_size=4 [08:37:58]MH_SAM_APDU [08:37:58]CAPDU: 80 13 01 00 [08:37:58]Write to MH i2c: E2 08 00 E3 43 80 13 01 00 00 00 00 00 A3 [08:37:58]Write i2c OK [08:37:58]MH_I2C_Read... [08:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:58]Read from MH i2c: E2 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 0E 00 [08:37:58]MH_I2C_Read... [08:37:58]Read from MH i2c: E2 0E 00 E3 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 30 [08:37:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:37:58]wFMCommunicate OK [08:37:58]SAM_PROTO_GetShiftState done [08:37:58]FM_GetShiftState done [08:37:58]req_shift_opened done [08:37:58]requested_item shift.open_date is exist - process it [08:37:58]req_shift_open_date [08:37:58]req_shift_open_date done [08:37:58]produce_requested_data done [08:37:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70527,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:37:58]process_action_free close_receipt [08:37:58]json_value_free [08:37:58]json_value_free done [08:37:58]process_json_proto returns [08:37:58]Send response to host [08:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70527,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:37:58]free response buf [08:37:58]execute_script done [08:37:58]execute_script returns [08:37:58]free content buf [08:37:58]Sock 9.Close socket [08:37:58]Sock 9.Thread stoped [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:20]accept exits with 7 [08:39:20]New connection [08:39:20]New thread 3066555748 created [08:39:20]Thread 3066699108 joined [08:39:20]Waiting for new connection... [08:39:20] Sock 7.Parse request [08:39:20]Sock 7.Check first char [08:39:20]Sock 7.First char is OK [08:39:20]request: POST /json_proto HTTP/1.0 [08:39:20]Method: POST [08:39:20]URL: /json_proto [08:39:20]Method is POST - this is cgi request [08:39:20]url: /json_proto [08:39:20]query_string will be loaded in cgi processing [08:39:20]execute_cgi json_proto POST (null) [08:39:20]execute_cgi path=json_proto method=POST [08:39:20]POST find Content-Length [08:39:20]Host: 172.17.50.3:8080 [08:39:20]Content-Length: 767 [08:39:20]Content-Type: application/json [08:39:20] [08:39:20]POST finish read [08:39:20]Found Content-Length = 767 [08:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886295", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:20]execute_script... [08:39: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)2886295", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:20]POST & json_proto [08:39:20]process_json_proto [08:39:20]json parsed OK: [08:39:20]protocol is kg_v1.0 [08:39:20]action value=close_receipt [08:39:20]process_action close_receipt [08:39:20]cmd_close_receipt [08:39:20]MH_GetDate [08:39:20]Write to MH i2c: F0 00 00 E4 43 16 [08:39:20]Write i2c OK [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: F0 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: F0 09 00 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: F0 09 00 E4 43 00 3B B6 18 67 6B 98 1E 66 16 [08:39:20]GetLastDocTimeStamp 1729672678 [08:39:20]current date 1729672763 [08:39:20]FM_GetShiftState [08:39:20]SAM_PROTO_GetShiftState [08:39:20]wFMCommunicate request_size=4 [08:39:20]MH_SAM_APDU [08:39:20]CAPDU: 80 13 01 00 [08:39:20]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [08:39:20]Write i2c OK [08:39:20]MH_I2C_Read... [08:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:20]Read from MH i2c: E2 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: E2 0E 00 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 32 [08:39:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:39:20]wFMCommunicate OK [08:39:20]SAM_PROTO_GetShiftState done [08:39:20]FM_GetShiftState done [08:39:20]opened in 1729642435 [08:39:20]opened+sec_in_day 1729728835 [08:39:20]quantity*price = 30038 [08:39:20]sum+1 = 30039 [08:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 44 23.10.2024 08:39 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70528 ФПД: 263343611862459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70528&fm=263343611862459&tin=02508201610067®Number=0000000000156251&sum=30038 [08:39:21]StoreToDocumentArchive [08:39:21]shift 196 fd 70528 [08:39:21]save to /storage/0196/doc_00070528 [08:39:21]save last doc name /storage/0196/doc_00070528 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 B6D6A3F0 [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 F2 43 80 09 00 00 00 00 00 00 A7 [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 F2 43 00 90 00 A9 [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 F3 43 80 0D 01 02 00 00 00 00 AF [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 F3 43 00 90 00 AA [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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3C B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF [08:39:21]Write to MH i2c: E2 02 01 F4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3C B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF 00 00 5C [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 F4 43 00 90 00 AB [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 82 76 70 5D BB [08:39:21]Write to MH i2c: E2 0D 00 F5 43 80 0D 02 02 05 00 82 76 70 5D BB 00 00 3C [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 F5 43 00 90 00 AC [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 F6 43 80 0D 03 02 00 00 00 00 B4 [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 F6 43 00 B1 47 CD 20 4E 99 14 EF 90 00 84 [08:39:21]RAPDU: B1 47 CD 20 4E 99 14 EF 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 F7 43 80 11 00 00 00 00 00 00 B4 [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 F7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [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 70528 [08:39:21]StoreOFDPacket docnum=70528 [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 DC 96 07 01 61 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3C B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF 82 76 70 5D BB B1 47 CD 20 4E 99 14 EF [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/00070528 [08:39:21]NVStorageSaveData ofd_packets/00070528 [08:39:21]File name is /storage/ofd_packets/00070528 [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 F8 43 3B [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 F8 43 00 00 00 00 00 FF 0F 50 [08:39:21]RasterBufferAndPrint [08:39:21]line Счет N : (1)2886295 [08:39:21]line ИНН: 02508201610067 [08:39:21]line Контрольно-Кассовый Чек [08:39:21]line ПРОДАЖА [08:39:21]line ТРК (МРК, ГНК) : 42 [08:39:21]line Товар: 2710124130 [08:39:21]line Аи-92-К-5 [08:39:21]line 4.490 * 66.90 [08:39:21]line = 300.38 [08:39:21]line НДС 12% НСП 1% [08:39:21]line > о реализуемом товаре [08:39:21]line ИТОГО: 300.38 [08:39:21]line НСП 1% : 2.66 [08:39:21]line НДС 12% : 31.90 [08:39:21]line Наличными: 0.00 [08:39:21]line Безнал.: 300.38 [08:39:21]line Место: АЗС № 85 "Партнер Нефть" [08:39:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:39:21]line СНО: Общий режим [08:39:21]line Чек 44 23.10.2024 08:39 [08:39:21]line Смена: 196 ФФД: 1.0 [08:39:21]line ЗНМ: 0300000167 [08:39:21]line РНМ: 0000000000156251 [08:39:21]line Версия ККМ: v1.0 [08:39:21]line Платежная система: Mbank [08:39:21]line ФМ: 0000000000963346 [08:39:21]line ФД: 70528 [08:39:21]line ФПД: 263343611862459 [08:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70528&fm=263343611862459&tin=02508201610067®Number=0000000000156251&sum=30038 [08:39:22]OFD Sender: Processing packet 70528 [packets to send 18, broken 17] [08:39:22]ProducePacketName [08:39:22]name=ofd_packets/00070528 [08:39:22]OFD Sender: To server: pG, [08:39:22]CommunicateWithHost lk.salyk.kg:30040 [08:39:22]ConnectInit lk.salyk.kg [08:39:22]written 0, free lines is 4095 [08:39:22]Connected sock=10 [08:39: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 DC 96 07 01 61 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3C B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF 82 76 70 5D BB B1 47 CD 20 4E 99 14 EF [08:39: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 6A DA 47 00 63 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 80 13 01 00 F4 03 04 00 DA 5F 18 67 B6 04 01 00 00 5A 45 FD 68 60 E1 15 BF [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) - 70528 [08:39:22]1012 (4) - 23.10.2024 02:30 [08:39:22]1206 (1) - 0 [08:39:22]OFD Sender: Remove packet 70528 [08:39:22]ProducePacketName [08:39:22]name=ofd_packets/00070528 [08:39:22]NVStorageDeleteData [08:39:22]Write to MH i2c: 01 00 00 21 44 65 [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 21 44 00 00 00 00 00 0F 0D 88 [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 3349 [08:39:22]MH_Cut [08:39:22]Write to MH i2c: D1 01 00 28 44 01 3E [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 28 44 00 3D [08:39:22]Write to MH i2c: 01 00 00 29 44 6D [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]OFD Sender: No OFD packet to send [08:39:23]*** Cut start [08:39:23]*** Partial cut [08:39:23]*** CUTSNS_PIN = 1 [08:39:23]*** 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 29 44 00 00 00 00 00 FF 0F 82 [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 2A 44 80 11 00 00 00 00 00 00 E8 [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 2A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [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 2B 44 80 13 00 00 00 00 00 00 EB [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:24]Read from MH i2c: E2 62 00 2B 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 80 13 01 00 0E 04 04 00 C4 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 E2 [08:39: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 80 13 01 00 0E 04 04 00 C4 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 [08:39:24]wFMCommunicate OK [08:39:24]SAM_PROTO_GetFieldsCounters done [08:39:24]requested_item shift.num is exist - process it [08:39:24]requested_item shift.opened is exist - process it [08:39:24]req_shift_opened [08:39:24]FM_GetShiftState [08:39:24]SAM_PROTO_GetShiftState [08:39:24]wFMCommunicate request_size=4 [08:39:24]MH_SAM_APDU [08:39:24]CAPDU: 80 13 01 00 [08:39:24]Write to MH i2c: E2 08 00 2C 44 80 13 01 00 00 00 00 00 ED [08:39:24]Write i2c OK [08:39:24]MH_I2C_Read... [08:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:24]Read from MH i2c: E2 [08:39:24]MH_I2C_Read... [08:39:24]Read from MH i2c: E2 0E 00 [08:39:24]MH_I2C_Read... [08:39:24]Read from MH i2c: E2 0E 00 2C 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [08:39:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:39:24]wFMCommunicate OK [08:39:24]SAM_PROTO_GetShiftState done [08:39:24]FM_GetShiftState done [08:39:24]req_shift_opened done [08:39:24]requested_item shift.open_date is exist - process it [08:39:24]req_shift_open_date [08:39:24]req_shift_open_date done [08:39:24]produce_requested_data done [08:39:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70528,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:39:24]process_action_free close_receipt [08:39:24]json_value_free [08:39:24]json_value_free done [08:39:24]process_json_proto returns [08:39:24]Send response to host [08:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70528,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:39:24]free response buf [08:39:24]execute_script done [08:39:24]execute_script returns [08:39:24]free content buf [08:39:24]Sock 7.Close socket [08:39:24]Sock 7.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:45]accept exits with 9 [08:40:45]New connection [08:40:45]New thread 3066699108 created [08:40:45]Thread 3066555748 joined [08:40:45]Waiting for new connection... [08:40:45] Sock 9.Parse request [08:40:45]Sock 9.Check first char [08:40:45]Sock 9.First char is OK [08:40:45]request: POST /json_proto HTTP/1.0 [08:40:45]Method: POST [08:40:45]URL: /json_proto [08:40:45]Method is POST - this is cgi request [08:40:45]url: /json_proto [08:40:45]query_string will be loaded in cgi processing [08:40:45]execute_cgi json_proto POST (null) [08:40:45]execute_cgi path=json_proto method=POST [08:40:45]POST find Content-Length [08:40:45]Host: 172.17.50.3:8080 [08:40:45]Content-Length: 770 [08:40:45]Content-Type: application/json [08:40:45] [08:40:45]POST finish read [08:40:45]Found Content-Length = 770 [08:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886296", "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 }]} ], "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" ] } } [08:40:45]execute_script... [08:40: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)2886296", "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 }]} ], "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" ] } } [08:40:45]POST & json_proto [08:40:45]process_json_proto [08:40:45]json parsed OK: [08:40:45]protocol is kg_v1.0 [08:40:45]action value=close_receipt [08:40:45]process_action close_receipt [08:40:45]cmd_close_receipt [08:40:45]MH_GetDate [08:40:45]Write to MH i2c: F0 00 00 2D 44 60 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 09 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 09 00 2D 44 00 91 B6 18 67 6B 98 1E 66 B6 [08:40:45]GetLastDocTimeStamp 1729672764 [08:40:45]current date 1729672849 [08:40:45]FM_GetShiftState [08:40:45]SAM_PROTO_GetShiftState [08:40:45]wFMCommunicate request_size=4 [08:40:45]MH_SAM_APDU [08:40:45]CAPDU: 80 13 01 00 [08:40:45]Write to MH i2c: E2 08 00 2E 44 80 13 01 00 00 00 00 00 EF [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:45]Read from MH i2c: E2 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 0E 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 0E 00 2E 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7C [08:40:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:40:45]wFMCommunicate OK [08:40:45]SAM_PROTO_GetShiftState done [08:40:45]FM_GetShiftState done [08:40:45]opened in 1729642435 [08:40:45]opened+sec_in_day 1729728835 [08:40:45]quantity*price = 100021 [08:40:45]sum+1 = 100023 [08:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 45 23.10.2024 08:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70529 ФПД: 207749940471157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70529&fm=207749940471157&tin=02508201610067®Number=0000000000156251&sum=100022 [08:40:46]StoreToDocumentArchive [08:40:46]shift 196 fd 70529 [08:40:46]save to /storage/0196/doc_00070529 [08:40:46]save last doc name /storage/0196/doc_00070529 to /storage/kkm_last_doc_name [08:40:46]save OK [08:40:46]Clear old archive folders... [08:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:46]tlvbuf is 00B45170 [08:40:46]SAM_PROTO_ClearQueue [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 09 00 00 [08:40:46]Write to MH i2c: E2 08 00 3B 44 80 09 00 00 00 00 00 00 F1 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 03 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 03 00 3B 44 00 90 00 F3 [08:40:46]RAPDU: 90 00 [08:40:46]wFMCommunicate OK [08:40:46]SAM_PROTO_ClearQueue done [08:40:46]KKMCreateOFDPacket [08:40:46]OFDProtocolAddRootSTLVToBuf [08:40:46]FM_MakeSignedData [08:40:46]FM_MakeSignedData [08:40:46]SAM_PROTO_SignData [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 0D 01 02 [08:40:46]Write to MH i2c: E2 08 00 3C 44 80 0D 01 02 00 00 00 00 F9 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 03 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 03 00 3C 44 00 90 00 F4 [08:40:46]RAPDU: 90 00 [08:40:46]wFMCommunicate OK [08:40:46]wFMCommunicate request_size=255 [08:40:46]MH_SAM_APDU [08:40: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 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 2D 00 00 00 F4 03 04 00 91 B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BC [08:40:46]Write to MH i2c: E2 02 01 3D 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 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 2D 00 00 00 F4 03 04 00 91 B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BC 00 00 D3 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 3D 44 00 90 00 F5 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=10 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 02 02 05 F2 8D 67 65 75 [08:40:47]Write to MH i2c: E2 0D 00 3E 44 80 0D 02 02 05 00 F2 8D 67 65 75 00 00 C6 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 3E 44 00 90 00 F6 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 03 02 [08:40:47]Write to MH i2c: E2 08 00 3F 44 80 0D 03 02 00 00 00 00 FE [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 3F 44 00 E3 0C FE B5 62 6D 46 7D 90 00 33 [08:40:47]RAPDU: E3 0C FE B5 62 6D 46 7D 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_SignData done [08:40:47]FM_MakeSignedData done [08:40:47]CreateOFDProtocolMessage [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 11 00 00 [08:40:47]Write to MH i2c: E2 08 00 40 44 80 11 00 00 00 00 00 00 FE [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 40 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [08:40: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:40:47]wFMCommunicate OK [08:40:47]CreateOFDProtocolMessage done [08:40:47]OFDSenderStorePacket 70529 [08:40:47]StoreOFDPacket docnum=70529 [08:40: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 92 5F 07 01 C7 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 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 2D 00 00 00 F4 03 04 00 91 B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BC F2 8D 67 65 75 E3 0C FE B5 62 6D 46 7D [08:40:47]CheckFolder [08:40:47]dirname=/storage/ofd_packets [08:40:47]CheckFolder done [08:40:47]ProducePacketName [08:40:47]name=ofd_packets/00070529 [08:40:47]NVStorageSaveData ofd_packets/00070529 [08:40:47]File name is /storage/ofd_packets/00070529 [08:40:47]Write 301 bytes [08:40:47]NVStorageSaveData done [08:40:47]OFDSenderStorePacket done [08:40:47]KKMCreateOFDPacket done [08:40:47]NVStorageSaveData kkm_last_timestamp [08:40:47]File name is /storage/kkm_last_timestamp [08:40:47]Write 4 bytes [08:40:47]NVStorageSaveData done [08:40:47]ExternCall_PrintAddStr [08:40:47]wPrintStart [08:40:47]Write to MH i2c: 01 00 00 41 44 85 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 41 44 00 00 00 00 00 FF 0F 9A [08:40:47]RasterBufferAndPrint [08:40:47]line Счет N : (1)2886296 [08:40:47]line ИНН: 02508201610067 [08:40:47]line Контрольно-Кассовый Чек [08:40:47]line ПРОДАЖА [08:40:47]line ТРК (МРК, ГНК) : 33 [08:40:47]line Товар: 2710124500 [08:40:47]line Аи-95-К-5 [08:40:47]line 13.480 * 74.20 [08:40:47]line = 1000.22 [08:40:47]line НДС 12% НСП 1% [08:40:47]line > о реализуемом товаре [08:40:47]line ИТОГО: 1000.22 [08:40:47]line НСП 1% : 8.85 [08:40:47]line НДС 12% : 106.22 [08:40:47]line Наличными: 0.00 [08:40:47]line Безнал.: 1000.22 [08:40:47]line Место: АЗС № 85 "Партнер Нефть" [08:40:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:40:47]line СНО: Общий режим [08:40:47]line Чек 45 23.10.2024 08:40 [08:40:47]line Смена: 196 ФФД: 1.0 [08:40:47]line ЗНМ: 0300000167 [08:40:47]line РНМ: 0000000000156251 [08:40:47]line Версия ККМ: v1.0 [08:40:47]line Платежная система: Mbank [08:40:47]line ФМ: 0000000000963346 [08:40:47]line ФД: 70529 [08:40:47]line ФПД: 207749940471157 [08:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70529&fm=207749940471157&tin=02508201610067®Number=0000000000156251&sum=100022 [08:40:47]OFD Sender: Processing packet 70529 [packets to send 18, broken 17] [08:40:47]ProducePacketName [08:40:47]name=ofd_packets/00070529 [08:40:47]OFD Sender: To server: pG, [08:40:47]CommunicateWithHost lk.salyk.kg:30040 [08:40:47]ConnectInit lk.salyk.kg [08:40:47]written 0, free lines is 4095 [08:40:47]Connected sock=10 [08:40: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 92 5F 07 01 C7 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 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 2D 00 00 00 F4 03 04 00 91 B6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BC F2 8D 67 65 75 E3 0C FE B5 62 6D 46 7D [08:40: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 97 0A 47 00 45 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 81 13 01 00 F4 03 04 00 2F 60 18 67 B6 04 01 00 00 08 BD E8 F7 DB FE D6 F2 [08:40:47]CommunicateWithHost err = 0 [08:40:47]CheckOFDResponse [08:40:47]1017 (14) - 77093643461234 [08:40:47]1041 (16) - 0000000000963346 [08:40:47]1040 (4) - 70529 [08:40:47]1012 (4) - 23.10.2024 02:32 [08:40:47]1206 (1) - 0 [08:40:47]OFD Sender: Remove packet 70529 [08:40:47]ProducePacketName [08:40:47]name=ofd_packets/00070529 [08:40:47]NVStorageDeleteData [08:40:47]Write to MH i2c: 01 00 00 6A 44 AE [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 6A 44 00 00 00 00 00 1D 0D DF [08:40:47]RasterBufferAndPrint [08:40:47]line [08:40:47]line [08:40:47]line [08:40:47]line [08:40:47]line [08:40:47]written 0, free lines is 3366 [08:40:47]MH_Cut [08:40:47]Write to MH i2c: D1 01 00 71 44 01 87 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: D1 [08:40:47]MH_I2C_Read... [08:40:48]Read from MH i2c: D1 01 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: D1 01 00 71 44 00 86 [08:40:48]Write to MH i2c: 01 00 00 72 44 B6 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]OFD Sender: No OFD packet to send [08:40:48]*** Cut start [08:40:48]*** Partial cut [08:40:48]*** CUTSNS_PIN = 1 [08:40:48]*** CUTSNS_PIN = 0 [08:40:48]*** Brake cut motor [08:40:49]Read from MH i2c: 01 [08:40:49]MH_I2C_Read... [08:40:49]*** Stop cut motor [08:40:49]*** Cut end [08:40:49]Read from MH i2c: 01 07 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: 01 07 00 72 44 00 00 00 00 00 FF 0F CB [08:40:49]process_action close_receipt done [08:40:49]requested_data is exist [08:40:49]produce_requested_data [08:40:49]requested_item fm.sn is exist - process it [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 11 00 00 [08:40:49]Write to MH i2c: E2 08 00 73 44 80 11 00 00 00 00 00 00 31 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 73 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [08:40: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:40:49]wFMCommunicate OK [08:40:49]requested_item fd.num is exist - process it [08:40:49]SAM_PROTO_GetFieldsCounters [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 13 00 00 [08:40:49]Write to MH i2c: E2 08 00 74 44 80 13 00 00 00 00 00 00 34 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 62 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 62 00 74 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 81 13 01 00 0E 04 04 00 C4 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 2F [08:40: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 81 13 01 00 0E 04 04 00 C4 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 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_GetFieldsCounters done [08:40:49]requested_item shift.num is exist - process it [08:40:49]requested_item shift.opened is exist - process it [08:40:49]req_shift_opened [08:40:49]FM_GetShiftState [08:40:49]SAM_PROTO_GetShiftState [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 13 01 00 [08:40:49]Write to MH i2c: E2 08 00 75 44 80 13 01 00 00 00 00 00 36 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0E 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0E 00 75 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [08:40:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_GetShiftState done [08:40:49]FM_GetShiftState done [08:40:49]req_shift_opened done [08:40:49]requested_item shift.open_date is exist - process it [08:40:49]req_shift_open_date [08:40:49]req_shift_open_date done [08:40:49]produce_requested_data done [08:40:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70529,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:40:49]process_action_free close_receipt [08:40:49]json_value_free [08:40:49]json_value_free done [08:40:49]process_json_proto returns [08:40:49]Send response to host [08:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70529,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:40:49]free response buf [08:40:49]execute_script done [08:40:49]execute_script returns [08:40:49]free content buf [08:40:49]Sock 9.Close socket [08:40:49]Sock 9.Thread stoped [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:14]accept exits with 7 [08:43:14]New connection [08:43:14]New thread 3066555748 created [08:43:14]Thread 3066699108 joined [08:43:14]Waiting for new connection... [08:43:14] Sock 7.Parse request [08:43:14]Sock 7.Check first char [08:43:14]Sock 7.First char is OK [08:43:14]request: POST /json_proto HTTP/1.0 [08:43:14]Method: POST [08:43:14]URL: /json_proto [08:43:14]Method is POST - this is cgi request [08:43:14]url: /json_proto [08:43:14]query_string will be loaded in cgi processing [08:43:14]execute_cgi json_proto POST (null) [08:43:14]execute_cgi path=json_proto method=POST [08:43:14]POST find Content-Length [08:43:14]Host: 172.17.50.3:8080 [08:43:14]Content-Length: 770 [08:43:14]Content-Type: application/json [08:43:14] [08:43:14]POST finish read [08:43:14]Found Content-Length = 770 [08:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886297", "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" ] } } [08:43:14]execute_script... [08:43: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)2886297", "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" ] } } [08:43:14]POST & json_proto [08:43:14]process_json_proto [08:43:14]json parsed OK: [08:43:14]protocol is kg_v1.0 [08:43:14]action value=close_receipt [08:43:14]process_action close_receipt [08:43:14]cmd_close_receipt [08:43:14]MH_GetDate [08:43:14]Write to MH i2c: F0 00 00 76 44 A9 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: F0 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: F0 09 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: F0 09 00 76 44 00 26 B7 18 67 6B 98 1E 66 95 [08:43:14]GetLastDocTimeStamp 1729672849 [08:43:14]current date 1729672998 [08:43:14]FM_GetShiftState [08:43:14]SAM_PROTO_GetShiftState [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 13 01 00 [08:43:14]Write to MH i2c: E2 08 00 77 44 80 13 01 00 00 00 00 00 38 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:14]Read from MH i2c: E2 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 0E 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 0E 00 77 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [08:43:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:43:14]wFMCommunicate OK [08:43:14]SAM_PROTO_GetShiftState done [08:43:14]FM_GetShiftState done [08:43:14]opened in 1729642435 [08:43:14]opened+sec_in_day 1729728835 [08:43:14]quantity*price = 200043 [08:43:14]sum+1 = 200044 [08:43: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 СНО: Общий режим Чек 46 23.10.2024 08:43 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70530 ФПД: 73944650518426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70530&fm=73944650518426&tin=02508201610067®Number=0000000000156251&sum=200043 [08:43:15]StoreToDocumentArchive [08:43:15]shift 196 fd 70530 [08:43:15]save to /storage/0196/doc_00070530 [08:43:15]save last doc name /storage/0196/doc_00070530 to /storage/kkm_last_doc_name [08:43:15]save OK [08:43:15]Clear old archive folders... [08:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:15]tlvbuf is 00ED9D30 [08:43:15]SAM_PROTO_ClearQueue [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 09 00 00 [08:43:15]Write to MH i2c: E2 08 00 84 44 80 09 00 00 00 00 00 00 3A [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 84 44 00 90 00 3C [08:43:15]RAPDU: 90 00 [08:43:15]wFMCommunicate OK [08:43:15]SAM_PROTO_ClearQueue done [08:43:15]KKMCreateOFDPacket [08:43:15]OFDProtocolAddRootSTLVToBuf [08:43:15]FM_MakeSignedData [08:43:15]FM_MakeSignedData [08:43:15]SAM_PROTO_SignData [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 0D 01 02 [08:43:15]Write to MH i2c: E2 08 00 85 44 80 0D 01 02 00 00 00 00 42 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 85 44 00 90 00 3D [08:43:15]RAPDU: 90 00 [08:43:15]wFMCommunicate OK [08:43:15]wFMCommunicate request_size=255 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 26 B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 43 [08:43:15]Write to MH i2c: E2 02 01 86 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 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 2E 00 00 00 F4 03 04 00 26 B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 43 00 00 F0 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 86 44 00 90 00 3E [08:43:15]RAPDU: 90 00 [08:43:15]wFMCommunicate OK [08:43:15]wFMCommunicate request_size=10 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 0D 02 02 05 40 94 A0 8F 9A [08:43:15]Write to MH i2c: E2 0D 00 87 44 80 0D 02 02 05 00 40 94 A0 8F 9A 00 00 EC [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 03 00 87 44 00 90 00 3F [08:43:15]RAPDU: 90 00 [08:43:15]wFMCommunicate OK [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 0D 03 02 [08:43:15]Write to MH i2c: E2 08 00 88 44 80 0D 03 02 00 00 00 00 47 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0B 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0B 00 88 44 00 94 9D C9 9E 71 DC C9 6E 90 00 64 [08:43:15]RAPDU: 94 9D C9 9E 71 DC C9 6E 90 00 [08:43:15]wFMCommunicate OK [08:43:15]SAM_PROTO_SignData done [08:43:15]FM_MakeSignedData done [08:43:15]CreateOFDProtocolMessage [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 11 00 00 [08:43:15]Write to MH i2c: E2 08 00 89 44 80 11 00 00 00 00 00 00 47 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 17 00 [08:43:15]MH_I2C_Read... [08:43:15]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 [08:43: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:43:15]wFMCommunicate OK [08:43:15]CreateOFDProtocolMessage done [08:43:15]OFDSenderStorePacket 70530 [08:43:15]StoreOFDPacket docnum=70530 [08:43: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 B7 70 07 01 56 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 F4 03 04 00 26 B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 43 40 94 A0 8F 9A 94 9D C9 9E 71 DC C9 6E [08:43:15]CheckFolder [08:43:15]dirname=/storage/ofd_packets [08:43:15]CheckFolder done [08:43:15]ProducePacketName [08:43:15]name=ofd_packets/00070530 [08:43:15]NVStorageSaveData ofd_packets/00070530 [08:43:15]File name is /storage/ofd_packets/00070530 [08:43:15]Write 301 bytes [08:43:15]NVStorageSaveData done [08:43:15]OFDSenderStorePacket done [08:43:15]KKMCreateOFDPacket done [08:43:15]NVStorageSaveData kkm_last_timestamp [08:43:15]File name is /storage/kkm_last_timestamp [08:43:15]Write 4 bytes [08:43:15]NVStorageSaveData done [08:43:15]ExternCall_PrintAddStr [08:43:15]wPrintStart [08:43:15]Write to MH i2c: 01 00 00 8A 44 CE [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: 01 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: 01 07 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: 01 07 00 8A 44 00 00 00 00 00 FF 0F E3 [08:43:15]RasterBufferAndPrint [08:43:15]line Счет N : (1)2886297 [08:43:15]line ИНН: 02508201610067 [08:43:15]line Контрольно-Кассовый Чек [08:43:15]line ПРОДАЖА [08:43:15]line ТРК (МРК, ГНК) : 13 [08:43:15]line Товар: 2710124500 [08:43:15]line Аи-95-К-5 [08:43:15]line 26.960 * 74.20 [08:43:15]line = 2000.43 [08:43:15]line НДС 12% НСП 1% [08:43:15]line > о реализуемом товаре [08:43:15]line ИТОГО: 2000.43 [08:43:15]line НСП 1% : 17.70 [08:43:15]line НДС 12% : 212.43 [08:43:15]line Наличными: 0.00 [08:43:15]line Безнал.: 2000.43 [08:43:15]line Место: АЗС № 85 "Партнер Нефть" [08:43:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:43:15]line СНО: Общий режим [08:43:15]line Чек 46 23.10.2024 08:43 [08:43:15]line Смена: 196 ФФД: 1.0 [08:43:15]line ЗНМ: 0300000167 [08:43:15]line РНМ: 0000000000156251 [08:43:15]line Версия ККМ: v1.0 [08:43:15]line Платежная система: Mbank [08:43:15]line ФМ: 0000000000963346 [08:43:15]line ФД: 70530 [08:43:15]line ФПД: 73944650518426 [08:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70530&fm=73944650518426&tin=02508201610067®Number=0000000000156251&sum=200043 [08:43:16]OFD Sender: Processing packet 70530 [packets to send 18, broken 17] [08:43:16]ProducePacketName [08:43:16]name=ofd_packets/00070530 [08:43:16]OFD Sender: To server: pG, [08:43:16]CommunicateWithHost lk.salyk.kg:30040 [08:43:16]ConnectInit lk.salyk.kg [08:43:16]written 0, free lines is 4095 [08:43:16]Connected sock=10 [08:43: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 B7 70 07 01 56 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 F4 03 04 00 26 B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 43 40 94 A0 8F 9A 94 9D C9 9E 71 DC C9 6E [08:43: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 5A 25 47 00 48 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 82 13 01 00 F4 03 04 00 C4 60 18 67 B6 04 01 00 00 35 89 3B 33 89 EC 88 E3 [08:43:16]CommunicateWithHost err = 0 [08:43:16]CheckOFDResponse [08:43:16]1017 (14) - 77093643461234 [08:43:16]1041 (16) - 0000000000963346 [08:43:16]1040 (4) - 70530 [08:43:16]1012 (4) - 23.10.2024 02:34 [08:43:16]1206 (1) - 0 [08:43:16]OFD Sender: Remove packet 70530 [08:43:16]ProducePacketName [08:43:16]name=ofd_packets/00070530 [08:43:16]NVStorageDeleteData [08:43:16]Write to MH i2c: 01 00 00 B3 44 F7 [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: 01 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: 01 07 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: 01 07 00 B3 44 00 00 00 00 00 11 0D 1C [08:43:16]RasterBufferAndPrint [08:43:16]line [08:43:16]line [08:43:16]line [08:43:16]line [08:43:16]line [08:43:16]written 0, free lines is 3351 [08:43:16]MH_Cut [08:43:16]Write to MH i2c: D1 01 00 BA 44 01 D0 [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: D1 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: D1 01 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: D1 01 00 BA 44 00 CF [08:43:16]Write to MH i2c: 01 00 00 BB 44 FF [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]OFD Sender: No OFD packet to send [08:43:17]*** Cut start [08:43:17]*** Partial cut [08:43:17]*** CUTSNS_PIN = 1 [08:43:17]*** CUTSNS_PIN = 0 [08:43:17]*** Brake cut motor [08:43:17]Read from MH i2c: 01 [08:43:17]MH_I2C_Read... [08:43:17]*** Stop cut motor [08:43:17]*** Cut end [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 BB 44 00 00 00 00 00 FF 0F 14 [08:43:17]process_action close_receipt done [08:43:17]requested_data is exist [08:43:17]produce_requested_data [08:43:17]requested_item fm.sn is exist - process it [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 BC 44 80 11 00 00 00 00 00 00 7A [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 BC 44 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: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]requested_item fd.num is exist - process it [08:43:17]SAM_PROTO_GetFieldsCounters [08:43:17]wFMCommunicate request_size=4 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 13 00 00 [08:43:17]Write to MH i2c: E2 08 00 BD 44 80 13 00 00 00 00 00 00 7D [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:18]Read from MH i2c: E2 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: E2 62 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: E2 62 00 BD 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 82 13 01 00 0E 04 04 00 C4 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 7C [08:43: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 82 13 01 00 0E 04 04 00 C4 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:43:18]wFMCommunicate OK [08:43:18]SAM_PROTO_GetFieldsCounters done [08:43:18]requested_item shift.num is exist - process it [08:43:18]requested_item shift.opened is exist - process it [08:43:18]req_shift_opened [08:43:18]FM_GetShiftState [08:43:18]SAM_PROTO_GetShiftState [08:43:18]wFMCommunicate request_size=4 [08:43:18]MH_SAM_APDU [08:43:18]CAPDU: 80 13 01 00 [08:43:18]Write to MH i2c: E2 08 00 BE 44 80 13 01 00 00 00 00 00 7F [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:18]Read from MH i2c: E2 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: E2 0E 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: E2 0E 00 BE 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0C [08:43:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:43:18]wFMCommunicate OK [08:43:18]SAM_PROTO_GetShiftState done [08:43:18]FM_GetShiftState done [08:43:18]req_shift_opened done [08:43:18]requested_item shift.open_date is exist - process it [08:43:18]req_shift_open_date [08:43:18]req_shift_open_date done [08:43:18]produce_requested_data done [08:43:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70530,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:43:18]process_action_free close_receipt [08:43:18]json_value_free [08:43:18]json_value_free done [08:43:18]process_json_proto returns [08:43:18]Send response to host [08:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70530,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:43:18]free response buf [08:43:18]execute_script done [08:43:18]execute_script returns [08:43:18]free content buf [08:43:18]Sock 7.Close socket [08:43:18]Sock 7.Thread stoped [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:09]accept exits with 9 [08:44:09]New connection [08:44:09]New thread 3066699108 created [08:44:09]Thread 3066555748 joined [08:44:09]Waiting for new connection... [08:44:09] Sock 9.Parse request [08:44:09]Sock 9.Check first char [08:44:09]Sock 9.First char is OK [08:44:09]request: POST /json_proto HTTP/1.0 [08:44:09]Method: POST [08:44:09]URL: /json_proto [08:44:09]Method is POST - this is cgi request [08:44:09]url: /json_proto [08:44:09]query_string will be loaded in cgi processing [08:44:09]execute_cgi json_proto POST (null) [08:44:09]execute_cgi path=json_proto method=POST [08:44:09]POST find Content-Length [08:44:09]Host: 172.17.50.3:8080 [08:44:09]Content-Length: 680 [08:44:09]Content-Type: application/json [08:44:09] [08:44:09]POST finish read [08:44:09]Found Content-Length = 680 [08:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886298", "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" ] } } [08:44:09]execute_script... [08:44:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886298", "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" ] } } [08:44:09]POST & json_proto [08:44:09]process_json_proto [08:44:09]json parsed OK: [08:44:09]protocol is kg_v1.0 [08:44:09]action value=close_receipt [08:44:09]process_action close_receipt [08:44:09]cmd_close_receipt [08:44:09]MH_GetDate [08:44:09]Write to MH i2c: F0 00 00 BF 44 F2 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: F0 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: F0 09 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: F0 09 00 BF 44 00 5D B7 18 67 6B 98 1E 66 15 [08:44:09]GetLastDocTimeStamp 1729672998 [08:44:09]current date 1729673053 [08:44:09]FM_GetShiftState [08:44:09]SAM_PROTO_GetShiftState [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 13 01 00 [08:44:09]Write to MH i2c: E2 08 00 C0 44 80 13 01 00 00 00 00 00 81 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0E 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0E 00 C0 44 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0E [08:44:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_GetShiftState done [08:44:09]FM_GetShiftState done [08:44:09]opened in 1729642435 [08:44:09]opened+sec_in_day 1729728835 [08:44:09]quantity*price = 150037 [08:44:09]sum+1 = 150039 [08:44:09]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 СНО: Общий режим Чек 47 23.10.2024 08:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70531 ФПД: 279286415824346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70531&fm=279286415824346&tin=02508201610067®Number=0000000000156251&sum=150000 [08:44:10]StoreToDocumentArchive [08:44:10]shift 196 fd 70531 [08:44:10]save to /storage/0196/doc_00070531 [08:44:10]save last doc name /storage/0196/doc_00070531 to /storage/kkm_last_doc_name [08:44:10]save OK [08:44:10]Clear old archive folders... [08:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:10]tlvbuf is 00AE3900 [08:44:10]SAM_PROTO_ClearQueue [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 09 00 00 [08:44:10]Write to MH i2c: E2 08 00 CD 44 80 09 00 00 00 00 00 00 83 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 CD 44 00 90 00 85 [08:44:10]RAPDU: 90 00 [08:44:10]wFMCommunicate OK [08:44:10]SAM_PROTO_ClearQueue done [08:44:10]KKMCreateOFDPacket [08:44:10]OFDProtocolAddRootSTLVToBuf [08:44:10]FM_MakeSignedData [08:44:10]FM_MakeSignedData [08:44:10]SAM_PROTO_SignData [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 0D 01 02 [08:44:10]Write to MH i2c: E2 08 00 CE 44 80 0D 01 02 00 00 00 00 8B [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 CE 44 00 90 00 86 [08:44:10]RAPDU: 90 00 [08:44:10]wFMCommunicate OK [08:44:10]wFMCommunicate request_size=255 [08:44:10]MH_SAM_APDU [08:44: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 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 2F 00 00 00 F4 03 04 00 5D B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE 02 6F 9B [08:44:10]Write to MH i2c: E2 02 01 CF 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 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 2F 00 00 00 F4 03 04 00 5D B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE 02 6F 9B 00 00 A8 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 CF 44 00 90 00 87 [08:44:10]RAPDU: 90 00 [08:44:10]wFMCommunicate OK [08:44:10]wFMCommunicate request_size=7 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 0D 02 02 02 15 DA [08:44:10]Write to MH i2c: E2 0A 00 D0 44 80 0D 02 02 02 00 15 DA 00 00 81 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 03 00 D0 44 00 90 00 88 [08:44:10]RAPDU: 90 00 [08:44:10]wFMCommunicate OK [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 0D 03 02 [08:44:10]Write to MH i2c: E2 08 00 D1 44 80 0D 03 02 00 00 00 00 90 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0B 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0B 00 D1 44 00 28 74 AF 35 1C 37 F8 2E 90 00 8A [08:44:10]RAPDU: 28 74 AF 35 1C 37 F8 2E 90 00 [08:44:10]wFMCommunicate OK [08:44:10]SAM_PROTO_SignData done [08:44:10]FM_MakeSignedData done [08:44:10]CreateOFDProtocolMessage [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 11 00 00 [08:44:10]Write to MH i2c: E2 08 00 D2 44 80 11 00 00 00 00 00 00 90 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 17 00 [08:44:10]MH_I2C_Read... [08:44:10]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 [08:44:10]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:10]wFMCommunicate OK [08:44:10]CreateOFDProtocolMessage done [08:44:10]OFDSenderStorePacket 70531 [08:44:10]StoreOFDPacket docnum=70531 [08:44: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 0C 01 00 00 A1 2E 04 01 52 AF 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 2F 00 00 00 F4 03 04 00 5D B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE 02 6F 9B 15 DA 28 74 AF 35 1C 37 F8 2E [08:44:10]CheckFolder [08:44:10]dirname=/storage/ofd_packets [08:44:10]CheckFolder done [08:44:10]ProducePacketName [08:44:10]name=ofd_packets/00070531 [08:44:10]NVStorageSaveData ofd_packets/00070531 [08:44:10]File name is /storage/ofd_packets/00070531 [08:44:10]Write 298 bytes [08:44:10]NVStorageSaveData done [08:44:10]OFDSenderStorePacket done [08:44:10]KKMCreateOFDPacket done [08:44:10]NVStorageSaveData kkm_last_timestamp [08:44:10]File name is /storage/kkm_last_timestamp [08:44:10]Write 4 bytes [08:44:10]NVStorageSaveData done [08:44:10]ExternCall_PrintAddStr [08:44:10]wPrintStart [08:44:10]Write to MH i2c: 01 00 00 D3 44 17 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 D3 44 00 00 00 00 00 FF 0F 2C [08:44:10]RasterBufferAndPrint [08:44:10]line Счет N : (1)2886298 [08:44:10]line ИНН: 02508201610067 [08:44:10]line Контрольно-Кассовый Чек [08:44:10]line ПРОДАЖА [08:44:10]line ТРК (МРК, ГНК) : 51 [08:44:10]line Товар: 2710194210 [08:44:10]line ДТ-К-5 [08:44:10]line 19.690 * 76.20 [08:44:10]line = 1500.38 [08:44:10]line НДС 12% НСП 1% [08:44:10]line > о реализуемом товаре [08:44:10]line ОКРУГЛЕНИЕ: -0.38 [08:44:10]line ИТОГО: 1500.00 [08:44:10]line Внесено: 1500.00 [08:44:10]line СДАЧА: 0.00 [08:44:10]line НСП 1% : 13.28 [08:44:10]line НДС 12% : 159.33 [08:44:10]line Наличными: 1500.00 [08:44:10]line Безнал.: 0.00 [08:44:10]line Место: АЗС № 85 "Партнер Нефть" [08:44:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:44:10]line СНО: Общий режим [08:44:10]line Чек 47 23.10.2024 08:44 [08:44:10]line Смена: 196 ФФД: 1.0 [08:44:10]line ЗНМ: 0300000167 [08:44:10]line РНМ: 0000000000156251 [08:44:10]line Версия ККМ: v1.0 [08:44:10]line ФМ: 0000000000963346 [08:44:10]line ФД: 70531 [08:44:10]line ФПД: 279286415824346 [08:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70531&fm=279286415824346&tin=02508201610067®Number=0000000000156251&sum=150000 [08:44:10]written 0, free lines is 4095 [08:44:10]OFD Sender: Processing packet 70531 [packets to send 18, broken 17] [08:44:10]ProducePacketName [08:44:10]name=ofd_packets/00070531 [08:44:10]OFD Sender: To server: pG, [08:44:10]CommunicateWithHost lk.salyk.kg:30040 [08:44:10]ConnectInit lk.salyk.kg [08:44:10]Connected sock=7 [08:44: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 A1 2E 04 01 52 AF 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 2F 00 00 00 F4 03 04 00 5D B7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE 02 6F 9B 15 DA 28 74 AF 35 1C 37 F8 2E [08:44: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 19 C9 47 00 7E 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 83 13 01 00 F4 03 04 00 FB 60 18 67 B6 04 01 00 00 73 B3 1B 8E 22 F5 41 98 [08:44:11]CommunicateWithHost err = 0 [08:44:11]CheckOFDResponse [08:44:11]1017 (14) - 77093643461234 [08:44:11]1041 (16) - 0000000000963346 [08:44:11]1040 (4) - 70531 [08:44:11]1012 (4) - 23.10.2024 02:35 [08:44:11]1206 (1) - 0 [08:44:11]OFD Sender: Remove packet 70531 [08:44:11]ProducePacketName [08:44:11]name=ofd_packets/00070531 [08:44:11]NVStorageDeleteData [08:44:11]Write to MH i2c: 01 00 00 FE 44 42 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 07 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 07 00 FE 44 00 00 00 00 00 F0 0C 45 [08:44:11]RasterBufferAndPrint [08:44:11]line [08:44:11]line [08:44:11]line [08:44:11]line [08:44:11]line [08:44:11]written 0, free lines is 3319 [08:44:11]MH_Cut [08:44:11]Write to MH i2c: D1 01 00 05 45 01 1C [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: D1 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: D1 01 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: D1 01 00 05 45 00 1B [08:44:11]Write to MH i2c: 01 00 00 06 45 4B [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]OFD Sender: No OFD packet to send [08:44:11]*** Cut start [08:44:11]*** Partial cut [08:44:11]*** CUTSNS_PIN = 1 [08:44:12]*** CUTSNS_PIN = 0 [08:44:12]*** Brake cut motor [08:44:12]Read from MH i2c: 01 [08:44:12]MH_I2C_Read... [08:44:12]*** Stop cut motor [08:44:12]*** Cut end [08:44:12]Read from MH i2c: 01 07 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: 01 07 00 06 45 00 00 00 00 00 FF 0F 60 [08:44:12]process_action close_receipt done [08:44:12]requested_data is exist [08:44:12]produce_requested_data [08:44:12]requested_item fm.sn is exist - process it [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 11 00 00 [08:44:12]Write to MH i2c: E2 08 00 07 45 80 11 00 00 00 00 00 00 C6 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 07 45 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:44: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:44:12]wFMCommunicate OK [08:44:12]requested_item fd.num is exist - process it [08:44:12]SAM_PROTO_GetFieldsCounters [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 00 00 [08:44:12]Write to MH i2c: E2 08 00 08 45 80 13 00 00 00 00 00 00 C9 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 08 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 83 13 01 00 0E 04 04 00 C4 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 CC [08:44: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 83 13 01 00 0E 04 04 00 C4 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:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetFieldsCounters done [08:44:12]requested_item shift.num is exist - process it [08:44:12]requested_item shift.opened is exist - process it [08:44:12]req_shift_opened [08:44:12]FM_GetShiftState [08:44:12]SAM_PROTO_GetShiftState [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 01 00 [08:44:12]Write to MH i2c: E2 08 00 09 45 80 13 01 00 00 00 00 00 CB [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 09 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 58 [08:44:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetShiftState done [08:44:12]FM_GetShiftState done [08:44:12]req_shift_opened done [08:44:12]requested_item shift.open_date is exist - process it [08:44:12]req_shift_open_date [08:44:12]req_shift_open_date done [08:44:12]produce_requested_data done [08:44:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70531,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:44:12]process_action_free close_receipt [08:44:12]json_value_free [08:44:12]json_value_free done [08:44:12]process_json_proto returns [08:44:12]Send response to host [08:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70531,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:44:12]free response buf [08:44:12]execute_script done [08:44:12]execute_script returns [08:44:12]free content buf [08:44:12]Sock 9.Close socket [08:44:12]Sock 9.Thread stoped [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:49:57]accept exits with 10 [08:49:57]New connection [08:49:57]New thread 3066555748 created [08:49:57]Thread 3066699108 joined [08:49:57]Waiting for new connection... [08:49:57] Sock 10.Parse request [08:49:57]Sock 10.Check first char [08:49:57]Sock 10.First char is OK [08:49:57]request: POST /json_proto HTTP/1.0 [08:49:57]Method: POST [08:49:57]URL: /json_proto [08:49:57]Method is POST - this is cgi request [08:49:57]url: /json_proto [08:49:57]query_string will be loaded in cgi processing [08:49:57]execute_cgi json_proto POST (null) [08:49:57]execute_cgi path=json_proto method=POST [08:49:57]POST find Content-Length [08:49:57]Host: 172.17.50.3:8080 [08:49:57]Content-Length: 776 [08:49:57]Content-Type: application/json [08:49:57] [08:49:57]POST finish read [08:49:57]Found Content-Length = 776 [08:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886299", "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" ] } } [08:49:57]execute_script... [08: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)2886299", "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" ] } } [08:49:57]POST & json_proto [08:49:57]process_json_proto [08:49:57]json parsed OK: [08:49:57]protocol is kg_v1.0 [08:49:57]action value=close_receipt [08:49:57]process_action close_receipt [08:49:57]cmd_close_receipt [08:49:57]MH_GetDate [08:49:57]Write to MH i2c: F0 00 00 0A 45 3E [08:49:57]Write i2c OK [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: F0 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: F0 09 00 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: F0 09 00 0A 45 00 B9 B8 18 67 6B 98 1E 66 BE [08:49:57]GetLastDocTimeStamp 1729673053 [08:49:57]current date 1729673401 [08:49:57]FM_GetShiftState [08:49:57]SAM_PROTO_GetShiftState [08:49:57]wFMCommunicate request_size=4 [08:49:57]MH_SAM_APDU [08:49:57]CAPDU: 80 13 01 00 [08:49:57]Write to MH i2c: E2 08 00 0B 45 80 13 01 00 00 00 00 00 CD [08:49:57]Write i2c OK [08:49:57]MH_I2C_Read... [08:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:57]Read from MH i2c: E2 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: E2 0E 00 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: E2 0E 00 0B 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5A [08:49:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:49:57]wFMCommunicate OK [08:49:57]SAM_PROTO_GetShiftState done [08:49:57]FM_GetShiftState done [08:49:57]opened in 1729642435 [08:49:57]opened+sec_in_day 1729728835 [08:49:57]quantity*price = 100051 [08:49:57]sum+1 = 100052 [08:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 48 23.10.2024 08:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70532 ФПД: 96066077628453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085001&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70532&fm=96066077628453&tin=02508201610067®Number=0000000000156251&sum=100051 [08:49:58]StoreToDocumentArchive [08:49:58]shift 196 fd 70532 [08:49:58]save to /storage/0196/doc_00070532 [08:49:58]save last doc name /storage/0196/doc_00070532 to /storage/kkm_last_doc_name [08:49:58]save OK [08:49:58]Clear old archive folders... [08:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:49:58]tlvbuf is 00E046F0 [08:49:58]SAM_PROTO_ClearQueue [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 09 00 00 [08:49:58]Write to MH i2c: E2 08 00 18 45 80 09 00 00 00 00 00 00 CF [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 03 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 03 00 18 45 00 90 00 D1 [08:49:58]RAPDU: 90 00 [08:49:58]wFMCommunicate OK [08:49:58]SAM_PROTO_ClearQueue done [08:49:58]KKMCreateOFDPacket [08:49:58]OFDProtocolAddRootSTLVToBuf [08:49:58]FM_MakeSignedData [08:49:58]FM_MakeSignedData [08:49:58]SAM_PROTO_SignData [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 0D 01 02 [08:49:58]Write to MH i2c: E2 08 00 19 45 80 0D 01 02 00 00 00 00 D7 [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 03 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 03 00 19 45 00 90 00 D2 [08:49:58]RAPDU: 90 00 [08:49:58]wFMCommunicate OK [08:49:58]wFMCommunicate request_size=255 [08:49:58]MH_SAM_APDU [08: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 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 30 00 00 00 F4 03 04 00 B9 B8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [08:49:58]Write to MH i2c: E2 02 01 1A 45 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 30 00 00 00 F4 03 04 00 B9 B8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 0B [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [08:49:59]RAPDU: 90 00 [08:49:59]wFMCommunicate OK [08:49:59]wFMCommunicate request_size=16 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 57 5F 20 6E 98 25 [08:49:59]Write to MH i2c: E2 13 00 1B 45 80 0D 02 02 0B 00 00 35 04 06 00 57 5F 20 6E 98 25 00 00 30 [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 1B 45 00 90 00 D4 [08:49:59]RAPDU: 90 00 [08:49:59]wFMCommunicate OK [08:49:59]wFMCommunicate request_size=4 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 0D 03 02 [08:49:59]Write to MH i2c: E2 08 00 1C 45 80 0D 03 02 00 00 00 00 DC [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 0B 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 0B 00 1C 45 00 7A 4F 25 75 1A 18 8D 88 90 00 87 [08:49:59]RAPDU: 7A 4F 25 75 1A 18 8D 88 90 00 [08:49:59]wFMCommunicate OK [08:49:59]SAM_PROTO_SignData done [08:49:59]FM_MakeSignedData done [08:49:59]CreateOFDProtocolMessage [08:49:59]wFMCommunicate request_size=4 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 11 00 00 [08:49:59]Write to MH i2c: E2 08 00 1D 45 80 11 00 00 00 00 00 00 DC [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 17 00 [08:49:59]MH_I2C_Read... [08:49:59]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 [08:49: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:49:59]wFMCommunicate OK [08:49:59]CreateOFDProtocolMessage done [08:49:59]OFDSenderStorePacket 70532 [08:49:59]StoreOFDPacket docnum=70532 [08:49: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 15 01 00 00 9B DF 0D 01 6F 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 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 30 00 00 00 F4 03 04 00 B9 B8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 5F 20 6E 98 25 7A 4F 25 75 1A 18 8D 88 [08:49:59]CheckFolder [08:49:59]dirname=/storage/ofd_packets [08:49:59]CheckFolder done [08:49:59]ProducePacketName [08:49:59]name=ofd_packets/00070532 [08:49:59]NVStorageSaveData ofd_packets/00070532 [08:49:59]File name is /storage/ofd_packets/00070532 [08:49:59]Write 307 bytes [08:49:59]NVStorageSaveData done [08:49:59]OFDSenderStorePacket done [08:49:59]KKMCreateOFDPacket done [08:49:59]NVStorageSaveData kkm_last_timestamp [08:49:59]File name is /storage/kkm_last_timestamp [08:49:59]Write 4 bytes [08:49:59]NVStorageSaveData done [08:49:59]ExternCall_PrintAddStr [08:49:59]wPrintStart [08:49:59]Write to MH i2c: 01 00 00 1E 45 63 [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 07 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 07 00 1E 45 00 00 00 00 00 FF 0F 78 [08:49:59]RasterBufferAndPrint [08:49:59]line Счет N : (1)2886299 [08:49:59]line ИНН: 02508201610067 [08:49:59]line Контрольно-Кассовый Чек [08:49:59]line ПРОДАЖА [08:49:59]line ТРК (МРК, ГНК) : 41 [08:49:59]line Товар: 2710194240 [08:49:59]line D-ENERGY Дт-К-2 [08:49:59]line 12.960 * 77.20 [08:49:59]line = 1000.51 [08:49:59]line НДС 12% НСП 1% [08:49:59]line > о реализуемом товаре [08:49:59]line ИТОГО: 1000.51 [08:49:59]line НСП 1% : 8.85 [08:49:59]line НДС 12% : 106.25 [08:49:59]line Наличными: 0.00 [08:49:59]line Безнал.: 1000.51 [08:49:59]line Место: АЗС № 85 "Партнер Нефть" [08:49:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:49:59]line СНО: Общий режим [08:49:59]line Чек 48 23.10.2024 08:50 [08:49:59]line Смена: 196 ФФД: 1.0 [08:49:59]line ЗНМ: 0300000167 [08:49:59]line РНМ: 0000000000156251 [08:49:59]line Версия ККМ: v1.0 [08:49:59]line Платежная система: Mbank [08:49:59]line ФМ: 0000000000963346 [08:49:59]line ФД: 70532 [08:49:59]line ФПД: 96066077628453 [08:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085001&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70532&fm=96066077628453&tin=02508201610067®Number=0000000000156251&sum=100051 [08:49:59]OFD Sender: Processing packet 70532 [packets to send 18, broken 17] [08:49:59]ProducePacketName [08:49:59]name=ofd_packets/00070532 [08:49:59]OFD Sender: To server: pG, [08:49:59]CommunicateWithHost lk.salyk.kg:30040 [08:49:59]ConnectInit lk.salyk.kg [08:49:59]written 0, free lines is 4095 [08:49:59]Connected sock=9 [08: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 9B DF 0D 01 6F 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 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 30 00 00 00 F4 03 04 00 B9 B8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 5F 20 6E 98 25 7A 4F 25 75 1A 18 8D 88 [08: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 B3 3A 47 00 49 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 57 62 18 67 B6 04 01 00 00 8A 93 DC D0 49 FC 68 83 [08:49:59]CommunicateWithHost err = 0 [08:49:59]CheckOFDResponse [08:49:59]1017 (14) - 77093643461234 [08:49:59]1041 (16) - 0000000000963346 [08:49:59]1040 (4) - 70532 [08:49:59]1012 (4) - 23.10.2024 02:41 [08:49:59]1206 (1) - 0 [08:49:59]OFD Sender: Remove packet 70532 [08:49:59]ProducePacketName [08:49:59]name=ofd_packets/00070532 [08:49:59]NVStorageDeleteData [08:49:59]Write to MH i2c: 01 00 00 47 45 8C [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 07 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: 01 07 00 47 45 00 00 00 00 00 0C 0D AC [08:49:59]RasterBufferAndPrint [08:49:59]line [08:49:59]line [08:49:59]line [08:49:59]line [08:49:59]line [08:49:59]written 0, free lines is 3349 [08:49:59]MH_Cut [08:49:59]Write to MH i2c: D1 01 00 4E 45 01 65 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: D1 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: D1 01 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: D1 01 00 4E 45 00 64 [08:50:00]Write to MH i2c: 01 00 00 4F 45 94 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]OFD Sender: No OFD packet to send [08:50:00]*** Cut start [08:50:00]*** Partial cut [08:50:00]*** CUTSNS_PIN = 1 [08:50:00]*** CUTSNS_PIN = 0 [08:50:00]*** Brake cut motor [08:50:01]Read from MH i2c: 01 [08:50:01]MH_I2C_Read... [08:50:01]*** Stop cut motor [08:50:01]*** Cut end [08:50:01]Read from MH i2c: 01 07 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 07 00 4F 45 00 00 00 00 00 FF 0F A9 [08:50:01]process_action close_receipt done [08:50:01]requested_data is exist [08:50:01]produce_requested_data [08:50:01]requested_item fm.sn is exist - process it [08:50:01]wFMCommunicate request_size=4 [08:50:01]MH_SAM_APDU [08:50:01]CAPDU: 80 11 00 00 [08:50:01]Write to MH i2c: E2 08 00 50 45 80 11 00 00 00 00 00 00 0F [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:01]Read from MH i2c: E2 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 17 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 17 00 50 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [08:50: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:50:01]wFMCommunicate OK [08:50:01]requested_item fd.num is exist - process it [08:50:01]SAM_PROTO_GetFieldsCounters [08:50:01]wFMCommunicate request_size=4 [08:50:01]MH_SAM_APDU [08:50:01]CAPDU: 80 13 00 00 [08:50:01]Write to MH i2c: E2 08 00 51 45 80 13 00 00 00 00 00 00 12 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:01]Read from MH i2c: E2 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 62 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 62 00 51 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 84 13 01 00 0E 04 04 00 C4 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 19 [08: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 84 13 01 00 0E 04 04 00 C4 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:50:01]wFMCommunicate OK [08:50:01]SAM_PROTO_GetFieldsCounters done [08:50:01]requested_item shift.num is exist - process it [08:50:01]requested_item shift.opened is exist - process it [08:50:01]req_shift_opened [08:50:01]FM_GetShiftState [08:50:01]SAM_PROTO_GetShiftState [08:50:01]wFMCommunicate request_size=4 [08:50:01]MH_SAM_APDU [08:50:01]CAPDU: 80 13 01 00 [08:50:01]Write to MH i2c: E2 08 00 52 45 80 13 01 00 00 00 00 00 14 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:01]Read from MH i2c: E2 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 0E 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: E2 0E 00 52 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A1 [08:50:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:50:01]wFMCommunicate OK [08:50:01]SAM_PROTO_GetShiftState done [08:50:01]FM_GetShiftState done [08:50:01]req_shift_opened done [08:50:01]requested_item shift.open_date is exist - process it [08:50:01]req_shift_open_date [08:50:01]req_shift_open_date done [08:50:01]produce_requested_data done [08:50:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70532,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:50:01]process_action_free close_receipt [08:50:01]json_value_free [08:50:01]json_value_free done [08:50:01]process_json_proto returns [08:50:01]Send response to host [08:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70532,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:50:01]free response buf [08:50:01]execute_script done [08:50:01]execute_script returns [08:50:01]free content buf [08:50:01]Sock 10.Close socket [08:50:01]Sock 10.Thread stoped [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:51:57]accept exits with 7 [08:51:57]New connection [08:51:57]New thread 3066699108 created [08:51:57]Thread 3066555748 joined [08:51:57]Waiting for new connection... [08:51:57] Sock 7.Parse request [08:51:57]Sock 7.Check first char [08:51:57]Sock 7.First char is OK [08:51:57]request: POST /json_proto HTTP/1.0 [08:51:57]Method: POST [08:51:57]URL: /json_proto [08:51:57]Method is POST - this is cgi request [08:51:57]url: /json_proto [08:51:57]query_string will be loaded in cgi processing [08:51:57]execute_cgi json_proto POST (null) [08:51:57]execute_cgi path=json_proto method=POST [08:51:57]POST find Content-Length [08:51:57]Host: 172.17.50.3:8080 [08:51:57]Content-Length: 680 [08:51:57]Content-Type: application/json [08:51:57] [08:51:57]POST finish read [08:51:57]Found Content-Length = 680 [08:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886300", "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" ] } } [08:51:57]execute_script... [08:51: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)2886300", "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" ] } } [08:51:57]POST & json_proto [08:51:57]process_json_proto [08:51:57]json parsed OK: [08:51:57]protocol is kg_v1.0 [08:51:57]action value=close_receipt [08:51:57]process_action close_receipt [08:51:57]cmd_close_receipt [08:51:57]MH_GetDate [08:51:57]Write to MH i2c: F0 00 00 53 45 87 [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: F0 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: F0 09 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: F0 09 00 53 45 00 31 B9 18 67 6B 98 1E 66 80 [08:51:57]GetLastDocTimeStamp 1729673401 [08:51:57]current date 1729673521 [08:51:57]FM_GetShiftState [08:51:57]SAM_PROTO_GetShiftState [08:51:57]wFMCommunicate request_size=4 [08:51:57]MH_SAM_APDU [08:51:57]CAPDU: 80 13 01 00 [08:51:57]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [08:51:57]Write i2c OK [08:51:57]MH_I2C_Read... [08:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:57]Read from MH i2c: E2 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 0E 00 [08:51:57]MH_I2C_Read... [08:51:57]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A3 [08:51:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:51:57]wFMCommunicate OK [08:51:57]SAM_PROTO_GetShiftState done [08:51:57]FM_GetShiftState done [08:51:57]opened in 1729642435 [08:51:57]opened+sec_in_day 1729728835 [08:51:57]quantity*price = 100050 [08:51:57]sum+1 = 100052 [08:51:57]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 СНО: Общий режим Чек 49 23.10.2024 08:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70533 ФПД: 39011730514976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085201&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70533&fm=39011730514976&tin=02508201610067®Number=0000000000156251&sum=100000 [08:51:58]StoreToDocumentArchive [08:51:58]shift 196 fd 70533 [08:51:58]save to /storage/0196/doc_00070533 [08:51:58]save last doc name /storage/0196/doc_00070533 to /storage/kkm_last_doc_name [08:51:58]save OK [08:51:58]Clear old archive folders... [08:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:58]tlvbuf is 00B332D0 [08:51:58]SAM_PROTO_ClearQueue [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 09 00 00 [08:51:58]Write to MH i2c: E2 08 00 61 45 80 09 00 00 00 00 00 00 18 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 61 45 00 90 00 1A [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]SAM_PROTO_ClearQueue done [08:51:58]KKMCreateOFDPacket [08:51:58]OFDProtocolAddRootSTLVToBuf [08:51:58]FM_MakeSignedData [08:51:58]FM_MakeSignedData [08:51:58]SAM_PROTO_SignData [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 0D 01 02 [08:51:58]Write to MH i2c: E2 08 00 62 45 80 0D 01 02 00 00 00 00 20 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 62 45 00 90 00 1B [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]wFMCommunicate request_size=255 [08:51:58]MH_SAM_APDU [08:51: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 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 31 00 00 00 F4 03 04 00 31 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 7B 20 56 [08:51:58]Write to MH i2c: E2 02 01 63 45 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 31 00 00 00 F4 03 04 00 31 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 7B 20 56 00 00 AA [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]wFMCommunicate request_size=7 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 0D 02 02 02 E4 20 [08:51:58]Write to MH i2c: E2 0A 00 64 45 80 0D 02 02 02 00 E4 20 00 00 2B [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [08:51:58]RAPDU: 90 00 [08:51:58]wFMCommunicate OK [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 0D 03 02 [08:51:58]Write to MH i2c: E2 08 00 65 45 80 0D 03 02 00 00 00 00 25 [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:59]Read from MH i2c: E2 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 0B 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 0B 00 65 45 00 CE 10 ED 3C 4F 8C C5 F4 90 00 C1 [08:51:59]RAPDU: CE 10 ED 3C 4F 8C C5 F4 90 00 [08:51:59]wFMCommunicate OK [08:51:59]SAM_PROTO_SignData done [08:51:59]FM_MakeSignedData done [08:51:59]CreateOFDProtocolMessage [08:51:59]wFMCommunicate request_size=4 [08:51:59]MH_SAM_APDU [08:51:59]CAPDU: 80 11 00 00 [08:51:59]Write to MH i2c: E2 08 00 66 45 80 11 00 00 00 00 00 00 25 [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:59]Read from MH i2c: E2 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 17 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: E2 17 00 66 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [08: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 [08:51:59]wFMCommunicate OK [08:51:59]CreateOFDProtocolMessage done [08:51:59]OFDSenderStorePacket 70533 [08:51:59]StoreOFDPacket docnum=70533 [08:51: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 0C 01 00 00 16 B4 04 01 65 B6 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 31 00 00 00 F4 03 04 00 31 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 7B 20 56 E4 20 CE 10 ED 3C 4F 8C C5 F4 [08:51:59]CheckFolder [08:51:59]dirname=/storage/ofd_packets [08:51:59]CheckFolder done [08:51:59]ProducePacketName [08:51:59]name=ofd_packets/00070533 [08:51:59]NVStorageSaveData ofd_packets/00070533 [08:51:59]File name is /storage/ofd_packets/00070533 [08:51:59]Write 298 bytes [08:51:59]NVStorageSaveData done [08:51:59]OFDSenderStorePacket done [08:51:59]KKMCreateOFDPacket done [08:51:59]NVStorageSaveData kkm_last_timestamp [08:51:59]File name is /storage/kkm_last_timestamp [08:51:59]Write 4 bytes [08:51:59]NVStorageSaveData done [08:51:59]ExternCall_PrintAddStr [08:51:59]wPrintStart [08:51:59]Write to MH i2c: 01 00 00 67 45 AC [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 67 45 00 00 00 00 00 FF 0F C1 [08:51:59]RasterBufferAndPrint [08:51:59]line Счет N : (1)2886300 [08:51:59]line ИНН: 02508201610067 [08:51:59]line Контрольно-Кассовый Чек [08:51:59]line ПРОДАЖА [08:51:59]line ТРК (МРК, ГНК) : 61 [08:51:59]line Товар: 2710194210 [08:51:59]line ДТ-К-5 [08:51:59]line 13.130 * 76.20 [08:51:59]line = 1000.51 [08:51:59]line НДС 12% НСП 1% [08:51:59]line > о реализуемом товаре [08:51:59]line ОКРУГЛЕНИЕ: -0.51 [08:51:59]line ИТОГО: 1000.00 [08:51:59]line Внесено: 1000.00 [08:51:59]line СДАЧА: 0.00 [08:51:59]line НСП 1% : 8.85 [08:51:59]line НДС 12% : 106.25 [08:51:59]line Наличными: 1000.00 [08:51:59]line Безнал.: 0.00 [08:51:59]line Место: АЗС № 85 "Партнер Нефть" [08:51:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:51:59]line СНО: Общий режим [08:51:59]line Чек 49 23.10.2024 08:52 [08:51:59]line Смена: 196 ФФД: 1.0 [08:51:59]line ЗНМ: 0300000167 [08:51:59]line РНМ: 0000000000156251 [08:51:59]line Версия ККМ: v1.0 [08:51:59]line ФМ: 0000000000963346 [08:51:59]line ФД: 70533 [08:51:59]line ФПД: 39011730514976 [08:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085201&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70533&fm=39011730514976&tin=02508201610067®Number=0000000000156251&sum=100000 [08:51:59]OFD Sender: Processing packet 70533 [packets to send 18, broken 17] [08:51:59]ProducePacketName [08:51:59]name=ofd_packets/00070533 [08:51:59]OFD Sender: To server: pG, [08:51:59]CommunicateWithHost lk.salyk.kg:30040 [08:51:59]ConnectInit lk.salyk.kg [08:51:59]written 0, free lines is 4095 [08:51:59]Connected sock=10 [08:51: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 16 B4 04 01 65 B6 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 31 00 00 00 F4 03 04 00 31 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 7B 20 56 E4 20 CE 10 ED 3C 4F 8C C5 F4 [08:51: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 E6 44 47 00 40 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 85 13 01 00 F4 03 04 00 CF 62 18 67 B6 04 01 00 00 94 FB CE F7 A6 3C DB D9 [08:51:59]CommunicateWithHost err = 0 [08:51:59]CheckOFDResponse [08:51:59]1017 (14) - 77093643461234 [08:51:59]1041 (16) - 0000000000963346 [08:51:59]1040 (4) - 70533 [08:51:59]1012 (4) - 23.10.2024 02:43 [08:51:59]1206 (1) - 0 [08:51:59]OFD Sender: Remove packet 70533 [08:51:59]ProducePacketName [08:51:59]name=ofd_packets/00070533 [08:51:59]NVStorageDeleteData [08:51:59]Write to MH i2c: 01 00 00 92 45 D7 [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 92 45 00 00 00 00 00 DC 0C C6 [08:51:59]RasterBufferAndPrint [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]written 0, free lines is 3298 [08:51:59]MH_Cut [08:51:59]Write to MH i2c: D1 01 00 99 45 01 B0 [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 01 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 01 00 99 45 00 AF [08:51:59]Write to MH i2c: 01 00 00 9A 45 DF [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:52:00]OFD Sender: No OFD packet to send [08:52:00]*** Cut start [08:52:00]*** Partial cut [08:52:00]*** CUTSNS_PIN = 1 [08:52:00]*** CUTSNS_PIN = 0 [08:52:00]*** Brake cut motor [08:52:01]Read from MH i2c: 01 [08:52:01]MH_I2C_Read... [08:52:01]*** Stop cut motor [08:52:01]*** Cut end [08:52:01]Read from MH i2c: 01 07 00 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: 01 07 00 9A 45 00 00 00 00 00 FF 0F F4 [08:52:01]process_action close_receipt done [08:52:01]requested_data is exist [08:52:01]produce_requested_data [08:52:01]requested_item fm.sn is exist - process it [08:52:01]wFMCommunicate request_size=4 [08:52:01]MH_SAM_APDU [08:52:01]CAPDU: 80 11 00 00 [08:52:01]Write to MH i2c: E2 08 00 9B 45 80 11 00 00 00 00 00 00 5A [08:52:01]Write i2c OK [08:52:01]MH_I2C_Read... [08:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:01]Read from MH i2c: E2 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 17 00 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 17 00 9B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [08:52: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:52:01]wFMCommunicate OK [08:52:01]requested_item fd.num is exist - process it [08:52:01]SAM_PROTO_GetFieldsCounters [08:52:01]wFMCommunicate request_size=4 [08:52:01]MH_SAM_APDU [08:52:01]CAPDU: 80 13 00 00 [08:52:01]Write to MH i2c: E2 08 00 9C 45 80 13 00 00 00 00 00 00 5D [08:52:01]Write i2c OK [08:52:01]MH_I2C_Read... [08:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:01]Read from MH i2c: E2 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 62 00 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 62 00 9C 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 85 13 01 00 0E 04 04 00 C4 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 68 [08:52: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 85 13 01 00 0E 04 04 00 C4 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:52:01]wFMCommunicate OK [08:52:01]SAM_PROTO_GetFieldsCounters done [08:52:01]requested_item shift.num is exist - process it [08:52:01]requested_item shift.opened is exist - process it [08:52:01]req_shift_opened [08:52:01]FM_GetShiftState [08:52:01]SAM_PROTO_GetShiftState [08:52:01]wFMCommunicate request_size=4 [08:52:01]MH_SAM_APDU [08:52:01]CAPDU: 80 13 01 00 [08:52:01]Write to MH i2c: E2 08 00 9D 45 80 13 01 00 00 00 00 00 5F [08:52:01]Write i2c OK [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 [08:52:01]MH_I2C_Read... [08:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:01]Read from MH i2c: E2 0E 00 [08:52:01]MH_I2C_Read... [08:52:01]Read from MH i2c: E2 0E 00 9D 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EC [08:52:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:52:01]wFMCommunicate OK [08:52:01]SAM_PROTO_GetShiftState done [08:52:01]FM_GetShiftState done [08:52:01]req_shift_opened done [08:52:01]requested_item shift.open_date is exist - process it [08:52:01]req_shift_open_date [08:52:01]req_shift_open_date done [08:52:01]produce_requested_data done [08:52:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70533,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:52:01]process_action_free close_receipt [08:52:01]json_value_free [08:52:01]json_value_free done [08:52:01]process_json_proto returns [08:52:01]Send response to host [08:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70533,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:52:01]free response buf [08:52:01]execute_script done [08:52:01]execute_script returns [08:52:01]free content buf [08:52:01]Sock 7.Close socket [08:52:01]Sock 7.Thread stoped [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:17]accept exits with 9 [08:55:17]New connection [08:55:17]New thread 3066555748 created [08:55:17]Thread 3066699108 joined [08:55:17]Waiting for new connection... [08:55:17] Sock 9.Parse request [08:55:17]Sock 9.Check first char [08:55:17]Sock 9.First char is OK [08:55:17]request: POST /json_proto HTTP/1.0 [08:55:17]Method: POST [08:55:17]URL: /json_proto [08:55:17]Method is POST - this is cgi request [08:55:17]url: /json_proto [08:55:17]query_string will be loaded in cgi processing [08:55:17]execute_cgi json_proto POST (null) [08:55:17]execute_cgi path=json_proto method=POST [08:55:17]POST find Content-Length [08:55:17]Host: 172.17.50.3:8080 [08:55:17]Content-Length: 798 [08:55:17]Content-Type: application/json [08:55:17] [08:55:17]POST finish read [08:55:17]Found Content-Length = 798 [08:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886301", "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\u000A4343590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:17]execute_script... [08: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)2886301", "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\u000A4343590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:17]POST & json_proto [08:55:17]process_json_proto [08:55:17]json parsed OK: [08:55:17]protocol is kg_v1.0 [08:55:17]action value=close_receipt [08:55:17]process_action close_receipt [08:55:17]cmd_close_receipt [08:55:17]MH_GetDate [08:55:17]Write to MH i2c: F0 00 00 9E 45 D2 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 09 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 09 00 9E 45 00 F9 B9 18 67 6B 98 1E 66 93 [08:55:17]GetLastDocTimeStamp 1729673521 [08:55:17]current date 1729673721 [08:55:17]FM_GetShiftState [08:55:17]SAM_PROTO_GetShiftState [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 13 01 00 [08:55:17]Write to MH i2c: E2 08 00 9F 45 80 13 01 00 00 00 00 00 61 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0E 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0E 00 9F 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EE [08:55:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:55:17]wFMCommunicate OK [08:55:17]SAM_PROTO_GetShiftState done [08:55:17]FM_GetShiftState done [08:55:17]opened in 1729642435 [08:55:17]opened+sec_in_day 1729728835 [08:55:17]quantity*price = 0 [08:55:17]sum+1 = 1 [08:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 50 23.10.2024 08:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4343590 ФМ: 0000000000963346 ФД: 70534 ФПД: 57629535322523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70534&fm=57629535322523&tin=02508201610067®Number=0000000000156251&sum=0 [08:55:18]StoreToDocumentArchive [08:55:18]shift 196 fd 70534 [08:55:18]save to /storage/0196/doc_00070534 [08:55:18]save last doc name /storage/0196/doc_00070534 to /storage/kkm_last_doc_name [08:55:18]save OK [08:55:18]Clear old archive folders... [08:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:55:18]tlvbuf is 00ED2340 [08:55:18]SAM_PROTO_ClearQueue [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 09 00 00 [08:55:18]Write to MH i2c: E2 08 00 AC 45 80 09 00 00 00 00 00 00 63 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 AC 45 00 90 00 65 [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]SAM_PROTO_ClearQueue done [08:55:18]KKMCreateOFDPacket [08:55:18]OFDProtocolAddRootSTLVToBuf [08:55:18]FM_MakeSignedData [08:55:18]FM_MakeSignedData [08:55:18]SAM_PROTO_SignData [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 0D 01 02 [08:55:18]Write to MH i2c: E2 08 00 AD 45 80 0D 01 02 00 00 00 00 6B [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 AD 45 00 90 00 66 [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]wFMCommunicate request_size=255 [08:55:18]MH_SAM_APDU [08:55: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 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 32 00 00 00 F4 03 04 00 F9 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 34 69 EB FB [08:55:18]Write to MH i2c: E2 02 01 AE 45 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 32 00 00 00 F4 03 04 00 F9 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 34 69 EB FB 00 00 74 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 AE 45 00 90 00 67 [08:55:19]RAPDU: 90 00 [08:55:19]wFMCommunicate OK [08:55:19]wFMCommunicate request_size=7 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 0D 02 02 02 41 9B [08:55:19]Write to MH i2c: E2 0A 00 AF 45 80 0D 02 02 02 00 41 9B 00 00 4E [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 AF 45 00 90 00 68 [08:55:19]RAPDU: 90 00 [08:55:19]wFMCommunicate OK [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 0D 03 02 [08:55:19]Write to MH i2c: E2 08 00 B0 45 80 0D 03 02 00 00 00 00 70 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0B 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0B 00 B0 45 00 AB 26 F1 5C 6A C0 F4 D4 90 00 81 [08:55:19]RAPDU: AB 26 F1 5C 6A C0 F4 D4 90 00 [08:55:19]wFMCommunicate OK [08:55:19]SAM_PROTO_SignData done [08:55:19]FM_MakeSignedData done [08:55:19]CreateOFDProtocolMessage [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 11 00 00 [08:55:19]Write to MH i2c: E2 08 00 B1 45 80 11 00 00 00 00 00 00 70 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 17 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 17 00 B1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [08: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 [08:55:19]wFMCommunicate OK [08:55:19]CreateOFDProtocolMessage done [08:55:19]OFDSenderStorePacket 70534 [08:55:19]StoreOFDPacket docnum=70534 [08: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 0C 01 00 00 A1 28 04 01 28 79 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 32 00 00 00 F4 03 04 00 F9 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 34 69 EB FB 41 9B AB 26 F1 5C 6A C0 F4 D4 [08:55:19]CheckFolder [08:55:19]dirname=/storage/ofd_packets [08:55:19]CheckFolder done [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00070534 [08:55:19]NVStorageSaveData ofd_packets/00070534 [08:55:19]File name is /storage/ofd_packets/00070534 [08:55:19]Write 298 bytes [08:55:19]NVStorageSaveData done [08:55:19]OFDSenderStorePacket done [08:55:19]KKMCreateOFDPacket done [08:55:19]NVStorageSaveData kkm_last_timestamp [08:55:19]File name is /storage/kkm_last_timestamp [08:55:19]Write 4 bytes [08:55:19]NVStorageSaveData done [08:55:19]ExternCall_PrintAddStr [08:55:19]wPrintStart [08:55:19]Write to MH i2c: 01 00 00 B2 45 F7 [08:55:19]OFD Sender: Processing packet 70534 [packets to send 18, broken 17] [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00070534 [08:55:19]OFD Sender: To server: pG, [08:55:19]CommunicateWithHost lk.salyk.kg:30040 [08:55:19]ConnectInit lk.salyk.kg [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 B2 45 00 00 00 00 00 FF 0F 0C [08:55:19]RasterBufferAndPrint [08:55:19]line Счет N : (1)2886301 [08:55:19]line ИНН: 02508201610067 [08:55:19]line Контрольно-Кассовый Чек [08:55:19]line ПРОДАЖА [08:55:19]line ТРК (МРК, ГНК) : 51 [08:55:19]line Товар: 2710194210 [08:55:19]line ДТ-К-5 [08:55:19]line 20.000 * 0.00 [08:55:19]line = 0.00 [08:55:19]line НДС 12% НСП 1% [08:55:19]line > о реализуемом товаре [08:55:19]line ИТОГО: 0.00 [08:55:19]line НСП 1% : 0.00 [08:55:19]line НДС 12% : 0.00 [08:55:19]line Наличными: 0.00 [08:55:19]line Безнал.: 0.00 [08:55:19]line Место: АЗС № 85 "Партнер Нефть" [08:55:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:55:19]line СНО: Общий режим [08:55:19]line Чек 50 23.10.2024 08:55 [08:55:19]line Смена: 196 ФФД: 1.0 [08:55:19]line ЗНМ: 0300000167 [08:55:19]line РНМ: 0000000000156251 [08:55:19]line Версия ККМ: v1.0 [08:55:19]line Талоны: Топливные Талоны [08:55:19]line 4343590 [08:55:19]line ФМ: 0000000000963346 [08:55:19]line ФД: 70534 [08:55:19]line ФПД: 57629535322523 [08:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70534&fm=57629535322523&tin=02508201610067®Number=0000000000156251&sum=0 [08:55:19]Connected sock=10 [08: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 0C 01 00 00 A1 28 04 01 28 79 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 32 00 00 00 F4 03 04 00 F9 B9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 34 69 EB FB 41 9B AB 26 F1 5C 6A C0 F4 D4 [08:55:19]written 0, free lines is 4095 [08: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 58 14 47 00 93 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 86 13 01 00 F4 03 04 00 97 63 18 67 B6 04 01 00 00 82 18 72 32 CE 42 F9 4C [08:55:19]CommunicateWithHost err = 0 [08:55:19]CheckOFDResponse [08:55:19]1017 (14) - 77093643461234 [08:55:19]1041 (16) - 0000000000963346 [08:55:19]1040 (4) - 70534 [08:55:19]1012 (4) - 23.10.2024 02:46 [08:55:19]1206 (1) - 0 [08:55:19]OFD Sender: Remove packet 70534 [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00070534 [08:55:19]NVStorageDeleteData [08:55:20]Write to MH i2c: 01 00 00 DC 45 21 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 07 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 07 00 DC 45 00 00 00 00 00 F1 0C 25 [08:55:20]RasterBufferAndPrint [08:55:20]line [08:55:20]line [08:55:20]line [08:55:20]line [08:55:20]line [08:55:20]written 0, free lines is 3319 [08:55:20]MH_Cut [08:55:20]Write to MH i2c: D1 01 00 E3 45 01 FA [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 01 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 01 00 E3 45 00 F9 [08:55:20]Write to MH i2c: 01 00 00 E4 45 29 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]OFD Sender: No OFD packet to send [08:55:20]*** Cut start [08:55:20]*** Partial cut [08:55:20]*** CUTSNS_PIN = 1 [08:55:20]*** CUTSNS_PIN = 0 [08:55:20]*** Brake cut motor [08:55:21]Read from MH i2c: 01 [08:55:21]MH_I2C_Read... [08:55:21]*** Stop cut motor [08:55:21]*** Cut end [08:55:21]Read from MH i2c: 01 07 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: 01 07 00 E4 45 00 00 00 00 00 FF 0F 3E [08:55:21]process_action close_receipt done [08:55:21]requested_data is exist [08:55:21]produce_requested_data [08:55:21]requested_item fm.sn is exist - process it [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 11 00 00 [08:55:21]Write to MH i2c: E2 08 00 E5 45 80 11 00 00 00 00 00 00 A4 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:21]Read from MH i2c: E2 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 17 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 17 00 E5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [08: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 [08:55:21]wFMCommunicate OK [08:55:21]requested_item fd.num is exist - process it [08:55:21]SAM_PROTO_GetFieldsCounters [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 13 00 00 [08:55:21]Write to MH i2c: E2 08 00 E6 45 80 13 00 00 00 00 00 00 A7 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:21]Read from MH i2c: E2 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 62 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 62 00 E6 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 86 13 01 00 0E 04 04 00 C4 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 B6 [08: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 86 13 01 00 0E 04 04 00 C4 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:55:21]wFMCommunicate OK [08:55:21]SAM_PROTO_GetFieldsCounters done [08:55:21]requested_item shift.num is exist - process it [08:55:21]requested_item shift.opened is exist - process it [08:55:21]req_shift_opened [08:55:21]FM_GetShiftState [08:55:21]SAM_PROTO_GetShiftState [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 13 01 00 [08:55:21]Write to MH i2c: E2 08 00 E7 45 80 13 01 00 00 00 00 00 A9 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:21]Read from MH i2c: E2 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 0E 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 0E 00 E7 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 36 [08:55:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:55:21]wFMCommunicate OK [08:55:21]SAM_PROTO_GetShiftState done [08:55:21]FM_GetShiftState done [08:55:21]req_shift_opened done [08:55:21]requested_item shift.open_date is exist - process it [08:55:21]req_shift_open_date [08:55:21]req_shift_open_date done [08:55:21]produce_requested_data done [08:55:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70534,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:55:21]process_action_free close_receipt [08:55:21]json_value_free [08:55:21]json_value_free done [08:55:21]process_json_proto returns [08:55:21]Send response to host [08:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70534,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:55:21]free response buf [08:55:21]execute_script done [08:55:21]execute_script returns [08:55:21]free content buf [08:55:21]Sock 9.Close socket [08:55:21]Sock 9.Thread stoped [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:23]accept exits with 7 [08:58:23]New connection [08:58:23]New thread 3066699108 created [08:58:23]Thread 3066555748 joined [08:58:23]Waiting for new connection... [08:58:23] Sock 7.Parse request [08:58:23]Sock 7.Check first char [08:58:23]Sock 7.First char is OK [08:58:23]request: POST /json_proto HTTP/1.0 [08:58:23]Method: POST [08:58:23]URL: /json_proto [08:58:23]Method is POST - this is cgi request [08:58:23]url: /json_proto [08:58:23]query_string will be loaded in cgi processing [08:58:23]execute_cgi json_proto POST (null) [08:58:23]execute_cgi path=json_proto method=POST [08:58:23]POST find Content-Length [08:58:23]Host: 172.17.50.3:8080 [08:58:23]Content-Length: 683 [08:58:23]Content-Type: application/json [08:58:23] [08:58:23]POST finish read [08:58:23]Found Content-Length = 683 [08:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886303", "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:58:23]execute_script... [08:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886303", "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:58:23]POST & json_proto [08:58:23]process_json_proto [08:58:23]json parsed OK: [08:58:23]protocol is kg_v1.0 [08:58:23]action value=close_receipt [08:58:23]process_action close_receipt [08:58:23]cmd_close_receipt [08:58:23]MH_GetDate [08:58:23]Write to MH i2c: F0 00 00 E8 45 1C [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 09 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 09 00 E8 45 00 B3 BA 18 67 6B 98 1E 66 98 [08:58:23]GetLastDocTimeStamp 1729673721 [08:58:23]current date 1729673907 [08:58:23]FM_GetShiftState [08:58:23]SAM_PROTO_GetShiftState [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 13 01 00 [08:58:23]Write to MH i2c: E2 08 00 E9 45 80 13 01 00 00 00 00 00 AB [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:24]Read from MH i2c: E2 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 0E 00 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 0E 00 E9 45 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 38 [08:58:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:58:24]wFMCommunicate OK [08:58:24]SAM_PROTO_GetShiftState done [08:58:24]FM_GetShiftState done [08:58:24]opened in 1729642435 [08:58:24]opened+sec_in_day 1729728835 [08:58:24]quantity*price = 100015 [08:58:24]sum+1 = 100017 [08:58: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 СНО: Общий режим Чек 51 23.10.2024 08:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70535 ФПД: 144610740017130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70535&fm=144610740017130&tin=02508201610067®Number=0000000000156251&sum=100000 [08:58:25]StoreToDocumentArchive [08:58:25]shift 196 fd 70535 [08:58:25]save to /storage/0196/doc_00070535 [08:58:25]save last doc name /storage/0196/doc_00070535 to /storage/kkm_last_doc_name [08:58:25]save OK [08:58:25]Clear old archive folders... [08:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:25]tlvbuf is 00AC1E50 [08:58:25]SAM_PROTO_ClearQueue [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 09 00 00 [08:58:25]Write to MH i2c: E2 08 00 F6 45 80 09 00 00 00 00 00 00 AD [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 F6 45 00 90 00 AF [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_ClearQueue done [08:58:25]KKMCreateOFDPacket [08:58:25]OFDProtocolAddRootSTLVToBuf [08:58:25]FM_MakeSignedData [08:58:25]FM_MakeSignedData [08:58:25]SAM_PROTO_SignData [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 01 02 [08:58:25]Write to MH i2c: E2 08 00 F7 45 80 0D 01 02 00 00 00 00 B5 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 F7 45 00 90 00 B0 [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=255 [08:58:25]MH_SAM_APDU [08:58: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 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 33 00 00 00 F4 03 04 00 B4 BA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 83 [08:58:25]Write to MH i2c: E2 02 01 F8 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 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 33 00 00 00 F4 03 04 00 B4 BA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 83 00 00 3A [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]OFD Sender: No OFD packet to send [08:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 F8 45 00 90 00 B1 [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=10 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 02 02 05 85 CF CA 17 EA [08:58:25]Write to MH i2c: E2 0D 00 F9 45 80 0D 02 02 05 00 85 CF CA 17 EA 00 00 E1 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 F9 45 00 90 00 B2 [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 03 02 [08:58:25]Write to MH i2c: E2 08 00 FA 45 80 0D 03 02 00 00 00 00 BA [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0B 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0B 00 FA 45 00 87 8A 7D EA B2 82 D0 35 90 00 6C [08:58:25]RAPDU: 87 8A 7D EA B2 82 D0 35 90 00 [08:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_SignData done [08:58:25]FM_MakeSignedData done [08:58:25]CreateOFDProtocolMessage [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 11 00 00 [08:58:25]Write to MH i2c: E2 08 00 FB 45 80 11 00 00 00 00 00 00 BA [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 FB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [08:58: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:58:25]wFMCommunicate OK [08:58:25]CreateOFDProtocolMessage done [08:58:25]OFDSenderStorePacket 70535 [08:58:25]StoreOFDPacket docnum=70535 [08:58: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 2B A4 07 01 5B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 33 00 00 00 F4 03 04 00 B4 BA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 83 85 CF CA 17 EA 87 8A 7D EA B2 82 D0 35 [08:58:25]CheckFolder [08:58:25]dirname=/storage/ofd_packets [08:58:25]CheckFolder done [08:58:25]ProducePacketName [08:58:25]name=ofd_packets/00070535 [08:58:25]NVStorageSaveData ofd_packets/00070535 [08:58:25]File name is /storage/ofd_packets/00070535 [08:58:25]Write 301 bytes [08:58:25]NVStorageSaveData done [08:58:25]OFDSenderStorePacket done [08:58:25]KKMCreateOFDPacket done [08:58:25]NVStorageSaveData kkm_last_timestamp [08:58:25]File name is /storage/kkm_last_timestamp [08:58:25]Write 4 bytes [08:58:25]NVStorageSaveData done [08:58:25]ExternCall_PrintAddStr [08:58:25]wPrintStart [08:58:25]Write to MH i2c: 01 00 00 FC 45 41 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 07 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 07 00 FC 45 00 00 00 00 00 FF 0F 56 [08:58:25]RasterBufferAndPrint [08:58:25]line Счет N : (1)2886303 [08:58:25]line ИНН: 02508201610067 [08:58:25]line Контрольно-Кассовый Чек [08:58:25]line ПРОДАЖА [08:58:25]line ТРК (МРК, ГНК) : 12 [08:58:25]line Товар: 2710124130 [08:58:25]line Аи-92-К-5 [08:58:25]line 14.950 * 66.90 [08:58:25]line = 1000.16 [08:58:25]line НДС 12% НСП 1% [08:58:25]line > о реализуемом товаре [08:58:25]line ОКРУГЛЕНИЕ: -0.16 [08:58:25]line ИТОГО: 1000.00 [08:58:25]line Внесено: 1000.00 [08:58:25]line СДАЧА: 0.00 [08:58:25]line НСП 1% : 8.85 [08:58:25]line НДС 12% : 106.21 [08:58:25]line Наличными: 1000.00 [08:58:25]line Безнал.: 0.00 [08:58:25]line Место: АЗС № 85 "Партнер Нефть" [08:58:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:58:25]line СНО: Общий режим [08:58:25]line Чек 51 23.10.2024 08:58 [08:58:25]line Смена: 196 ФФД: 1.0 [08:58:25]line ЗНМ: 0300000167 [08:58:25]line РНМ: 0000000000156251 [08:58:25]line Версия ККМ: v1.0 [08:58:25]line ФМ: 0000000000963346 [08:58:25]line ФД: 70535 [08:58:25]line ФПД: 144610740017130 [08:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70535&fm=144610740017130&tin=02508201610067®Number=0000000000156251&sum=100000 [08:58:25]OFD Sender: Processing packet 70535 [packets to send 18, broken 17] [08:58:25]ProducePacketName [08:58:25]name=ofd_packets/00070535 [08:58:25]OFD Sender: To server: pG, [08:58:25]CommunicateWithHost lk.salyk.kg:30040 [08:58:25]ConnectInit lk.salyk.kg [08:58:25]written 0, free lines is 4095 [08:58:26]Connected sock=10 [08:58: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 2B A4 07 01 5B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 33 00 00 00 F4 03 04 00 B4 BA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 83 85 CF CA 17 EA 87 8A 7D EA B2 82 D0 35 [08:58: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 A7 3F 47 00 48 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 87 13 01 00 F4 03 04 00 52 64 18 67 B6 04 01 00 00 98 72 ED 31 B3 92 9D 79 [08:58:26]CommunicateWithHost err = 0 [08:58:26]CheckOFDResponse [08:58:26]1017 (14) - 77093643461234 [08:58:26]1041 (16) - 0000000000963346 [08:58:26]1040 (4) - 70535 [08:58:26]1012 (4) - 23.10.2024 02:49 [08:58:26]1206 (1) - 0 [08:58:26]OFD Sender: Remove packet 70535 [08:58:26]ProducePacketName [08:58:26]name=ofd_packets/00070535 [08:58:26]NVStorageDeleteData [08:58:26]Write to MH i2c: 01 00 00 27 46 6D [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 07 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 07 00 27 46 00 00 00 00 00 EC 0C 6C [08:58:26]RasterBufferAndPrint [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]written 0, free lines is 3314 [08:58:26]MH_Cut [08:58:26]Write to MH i2c: D1 01 00 2E 46 01 46 [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 01 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 01 00 2E 46 00 45 [08:58:26]Write to MH i2c: 01 00 00 2F 46 75 [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]OFD Sender: No OFD packet to send [08:58:27]*** Cut start [08:58:27]*** Partial cut [08:58:27]*** CUTSNS_PIN = 1 [08:58:27]*** CUTSNS_PIN = 0 [08:58:27]*** Brake cut motor [08:58:27]Read from MH i2c: 01 [08:58:27]MH_I2C_Read... [08:58:27]*** Stop cut motor [08:58:27]*** Cut end [08:58:27]Read from MH i2c: 01 07 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: 01 07 00 2F 46 00 00 00 00 00 FF 0F 8A [08:58:27]process_action close_receipt done [08:58:27]requested_data is exist [08:58:27]produce_requested_data [08:58:27]requested_item fm.sn is exist - process it [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 11 00 00 [08:58:27]Write to MH i2c: E2 08 00 30 46 80 11 00 00 00 00 00 00 F0 [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:27]Read from MH i2c: E2 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 17 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 17 00 30 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [08:58: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:58:27]wFMCommunicate OK [08:58:27]requested_item fd.num is exist - process it [08:58:27]SAM_PROTO_GetFieldsCounters [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 13 00 00 [08:58:27]Write to MH i2c: E2 08 00 31 46 80 13 00 00 00 00 00 00 F3 [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:27]Read from MH i2c: E2 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 62 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 62 00 31 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 87 13 01 00 0E 04 04 00 C4 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 06 [08:58: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 87 13 01 00 0E 04 04 00 C4 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:58:27]wFMCommunicate OK [08:58:27]SAM_PROTO_GetFieldsCounters done [08:58:27]requested_item shift.num is exist - process it [08:58:27]requested_item shift.opened is exist - process it [08:58:27]req_shift_opened [08:58:27]FM_GetShiftState [08:58:27]SAM_PROTO_GetShiftState [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 13 01 00 [08:58:27]Write to MH i2c: E2 08 00 32 46 80 13 01 00 00 00 00 00 F5 [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:28]Read from MH i2c: E2 [08:58:28]MH_I2C_Read... [08:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:28]Read from MH i2c: E2 0E 00 [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: E2 0E 00 32 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 82 [08:58:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [08:58:28]wFMCommunicate OK [08:58:28]SAM_PROTO_GetShiftState done [08:58:28]FM_GetShiftState done [08:58:28]req_shift_opened done [08:58:28]requested_item shift.open_date is exist - process it [08:58:28]req_shift_open_date [08:58:28]req_shift_open_date done [08:58:28]produce_requested_data done [08:58:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70535,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [08:58:28]process_action_free close_receipt [08:58:28]json_value_free [08:58:28]json_value_free done [08:58:28]process_json_proto returns [08:58:28]Send response to host [08:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70535,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [08:58:28]free response buf [08:58:28]execute_script done [08:58:28]execute_script returns [08:58:28]free content buf [08:58:28]Sock 7.Close socket [08:58:28]Sock 7.Thread stoped [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:33]accept exits with 9 [09:03:33]New connection [09:03:33]New thread 3066555748 created [09:03:33]Thread 3066699108 joined [09:03:33]Waiting for new connection... [09:03:33] Sock 9.Parse request [09:03:33]Sock 9.Check first char [09:03:33]Sock 9.First char is OK [09:03:33]request: POST /json_proto HTTP/1.0 [09:03:33]Method: POST [09:03:33]URL: /json_proto [09:03:33]Method is POST - this is cgi request [09:03:33]url: /json_proto [09:03:33]query_string will be loaded in cgi processing [09:03:33]execute_cgi json_proto POST (null) [09:03:33]execute_cgi path=json_proto method=POST [09:03:33]POST find Content-Length [09:03:33]Host: 172.17.50.3:8080 [09:03:33]Content-Length: 679 [09:03:33]Content-Type: application/json [09:03:33] [09:03:33]POST finish read [09:03:33]Found Content-Length = 679 [09:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886304", "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" : 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" ] } } [09:03:33]execute_script... [09:03: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)2886304", "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" : 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" ] } } [09:03:33]POST & json_proto [09:03:33]process_json_proto [09:03:33]json parsed OK: [09:03:33]protocol is kg_v1.0 [09:03:33]action value=close_receipt [09:03:33]process_action close_receipt [09:03:33]cmd_close_receipt [09:03:33]MH_GetDate [09:03:33]Write to MH i2c: F0 00 00 33 46 68 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: F0 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: F0 09 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: F0 09 00 33 46 00 E9 BB 18 67 6B 98 1E 66 1B [09:03:33]GetLastDocTimeStamp 1729673908 [09:03:33]current date 1729674217 [09:03:33]FM_GetShiftState [09:03:33]SAM_PROTO_GetShiftState [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 13 01 00 [09:03:33]Write to MH i2c: E2 08 00 34 46 80 13 01 00 00 00 00 00 F7 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0E 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0E 00 34 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 84 [09:03:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:03:33]wFMCommunicate OK [09:03:33]SAM_PROTO_GetShiftState done [09:03:33]FM_GetShiftState done [09:03:33]opened in 1729642435 [09:03:33]opened+sec_in_day 1729728835 [09:03:33]quantity*price = 80012 [09:03:33]sum+1 = 80013 [09:03:33]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 СНО: Общий режим Чек 52 23.10.2024 09:03 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70536 ФПД: 190158813420441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70536&fm=190158813420441&tin=02508201610067®Number=0000000000156251&sum=80000 [09:03:34]StoreToDocumentArchive [09:03:34]shift 196 fd 70536 [09:03:34]save to /storage/0196/doc_00070536 [09:03:34]save last doc name /storage/0196/doc_00070536 to /storage/kkm_last_doc_name [09:03:34]save OK [09:03:34]Clear old archive folders... [09:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:34]tlvbuf is B6D6A8A0 [09:03:34]SAM_PROTO_ClearQueue [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 09 00 00 [09:03:34]Write to MH i2c: E2 08 00 41 46 80 09 00 00 00 00 00 00 F9 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 41 46 00 90 00 FB [09:03:34]RAPDU: 90 00 [09:03:34]wFMCommunicate OK [09:03:34]SAM_PROTO_ClearQueue done [09:03:34]KKMCreateOFDPacket [09:03:34]OFDProtocolAddRootSTLVToBuf [09:03:34]FM_MakeSignedData [09:03:34]FM_MakeSignedData [09:03:34]SAM_PROTO_SignData [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 0D 01 02 [09:03:34]Write to MH i2c: E2 08 00 42 46 80 0D 01 02 00 00 00 00 01 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 42 46 00 90 00 FC [09:03:34]RAPDU: 90 00 [09:03:34]wFMCommunicate OK [09:03:34]wFMCommunicate request_size=255 [09:03:34]MH_SAM_APDU [09:03: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 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 34 00 00 00 F4 03 04 00 E9 BB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC [09:03:34]Write to MH i2c: E2 02 01 43 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 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 34 00 00 00 F4 03 04 00 E9 BB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC 00 00 D9 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 43 46 00 90 00 FD [09:03:34]RAPDU: 90 00 [09:03:34]wFMCommunicate OK [09:03:34]wFMCommunicate request_size=10 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 0D 02 02 05 F2 CC 86 5B 99 [09:03:34]Write to MH i2c: E2 0D 00 44 46 80 0D 02 02 05 00 F2 CC 86 5B 99 00 00 46 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 03 00 44 46 00 90 00 FE [09:03:34]RAPDU: 90 00 [09:03:34]wFMCommunicate OK [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 0D 03 02 [09:03:34]Write to MH i2c: E2 08 00 45 46 80 0D 03 02 00 00 00 00 06 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 0B 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 0B 00 45 46 00 04 84 06 DF 9C 4F 11 24 90 00 94 [09:03:34]RAPDU: 04 84 06 DF 9C 4F 11 24 90 00 [09:03:34]wFMCommunicate OK [09:03:34]SAM_PROTO_SignData done [09:03:34]FM_MakeSignedData done [09:03:34]CreateOFDProtocolMessage [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 11 00 00 [09:03:34]Write to MH i2c: E2 08 00 46 46 80 11 00 00 00 00 00 00 06 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 46 46 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:03: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:03:34]wFMCommunicate OK [09:03:34]CreateOFDProtocolMessage done [09:03:34]OFDSenderStorePacket 70536 [09:03:34]StoreOFDPacket docnum=70536 [09:03: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 FE 3C 07 01 C6 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 E9 BB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC F2 CC 86 5B 99 04 84 06 DF 9C 4F 11 24 [09:03:34]CheckFolder [09:03:34]dirname=/storage/ofd_packets [09:03:34]CheckFolder done [09:03:34]ProducePacketName [09:03:34]name=ofd_packets/00070536 [09:03:34]NVStorageSaveData ofd_packets/00070536 [09:03:34]File name is /storage/ofd_packets/00070536 [09:03:34]Write 301 bytes [09:03:34]NVStorageSaveData done [09:03:34]OFDSenderStorePacket done [09:03:34]KKMCreateOFDPacket done [09:03:34]NVStorageSaveData kkm_last_timestamp [09:03:34]File name is /storage/kkm_last_timestamp [09:03:34]Write 4 bytes [09:03:34]NVStorageSaveData done [09:03:34]ExternCall_PrintAddStr [09:03:34]wPrintStart [09:03:34]Write to MH i2c: 01 00 00 47 46 8D [09:03:34]OFD Sender: Processing packet 70536 [packets to send 18, broken 17] [09:03:34]ProducePacketName [09:03:34]name=ofd_packets/00070536 [09:03:34]OFD Sender: To server: pG, [09:03:34]CommunicateWithHost lk.salyk.kg:30040 [09:03:34]ConnectInit lk.salyk.kg [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 47 46 00 00 00 00 00 FF 0F A2 [09:03:34]RasterBufferAndPrint [09:03:34]line Счет N : (1)2886304 [09:03:34]line ИНН: 02508201610067 [09:03:34]line Контрольно-Кассовый Чек [09:03:34]line ПРОДАЖА [09:03:34]line ТРК (МРК, ГНК) : 22 [09:03:34]line Товар: 2710124130 [09:03:34]line Аи-92-К-5 [09:03:34]line 11.960 * 66.90 [09:03:34]line = 800.12 [09:03:34]line НДС 12% НСП 1% [09:03:34]line > о реализуемом товаре [09:03:34]line ОКРУГЛЕНИЕ: -0.12 [09:03:34]line ИТОГО: 800.00 [09:03:34]line Внесено: 800.00 [09:03:34]line СДАЧА: 0.00 [09:03:34]line НСП 1% : 7.08 [09:03:34]line НДС 12% : 84.97 [09:03:34]line Наличными: 800.00 [09:03:34]line Безнал.: 0.00 [09:03:34]line Место: АЗС № 85 "Партнер Нефть" [09:03:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:03:34]line СНО: Общий режим [09:03:34]line Чек 52 23.10.2024 09:03 [09:03:34]line Смена: 196 ФФД: 1.0 [09:03:34]line ЗНМ: 0300000167 [09:03:34]line РНМ: 0000000000156251 [09:03:34]line Версия ККМ: v1.0 [09:03:34]line ФМ: 0000000000963346 [09:03:34]line ФД: 70536 [09:03:34]line ФПД: 190158813420441 [09:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70536&fm=190158813420441&tin=02508201610067®Number=0000000000156251&sum=80000 [09:03:35]Connected sock=10 [09:03: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 FE 3C 07 01 C6 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 E9 BB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC F2 CC 86 5B 99 04 84 06 DF 9C 4F 11 24 [09:03:35]written 0, free lines is 4095 [09:03: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 05 68 47 00 46 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 88 13 01 00 F4 03 04 00 87 65 18 67 B6 04 01 00 00 DC DF F9 AF 34 6B A3 2D [09:03:35]CommunicateWithHost err = 0 [09:03:35]CheckOFDResponse [09:03:35]1017 (14) - 77093643461234 [09:03:35]1041 (16) - 0000000000963346 [09:03:35]1040 (4) - 70536 [09:03:35]1012 (4) - 23.10.2024 02:55 [09:03:35]1206 (1) - 0 [09:03:35]OFD Sender: Remove packet 70536 [09:03:35]ProducePacketName [09:03:35]name=ofd_packets/00070536 [09:03:35]NVStorageDeleteData [09:03:35]Write to MH i2c: 01 00 00 72 46 B8 [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: 01 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: 01 07 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: 01 07 00 72 46 00 00 00 00 00 E4 0C AF [09:03:35]RasterBufferAndPrint [09:03:35]line [09:03:35]line [09:03:35]line [09:03:35]line [09:03:35]line [09:03:35]written 0, free lines is 3309 [09:03:35]MH_Cut [09:03:35]Write to MH i2c: D1 01 00 79 46 01 91 [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: D1 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: D1 01 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: D1 01 00 79 46 00 90 [09:03:35]Write to MH i2c: 01 00 00 7A 46 C0 [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]OFD Sender: No OFD packet to send [09:03:36]*** Cut start [09:03:36]*** Partial cut [09:03:36]*** CUTSNS_PIN = 1 [09:03:36]*** CUTSNS_PIN = 0 [09:03:36]*** Brake cut motor [09:03:36]Read from MH i2c: 01 [09:03:36]MH_I2C_Read... [09:03:36]*** Stop cut motor [09:03:36]*** Cut end [09:03:36]Read from MH i2c: 01 07 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: 01 07 00 7A 46 00 00 00 00 00 FF 0F D5 [09:03:36]process_action close_receipt done [09:03:36]requested_data is exist [09:03:36]produce_requested_data [09:03:36]requested_item fm.sn is exist - process it [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 11 00 00 [09:03:36]Write to MH i2c: E2 08 00 7B 46 80 11 00 00 00 00 00 00 3B [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 17 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 17 00 7B 46 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:03: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:03:36]wFMCommunicate OK [09:03:36]requested_item fd.num is exist - process it [09:03:36]SAM_PROTO_GetFieldsCounters [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 13 00 00 [09:03:36]Write to MH i2c: E2 08 00 7C 46 80 13 00 00 00 00 00 00 3E [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:37]Read from MH i2c: E2 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: E2 62 00 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: E2 62 00 7C 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 88 13 01 00 0E 04 04 00 C4 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 55 [09:03: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 88 13 01 00 0E 04 04 00 C4 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 [09:03:37]wFMCommunicate OK [09:03:37]SAM_PROTO_GetFieldsCounters done [09:03:37]requested_item shift.num is exist - process it [09:03:37]requested_item shift.opened is exist - process it [09:03:37]req_shift_opened [09:03:37]FM_GetShiftState [09:03:37]SAM_PROTO_GetShiftState [09:03:37]wFMCommunicate request_size=4 [09:03:37]MH_SAM_APDU [09:03:37]CAPDU: 80 13 01 00 [09:03:37]Write to MH i2c: E2 08 00 7D 46 80 13 01 00 00 00 00 00 40 [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:37]Read from MH i2c: E2 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: E2 0E 00 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: E2 0E 00 7D 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CD [09:03:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:03:37]wFMCommunicate OK [09:03:37]SAM_PROTO_GetShiftState done [09:03:37]FM_GetShiftState done [09:03:37]req_shift_opened done [09:03:37]requested_item shift.open_date is exist - process it [09:03:37]req_shift_open_date [09:03:37]req_shift_open_date done [09:03:37]produce_requested_data done [09:03:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70536,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:03:37]process_action_free close_receipt [09:03:37]json_value_free [09:03:37]json_value_free done [09:03:37]process_json_proto returns [09:03:37]Send response to host [09:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70536,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:03:37]free response buf [09:03:37]execute_script done [09:03:37]execute_script returns [09:03:37]free content buf [09:03:37]Sock 9.Close socket [09:03:37]Sock 9.Thread stoped [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:07]accept exits with 7 [09:05:07]New connection [09:05:07]New thread 3066699108 created [09:05:07]Thread 3066555748 joined [09:05:07]Waiting for new connection... [09:05:07] Sock 7.Parse request [09:05:07]Sock 7.Check first char [09:05:07]Sock 7.First char is OK [09:05:07]request: POST /json_proto HTTP/1.0 [09:05:07]Method: POST [09:05:07]URL: /json_proto [09:05:07]Method is POST - this is cgi request [09:05:07]url: /json_proto [09:05:07]query_string will be loaded in cgi processing [09:05:07]execute_cgi json_proto POST (null) [09:05:07]execute_cgi path=json_proto method=POST [09:05:07]POST find Content-Length [09:05:07]Host: 172.17.50.3:8080 [09:05:07]Content-Length: 755 [09:05:07]Content-Type: application/json [09:05:07] [09:05:07]POST finish read [09:05:07]Found Content-Length = 755 [09:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886302", "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" : 36.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\u000A30033791", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:07]execute_script... [09:05: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)2886302", "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" : 36.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\u000A30033791", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:07]POST & json_proto [09:05:07]process_json_proto [09:05:07]json parsed OK: [09:05:07]protocol is kg_v1.0 [09:05:07]action value=close_receipt [09:05:07]process_action close_receipt [09:05:07]cmd_close_receipt [09:05:07]MH_GetDate [09:05:07]Write to MH i2c: F0 00 00 7E 46 B3 [09:05:07]Write i2c OK [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 09 00 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 09 00 7E 46 00 47 BC 18 67 6B 98 1E 66 C5 [09:05:07]GetLastDocTimeStamp 1729674217 [09:05:07]current date 1729674311 [09:05:07]FM_GetShiftState [09:05:07]SAM_PROTO_GetShiftState [09:05:07]wFMCommunicate request_size=4 [09:05:07]MH_SAM_APDU [09:05:07]CAPDU: 80 13 01 00 [09:05:07]Write to MH i2c: E2 08 00 7F 46 80 13 01 00 00 00 00 00 42 [09:05:07]Write i2c OK [09:05:07]MH_I2C_Read... [09:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:07]Read from MH i2c: E2 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: E2 0E 00 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: E2 0E 00 7F 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CF [09:05:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:05:07]wFMCommunicate OK [09:05:07]SAM_PROTO_GetShiftState done [09:05:07]FM_GetShiftState done [09:05:07]opened in 1729642435 [09:05:07]opened+sec_in_day 1729728835 [09:05:07]quantity*price = 0 [09:05:07]sum+1 = 1 [09:05: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 СНО: Общий режим Чек 53 23.10.2024 09:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30033791 ФМ: 0000000000963346 ФД: 70537 ФПД: 104089164992750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70537&fm=104089164992750&tin=02508201610067®Number=0000000000156251&sum=0 [09:05:08]StoreToDocumentArchive [09:05:08]shift 196 fd 70537 [09:05:08]save to /storage/0196/doc_00070537 [09:05:08]save last doc name /storage/0196/doc_00070537 to /storage/kkm_last_doc_name [09:05:08]save OK [09:05:08]Clear old archive folders... [09:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:08]tlvbuf is 00CB3260 [09:05:08]SAM_PROTO_ClearQueue [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 09 00 00 [09:05:08]Write to MH i2c: E2 08 00 8C 46 80 09 00 00 00 00 00 00 44 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 8C 46 00 90 00 46 [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]SAM_PROTO_ClearQueue done [09:05:08]KKMCreateOFDPacket [09:05:08]OFDProtocolAddRootSTLVToBuf [09:05:08]FM_MakeSignedData [09:05:08]FM_MakeSignedData [09:05:08]SAM_PROTO_SignData [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 01 02 [09:05:08]Write to MH i2c: E2 08 00 8D 46 80 0D 01 02 00 00 00 00 4C [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 8D 46 00 90 00 47 [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=255 [09:05:08]MH_SAM_APDU [09:05: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 A0 8C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 BC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E [09:05:08]Write to MH i2c: E2 02 01 8E 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 A0 8C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 BC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E 00 00 F2 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 8E 46 00 90 00 48 [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=10 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 02 02 05 AB 25 B4 50 EE [09:05:08]Write to MH i2c: E2 0D 00 8F 46 80 0D 02 02 05 00 AB 25 B4 50 EE 00 00 1B [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 8F 46 00 90 00 49 [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 03 02 [09:05:08]Write to MH i2c: E2 08 00 90 46 80 0D 03 02 00 00 00 00 51 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:09]Read from MH i2c: E2 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: E2 0B 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: E2 0B 00 90 46 00 96 07 77 33 73 CF 71 10 90 00 5C [09:05:09]RAPDU: 96 07 77 33 73 CF 71 10 90 00 [09:05:09]wFMCommunicate OK [09:05:09]SAM_PROTO_SignData done [09:05:09]FM_MakeSignedData done [09:05:09]CreateOFDProtocolMessage [09:05:09]wFMCommunicate request_size=4 [09:05:09]MH_SAM_APDU [09:05:09]CAPDU: 80 11 00 00 [09:05:09]Write to MH i2c: E2 08 00 91 46 80 11 00 00 00 00 00 00 51 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:09]Read from MH i2c: E2 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: E2 17 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: E2 17 00 91 46 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:05:09]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:09]wFMCommunicate OK [09:05:09]CreateOFDProtocolMessage done [09:05:09]OFDSenderStorePacket 70537 [09:05:09]StoreOFDPacket docnum=70537 [09:05: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 83 B4 07 01 BE 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 A0 8C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 BC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E AB 25 B4 50 EE 96 07 77 33 73 CF 71 10 [09:05:09]CheckFolder [09:05:09]dirname=/storage/ofd_packets [09:05:09]CheckFolder done [09:05:09]ProducePacketName [09:05:09]name=ofd_packets/00070537 [09:05:09]NVStorageSaveData ofd_packets/00070537 [09:05:09]File name is /storage/ofd_packets/00070537 [09:05:09]Write 301 bytes [09:05:09]NVStorageSaveData done [09:05:09]OFDSenderStorePacket done [09:05:09]KKMCreateOFDPacket done [09:05:09]NVStorageSaveData kkm_last_timestamp [09:05:09]File name is /storage/kkm_last_timestamp [09:05:09]Write 4 bytes [09:05:09]NVStorageSaveData done [09:05:09]ExternCall_PrintAddStr [09:05:09]wPrintStart [09:05:09]Write to MH i2c: 01 00 00 92 46 D8 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 92 46 00 00 00 00 00 FF 0F ED [09:05:09]RasterBufferAndPrint [09:05:09]line Счет N : (1)2886302 [09:05:09]line ИНН: 02508201610067 [09:05:09]line Контрольно-Кассовый Чек [09:05:09]line ПРОДАЖА [09:05:09]line ТРК (МРК, ГНК) : 32 [09:05:09]line Товар: 2710124130 [09:05:09]line Аи-92-К-5 [09:05:09]line 36.000 * 0.00 [09:05:09]line = 0.00 [09:05:09]line НДС 12% НСП 1% [09:05:09]line > о реализуемом товаре [09:05:09]line ИТОГО: 0.00 [09:05:09]line НСП 1% : 0.00 [09:05:09]line НДС 12% : 0.00 [09:05:09]line Наличными: 0.00 [09:05:09]line Безнал.: 0.00 [09:05:09]line Место: АЗС № 85 "Партнер Нефть" [09:05:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:05:09]line СНО: Общий режим [09:05:09]line Чек 53 23.10.2024 09:05 [09:05:09]line Смена: 196 ФФД: 1.0 [09:05:09]line ЗНМ: 0300000167 [09:05:09]line РНМ: 0000000000156251 [09:05:09]line Версия ККМ: v1.0 [09:05:09]line Талоны: ТК ГПНА Online [09:05:09]line 30033791 [09:05:09]line ФМ: 0000000000963346 [09:05:09]line ФД: 70537 [09:05:09]line ФПД: 104089164992750 [09:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70537&fm=104089164992750&tin=02508201610067®Number=0000000000156251&sum=0 [09:05:09]written 0, free lines is 4095 [09:05:09]OFD Sender: Processing packet 70537 [packets to send 18, broken 17] [09:05:09]ProducePacketName [09:05:09]name=ofd_packets/00070537 [09:05:09]OFD Sender: To server: pG, [09:05:09]CommunicateWithHost lk.salyk.kg:30040 [09:05:09]ConnectInit lk.salyk.kg [09:05:09]Connected sock=10 [09:05: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 83 B4 07 01 BE 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 A0 8C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 BC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5E AB 25 B4 50 EE 96 07 77 33 73 CF 71 10 [09:05: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 71 34 47 00 0F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 13 01 00 F4 03 04 00 E5 65 18 67 B6 04 01 00 00 96 9C 71 F4 A6 DA 89 80 [09:05:09]CommunicateWithHost err = 0 [09:05:09]CheckOFDResponse [09:05:09]1017 (14) - 77093643461234 [09:05:09]1041 (16) - 0000000000963346 [09:05:09]1040 (4) - 70537 [09:05:09]1012 (4) - 23.10.2024 02:56 [09:05:09]1206 (1) - 0 [09:05:09]OFD Sender: Remove packet 70537 [09:05:09]ProducePacketName [09:05:09]name=ofd_packets/00070537 [09:05:09]NVStorageDeleteData [09:05:09]Write to MH i2c: 01 00 00 BC 46 02 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 BC 46 00 00 00 00 00 FF 0C 14 [09:05:09]RasterBufferAndPrint [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]written 0, free lines is 3336 [09:05:09]MH_Cut [09:05:09]Write to MH i2c: D1 01 00 C3 46 01 DB [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 01 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 01 00 C3 46 00 DA [09:05:09]Write to MH i2c: 01 00 00 C4 46 0A [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]OFD Sender: No OFD packet to send [09:05:10]*** Cut start [09:05:10]*** Partial cut [09:05:10]*** CUTSNS_PIN = 1 [09:05:10]*** CUTSNS_PIN = 0 [09:05:10]*** Brake cut motor [09:05:10]Read from MH i2c: 01 [09:05:10]MH_I2C_Read... [09:05:10]*** Stop cut motor [09:05:10]*** Cut end [09:05:10]Read from MH i2c: 01 07 00 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: 01 07 00 C4 46 00 00 00 00 00 FF 0F 1F [09:05:10]process_action close_receipt done [09:05:10]requested_data is exist [09:05:10]produce_requested_data [09:05:10]requested_item fm.sn is exist - process it [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 11 00 00 [09:05:10]Write to MH i2c: E2 08 00 C5 46 80 11 00 00 00 00 00 00 85 [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:10]Read from MH i2c: E2 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 17 00 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 17 00 C5 46 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:05: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:05:10]wFMCommunicate OK [09:05:10]requested_item fd.num is exist - process it [09:05:10]SAM_PROTO_GetFieldsCounters [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 13 00 00 [09:05:10]Write to MH i2c: E2 08 00 C6 46 80 13 00 00 00 00 00 00 88 [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 62 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 62 00 C6 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 89 13 01 00 0E 04 04 00 C4 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 A3 [09:05: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 89 13 01 00 0E 04 04 00 C4 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 [09:05:11]wFMCommunicate OK [09:05:11]SAM_PROTO_GetFieldsCounters done [09:05:11]requested_item shift.num is exist - process it [09:05:11]requested_item shift.opened is exist - process it [09:05:11]req_shift_opened [09:05:11]FM_GetShiftState [09:05:11]SAM_PROTO_GetShiftState [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 13 01 00 [09:05:11]Write to MH i2c: E2 08 00 C7 46 80 13 01 00 00 00 00 00 8A [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 C7 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 17 [09:05:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:05:11]wFMCommunicate OK [09:05:11]SAM_PROTO_GetShiftState done [09:05:11]FM_GetShiftState done [09:05:11]req_shift_opened done [09:05:11]requested_item shift.open_date is exist - process it [09:05:11]req_shift_open_date [09:05:11]req_shift_open_date done [09:05:11]produce_requested_data done [09:05:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70537,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:05:11]process_action_free close_receipt [09:05:11]json_value_free [09:05:11]json_value_free done [09:05:11]process_json_proto returns [09:05:11]Send response to host [09:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70537,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:05:11]free response buf [09:05:11]execute_script done [09:05:11]execute_script returns [09:05:11]free content buf [09:05:11]Sock 7.Close socket [09:05:11]Sock 7.Thread stoped [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]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:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:16]accept exits with 9 [09:11:16]New connection [09:11:16]New thread 3066555748 created [09:11:16]Thread 3066699108 joined [09:11:16]Waiting for new connection... [09:11:16] Sock 9.Parse request [09:11:16]Sock 9.Check first char [09:11:16]Sock 9.First char is OK [09:11:16]request: POST /json_proto HTTP/1.0 [09:11:16]Method: POST [09:11:16]URL: /json_proto [09:11:16]Method is POST - this is cgi request [09:11:16]url: /json_proto [09:11:16]query_string will be loaded in cgi processing [09:11:16]execute_cgi json_proto POST (null) [09:11:16]execute_cgi path=json_proto method=POST [09:11:16]POST find Content-Length [09:11:16]Host: 172.17.50.3:8080 [09:11:16]Content-Length: 683 [09:11:16]Content-Type: application/json [09:11:16] [09:11:16]POST finish read [09:11:16]Found Content-Length = 683 [09:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:16]execute_script... [09:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:16]POST & json_proto [09:11:16]process_json_proto [09:11:16]json parsed OK: [09:11:16]protocol is kg_v1.0 [09:11:16]action value=close_receipt [09:11:16]process_action close_receipt [09:11:16]cmd_close_receipt [09:11:16]MH_GetDate [09:11:16]Write to MH i2c: F0 00 00 C8 46 FD [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 09 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 09 00 C8 46 00 B8 BD 18 67 6B 98 1E 66 81 [09:11:16]GetLastDocTimeStamp 1729674311 [09:11:16]current date 1729674680 [09:11:16]FM_GetShiftState [09:11:16]SAM_PROTO_GetShiftState [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 13 01 00 [09:11:16]Write to MH i2c: E2 08 00 C9 46 80 13 01 00 00 00 00 00 8C [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 C9 46 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 19 [09:11:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_GetShiftState done [09:11:16]FM_GetShiftState done [09:11:16]opened in 1729642435 [09:11:16]opened+sec_in_day 1729728835 [09:11:16]quantity*price = 100021 [09:11:16]sum+1 = 100023 [09:11: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 СНО: Общий режим Чек 54 23.10.2024 09:11 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70538 ФПД: 121330137030460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70538&fm=121330137030460&tin=02508201610067®Number=0000000000156251&sum=100000 [09:11:17]StoreToDocumentArchive [09:11:17]shift 196 fd 70538 [09:11:17]save to /storage/0196/doc_00070538 [09:11:17]save last doc name /storage/0196/doc_00070538 to /storage/kkm_last_doc_name [09:11:17]save OK [09:11:17]Clear old archive folders... [09:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:17]tlvbuf is 00E04930 [09:11:17]SAM_PROTO_ClearQueue [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 09 00 00 [09:11:17]Write to MH i2c: E2 08 00 D6 46 80 09 00 00 00 00 00 00 8E [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 D6 46 00 90 00 90 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_ClearQueue done [09:11:17]KKMCreateOFDPacket [09:11:17]OFDProtocolAddRootSTLVToBuf [09:11:17]FM_MakeSignedData [09:11:17]FM_MakeSignedData [09:11:17]SAM_PROTO_SignData [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 0D 01 02 [09:11:17]Write to MH i2c: E2 08 00 D7 46 80 0D 01 02 00 00 00 00 96 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 D7 46 00 90 00 91 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]wFMCommunicate request_size=255 [09:11:17]MH_SAM_APDU [09:11: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 36 00 00 00 F4 03 04 00 B8 BD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6E [09:11:17]Write to MH i2c: E2 02 01 D8 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 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 36 00 00 00 F4 03 04 00 B8 BD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6E 00 00 36 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 D8 46 00 90 00 92 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]wFMCommunicate request_size=10 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 0D 02 02 05 59 5F B7 DF 3C [09:11:17]Write to MH i2c: E2 0D 00 D9 46 80 0D 02 02 05 00 59 5F B7 DF 3C 00 00 2D [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 D9 46 00 90 00 93 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 0D 03 02 [09:11:17]Write to MH i2c: E2 08 00 DA 46 80 0D 03 02 00 00 00 00 9B [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0B 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0B 00 DA 46 00 D3 D4 10 D5 6C 65 84 CA 90 00 47 [09:11:17]RAPDU: D3 D4 10 D5 6C 65 84 CA 90 00 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_SignData done [09:11:17]FM_MakeSignedData done [09:11:17]CreateOFDProtocolMessage [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 11 00 00 [09:11:17]Write to MH i2c: E2 08 00 DB 46 80 11 00 00 00 00 00 00 9B [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 17 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 17 00 DB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [09: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 [09:11:17]wFMCommunicate OK [09:11:17]CreateOFDProtocolMessage done [09:11:17]OFDSenderStorePacket 70538 [09:11:17]StoreOFDPacket docnum=70538 [09:11: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 58 ED 07 01 AE 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 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 36 00 00 00 F4 03 04 00 B8 BD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6E 59 5F B7 DF 3C D3 D4 10 D5 6C 65 84 CA [09:11:17]CheckFolder [09:11:17]dirname=/storage/ofd_packets [09:11:17]CheckFolder done [09:11:17]ProducePacketName [09:11:17]name=ofd_packets/00070538 [09:11:17]NVStorageSaveData ofd_packets/00070538 [09:11:17]File name is /storage/ofd_packets/00070538 [09:11:17]Write 301 bytes [09:11:17]NVStorageSaveData done [09:11:17]OFDSenderStorePacket done [09:11:17]KKMCreateOFDPacket done [09:11:17]NVStorageSaveData kkm_last_timestamp [09:11:17]File name is /storage/kkm_last_timestamp [09:11:17]Write 4 bytes [09:11:17]NVStorageSaveData done [09:11:17]ExternCall_PrintAddStr [09:11:17]wPrintStart [09:11:17]Write to MH i2c: 01 00 00 DC 46 22 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 DC 46 00 00 00 00 00 FF 0F 37 [09:11:17]RasterBufferAndPrint [09:11:17]line Счет N : (1)2886305 [09:11:17]line ИНН: 02508201610067 [09:11:17]line Контрольно-Кассовый Чек [09:11:17]line ПРОДАЖА [09:11:17]line ТРК (МРК, ГНК) : 43 [09:11:17]line Товар: 2710124500 [09:11:17]line Аи-95-К-5 [09:11:17]line 13.480 * 74.20 [09:11:17]line = 1000.22 [09:11:17]line НДС 12% НСП 1% [09:11:17]line > о реализуемом товаре [09:11:17]line ОКРУГЛЕНИЕ: -0.22 [09:11:17]line ИТОГО: 1000.00 [09:11:17]line Внесено: 1000.00 [09:11:17]line СДАЧА: 0.00 [09:11:17]line НСП 1% : 8.85 [09:11:17]line НДС 12% : 106.22 [09:11:17]line Наличными: 1000.00 [09:11:17]line Безнал.: 0.00 [09:11:17]line Место: АЗС № 85 "Партнер Нефть" [09:11:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:11:17]line СНО: Общий режим [09:11:17]line Чек 54 23.10.2024 09:11 [09:11:17]line Смена: 196 ФФД: 1.0 [09:11:17]line ЗНМ: 0300000167 [09:11:17]line РНМ: 0000000000156251 [09:11:17]line Версия ККМ: v1.0 [09:11:17]line ФМ: 0000000000963346 [09:11:17]line ФД: 70538 [09:11:17]line ФПД: 121330137030460 [09:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70538&fm=121330137030460&tin=02508201610067®Number=0000000000156251&sum=100000 [09:11:18]OFD Sender: Processing packet 70538 [packets to send 18, broken 17] [09:11:18]ProducePacketName [09:11:18]name=ofd_packets/00070538 [09:11:18]OFD Sender: To server: pG, [09:11:18]CommunicateWithHost lk.salyk.kg:30040 [09:11:18]ConnectInit lk.salyk.kg [09:11:18]written 0, free lines is 4095 [09:11:18]Connected sock=10 [09:11: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 58 ED 07 01 AE 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 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 36 00 00 00 F4 03 04 00 B8 BD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6E 59 5F B7 DF 3C D3 D4 10 D5 6C 65 84 CA [09:11: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 F8 41 47 00 98 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 56 67 18 67 B6 04 01 00 00 97 3E 08 E2 4C 23 3E 23 [09:11:18]CommunicateWithHost err = 0 [09:11:18]CheckOFDResponse [09:11:18]1017 (14) - 77093643461234 [09:11:18]1041 (16) - 0000000000963346 [09:11:18]1040 (4) - 70538 [09:11:18]1012 (4) - 23.10.2024 03:02 [09:11:18]1206 (1) - 0 [09:11:18]OFD Sender: Remove packet 70538 [09:11:18]ProducePacketName [09:11:18]name=ofd_packets/00070538 [09:11:18]NVStorageDeleteData [09:11:18]Write to MH i2c: 01 00 00 07 47 4E [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 07 47 00 00 00 00 00 EF 0C 50 [09:11:18]RasterBufferAndPrint [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]written 0, free lines is 3317 [09:11:18]MH_Cut [09:11:18]Write to MH i2c: D1 01 00 0E 47 01 27 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 01 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 01 00 0E 47 00 26 [09:11:18]Write to MH i2c: 01 00 00 0F 47 56 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]OFD Sender: No OFD packet to send [09:11:19]*** Cut start [09:11:19]*** Partial cut [09:11:19]*** CUTSNS_PIN = 1 [09:11:19]*** CUTSNS_PIN = 0 [09:11:19]*** Brake cut motor [09:11:19]Read from MH i2c: 01 [09:11:19]MH_I2C_Read... [09:11:19]*** Stop cut motor [09:11:19]*** Cut end [09:11:19]Read from MH i2c: 01 07 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: 01 07 00 0F 47 00 00 00 00 00 FF 0F 6B [09:11:19]process_action close_receipt done [09:11:19]requested_data is exist [09:11:19]produce_requested_data [09:11:19]requested_item fm.sn is exist - process it [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 11 00 00 [09:11:19]Write to MH i2c: E2 08 00 10 47 80 11 00 00 00 00 00 00 D1 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 17 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 17 00 10 47 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:11: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:11:19]wFMCommunicate OK [09:11:19]requested_item fd.num is exist - process it [09:11:19]SAM_PROTO_GetFieldsCounters [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 13 00 00 [09:11:19]Write to MH i2c: E2 08 00 11 47 80 13 00 00 00 00 00 00 D4 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 62 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 62 00 11 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 8A 13 01 00 0E 04 04 00 C4 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 F3 [09:11: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 8A 13 01 00 0E 04 04 00 C4 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 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_GetFieldsCounters done [09:11:20]requested_item shift.num is exist - process it [09:11:20]requested_item shift.opened is exist - process it [09:11:20]req_shift_opened [09:11:20]FM_GetShiftState [09:11:20]SAM_PROTO_GetShiftState [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 13 01 00 [09:11:20]Write to MH i2c: E2 08 00 12 47 80 13 01 00 00 00 00 00 D6 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:20]Read from MH i2c: E2 0E 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 0E 00 12 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 63 [09:11:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_GetShiftState done [09:11:20]FM_GetShiftState done [09:11:20]req_shift_opened done [09:11:20]requested_item shift.open_date is exist - process it [09:11:20]req_shift_open_date [09:11:20]req_shift_open_date done [09:11:20]produce_requested_data done [09:11:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70538,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:11:20]process_action_free close_receipt [09:11:20]json_value_free [09:11:20]json_value_free done [09:11:20]process_json_proto returns [09:11:20]Send response to host [09:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70538,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:11:20]free response buf [09:11:20]execute_script done [09:11:20]execute_script returns [09:11:20]free content buf [09:11:20]Sock 9.Close socket [09:11:20]Sock 9.Thread stoped [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12: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:45]accept exits with 7 [09:13:45]New connection [09:13:45]New thread 3066699108 created [09:13:45]Thread 3066555748 joined [09:13:45]Waiting for new connection... [09:13:45] Sock 7.Parse request [09:13:45]Sock 7.Check first char [09:13:45]Sock 7.First char is OK [09:13:45]request: POST /json_proto HTTP/1.0 [09:13:45]Method: POST [09:13:45]URL: /json_proto [09:13:45]Method is POST - this is cgi request [09:13:45]url: /json_proto [09:13:45]query_string will be loaded in cgi processing [09:13:45]execute_cgi json_proto POST (null) [09:13:45]execute_cgi path=json_proto method=POST [09:13:45]POST find Content-Length [09:13:45]Host: 172.17.50.3:8080 [09:13:45]Content-Length: 683 [09:13:45]Content-Type: application/json [09:13:45] [09:13:45]POST finish read [09:13:45]Found Content-Length = 683 [09:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886306", "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" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]execute_script... [09:13: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)2886306", "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" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]POST & json_proto [09:13:45]process_json_proto [09:13:45]json parsed OK: [09:13:45]protocol is kg_v1.0 [09:13:45]action value=close_receipt [09:13:45]process_action close_receipt [09:13:45]cmd_close_receipt [09:13:45]MH_GetDate [09:13:45]Write to MH i2c: F0 00 00 13 47 49 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 13 47 00 4D BE 18 67 6B 98 1E 66 63 [09:13:45]GetLastDocTimeStamp 1729674680 [09:13:45]current date 1729674829 [09:13:45]FM_GetShiftState [09:13:45]SAM_PROTO_GetShiftState [09:13:45]wFMCommunicate request_size=4 [09:13:45]MH_SAM_APDU [09:13:45]CAPDU: 80 13 01 00 [09:13:45]Write to MH i2c: E2 08 00 14 47 80 13 01 00 00 00 00 00 D8 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:45]Read from MH i2c: E2 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 14 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 65 [09:13:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:13:45]wFMCommunicate OK [09:13:45]SAM_PROTO_GetShiftState done [09:13:45]FM_GetShiftState done [09:13:45]opened in 1729642435 [09:13:45]opened+sec_in_day 1729728835 [09:13:45]quantity*price = 170066 [09:13:45]sum+1 = 170067 [09:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 55 23.10.2024 09:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70539 ФПД: 51966128467303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70539&fm=51966128467303&tin=02508201610067®Number=0000000000156251&sum=170000 [09:13:46]StoreToDocumentArchive [09:13:46]shift 196 fd 70539 [09:13:46]save to /storage/0196/doc_00070539 [09:13:46]save last doc name /storage/0196/doc_00070539 to /storage/kkm_last_doc_name [09:13:46]save OK [09:13:46]Clear old archive folders... [09:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:46]tlvbuf is 00EB0D10 [09:13:46]SAM_PROTO_ClearQueue [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 09 00 00 [09:13:46]Write to MH i2c: E2 08 00 21 47 80 09 00 00 00 00 00 00 DA [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 21 47 00 90 00 DC [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_ClearQueue done [09:13:46]KKMCreateOFDPacket [09:13:46]OFDProtocolAddRootSTLVToBuf [09:13:46]FM_MakeSignedData [09:13:46]FM_MakeSignedData [09:13:46]SAM_PROTO_SignData [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 01 02 [09:13:46]Write to MH i2c: E2 08 00 22 47 80 0D 01 02 00 00 00 00 E2 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 22 47 00 90 00 DD [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]wFMCommunicate request_size=255 [09:13:46]MH_SAM_APDU [09:13: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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 4D BE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2F [09:13:46]Write to MH i2c: E2 02 01 23 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 4D BE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2F 00 00 2E [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 23 47 00 90 00 DE [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]wFMCommunicate request_size=10 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 02 02 05 43 4E A0 AD 67 [09:13:46]Write to MH i2c: E2 0D 00 24 47 80 0D 02 02 05 00 43 4E A0 AD 67 00 00 34 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 03 00 24 47 00 90 00 DF [09:13:46]RAPDU: 90 00 [09:13:46]wFMCommunicate OK [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 0D 03 02 [09:13:46]Write to MH i2c: E2 08 00 25 47 80 0D 03 02 00 00 00 00 E7 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0B 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0B 00 25 47 00 A5 90 88 BA 2B D4 42 B0 90 00 50 [09:13:46]RAPDU: A5 90 88 BA 2B D4 42 B0 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_SignData done [09:13:46]FM_MakeSignedData done [09:13:46]CreateOFDProtocolMessage [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 11 00 00 [09:13:46]Write to MH i2c: E2 08 00 26 47 80 11 00 00 00 00 00 00 E7 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 26 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [09: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 [09:13:47]wFMCommunicate OK [09:13:47]CreateOFDProtocolMessage done [09:13:47]OFDSenderStorePacket 70539 [09:13:47]StoreOFDPacket docnum=70539 [09:13: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 B7 8A 07 01 FE 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 4D BE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2F 43 4E A0 AD 67 A5 90 88 BA 2B D4 42 B0 [09:13:47]CheckFolder [09:13:47]dirname=/storage/ofd_packets [09:13:47]CheckFolder done [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00070539 [09:13:47]NVStorageSaveData ofd_packets/00070539 [09:13:47]File name is /storage/ofd_packets/00070539 [09:13:47]Write 301 bytes [09:13:47]NVStorageSaveData done [09:13:47]OFDSenderStorePacket done [09:13:47]KKMCreateOFDPacket done [09:13:47]NVStorageSaveData kkm_last_timestamp [09:13:47]File name is /storage/kkm_last_timestamp [09:13:47]Write 4 bytes [09:13:47]NVStorageSaveData done [09:13:47]ExternCall_PrintAddStr [09:13:47]wPrintStart [09:13:47]Write to MH i2c: 01 00 00 27 47 6E [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 27 47 00 00 00 00 00 FF 0F 83 [09:13:47]RasterBufferAndPrint [09:13:47]line Счет N : (1)2886306 [09:13:47]line ИНН: 02508201610067 [09:13:47]line Контрольно-Кассовый Чек [09:13:47]line ПРОДАЖА [09:13:47]line ТРК (МРК, ГНК) : 23 [09:13:47]line Товар: 2710124500 [09:13:47]line Аи-95-К-5 [09:13:47]line 22.920 * 74.20 [09:13:47]line = 1700.66 [09:13:47]line НДС 12% НСП 1% [09:13:47]line > о реализуемом товаре [09:13:47]line ОКРУГЛЕНИЕ: -0.66 [09:13:47]line ИТОГО: 1700.00 [09:13:47]line Внесено: 1700.00 [09:13:47]line СДАЧА: 0.00 [09:13:47]line НСП 1% : 15.05 [09:13:47]line НДС 12% : 180.60 [09:13:47]line Наличными: 1700.00 [09:13:47]line Безнал.: 0.00 [09:13:47]line Место: АЗС № 85 "Партнер Нефть" [09:13:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:13:47]line СНО: Общий режим [09:13:47]line Чек 55 23.10.2024 09:13 [09:13:47]line Смена: 196 ФФД: 1.0 [09:13:47]line ЗНМ: 0300000167 [09:13:47]line РНМ: 0000000000156251 [09:13:47]line Версия ККМ: v1.0 [09:13:47]line ФМ: 0000000000963346 [09:13:47]line ФД: 70539 [09:13:47]line ФПД: 51966128467303 [09:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70539&fm=51966128467303&tin=02508201610067®Number=0000000000156251&sum=170000 [09:13:47]OFD Sender: Processing packet 70539 [packets to send 18, broken 17] [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00070539 [09:13:47]OFD Sender: To server: pG, [09:13:47]CommunicateWithHost lk.salyk.kg:30040 [09:13:47]ConnectInit lk.salyk.kg [09:13:47]written 0, free lines is 4095 [09:13:47]Connected sock=10 [09:13: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 B7 8A 07 01 FE 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 4D BE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2F 43 4E A0 AD 67 A5 90 88 BA 2B D4 42 B0 [09:13: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 AF A4 47 00 97 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 EB 67 18 67 B6 04 01 00 00 18 47 70 7D BB 7D F4 B3 [09:13:47]CommunicateWithHost err = 0 [09:13:47]CheckOFDResponse [09:13:47]1017 (14) - 77093643461234 [09:13:47]1041 (16) - 0000000000963346 [09:13:47]1040 (4) - 70539 [09:13:47]1012 (4) - 23.10.2024 03:05 [09:13:47]1206 (1) - 0 [09:13:47]OFD Sender: Remove packet 70539 [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00070539 [09:13:47]NVStorageDeleteData [09:13:47]Write to MH i2c: 01 00 00 52 47 99 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 52 47 00 00 00 00 00 EA 0C 96 [09:13:47]RasterBufferAndPrint [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]line [09:13:47]written 0, free lines is 3312 [09:13:47]MH_Cut [09:13:47]Write to MH i2c: D1 01 00 59 47 01 72 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 01 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: D1 01 00 59 47 00 71 [09:13:47]Write to MH i2c: 01 00 00 5A 47 A1 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:48]OFD Sender: No OFD packet to send [09:13:48]*** Cut start [09:13:48]*** Partial cut [09:13:48]*** CUTSNS_PIN = 1 [09:13:48]*** CUTSNS_PIN = 0 [09:13:48]*** Brake cut motor [09:13:49]Read from MH i2c: 01 [09:13:49]MH_I2C_Read... [09:13:49]*** Stop cut motor [09:13:49]*** Cut end [09:13:49]Read from MH i2c: 01 07 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 5A 47 00 00 00 00 00 FF 0F B6 [09:13:49]process_action close_receipt done [09:13:49]requested_data is exist [09:13:49]produce_requested_data [09:13:49]requested_item fm.sn is exist - process it [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 11 00 00 [09:13:49]Write to MH i2c: E2 08 00 5B 47 80 11 00 00 00 00 00 00 1C [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 5B 47 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:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:13:49]wFMCommunicate OK [09:13:49]requested_item fd.num is exist - process it [09:13:49]SAM_PROTO_GetFieldsCounters [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 13 00 00 [09:13:49]Write to MH i2c: E2 08 00 5C 47 80 13 00 00 00 00 00 00 1F [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 62 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 62 00 5C 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 8B 13 01 00 0E 04 04 00 C4 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 42 [09:13: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 8B 13 01 00 0E 04 04 00 C4 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 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_GetFieldsCounters done [09:13:49]requested_item shift.num is exist - process it [09:13:49]requested_item shift.opened is exist - process it [09:13:49]req_shift_opened [09:13:49]FM_GetShiftState [09:13:49]SAM_PROTO_GetShiftState [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 13 01 00 [09:13:49]Write to MH i2c: E2 08 00 5D 47 80 13 01 00 00 00 00 00 21 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0E 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0E 00 5D 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [09:13:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_GetShiftState done [09:13:49]FM_GetShiftState done [09:13:49]req_shift_opened done [09:13:49]requested_item shift.open_date is exist - process it [09:13:49]req_shift_open_date [09:13:49]req_shift_open_date done [09:13:49]produce_requested_data done [09:13:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70539,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:13:49]process_action_free close_receipt [09:13:49]json_value_free [09:13:49]json_value_free done [09:13:49]process_json_proto returns [09:13:49]Send response to host [09:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70539,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:13:49]free response buf [09:13:49]execute_script done [09:13:49]execute_script returns [09:13:49]free content buf [09:13:49]Sock 7.Close socket [09:13:49]Sock 7.Thread stoped [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17: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]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:42]accept exits with 9 [09:22:42]New connection [09:22:42]New thread 3066555748 created [09:22:42]Thread 3066699108 joined [09:22:42]Waiting for new connection... [09:22:42] Sock 9.Parse request [09:22:42]Sock 9.Check first char [09:22:42]Sock 9.First char is OK [09:22:42]request: POST /json_proto HTTP/1.0 [09:22:42]Method: POST [09:22:42]URL: /json_proto [09:22:42]Method is POST - this is cgi request [09:22:42]url: /json_proto [09:22:42]query_string will be loaded in cgi processing [09:22:42]execute_cgi json_proto POST (null) [09:22:42]execute_cgi path=json_proto method=POST [09:22:42]POST find Content-Length [09:22:42]Host: 172.17.50.3:8080 [09:22:42]Content-Length: 686 [09:22:42]Content-Type: application/json [09:22:42] [09:22:42]POST finish read [09:22:42]Found Content-Length = 686 [09:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886307", "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:42]execute_script... [09:22: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)2886307", "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:42]POST & json_proto [09:22:42]process_json_proto [09:22:42]json parsed OK: [09:22:42]protocol is kg_v1.0 [09:22:42]action value=close_receipt [09:22:42]process_action close_receipt [09:22:42]cmd_close_receipt [09:22:42]MH_GetDate [09:22:42]Write to MH i2c: F0 00 00 5E 47 94 [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: F0 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: F0 09 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: F0 09 00 5E 47 00 66 C0 18 67 6B 98 1E 66 C9 [09:22:42]GetLastDocTimeStamp 1729674829 [09:22:42]current date 1729675366 [09:22:42]FM_GetShiftState [09:22:42]SAM_PROTO_GetShiftState [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 13 01 00 [09:22:42]Write to MH i2c: E2 08 00 5F 47 80 13 01 00 00 00 00 00 23 [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0E 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0E 00 5F 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B0 [09:22:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:22:42]wFMCommunicate OK [09:22:42]SAM_PROTO_GetShiftState done [09:22:42]FM_GetShiftState done [09:22:42]opened in 1729642435 [09:22:42]opened+sec_in_day 1729728835 [09:22:42]quantity*price = 100011 [09:22:42]sum+1 = 100013 [09:22:42]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 СНО: Общий режим Чек 56 23.10.2024 09:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70540 ФПД: 170288183177284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70540&fm=170288183177284&tin=02508201610067®Number=0000000000156251&sum=100000 [09:22:43]StoreToDocumentArchive [09:22:43]shift 196 fd 70540 [09:22:43]save to /storage/0196/doc_00070540 [09:22:43]save last doc name /storage/0196/doc_00070540 to /storage/kkm_last_doc_name [09:22:43]save OK [09:22:43]Clear old archive folders... [09:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:22:43]tlvbuf is 00C40A00 [09:22:43]SAM_PROTO_ClearQueue [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 09 00 00 [09:22:43]Write to MH i2c: E2 08 00 6C 47 80 09 00 00 00 00 00 00 25 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 6C 47 00 90 00 27 [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]SAM_PROTO_ClearQueue done [09:22:43]KKMCreateOFDPacket [09:22:43]OFDProtocolAddRootSTLVToBuf [09:22:43]FM_MakeSignedData [09:22:43]FM_MakeSignedData [09:22:43]SAM_PROTO_SignData [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 01 02 [09:22:43]Write to MH i2c: E2 08 00 6D 47 80 0D 01 02 00 00 00 00 2D [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 6D 47 00 90 00 28 [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=255 [09:22:43]MH_SAM_APDU [09:22:43]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 38 00 00 00 F4 03 04 00 66 C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9A E0 [09:22:43]Write to MH i2c: E2 02 01 6E 47 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 38 00 00 00 F4 03 04 00 66 C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9A E0 00 00 4C [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 6E 47 00 90 00 29 [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=9 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 02 02 04 4E AA F0 44 [09:22:43]Write to MH i2c: E2 0C 00 6F 47 80 0D 02 02 04 00 4E AA F0 44 00 00 64 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 6F 47 00 90 00 2A [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 03 02 [09:22:43]Write to MH i2c: E2 08 00 70 47 80 0D 03 02 00 00 00 00 32 [09:22:43]OFD Sender: No OFD packet to send [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 0B 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 0B 00 70 47 00 F6 F8 60 01 B3 4C 13 73 90 00 07 [09:22:43]RAPDU: F6 F8 60 01 B3 4C 13 73 90 00 [09:22:43]wFMCommunicate OK [09:22:43]SAM_PROTO_SignData done [09:22:43]FM_MakeSignedData done [09:22:43]CreateOFDProtocolMessage [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 11 00 00 [09:22:43]Write to MH i2c: E2 08 00 71 47 80 11 00 00 00 00 00 00 32 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 17 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 17 00 71 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [09:22: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:22:43]wFMCommunicate OK [09:22:43]CreateOFDProtocolMessage done [09:22:43]OFDSenderStorePacket 70540 [09:22:43]StoreOFDPacket docnum=70540 [09:22: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 0E 01 00 00 36 12 06 01 08 33 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 38 00 00 00 F4 03 04 00 66 C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9A E0 4E AA F0 44 F6 F8 60 01 B3 4C 13 73 [09:22:43]CheckFolder [09:22:43]dirname=/storage/ofd_packets [09:22:43]CheckFolder done [09:22:43]ProducePacketName [09:22:43]name=ofd_packets/00070540 [09:22:43]NVStorageSaveData ofd_packets/00070540 [09:22:43]File name is /storage/ofd_packets/00070540 [09:22:43]Write 300 bytes [09:22:43]NVStorageSaveData done [09:22:43]OFDSenderStorePacket done [09:22:43]KKMCreateOFDPacket done [09:22:43]NVStorageSaveData kkm_last_timestamp [09:22:43]File name is /storage/kkm_last_timestamp [09:22:43]Write 4 bytes [09:22:43]NVStorageSaveData done [09:22:43]ExternCall_PrintAddStr [09:22:43]wPrintStart [09:22:43]Write to MH i2c: 01 00 00 72 47 B9 [09:22:43]OFD Sender: Processing packet 70540 [packets to send 18, broken 17] [09:22:43]ProducePacketName [09:22:43]name=ofd_packets/00070540 [09:22:43]OFD Sender: To server: pG, [09:22:43]CommunicateWithHost lk.salyk.kg:30040 [09:22:43]ConnectInit lk.salyk.kg [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 72 47 00 00 00 00 00 FF 0F CE [09:22:43]RasterBufferAndPrint [09:22:43]line Счет N : (1)2886307 [09:22:43]line ИНН: 02508201610067 [09:22:43]line Контрольно-Кассовый Чек [09:22:43]line ПРОДАЖА [09:22:43]line ТРК (МРК, ГНК) : 71 [09:22:43]line Товар: 2711129700 [09:22:43]line ГАЗ-К-3 [09:22:43]line 25.710 * 38.90 [09:22:43]line = 1000.12 [09:22:43]line НДС 12% НСП 1% [09:22:43]line > о реализуемом товаре [09:22:43]line ОКРУГЛЕНИЕ: -0.12 [09:22:43]line ИТОГО: 1000.00 [09:22:43]line Внесено: 1000.00 [09:22:43]line СДАЧА: 0.00 [09:22:43]line НСП 1% : 8.85 [09:22:43]line НДС 12% : 106.21 [09:22:43]line Наличными: 1000.00 [09:22:43]line Безнал.: 0.00 [09:22:43]line Место: АЗС № 85 "Партнер Нефть" [09:22:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:22:43]line СНО: Общий режим [09:22:43]line Чек 56 23.10.2024 09:22 [09:22:43]line Смена: 196 ФФД: 1.0 [09:22:44]line ЗНМ: 0300000167 [09:22:44]line РНМ: 0000000000156251 [09:22:44]line Версия ККМ: v1.0 [09:22:44]line ФМ: 0000000000963346 [09:22:44]line ФД: 70540 [09:22:44]line ФПД: 170288183177284 [09:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70540&fm=170288183177284&tin=02508201610067®Number=0000000000156251&sum=100000 [09:22:44]Connected sock=10 [09:22: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 36 12 06 01 08 33 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 38 00 00 00 F4 03 04 00 66 C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9A E0 4E AA F0 44 F6 F8 60 01 B3 4C 13 73 [09:22:44]written 0, free lines is 4095 [09:22: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 D1 C8 47 00 2D 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 13 01 00 F4 03 04 00 04 6A 18 67 B6 04 01 00 00 15 BF BF 3F 61 05 E8 39 [09:22:44]CommunicateWithHost err = 0 [09:22:44]CheckOFDResponse [09:22:44]1017 (14) - 77093643461234 [09:22:44]1041 (16) - 0000000000963346 [09:22:44]1040 (4) - 70540 [09:22:44]1012 (4) - 23.10.2024 03:14 [09:22:44]1206 (1) - 0 [09:22:44]OFD Sender: Remove packet 70540 [09:22:44]ProducePacketName [09:22:44]name=ofd_packets/00070540 [09:22:44]NVStorageDeleteData [09:22:44]Write to MH i2c: 01 00 00 9D 47 E4 [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 07 00 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 07 00 9D 47 00 00 00 00 00 E4 0C DB [09:22:44]RasterBufferAndPrint [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]written 0, free lines is 3306 [09:22:44]MH_Cut [09:22:44]Write to MH i2c: D1 01 00 A4 47 01 BD [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 01 00 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 01 00 A4 47 00 BC [09:22:44]Write to MH i2c: 01 00 00 A5 47 EC [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]OFD Sender: No OFD packet to send [09:22:45]*** Cut start [09:22:45]*** Partial cut [09:22:45]*** CUTSNS_PIN = 1 [09:22:45]*** CUTSNS_PIN = 0 [09:22:45]*** Brake cut motor [09:22:45]Read from MH i2c: 01 [09:22:45]MH_I2C_Read... [09:22:45]*** Stop cut motor [09:22:45]*** Cut end [09:22:45]Read from MH i2c: 01 07 00 [09:22:45]MH_I2C_Read... [09:22:45]Read from MH i2c: 01 07 00 A5 47 00 00 00 00 00 FF 0F 01 [09:22:45]process_action close_receipt done [09:22:45]requested_data is exist [09:22:45]produce_requested_data [09:22:45]requested_item fm.sn is exist - process it [09:22:45]wFMCommunicate request_size=4 [09:22:45]MH_SAM_APDU [09:22:45]CAPDU: 80 11 00 00 [09:22:45]Write to MH i2c: E2 08 00 A6 47 80 11 00 00 00 00 00 00 67 [09:22:45]Write i2c OK [09:22:45]MH_I2C_Read... [09:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:45]Read from MH i2c: E2 [09:22:45]MH_I2C_Read... [09:22:45]Read from MH i2c: E2 17 00 [09:22:45]MH_I2C_Read... [09:22:45]Read from MH i2c: E2 17 00 A6 47 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:22:45]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:45]wFMCommunicate OK [09:22:45]requested_item fd.num is exist - process it [09:22:45]SAM_PROTO_GetFieldsCounters [09:22:45]wFMCommunicate request_size=4 [09:22:45]MH_SAM_APDU [09:22:45]CAPDU: 80 13 00 00 [09:22:45]Write to MH i2c: E2 08 00 A7 47 80 13 00 00 00 00 00 00 6A [09:22:45]Write i2c OK [09:22:45]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 62 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 62 00 A7 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 8C 13 01 00 0E 04 04 00 C4 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 91 [09:22: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 8C 13 01 00 0E 04 04 00 C4 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 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetFieldsCounters done [09:22:46]requested_item shift.num is exist - process it [09:22:46]requested_item shift.opened is exist - process it [09:22:46]req_shift_opened [09:22:46]FM_GetShiftState [09:22:46]SAM_PROTO_GetShiftState [09:22:46]wFMCommunicate request_size=4 [09:22:46]MH_SAM_APDU [09:22:46]CAPDU: 80 13 01 00 [09:22:46]Write to MH i2c: E2 08 00 A8 47 80 13 01 00 00 00 00 00 6C [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 A8 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [09:22:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetShiftState done [09:22:46]FM_GetShiftState done [09:22:46]req_shift_opened done [09:22:46]requested_item shift.open_date is exist - process it [09:22:46]req_shift_open_date [09:22:46]req_shift_open_date done [09:22:46]produce_requested_data done [09:22:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70540,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:22:46]process_action_free close_receipt [09:22:46]json_value_free [09:22:46]json_value_free done [09:22:46]process_json_proto returns [09:22:46]Send response to host [09:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70540,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:22:46]free response buf [09:22:46]execute_script done [09:22:46]execute_script returns [09:22:46]free content buf [09:22:46]Sock 9.Close socket [09:22:46]Sock 9.Thread stoped [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]accept exits with 7 [09:23:19]New connection [09:23:19]New thread 3066699108 created [09:23:19]Thread 3066555748 joined [09:23:19]Waiting for new connection... [09:23:19] Sock 7.Parse request [09:23:19]Sock 7.Check first char [09:23:19]Sock 7.First char is OK [09:23:19]request: POST /json_proto HTTP/1.0 [09:23:19]Method: POST [09:23:19]URL: /json_proto [09:23:19]Method is POST - this is cgi request [09:23:19]url: /json_proto [09:23:19]query_string will be loaded in cgi processing [09:23:19]execute_cgi json_proto POST (null) [09:23:19]execute_cgi path=json_proto method=POST [09:23:19]POST find Content-Length [09:23:19]Host: 172.17.50.3:8080 [09:23:19]Content-Length: 770 [09:23:19]Content-Type: application/json [09:23:19] [09:23:19]POST finish read [09:23:19]Found Content-Length = 770 [09:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886308", "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 }]} ], "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" ] } } [09:23:19]execute_script... [09:23: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)2886308", "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 }]} ], "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" ] } } [09:23:19]POST & json_proto [09:23:19]process_json_proto [09:23:19]json parsed OK: [09:23:19]protocol is kg_v1.0 [09:23:19]action value=close_receipt [09:23:19]process_action close_receipt [09:23:19]cmd_close_receipt [09:23:19]MH_GetDate [09:23:19]Write to MH i2c: F0 00 00 A9 47 DF [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 09 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 09 00 A9 47 00 8B C0 18 67 6B 98 1E 66 39 [09:23:19]GetLastDocTimeStamp 1729675366 [09:23:19]current date 1729675403 [09:23:19]FM_GetShiftState [09:23:19]SAM_PROTO_GetShiftState [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 13 01 00 [09:23:19]Write to MH i2c: E2 08 00 AA 47 80 13 01 00 00 00 00 00 6E [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0E 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0E 00 AA 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [09:23:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:23:19]wFMCommunicate OK [09:23:19]SAM_PROTO_GetShiftState done [09:23:19]FM_GetShiftState done [09:23:19]opened in 1729642435 [09:23:19]opened+sec_in_day 1729728835 [09:23:19]quantity*price = 100021 [09:23:19]sum+1 = 100023 [09:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 57 23.10.2024 09:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70541 ФПД: 107172757999371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70541&fm=107172757999371&tin=02508201610067®Number=0000000000156251&sum=100022 [09:23:20]StoreToDocumentArchive [09:23:20]shift 196 fd 70541 [09:23:20]save to /storage/0196/doc_00070541 [09:23:20]save last doc name /storage/0196/doc_00070541 to /storage/kkm_last_doc_name [09:23:20]save OK [09:23:20]Clear old archive folders... [09:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:20]tlvbuf is 00E97800 [09:23:20]SAM_PROTO_ClearQueue [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 09 00 00 [09:23:20]Write to MH i2c: E2 08 00 B7 47 80 09 00 00 00 00 00 00 70 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 B7 47 00 90 00 72 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_ClearQueue done [09:23:20]KKMCreateOFDPacket [09:23:20]OFDProtocolAddRootSTLVToBuf [09:23:20]FM_MakeSignedData [09:23:20]FM_MakeSignedData [09:23:20]SAM_PROTO_SignData [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 01 02 [09:23:20]Write to MH i2c: E2 08 00 B8 47 80 0D 01 02 00 00 00 00 78 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 B8 47 00 90 00 73 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=255 [09:23:20]MH_SAM_APDU [09:23: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 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 39 00 00 00 F4 03 04 00 8B C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 61 [09:23:20]Write to MH i2c: E2 02 01 B9 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 39 00 00 00 F4 03 04 00 8B C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 61 00 00 13 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 B9 47 00 90 00 74 [09:23:21]RAPDU: 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=10 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 0D 02 02 05 79 1A 2B 8F 0B [09:23:21]Write to MH i2c: E2 0D 00 BA 47 80 0D 02 02 05 00 79 1A 2B 8F 0B 00 00 DD [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 BA 47 00 90 00 75 [09:23:21]RAPDU: 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 0D 03 02 [09:23:21]Write to MH i2c: E2 08 00 BB 47 80 0D 03 02 00 00 00 00 7D [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0B 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0B 00 BB 47 00 12 BB 8C DF BB A8 9F 02 90 00 BA [09:23:21]RAPDU: 12 BB 8C DF BB A8 9F 02 90 00 [09:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_SignData done [09:23:21]FM_MakeSignedData done [09:23:21]CreateOFDProtocolMessage [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 11 00 00 [09:23:21]Write to MH i2c: E2 08 00 BC 47 80 11 00 00 00 00 00 00 7D [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 BC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [09:23: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:23:21]wFMCommunicate OK [09:23:21]CreateOFDProtocolMessage done [09:23:21]OFDSenderStorePacket 70541 [09:23:21]StoreOFDPacket docnum=70541 [09:23: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 44 57 07 01 A9 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 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 39 00 00 00 F4 03 04 00 8B C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 61 79 1A 2B 8F 0B 12 BB 8C DF BB A8 9F 02 [09:23:21]CheckFolder [09:23:21]dirname=/storage/ofd_packets [09:23:21]CheckFolder done [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00070541 [09:23:21]NVStorageSaveData ofd_packets/00070541 [09:23:21]File name is /storage/ofd_packets/00070541 [09:23:21]Write 301 bytes [09:23:21]NVStorageSaveData done [09:23:21]OFDSenderStorePacket done [09:23:21]KKMCreateOFDPacket done [09:23:21]NVStorageSaveData kkm_last_timestamp [09:23:21]File name is /storage/kkm_last_timestamp [09:23:21]Write 4 bytes [09:23:21]NVStorageSaveData done [09:23:21]ExternCall_PrintAddStr [09:23:21]wPrintStart [09:23:21]Write to MH i2c: 01 00 00 BD 47 04 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 BD 47 00 00 00 00 00 FF 0F 19 [09:23:21]RasterBufferAndPrint [09:23:21]line Счет N : (1)2886308 [09:23:21]line ИНН: 02508201610067 [09:23:21]line Контрольно-Кассовый Чек [09:23:21]line ПРОДАЖА [09:23:21]line ТРК (МРК, ГНК) : 33 [09:23:21]line Товар: 2710124500 [09:23:21]line Аи-95-К-5 [09:23:21]line 13.480 * 74.20 [09:23:21]line = 1000.22 [09:23:21]line НДС 12% НСП 1% [09:23:21]line > о реализуемом товаре [09:23:21]line ИТОГО: 1000.22 [09:23:21]line НСП 1% : 8.85 [09:23:21]line НДС 12% : 106.22 [09:23:21]line Наличными: 0.00 [09:23:21]line Безнал.: 1000.22 [09:23:21]line Место: АЗС № 85 "Партнер Нефть" [09:23:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:23:21]line СНО: Общий режим [09:23:21]line Чек 57 23.10.2024 09:23 [09:23:21]line Смена: 196 ФФД: 1.0 [09:23:21]line ЗНМ: 0300000167 [09:23:21]line РНМ: 0000000000156251 [09:23:21]line Версия ККМ: v1.0 [09:23:21]line Платежная система: Mbank [09:23:21]line ФМ: 0000000000963346 [09:23:21]line ФД: 70541 [09:23:21]line ФПД: 107172757999371 [09:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70541&fm=107172757999371&tin=02508201610067®Number=0000000000156251&sum=100022 [09:23:21]OFD Sender: Processing packet 70541 [packets to send 18, broken 17] [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00070541 [09:23:21]OFD Sender: To server: pG, [09:23:21]CommunicateWithHost lk.salyk.kg:30040 [09:23:21]ConnectInit lk.salyk.kg [09:23:21]written 0, free lines is 4095 [09:23:21]Connected sock=9 [09:23: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 44 57 07 01 A9 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 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 39 00 00 00 F4 03 04 00 8B C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 61 79 1A 2B 8F 0B 12 BB 8C DF BB A8 9F 02 [09:23: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 2E 25 47 00 E8 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 8D 13 01 00 F4 03 04 00 2A 6A 18 67 B6 04 01 00 00 22 82 D9 B1 10 C6 C7 09 [09:23:22]CommunicateWithHost err = 0 [09:23:22]CheckOFDResponse [09:23:22]1017 (14) - 77093643461234 [09:23:22]1041 (16) - 0000000000963346 [09:23:22]1040 (4) - 70541 [09:23:22]1012 (4) - 23.10.2024 03:14 [09:23:22]1206 (1) - 0 [09:23:22]OFD Sender: Remove packet 70541 [09:23:22]ProducePacketName [09:23:22]name=ofd_packets/00070541 [09:23:22]NVStorageDeleteData [09:23:22]Write to MH i2c: 01 00 00 E6 47 2D [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 E6 47 00 00 00 00 00 0A 0D 4B [09:23:22]RasterBufferAndPrint [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]written 0, free lines is 3348 [09:23:22]MH_Cut [09:23:22]Write to MH i2c: D1 01 00 ED 47 01 06 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 01 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 01 00 ED 47 00 05 [09:23:22]Write to MH i2c: 01 00 00 EE 47 35 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]OFD Sender: No OFD packet to send [09:23:22]*** Cut start [09:23:22]*** Partial cut [09:23:22]*** CUTSNS_PIN = 1 [09:23:22]*** CUTSNS_PIN = 0 [09:23:23]*** Brake cut motor [09:23:23]Read from MH i2c: 01 [09:23:23]MH_I2C_Read... [09:23:23]*** Stop cut motor [09:23:23]*** Cut end [09:23:23]Read from MH i2c: 01 07 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 EE 47 00 00 00 00 00 FF 0F 4A [09:23:23]process_action close_receipt done [09:23:23]requested_data is exist [09:23:23]produce_requested_data [09:23:23]requested_item fm.sn is exist - process it [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 11 00 00 [09:23:23]Write to MH i2c: E2 08 00 EF 47 80 11 00 00 00 00 00 00 B0 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 EF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [09:23: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:23:23]wFMCommunicate OK [09:23:23]requested_item fd.num is exist - process it [09:23:23]SAM_PROTO_GetFieldsCounters [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 00 00 [09:23:23]Write to MH i2c: E2 08 00 F0 47 80 13 00 00 00 00 00 00 B3 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 62 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 62 00 F0 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 8D 13 01 00 0E 04 04 00 C4 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 DE [09:23: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 8D 13 01 00 0E 04 04 00 C4 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 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetFieldsCounters done [09:23:23]requested_item shift.num is exist - process it [09:23:23]requested_item shift.opened is exist - process it [09:23:23]req_shift_opened [09:23:23]FM_GetShiftState [09:23:23]SAM_PROTO_GetShiftState [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 01 00 [09:23:23]Write to MH i2c: E2 08 00 F1 47 80 13 01 00 00 00 00 00 B5 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 F1 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 42 [09:23:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetShiftState done [09:23:23]FM_GetShiftState done [09:23:23]req_shift_opened done [09:23:23]requested_item shift.open_date is exist - process it [09:23:23]req_shift_open_date [09:23:23]req_shift_open_date done [09:23:23]produce_requested_data done [09:23:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70541,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:23:23]process_action_free close_receipt [09:23:23]json_value_free [09:23:23]json_value_free done [09:23:23]process_json_proto returns [09:23:23]Send response to host [09:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70541,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:23:23]free response buf [09:23:23]execute_script done [09:23:23]execute_script returns [09:23:23]free content buf [09:23:23]Sock 7.Close socket [09:23:23]Sock 7.Thread stoped [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:10]accept exits with 10 [09:24:10]New connection [09:24:10]New thread 3066555748 created [09:24:10]Thread 3066699108 joined [09:24:10]Waiting for new connection... [09:24:10] Sock 10.Parse request [09:24:10]Sock 10.Check first char [09:24:10]Sock 10.First char is OK [09:24:10]request: POST /json_proto HTTP/1.0 [09:24:10]Method: POST [09:24:10]URL: /json_proto [09:24:10]Method is POST - this is cgi request [09:24:10]url: /json_proto [09:24:10]query_string will be loaded in cgi processing [09:24:10]execute_cgi json_proto POST (null) [09:24:10]execute_cgi path=json_proto method=POST [09:24:10]POST find Content-Length [09:24:10]Host: 172.17.50.3:8080 [09:24:10]Content-Length: 683 [09:24:10]Content-Type: application/json [09:24:10] [09:24:10]POST finish read [09:24:10]Found Content-Length = 683 [09:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886309", "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" ] } } [09:24:10]execute_script... [09: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)2886309", "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" ] } } [09:24:10]POST & json_proto [09:24:10]process_json_proto [09:24:10]json parsed OK: [09:24:10]protocol is kg_v1.0 [09:24:10]action value=close_receipt [09:24:10]process_action close_receipt [09:24:10]cmd_close_receipt [09:24:10]MH_GetDate [09:24:10]Write to MH i2c: F0 00 00 F2 47 28 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: F0 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: F0 09 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: F0 09 00 F2 47 00 BE C0 18 67 6B 98 1E 66 B5 [09:24:10]GetLastDocTimeStamp 1729675403 [09:24:10]current date 1729675454 [09:24:10]FM_GetShiftState [09:24:10]SAM_PROTO_GetShiftState [09:24:10]wFMCommunicate request_size=4 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 13 01 00 [09:24:10]Write to MH i2c: E2 08 00 F3 47 80 13 01 00 00 00 00 00 B7 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 0E 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 0E 00 F3 47 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 44 [09:24:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:24:10]wFMCommunicate OK [09:24:10]SAM_PROTO_GetShiftState done [09:24:10]FM_GetShiftState done [09:24:10]opened in 1729642435 [09:24:10]opened+sec_in_day 1729728835 [09:24:10]quantity*price = 200031 [09:24:10]sum+1 = 200032 [09:24:10]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 СНО: Общий режим Чек 58 23.10.2024 09:24 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70542 ФПД: 53381832593039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70542&fm=53381832593039&tin=02508201610067®Number=0000000000156251&sum=200000 [09:24:11]StoreToDocumentArchive [09:24:11]shift 196 fd 70542 [09:24:11]save to /storage/0196/doc_00070542 [09:24:11]save last doc name /storage/0196/doc_00070542 to /storage/kkm_last_doc_name [09:24:11]save OK [09:24:11]Clear old archive folders... [09:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:11]tlvbuf is 00C40A00 [09:24:11]SAM_PROTO_ClearQueue [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 09 00 00 [09:24:11]Write to MH i2c: E2 08 00 00 48 80 09 00 00 00 00 00 00 BA [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 00 48 00 90 00 BC [09:24:11]RAPDU: 90 00 [09:24:11]wFMCommunicate OK [09:24:11]SAM_PROTO_ClearQueue done [09:24:11]KKMCreateOFDPacket [09:24:11]OFDProtocolAddRootSTLVToBuf [09:24:11]FM_MakeSignedData [09:24:11]FM_MakeSignedData [09:24:11]SAM_PROTO_SignData [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 0D 01 02 [09:24:11]Write to MH i2c: E2 08 00 01 48 80 0D 01 02 00 00 00 00 C2 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 01 48 00 90 00 BD [09:24:11]RAPDU: 90 00 [09:24:11]wFMCommunicate OK [09:24:11]wFMCommunicate request_size=255 [09:24:11]MH_SAM_APDU [09:24: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 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 3A 00 00 00 F4 03 04 00 BE C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 [09:24:11]Write to MH i2c: E2 02 01 02 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 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 3A 00 00 00 F4 03 04 00 BE C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 00 00 5A [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 02 48 00 90 00 BE [09:24:11]RAPDU: 90 00 [09:24:11]wFMCommunicate OK [09:24:11]wFMCommunicate request_size=10 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 0D 02 02 05 8C ED 2B 4E 8F [09:24:11]Write to MH i2c: E2 0D 00 03 48 80 0D 02 02 05 00 8C ED 2B 4E 8F 00 00 50 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 03 00 03 48 00 90 00 BF [09:24:11]RAPDU: 90 00 [09:24:11]wFMCommunicate OK [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 0D 03 02 [09:24:11]Write to MH i2c: E2 08 00 04 48 80 0D 03 02 00 00 00 00 C7 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 0B 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 0B 00 04 48 00 40 76 63 EE 31 9C 19 A1 90 00 56 [09:24:11]RAPDU: 40 76 63 EE 31 9C 19 A1 90 00 [09:24:11]wFMCommunicate OK [09:24:11]SAM_PROTO_SignData done [09:24:11]FM_MakeSignedData done [09:24:11]CreateOFDProtocolMessage [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 11 00 00 [09:24:11]Write to MH i2c: E2 08 00 05 48 80 11 00 00 00 00 00 00 C7 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:12]Read from MH i2c: E2 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: E2 17 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: E2 17 00 05 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [09: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 [09:24:12]wFMCommunicate OK [09:24:12]CreateOFDProtocolMessage done [09:24:12]OFDSenderStorePacket 70542 [09:24:12]StoreOFDPacket docnum=70542 [09: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 0F 01 00 00 11 F1 07 01 84 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 F4 03 04 00 BE C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 8C ED 2B 4E 8F 40 76 63 EE 31 9C 19 A1 [09:24:12]CheckFolder [09:24:12]dirname=/storage/ofd_packets [09:24:12]CheckFolder done [09:24:12]ProducePacketName [09:24:12]name=ofd_packets/00070542 [09:24:12]NVStorageSaveData ofd_packets/00070542 [09:24:12]File name is /storage/ofd_packets/00070542 [09:24:12]Write 301 bytes [09:24:12]NVStorageSaveData done [09:24:12]OFDSenderStorePacket done [09:24:12]KKMCreateOFDPacket done [09:24:12]NVStorageSaveData kkm_last_timestamp [09:24:12]File name is /storage/kkm_last_timestamp [09:24:12]Write 4 bytes [09:24:12]NVStorageSaveData done [09:24:12]ExternCall_PrintAddStr [09:24:12]wPrintStart [09:24:12]Write to MH i2c: 01 00 00 06 48 4E [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 07 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 07 00 06 48 00 00 00 00 00 FF 0F 63 [09:24:12]RasterBufferAndPrint [09:24:12]line Счет N : (1)2886309 [09:24:12]line ИНН: 02508201610067 [09:24:12]line Контрольно-Кассовый Чек [09:24:12]line ПРОДАЖА [09:24:12]line ТРК (МРК, ГНК) : 42 [09:24:12]line Товар: 2710124130 [09:24:12]line Аи-92-К-5 [09:24:12]line 29.900 * 66.90 [09:24:12]line = 2000.31 [09:24:12]line НДС 12% НСП 1% [09:24:12]line > о реализуемом товаре [09:24:12]line ОКРУГЛЕНИЕ: -0.31 [09:24:12]line ИТОГО: 2000.00 [09:24:12]line Внесено: 2000.00 [09:24:12]line СДАЧА: 0.00 [09:24:12]line НСП 1% : 17.70 [09:24:12]line НДС 12% : 212.42 [09:24:12]line Наличными: 2000.00 [09:24:12]line Безнал.: 0.00 [09:24:12]line Место: АЗС № 85 "Партнер Нефть" [09:24:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:24:12]line СНО: Общий режим [09:24:12]line Чек 58 23.10.2024 09:24 [09:24:12]line Смена: 196 ФФД: 1.0 [09:24:12]line ЗНМ: 0300000167 [09:24:12]line РНМ: 0000000000156251 [09:24:12]line Версия ККМ: v1.0 [09:24:12]line ФМ: 0000000000963346 [09:24:12]line ФД: 70542 [09:24:12]line ФПД: 53381832593039 [09:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70542&fm=53381832593039&tin=02508201610067®Number=0000000000156251&sum=200000 [09:24:12]OFD Sender: Processing packet 70542 [packets to send 18, broken 17] [09:24:12]ProducePacketName [09:24:12]name=ofd_packets/00070542 [09:24:12]OFD Sender: To server: pG, [09:24:12]CommunicateWithHost lk.salyk.kg:30040 [09:24:12]ConnectInit lk.salyk.kg [09:24:12]written 0, free lines is 4095 [09:24:12]Connected sock=9 [09: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 0F 01 00 00 11 F1 07 01 84 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 F4 03 04 00 BE C0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 8C ED 2B 4E 8F 40 76 63 EE 31 9C 19 A1 [09: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 63 B6 47 00 9B 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 8E 13 01 00 F4 03 04 00 5C 6A 18 67 B6 04 01 00 00 8B 08 64 8F A1 49 C6 84 [09:24:12]CommunicateWithHost err = 0 [09:24:12]CheckOFDResponse [09:24:12]1017 (14) - 77093643461234 [09:24:12]1041 (16) - 0000000000963346 [09:24:12]1040 (4) - 70542 [09:24:12]1012 (4) - 23.10.2024 03:15 [09:24:12]1206 (1) - 0 [09:24:12]OFD Sender: Remove packet 70542 [09:24:12]ProducePacketName [09:24:12]name=ofd_packets/00070542 [09:24:12]NVStorageDeleteData [09:24:12]Write to MH i2c: 01 00 00 31 48 79 [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 07 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 07 00 31 48 00 00 00 00 00 FC 0C 88 [09:24:12]RasterBufferAndPrint [09:24:12]line [09:24:12]line [09:24:12]line [09:24:12]line [09:24:12]line [09:24:12]written 0, free lines is 3330 [09:24:12]MH_Cut [09:24:12]Write to MH i2c: D1 01 00 38 48 01 52 [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: D1 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: D1 01 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: D1 01 00 38 48 00 51 [09:24:12]Write to MH i2c: 01 00 00 39 48 81 [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:13]OFD Sender: No OFD packet to send [09:24:13]*** Cut start [09:24:13]*** Partial cut [09:24:13]*** CUTSNS_PIN = 1 [09:24:13]*** CUTSNS_PIN = 0 [09:24:13]*** Brake cut motor [09:24:14]Read from MH i2c: 01 [09:24:14]MH_I2C_Read... [09:24:14]*** Stop cut motor [09:24:14]*** Cut end [09:24:14]Read from MH i2c: 01 07 00 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: 01 07 00 39 48 00 00 00 00 00 FF 0F 96 [09:24:14]process_action close_receipt done [09:24:14]requested_data is exist [09:24:14]produce_requested_data [09:24:14]requested_item fm.sn is exist - process it [09:24:14]wFMCommunicate request_size=4 [09:24:14]MH_SAM_APDU [09:24:14]CAPDU: 80 11 00 00 [09:24:14]Write to MH i2c: E2 08 00 3A 48 80 11 00 00 00 00 00 00 FC [09:24:14]Write i2c OK [09:24:14]MH_I2C_Read... [09:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:14]Read from MH i2c: E2 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 17 00 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 17 00 3A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [09: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 [09:24:14]wFMCommunicate OK [09:24:14]requested_item fd.num is exist - process it [09:24:14]SAM_PROTO_GetFieldsCounters [09:24:14]wFMCommunicate request_size=4 [09:24:14]MH_SAM_APDU [09:24:14]CAPDU: 80 13 00 00 [09:24:14]Write to MH i2c: E2 08 00 3B 48 80 13 00 00 00 00 00 00 FF [09:24:14]Write i2c OK [09:24:14]MH_I2C_Read... [09:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:14]Read from MH i2c: E2 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 62 00 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 62 00 3B 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 8E 13 01 00 0E 04 04 00 C4 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 2E [09: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 8E 13 01 00 0E 04 04 00 C4 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 [09:24:14]wFMCommunicate OK [09:24:14]SAM_PROTO_GetFieldsCounters done [09:24:14]requested_item shift.num is exist - process it [09:24:14]requested_item shift.opened is exist - process it [09:24:14]req_shift_opened [09:24:14]FM_GetShiftState [09:24:14]SAM_PROTO_GetShiftState [09:24:14]wFMCommunicate request_size=4 [09:24:14]MH_SAM_APDU [09:24:14]CAPDU: 80 13 01 00 [09:24:14]Write to MH i2c: E2 08 00 3C 48 80 13 01 00 00 00 00 00 01 [09:24:14]Write i2c OK [09:24:14]MH_I2C_Read... [09:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:14]Read from MH i2c: E2 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 0E 00 [09:24:14]MH_I2C_Read... [09:24:14]Read from MH i2c: E2 0E 00 3C 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8E [09:24:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:24:14]wFMCommunicate OK [09:24:14]SAM_PROTO_GetShiftState done [09:24:14]FM_GetShiftState done [09:24:14]req_shift_opened done [09:24:14]requested_item shift.open_date is exist - process it [09:24:14]req_shift_open_date [09:24:14]req_shift_open_date done [09:24:14]produce_requested_data done [09:24:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70542,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:24:14]process_action_free close_receipt [09:24:14]json_value_free [09:24:14]json_value_free done [09:24:14]process_json_proto returns [09:24:14]Send response to host [09:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70542,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:24:14]free response buf [09:24:14]execute_script done [09:24:14]execute_script returns [09:24:14]free content buf [09:24:14]Sock 10.Close socket [09:24:14]Sock 10.Thread stoped [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:57]accept exits with 7 [09:30:57]New connection [09:30:57]New thread 3066699108 created [09:30:57]Thread 3066555748 joined [09:30:57]Waiting for new connection... [09:30:57] Sock 7.Parse request [09:30:57]Sock 7.Check first char [09:30:57]Sock 7.First char is OK [09:30:57]request: POST /json_proto HTTP/1.0 [09:30:57]Method: POST [09:30:57]URL: /json_proto [09:30:57]Method is POST - this is cgi request [09:30:57]url: /json_proto [09:30:57]query_string will be loaded in cgi processing [09:30:57]execute_cgi json_proto POST (null) [09:30:57]execute_cgi path=json_proto method=POST [09:30:57]POST find Content-Length [09:30:57]Host: 172.17.50.3:8080 [09:30:57]Content-Length: 680 [09:30:57]Content-Type: application/json [09:30:57] [09:30:57]POST finish read [09:30:57]Found Content-Length = 680 [09:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886311", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:57]execute_script... [09:30: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)2886311", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:57]POST & json_proto [09:30:57]process_json_proto [09:30:57]json parsed OK: [09:30:57]protocol is kg_v1.0 [09:30:57]action value=close_receipt [09:30:57]process_action close_receipt [09:30:57]cmd_close_receipt [09:30:57]MH_GetDate [09:30:57]Write to MH i2c: F0 00 00 3D 48 74 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 09 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 09 00 3D 48 00 55 C2 18 67 6B 98 1E 66 9A [09:30:57]GetLastDocTimeStamp 1729675454 [09:30:57]current date 1729675861 [09:30:57]FM_GetShiftState [09:30:57]SAM_PROTO_GetShiftState [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 13 01 00 [09:30:57]Write to MH i2c: E2 08 00 3E 48 80 13 01 00 00 00 00 00 03 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0E 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0E 00 3E 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 90 [09:30:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:30:57]wFMCommunicate OK [09:30:57]SAM_PROTO_GetShiftState done [09:30:57]FM_GetShiftState done [09:30:57]opened in 1729642435 [09:30:57]opened+sec_in_day 1729728835 [09:30:57]quantity*price = 250012 [09:30:57]sum+1 = 250013 [09:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 59 23.10.2024 09:31 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70543 ФПД: 262068770183293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70543&fm=262068770183293&tin=02508201610067®Number=0000000000156251&sum=250000 [09:30:58]StoreToDocumentArchive [09:30:58]shift 196 fd 70543 [09:30:58]save to /storage/0196/doc_00070543 [09:30:58]save last doc name /storage/0196/doc_00070543 to /storage/kkm_last_doc_name [09:30:58]save OK [09:30:58]Clear old archive folders... [09:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:58]tlvbuf is 00C40C10 [09:30:58]SAM_PROTO_ClearQueue [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 09 00 00 [09:30:58]Write to MH i2c: E2 08 00 4B 48 80 09 00 00 00 00 00 00 05 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 4B 48 00 90 00 07 [09:30:58]RAPDU: 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_ClearQueue done [09:30:58]KKMCreateOFDPacket [09:30:58]OFDProtocolAddRootSTLVToBuf [09:30:58]FM_MakeSignedData [09:30:58]FM_MakeSignedData [09:30:58]SAM_PROTO_SignData [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 0D 01 02 [09:30:58]Write to MH i2c: E2 08 00 4C 48 80 0D 01 02 00 00 00 00 0D [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 4C 48 00 90 00 08 [09:30:58]RAPDU: 90 00 [09:30:58]wFMCommunicate OK [09:30:58]wFMCommunicate request_size=255 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 55 C2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EE 59 A3 F4 [09:30:58]Write to MH i2c: E2 02 01 4D 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 55 C2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EE 59 A3 F4 00 00 03 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]OFD Sender: No OFD packet to send [09:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 4D 48 00 90 00 09 [09:30:58]RAPDU: 90 00 [09:30:58]wFMCommunicate OK [09:30:58]wFMCommunicate request_size=7 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 0D 02 02 02 18 7D [09:30:58]Write to MH i2c: E2 0A 00 4E 48 80 0D 02 02 02 00 18 7D 00 00 A9 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 4E 48 00 90 00 0A [09:30:58]RAPDU: 90 00 [09:30:58]wFMCommunicate OK [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 0D 03 02 [09:30:58]Write to MH i2c: E2 08 00 4F 48 80 0D 03 02 00 00 00 00 12 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0B 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0B 00 4F 48 00 4C 2C A2 83 6E 7E EB 91 90 00 18 [09:30:58]RAPDU: 4C 2C A2 83 6E 7E EB 91 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_SignData done [09:30:58]FM_MakeSignedData done [09:30:58]CreateOFDProtocolMessage [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 11 00 00 [09:30:58]Write to MH i2c: E2 08 00 50 48 80 11 00 00 00 00 00 00 12 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 17 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 17 00 50 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [09:30: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:30:58]wFMCommunicate OK [09:30:58]CreateOFDProtocolMessage done [09:30:58]OFDSenderStorePacket 70543 [09:30:58]StoreOFDPacket docnum=70543 [09:30: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 9A 0E 04 01 9B FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 55 C2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EE 59 A3 F4 18 7D 4C 2C A2 83 6E 7E EB 91 [09:30:58]CheckFolder [09:30:58]dirname=/storage/ofd_packets [09:30:58]CheckFolder done [09:30:58]ProducePacketName [09:30:58]name=ofd_packets/00070543 [09:30:58]NVStorageSaveData ofd_packets/00070543 [09:30:58]File name is /storage/ofd_packets/00070543 [09:30:58]Write 298 bytes [09:30:58]NVStorageSaveData done [09:30:58]OFDSenderStorePacket done [09:30:58]KKMCreateOFDPacket done [09:30:58]NVStorageSaveData kkm_last_timestamp [09:30:58]File name is /storage/kkm_last_timestamp [09:30:58]Write 4 bytes [09:30:58]NVStorageSaveData done [09:30:58]ExternCall_PrintAddStr [09:30:58]wPrintStart [09:30:58]Write to MH i2c: 01 00 00 51 48 99 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 07 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 07 00 51 48 00 00 00 00 00 FF 0F AE [09:30:58]RasterBufferAndPrint [09:30:58]line Счет N : (1)2886311 [09:30:58]line ИНН: 02508201610067 [09:30:58]line Контрольно-Кассовый Чек [09:30:58]line ПРОДАЖА [09:30:58]line ТРК (МРК, ГНК) : 51 [09:30:58]line Товар: 2710194210 [09:30:58]line ДТ-К-5 [09:30:58]line 32.810 * 76.20 [09:30:58]line = 2500.12 [09:30:58]line НДС 12% НСП 1% [09:30:58]line > о реализуемом товаре [09:30:58]line ОКРУГЛЕНИЕ: -0.12 [09:30:58]line ИТОГО: 2500.00 [09:30:58]line Внесено: 2500.00 [09:30:58]line СДАЧА: 0.00 [09:30:58]line НСП 1% : 22.12 [09:30:58]line НДС 12% : 265.50 [09:30:58]line Наличными: 2500.00 [09:30:58]line Безнал.: 0.00 [09:30:58]line Место: АЗС № 85 "Партнер Нефть" [09:30:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:30:58]line СНО: Общий режим [09:30:58]line Чек 59 23.10.2024 09:31 [09:30:58]line Смена: 196 ФФД: 1.0 [09:30:58]line ЗНМ: 0300000167 [09:30:58]line РНМ: 0000000000156251 [09:30:58]line Версия ККМ: v1.0 [09:30:58]line ФМ: 0000000000963346 [09:30:58]line ФД: 70543 [09:30:58]line ФПД: 262068770183293 [09:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093101&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70543&fm=262068770183293&tin=02508201610067®Number=0000000000156251&sum=250000 [09:30:59]OFD Sender: Processing packet 70543 [packets to send 18, broken 17] [09:30:59]ProducePacketName [09:30:59]name=ofd_packets/00070543 [09:30:59]OFD Sender: To server: pG, [09:30:59]CommunicateWithHost lk.salyk.kg:30040 [09:30:59]ConnectInit lk.salyk.kg [09:30:59]written 0, free lines is 4095 [09:30:59]Connected sock=10 [09:30: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 9A 0E 04 01 9B FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 55 C2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EE 59 A3 F4 18 7D 4C 2C A2 83 6E 7E EB 91 [09:30: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 BB 38 47 00 95 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 8F 13 01 00 F4 03 04 00 F3 6B 18 67 B6 04 01 00 00 8D 07 8A CF 6D C5 31 84 [09:30:59]CommunicateWithHost err = 0 [09:30:59]CheckOFDResponse [09:30:59]1017 (14) - 77093643461234 [09:30:59]1041 (16) - 0000000000963346 [09:30:59]1040 (4) - 70543 [09:30:59]1012 (4) - 23.10.2024 03:22 [09:30:59]1206 (1) - 0 [09:30:59]OFD Sender: Remove packet 70543 [09:30:59]ProducePacketName [09:30:59]name=ofd_packets/00070543 [09:30:59]NVStorageDeleteData [09:30:59]Write to MH i2c: 01 00 00 7C 48 C4 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 7C 48 00 00 00 00 00 00 0D D8 [09:30:59]RasterBufferAndPrint [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]written 0, free lines is 3337 [09:30:59]MH_Cut [09:30:59]Write to MH i2c: D1 01 00 83 48 01 9D [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 83 48 00 9C [09:30:59]Write to MH i2c: 01 00 00 84 48 CC [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:31:00]OFD Sender: No OFD packet to send [09:31:00]*** Cut start [09:31:00]*** Partial cut [09:31:00]*** CUTSNS_PIN = 1 [09:31:00]*** CUTSNS_PIN = 0 [09:31:00]*** Brake cut motor [09:31:00]Read from MH i2c: 01 [09:31:01]MH_I2C_Read... [09:31:01]*** Stop cut motor [09:31:01]*** Cut end [09:31:01]Read from MH i2c: 01 07 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: 01 07 00 84 48 00 00 00 00 00 FF 0F E1 [09:31:01]process_action close_receipt done [09:31:01]requested_data is exist [09:31:01]produce_requested_data [09:31:01]requested_item fm.sn is exist - process it [09:31:01]wFMCommunicate request_size=4 [09:31:01]MH_SAM_APDU [09:31:01]CAPDU: 80 11 00 00 [09:31:01]Write to MH i2c: E2 08 00 85 48 80 11 00 00 00 00 00 00 47 [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:01]Read from MH i2c: E2 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 17 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 17 00 85 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [09:31: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:31:01]wFMCommunicate OK [09:31:01]requested_item fd.num is exist - process it [09:31:01]SAM_PROTO_GetFieldsCounters [09:31:01]wFMCommunicate request_size=4 [09:31:01]MH_SAM_APDU [09:31:01]CAPDU: 80 13 00 00 [09:31:01]Write to MH i2c: E2 08 00 86 48 80 13 00 00 00 00 00 00 4A [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:01]Read from MH i2c: E2 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 62 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 62 00 86 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 8F 13 01 00 0E 04 04 00 C4 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 7D [09:31: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 8F 13 01 00 0E 04 04 00 C4 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 [09:31:01]wFMCommunicate OK [09:31:01]SAM_PROTO_GetFieldsCounters done [09:31:01]requested_item shift.num is exist - process it [09:31:01]requested_item shift.opened is exist - process it [09:31:01]req_shift_opened [09:31:01]FM_GetShiftState [09:31:01]SAM_PROTO_GetShiftState [09:31:01]wFMCommunicate request_size=4 [09:31:01]MH_SAM_APDU [09:31:01]CAPDU: 80 13 01 00 [09:31:01]Write to MH i2c: E2 08 00 87 48 80 13 01 00 00 00 00 00 4C [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 [09:31:01]MH_I2C_Read... [09:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:01]Read from MH i2c: E2 0E 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 0E 00 87 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D9 [09:31:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:31:01]wFMCommunicate OK [09:31:01]SAM_PROTO_GetShiftState done [09:31:01]FM_GetShiftState done [09:31:01]req_shift_opened done [09:31:01]requested_item shift.open_date is exist - process it [09:31:01]req_shift_open_date [09:31:01]req_shift_open_date done [09:31:01]produce_requested_data done [09:31:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70543,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:31:01]process_action_free close_receipt [09:31:01]json_value_free [09:31:01]json_value_free done [09:31:01]process_json_proto returns [09:31:01]Send response to host [09:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70543,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:31:01]free response buf [09:31:01]execute_script done [09:31:01]execute_script returns [09:31:01]free content buf [09:31:01]Sock 7.Close socket [09:31:01]Sock 7.Thread stoped [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:51]accept exits with 9 [09:36:51]New connection [09:36:51]New thread 3066555748 created [09:36:51]Thread 3066699108 joined [09:36:51]Waiting for new connection... [09:36:51] Sock 9.Parse request [09:36:51]Sock 9.Check first char [09:36:51]Sock 9.First char is OK [09:36:51]request: POST /json_proto HTTP/1.0 [09:36:51]Method: POST [09:36:51]URL: /json_proto [09:36:51]Method is POST - this is cgi request [09:36:51]url: /json_proto [09:36:51]query_string will be loaded in cgi processing [09:36:51]execute_cgi json_proto POST (null) [09:36:51]execute_cgi path=json_proto method=POST [09:36:51]POST find Content-Length [09:36:51]Host: 172.17.50.3:8080 [09:36:51]Content-Length: 683 [09:36:51]Content-Type: application/json [09:36:51] [09:36:51]POST finish read [09:36:51]Found Content-Length = 683 [09:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886312", "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" ] } } [09:36:51]execute_script... [09:36: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)2886312", "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" ] } } [09:36:51]POST & json_proto [09:36:51]process_json_proto [09:36:51]json parsed OK: [09:36:51]protocol is kg_v1.0 [09:36:51]action value=close_receipt [09:36:51]process_action close_receipt [09:36:51]cmd_close_receipt [09:36:51]MH_GetDate [09:36:51]Write to MH i2c: F0 00 00 88 48 BF [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: F0 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: F0 09 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: F0 09 00 88 48 00 B7 C3 18 67 6B 98 1E 66 48 [09:36:51]GetLastDocTimeStamp 1729675861 [09:36:51]current date 1729676215 [09:36:51]FM_GetShiftState [09:36:51]SAM_PROTO_GetShiftState [09:36:51]wFMCommunicate request_size=4 [09:36:51]MH_SAM_APDU [09:36:51]CAPDU: 80 13 01 00 [09:36:51]Write to MH i2c: E2 08 00 89 48 80 13 01 00 00 00 00 00 4E [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:51]Read from MH i2c: E2 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: E2 0E 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: E2 0E 00 89 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DB [09:36:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:36:51]wFMCommunicate OK [09:36:51]SAM_PROTO_GetShiftState done [09:36:51]FM_GetShiftState done [09:36:51]opened in 1729642435 [09:36:51]opened+sec_in_day 1729728835 [09:36:51]quantity*price = 300064 [09:36:51]sum+1 = 300066 [09:36:51]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 СНО: Общий режим Чек 60 23.10.2024 09:36 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70544 ФПД: 5145426337649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093655&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70544&fm=5145426337649&tin=02508201610067®Number=0000000000156251&sum=300000 [09:36:52]StoreToDocumentArchive [09:36:52]shift 196 fd 70544 [09:36:52]save to /storage/0196/doc_00070544 [09:36:52]save last doc name /storage/0196/doc_00070544 to /storage/kkm_last_doc_name [09:36:52]save OK [09:36:52]Clear old archive folders... [09:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:52]tlvbuf is 00CF23C0 [09:36:52]SAM_PROTO_ClearQueue [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 09 00 00 [09:36:52]Write to MH i2c: E2 08 00 96 48 80 09 00 00 00 00 00 00 50 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 96 48 00 90 00 52 [09:36:52]RAPDU: 90 00 [09:36:52]wFMCommunicate OK [09:36:52]SAM_PROTO_ClearQueue done [09:36:52]KKMCreateOFDPacket [09:36:52]OFDProtocolAddRootSTLVToBuf [09:36:52]FM_MakeSignedData [09:36:52]FM_MakeSignedData [09:36:52]SAM_PROTO_SignData [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 0D 01 02 [09:36:52]Write to MH i2c: E2 08 00 97 48 80 0D 01 02 00 00 00 00 58 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 97 48 00 90 00 53 [09:36:52]RAPDU: 90 00 [09:36:52]wFMCommunicate OK [09:36:52]wFMCommunicate request_size=255 [09:36:52]MH_SAM_APDU [09:36: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 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 3C 00 00 00 F4 03 04 00 B7 C3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 04 [09:36:52]Write to MH i2c: E2 02 01 98 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 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 3C 00 00 00 F4 03 04 00 B7 C3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 04 00 00 B3 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 98 48 00 90 00 54 [09:36:52]RAPDU: 90 00 [09:36:52]wFMCommunicate OK [09:36:52]wFMCommunicate request_size=10 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 0D 02 02 05 AE 03 4F 1F 71 [09:36:52]Write to MH i2c: E2 0D 00 99 48 80 0D 02 02 05 00 AE 03 4F 1F 71 00 00 F5 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 03 00 99 48 00 90 00 55 [09:36:52]RAPDU: 90 00 [09:36:52]wFMCommunicate OK [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 0D 03 02 [09:36:52]Write to MH i2c: E2 08 00 9A 48 80 0D 03 02 00 00 00 00 5D [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 0B 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 0B 00 9A 48 00 1B F7 D7 A5 CC 40 D6 F9 90 00 C7 [09:36:52]RAPDU: 1B F7 D7 A5 CC 40 D6 F9 90 00 [09:36:52]wFMCommunicate OK [09:36:52]SAM_PROTO_SignData done [09:36:52]FM_MakeSignedData done [09:36:52]CreateOFDProtocolMessage [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 11 00 00 [09:36:52]Write to MH i2c: E2 08 00 9B 48 80 11 00 00 00 00 00 00 5D [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 17 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 17 00 9B 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [09:36: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:36:52]wFMCommunicate OK [09:36:52]CreateOFDProtocolMessage done [09:36:52]OFDSenderStorePacket 70544 [09:36:52]StoreOFDPacket docnum=70544 [09:36: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 93 6D 07 01 16 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 B7 C3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 04 AE 03 4F 1F 71 1B F7 D7 A5 CC 40 D6 F9 [09:36:52]CheckFolder [09:36:52]dirname=/storage/ofd_packets [09:36:52]CheckFolder done [09:36:52]ProducePacketName [09:36:52]name=ofd_packets/00070544 [09:36:52]NVStorageSaveData ofd_packets/00070544 [09:36:52]File name is /storage/ofd_packets/00070544 [09:36:52]Write 301 bytes [09:36:52]NVStorageSaveData done [09:36:52]OFDSenderStorePacket done [09:36:52]KKMCreateOFDPacket done [09:36:52]NVStorageSaveData kkm_last_timestamp [09:36:52]File name is /storage/kkm_last_timestamp [09:36:52]Write 4 bytes [09:36:52]NVStorageSaveData done [09:36:52]ExternCall_PrintAddStr [09:36:52]wPrintStart [09:36:52]Write to MH i2c: 01 00 00 9C 48 E4 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: 01 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: 01 07 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: 01 07 00 9C 48 00 00 00 00 00 FF 0F F9 [09:36:52]RasterBufferAndPrint [09:36:52]line Счет N : (1)2886312 [09:36:52]line ИНН: 02508201610067 [09:36:52]line Контрольно-Кассовый Чек [09:36:52]line ПРОДАЖА [09:36:52]line ТРК (МРК, ГНК) : 33 [09:36:52]line Товар: 2710124500 [09:36:52]line Аи-95-К-5 [09:36:52]line 40.440 * 74.20 [09:36:52]line = 3000.65 [09:36:52]line НДС 12% НСП 1% [09:36:52]line > о реализуемом товаре [09:36:52]line ОКРУГЛЕНИЕ: -0.65 [09:36:52]line ИТОГО: 3000.00 [09:36:52]line Внесено: 3000.00 [09:36:52]line СДАЧА: 0.00 [09:36:52]line НСП 1% : 26.55 [09:36:52]line НДС 12% : 318.65 [09:36:52]line Наличными: 3000.00 [09:36:52]line Безнал.: 0.00 [09:36:52]line Место: АЗС № 85 "Партнер Нефть" [09:36:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:36:52]line СНО: Общий режим [09:36:52]line Чек 60 23.10.2024 09:36 [09:36:52]line Смена: 196 ФФД: 1.0 [09:36:52]line ЗНМ: 0300000167 [09:36:52]line РНМ: 0000000000156251 [09:36:52]line Версия ККМ: v1.0 [09:36:52]line ФМ: 0000000000963346 [09:36:52]line ФД: 70544 [09:36:52]line ФПД: 5145426337649 [09:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093655&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70544&fm=5145426337649&tin=02508201610067®Number=0000000000156251&sum=300000 [09:36:53]OFD Sender: Processing packet 70544 [packets to send 18, broken 17] [09:36:53]ProducePacketName [09:36:53]name=ofd_packets/00070544 [09:36:53]OFD Sender: To server: pG, [09:36:53]CommunicateWithHost lk.salyk.kg:30040 [09:36:53]ConnectInit lk.salyk.kg [09:36:53]written 0, free lines is 4095 [09:36:53]Connected sock=10 [09:36: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 93 6D 07 01 16 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 B7 C3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 04 AE 03 4F 1F 71 1B F7 D7 A5 CC 40 D6 F9 [09:36: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 48 D3 47 00 29 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 13 01 00 F4 03 04 00 55 6D 18 67 B6 04 01 00 00 AD 6C 47 DF 37 EC 9A 54 [09:36:53]CommunicateWithHost err = 0 [09:36:53]CheckOFDResponse [09:36:53]1017 (14) - 77093643461234 [09:36:53]1041 (16) - 0000000000963346 [09:36:53]1040 (4) - 70544 [09:36:53]1012 (4) - 23.10.2024 03:28 [09:36:53]1206 (1) - 0 [09:36:53]OFD Sender: Remove packet 70544 [09:36:53]ProducePacketName [09:36:53]name=ofd_packets/00070544 [09:36:53]NVStorageDeleteData [09:36:53]Write to MH i2c: 01 00 00 C7 48 0F [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: 01 [09:36:53]MH_I2C_Read... [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 C7 48 00 00 00 00 00 F1 0C 13 [09:36:53]RasterBufferAndPrint [09:36:53]line [09:36:53]line [09:36:53]line [09:36:53]line [09:36:53]line [09:36:53]written 0, free lines is 3322 [09:36:53]MH_Cut [09:36:53]Write to MH i2c: D1 01 00 CE 48 01 E8 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: D1 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: D1 01 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: D1 01 00 CE 48 00 E7 [09:36:53]Write to MH i2c: 01 00 00 CF 48 17 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]OFD Sender: No OFD packet to send [09:36:54]*** Cut start [09:36:54]*** Partial cut [09:36:54]*** CUTSNS_PIN = 1 [09:36:54]*** CUTSNS_PIN = 0 [09:36:54]*** Brake cut motor [09:36:54]Read from MH i2c: 01 [09:36:54]MH_I2C_Read... [09:36:54]*** Stop cut motor [09:36:54]*** Cut end [09:36:54]Read from MH i2c: 01 07 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: 01 07 00 CF 48 00 00 00 00 00 FF 0F 2C [09:36:54]process_action close_receipt done [09:36:54]requested_data is exist [09:36:54]produce_requested_data [09:36:54]requested_item fm.sn is exist - process it [09:36:54]wFMCommunicate request_size=4 [09:36:54]MH_SAM_APDU [09:36:54]CAPDU: 80 11 00 00 [09:36:54]Write to MH i2c: E2 08 00 D0 48 80 11 00 00 00 00 00 00 92 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:54]Read from MH i2c: E2 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 17 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 17 00 D0 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [09:36: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:36:54]wFMCommunicate OK [09:36:54]requested_item fd.num is exist - process it [09:36:54]SAM_PROTO_GetFieldsCounters [09:36:54]wFMCommunicate request_size=4 [09:36:54]MH_SAM_APDU [09:36:54]CAPDU: 80 13 00 00 [09:36:54]Write to MH i2c: E2 08 00 D1 48 80 13 00 00 00 00 00 00 95 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 62 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 62 00 D1 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 90 13 01 00 0E 04 04 00 C4 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 CC [09:36: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 90 13 01 00 0E 04 04 00 C4 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 [09:36:55]wFMCommunicate OK [09:36:55]SAM_PROTO_GetFieldsCounters done [09:36:55]requested_item shift.num is exist - process it [09:36:55]requested_item shift.opened is exist - process it [09:36:55]req_shift_opened [09:36:55]FM_GetShiftState [09:36:55]SAM_PROTO_GetShiftState [09:36:55]wFMCommunicate request_size=4 [09:36:55]MH_SAM_APDU [09:36:55]CAPDU: 80 13 01 00 [09:36:55]Write to MH i2c: E2 08 00 D2 48 80 13 01 00 00 00 00 00 97 [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 0E 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 0E 00 D2 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 24 [09:36:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:36:55]wFMCommunicate OK [09:36:55]SAM_PROTO_GetShiftState done [09:36:55]FM_GetShiftState done [09:36:55]req_shift_opened done [09:36:55]requested_item shift.open_date is exist - process it [09:36:55]req_shift_open_date [09:36:55]req_shift_open_date done [09:36:55]produce_requested_data done [09:36:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70544,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:36:55]process_action_free close_receipt [09:36:55]json_value_free [09:36:55]json_value_free done [09:36:55]process_json_proto returns [09:36:55]Send response to host [09:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70544,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:36:55]free response buf [09:36:55]execute_script done [09:36:55]execute_script returns [09:36:55]free content buf [09:36:55]Sock 9.Close socket [09:36:55]Sock 9.Thread stoped [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [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:36]accept exits with 7 [09:39:36]New connection [09:39:36]New thread 3066699108 created [09:39:36]Thread 3066555748 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 7.Parse request [09:39:36]Sock 7.Check first char [09:39:36]Sock 7.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.50.3:8080 [09:39:36]Content-Length: 793 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 793 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886313", "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.890, "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\u000A43080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]execute_script... [09:39: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)2886313", "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.890, "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\u000A43080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 D3 48 0A [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 D3 48 00 5C C4 18 67 6B 98 1E 66 39 [09:39:36]GetLastDocTimeStamp 1729676215 [09:39:36]current date 1729676380 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 D4 48 80 13 01 00 00 00 00 00 99 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 D4 48 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 26 [09:39:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1729642435 [09:39:36]opened+sec_in_day 1729728835 [09:39:36]quantity*price = 0 [09:39:36]sum+1 = 1 [09:39: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 СНО: Общий режим Чек 61 23.10.2024 09:39 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 43080 ФМ: 0000000000963346 ФД: 70545 ФПД: 188863615185698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093940&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70545&fm=188863615185698&tin=02508201610067®Number=0000000000156251&sum=0 [09:39:37]StoreToDocumentArchive [09:39:37]shift 196 fd 70545 [09:39:37]save to /storage/0196/doc_00070545 [09:39:37]save last doc name /storage/0196/doc_00070545 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:37]tlvbuf is B6D6A880 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 E1 48 80 09 00 00 00 00 00 00 9B [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 E1 48 00 90 00 9D [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 E2 48 80 0D 01 02 00 00 00 00 A3 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 E2 48 00 90 00 9E [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39: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 9A 51 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C C4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB [09:39:37]Write to MH i2c: E2 02 01 E3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C C4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB 00 00 82 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 E3 48 00 90 00 9F [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=10 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 05 C5 3C B1 B3 22 [09:39:38]Write to MH i2c: E2 0D 00 E4 48 80 0D 02 02 05 00 C5 3C B1 B3 22 00 00 37 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 E4 48 00 90 00 A0 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 03 02 [09:39:38]Write to MH i2c: E2 08 00 E5 48 80 0D 03 02 00 00 00 00 A8 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 E5 48 00 C1 73 1B 81 52 F0 A8 02 90 00 65 [09:39:38]RAPDU: C1 73 1B 81 52 F0 A8 02 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_SignData done [09:39:38]FM_MakeSignedData done [09:39:38]CreateOFDProtocolMessage [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 11 00 00 [09:39:38]Write to MH i2c: E2 08 00 E6 48 80 11 00 00 00 00 00 00 A8 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 E6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [09:39: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:39:38]wFMCommunicate OK [09:39:38]CreateOFDProtocolMessage done [09:39:38]OFDSenderStorePacket 70545 [09:39:38]StoreOFDPacket docnum=70545 [09:39: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 10 5C 07 01 90 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 9A 51 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C C4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB C5 3C B1 B3 22 C1 73 1B 81 52 F0 A8 02 [09:39:38]CheckFolder [09:39:38]dirname=/storage/ofd_packets [09:39:38]CheckFolder done [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00070545 [09:39:38]NVStorageSaveData ofd_packets/00070545 [09:39:38]File name is /storage/ofd_packets/00070545 [09:39:38]Write 301 bytes [09:39:38]NVStorageSaveData done [09:39:38]OFDSenderStorePacket done [09:39:38]KKMCreateOFDPacket done [09:39:38]NVStorageSaveData kkm_last_timestamp [09:39:38]File name is /storage/kkm_last_timestamp [09:39:38]Write 4 bytes [09:39:38]NVStorageSaveData done [09:39:38]ExternCall_PrintAddStr [09:39:38]wPrintStart [09:39:38]Write to MH i2c: 01 00 00 E7 48 2F [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 E7 48 00 00 00 00 00 FF 0F 44 [09:39:38]RasterBufferAndPrint [09:39:38]line Счет N : (1)2886313 [09:39:38]line ИНН: 02508201610067 [09:39:38]line Контрольно-Кассовый Чек [09:39:38]line ПРОДАЖА [09:39:38]line ТРК (МРК, ГНК) : 42 [09:39:38]line Товар: 2710124130 [09:39:38]line Аи-92-К-5 [09:39:38]line 20.890 * 0.00 [09:39:38]line = 0.00 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line ИТОГО: 0.00 [09:39:38]line НСП 1% : 0.00 [09:39:38]line НДС 12% : 0.00 [09:39:38]line Наличными: 0.00 [09:39:38]line Безнал.: 0.00 [09:39:38]line Место: АЗС № 85 "Партнер Нефть" [09:39:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:39:38]line СНО: Общий режим [09:39:38]line Чек 61 23.10.2024 09:39 [09:39:38]line Смена: 196 ФФД: 1.0 [09:39:38]line ЗНМ: 0300000167 [09:39:38]line РНМ: 0000000000156251 [09:39:38]line Версия ККМ: v1.0 [09:39:38]line Талоны: Топливная Карта [09:39:38]line 43080 [09:39:38]line ФМ: 0000000000963346 [09:39:38]line ФД: 70545 [09:39:38]line ФПД: 188863615185698 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093940&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70545&fm=188863615185698&tin=02508201610067®Number=0000000000156251&sum=0 [09:39:38]OFD Sender: Processing packet 70545 [packets to send 18, broken 17] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00070545 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]written 0, free lines is 4095 [09:39:38]Connected sock=10 [09:39: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 10 5C 07 01 90 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 9A 51 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C C4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB C5 3C B1 B3 22 C1 73 1B 81 52 F0 A8 02 [09:39: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 27 B0 47 00 8D 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 91 13 01 00 F4 03 04 00 FA 6D 18 67 B6 04 01 00 00 54 6F F5 83 16 F9 73 C9 [09:39:38]CommunicateWithHost err = 0 [09:39:38]CheckOFDResponse [09:39:38]1017 (14) - 77093643461234 [09:39:38]1041 (16) - 0000000000963346 [09:39:38]1040 (4) - 70545 [09:39:38]1012 (4) - 23.10.2024 03:31 [09:39:38]1206 (1) - 0 [09:39:38]OFD Sender: Remove packet 70545 [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00070545 [09:39:38]NVStorageDeleteData [09:39:38]Write to MH i2c: 01 00 00 11 49 5A [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 11 49 00 00 00 00 00 01 0D 6F [09:39:38]RasterBufferAndPrint [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]written 0, free lines is 3335 [09:39:38]MH_Cut [09:39:38]Write to MH i2c: D1 01 00 18 49 01 33 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 18 49 00 32 [09:39:38]Write to MH i2c: 01 00 00 19 49 62 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:39]OFD Sender: No OFD packet to send [09:39:39]*** Cut start [09:39:39]*** Partial cut [09:39:39]*** CUTSNS_PIN = 1 [09:39:39]*** CUTSNS_PIN = 0 [09:39:39]*** Brake cut motor [09:39:40]Read from MH i2c: 01 [09:39:40]MH_I2C_Read... [09:39:40]*** Stop cut motor [09:39:40]*** Cut end [09:39:40]Read from MH i2c: 01 07 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: 01 07 00 19 49 00 00 00 00 00 FF 0F 77 [09:39:40]process_action close_receipt done [09:39:40]requested_data is exist [09:39:40]produce_requested_data [09:39:40]requested_item fm.sn is exist - process it [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 11 00 00 [09:39:40]Write to MH i2c: E2 08 00 1A 49 80 11 00 00 00 00 00 00 DD [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 1A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [09:39: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:39:40]wFMCommunicate OK [09:39:40]requested_item fd.num is exist - process it [09:39:40]SAM_PROTO_GetFieldsCounters [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 00 00 [09:39:40]Write to MH i2c: E2 08 00 1B 49 80 13 00 00 00 00 00 00 E0 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 1B 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 91 13 01 00 0E 04 04 00 C4 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 1B [09:39: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 91 13 01 00 0E 04 04 00 C4 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 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 1C 49 80 13 01 00 00 00 00 00 E2 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 1C 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6F [09:39:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70545,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70545,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 7.Close socket [09:39:40]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:09]accept exits with 9 [09:44:09]New connection [09:44:09]New thread 3066555748 created [09:44:09]Thread 3066699108 joined [09:44:09]Waiting for new connection... [09:44:09] Sock 9.Parse request [09:44:09]Sock 9.Check first char [09:44:09]Sock 9.First char is OK [09:44:09]request: POST /json_proto HTTP/1.0 [09:44:09]Method: POST [09:44:09]URL: /json_proto [09:44:09]Method is POST - this is cgi request [09:44:09]url: /json_proto [09:44:09]query_string will be loaded in cgi processing [09:44:09]execute_cgi json_proto POST (null) [09:44:09]execute_cgi path=json_proto method=POST [09:44:09]POST find Content-Length [09:44:09]Host: 172.17.50.3:8080 [09:44:09]Content-Length: 682 [09:44:09]Content-Type: application/json [09:44:09] [09:44:09]POST finish read [09:44:09]Found Content-Length = 682 [09:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886316", "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:44:09]execute_script... [09:44:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886316", "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:44:09]POST & json_proto [09:44:09]process_json_proto [09:44:09]json parsed OK: [09:44:09]protocol is kg_v1.0 [09:44:09]action value=close_receipt [09:44:09]process_action close_receipt [09:44:09]cmd_close_receipt [09:44:09]MH_GetDate [09:44:09]Write to MH i2c: F0 00 00 1D 49 55 [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 09 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 09 00 1D 49 00 6D C5 18 67 6B 98 1E 66 96 [09:44:09]GetLastDocTimeStamp 1729676380 [09:44:09]current date 1729676653 [09:44:09]FM_GetShiftState [09:44:09]SAM_PROTO_GetShiftState [09:44:09]wFMCommunicate request_size=4 [09:44:09]MH_SAM_APDU [09:44:09]CAPDU: 80 13 01 00 [09:44:09]Write to MH i2c: E2 08 00 1E 49 80 13 01 00 00 00 00 00 E4 [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:09]Read from MH i2c: E2 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 1E 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 71 [09:44:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:09]wFMCommunicate OK [09:44:09]SAM_PROTO_GetShiftState done [09:44:09]FM_GetShiftState done [09:44:09]opened in 1729642435 [09:44:09]opened+sec_in_day 1729728835 [09:44:09]quantity*price = 50025 [09:44:09]sum+1 = 50026 [09:44:09]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 СНО: Общий режим Чек 62 23.10.2024 09:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70546 ФПД: 277240360417219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70546&fm=277240360417219&tin=02508201610067®Number=0000000000156251&sum=50000 [09:44:10]StoreToDocumentArchive [09:44:10]shift 196 fd 70546 [09:44:10]save to /storage/0196/doc_00070546 [09:44:10]save last doc name /storage/0196/doc_00070546 to /storage/kkm_last_doc_name [09:44:10]save OK [09:44:10]Clear old archive folders... [09:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:44:10]tlvbuf is 00D785E0 [09:44:10]SAM_PROTO_ClearQueue [09:44:10]wFMCommunicate request_size=4 [09:44:10]MH_SAM_APDU [09:44:10]CAPDU: 80 09 00 00 [09:44:10]Write to MH i2c: E2 08 00 2B 49 80 09 00 00 00 00 00 00 E6 [09:44:10]Write i2c OK [09:44:10]MH_I2C_Read... [09:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:10]Read from MH i2c: E2 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 2B 49 00 90 00 E8 [09:44:10]RAPDU: 90 00 [09:44:10]wFMCommunicate OK [09:44:10]SAM_PROTO_ClearQueue done [09:44:10]KKMCreateOFDPacket [09:44:10]OFDProtocolAddRootSTLVToBuf [09:44:10]FM_MakeSignedData [09:44:10]FM_MakeSignedData [09:44:10]SAM_PROTO_SignData [09:44:10]wFMCommunicate request_size=4 [09:44:10]MH_SAM_APDU [09:44:10]CAPDU: 80 0D 01 02 [09:44:10]Write to MH i2c: E2 08 00 2C 49 80 0D 01 02 00 00 00 00 EE [09:44:10]Write i2c OK [09:44:10]MH_I2C_Read... [09:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:10]Read from MH i2c: E2 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 2C 49 00 90 00 E9 [09:44:10]RAPDU: 90 00 [09:44:10]wFMCommunicate OK [09:44:10]wFMCommunicate request_size=255 [09:44:10]MH_SAM_APDU [09:44:10]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 3E 00 00 00 F4 03 04 00 6D C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 26 [09:44:10]Write to MH i2c: E2 02 01 2D 49 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 3E 00 00 00 F4 03 04 00 6D C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 26 00 00 AC [09:44:10]Write i2c OK [09:44:10]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 2D 49 00 90 00 EA [09:44:11]RAPDU: 90 00 [09:44:11]wFMCommunicate OK [09:44:11]wFMCommunicate request_size=9 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 0D 02 02 04 0D 33 37 C3 [09:44:11]Write to MH i2c: E2 0C 00 2E 49 80 0D 02 02 04 00 0D 33 37 C3 00 00 33 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 2E 49 00 90 00 EB [09:44:11]RAPDU: 90 00 [09:44:11]wFMCommunicate OK [09:44:11]wFMCommunicate request_size=4 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 0D 03 02 [09:44:11]Write to MH i2c: E2 08 00 2F 49 80 0D 03 02 00 00 00 00 F3 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0B 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0B 00 2F 49 00 DC 24 07 46 F5 F7 4E 6B 90 00 E6 [09:44:11]RAPDU: DC 24 07 46 F5 F7 4E 6B 90 00 [09:44:11]wFMCommunicate OK [09:44:11]SAM_PROTO_SignData done [09:44:11]FM_MakeSignedData done [09:44:11]CreateOFDProtocolMessage [09:44:11]wFMCommunicate request_size=4 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 11 00 00 [09:44:11]Write to MH i2c: E2 08 00 30 49 80 11 00 00 00 00 00 00 F3 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 17 00 [09:44:11]MH_I2C_Read... [09:44:11]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 [09:44:11]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:11]wFMCommunicate OK [09:44:11]CreateOFDProtocolMessage done [09:44:11]OFDSenderStorePacket 70546 [09:44:11]StoreOFDPacket docnum=70546 [09:44: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 0E 01 00 00 05 4E 06 01 09 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 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 3E 00 00 00 F4 03 04 00 6D C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 26 0D 33 37 C3 DC 24 07 46 F5 F7 4E 6B [09:44:11]CheckFolder [09:44:11]dirname=/storage/ofd_packets [09:44:11]CheckFolder done [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00070546 [09:44:11]NVStorageSaveData ofd_packets/00070546 [09:44:11]File name is /storage/ofd_packets/00070546 [09:44:11]Write 300 bytes [09:44:11]NVStorageSaveData done [09:44:11]OFDSenderStorePacket done [09:44:11]KKMCreateOFDPacket done [09:44:11]NVStorageSaveData kkm_last_timestamp [09:44:11]File name is /storage/kkm_last_timestamp [09:44:11]Write 4 bytes [09:44:11]NVStorageSaveData done [09:44:11]ExternCall_PrintAddStr [09:44:11]wPrintStart [09:44:11]Write to MH i2c: 01 00 00 31 49 7A [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 31 49 00 00 00 00 00 FF 0F 8F [09:44:11]RasterBufferAndPrint [09:44:11]line Счет N : (1)2886316 [09:44:11]line ИНН: 02508201610067 [09:44:11]line Контрольно-Кассовый Чек [09:44:11]line ПРОДАЖА [09:44:11]line ТРК (МРК, ГНК) : 71 [09:44:11]line Товар: 2711129700 [09:44:11]line ГАЗ-К-3 [09:44:11]line 12.860 * 38.90 [09:44:11]line = 500.25 [09:44:11]line НДС 12% НСП 1% [09:44:11]line > о реализуемом товаре [09:44:11]line ОКРУГЛЕНИЕ: -0.25 [09:44:11]line ИТОГО: 500.00 [09:44:11]line Внесено: 500.00 [09:44:11]line СДАЧА: 0.00 [09:44:11]line НСП 1% : 4.43 [09:44:11]line НДС 12% : 53.12 [09:44:11]line Наличными: 500.00 [09:44:11]line Безнал.: 0.00 [09:44:11]line Место: АЗС № 85 "Партнер Нефть" [09:44:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:11]line СНО: Общий режим [09:44:11]line Чек 62 23.10.2024 09:44 [09:44:11]line Смена: 196 ФФД: 1.0 [09:44:11]line ЗНМ: 0300000167 [09:44:11]line РНМ: 0000000000156251 [09:44:11]line Версия ККМ: v1.0 [09:44:11]line ФМ: 0000000000963346 [09:44:11]line ФД: 70546 [09:44:11]line ФПД: 277240360417219 [09:44:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70546&fm=277240360417219&tin=02508201610067®Number=0000000000156251&sum=50000 [09:44:11]written 0, free lines is 4095 [09:44:11]OFD Sender: Processing packet 70546 [packets to send 18, broken 17] [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00070546 [09:44:11]OFD Sender: To server: pG, [09:44:11]CommunicateWithHost lk.salyk.kg:30040 [09:44:11]ConnectInit lk.salyk.kg [09:44:11]Connected sock=10 [09:44: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 0E 01 00 00 05 4E 06 01 09 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 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 3E 00 00 00 F4 03 04 00 6D C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FC 26 0D 33 37 C3 DC 24 07 46 F5 F7 4E 6B [09:44: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 1E 3B 47 00 2E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 13 01 00 F4 03 04 00 0B 6F 18 67 B6 04 01 00 00 E4 C2 5F 68 C9 E0 9D 1C [09:44:11]CommunicateWithHost err = 0 [09:44:11]CheckOFDResponse [09:44:11]1017 (14) - 77093643461234 [09:44:11]1041 (16) - 0000000000963346 [09:44:11]1040 (4) - 70546 [09:44:11]1012 (4) - 23.10.2024 03:35 [09:44:11]1206 (1) - 0 [09:44:11]OFD Sender: Remove packet 70546 [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00070546 [09:44:11]NVStorageDeleteData [09:44:11]Write to MH i2c: 01 00 00 5C 49 A5 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 5C 49 00 00 00 00 00 F9 0C B1 [09:44:11]RasterBufferAndPrint [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]written 0, free lines is 3330 [09:44:11]MH_Cut [09:44:11]Write to MH i2c: D1 01 00 63 49 01 7E [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 01 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 01 00 63 49 00 7D [09:44:11]Write to MH i2c: 01 00 00 64 49 AD [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:12]OFD Sender: No OFD packet to send [09:44:12]*** Cut start [09:44:12]*** Partial cut [09:44:12]*** CUTSNS_PIN = 1 [09:44:12]*** CUTSNS_PIN = 0 [09:44:12]*** Brake cut motor [09:44:13]Read from MH i2c: 01 [09:44:13]MH_I2C_Read... [09:44:13]*** Stop cut motor [09:44:13]*** Cut end [09:44:13]Read from MH i2c: 01 07 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 07 00 64 49 00 00 00 00 00 FF 0F C2 [09:44:13]process_action close_receipt done [09:44:13]requested_data is exist [09:44:13]produce_requested_data [09:44:13]requested_item fm.sn is exist - process it [09:44:13]wFMCommunicate request_size=4 [09:44:13]MH_SAM_APDU [09:44:13]CAPDU: 80 11 00 00 [09:44:13]Write to MH i2c: E2 08 00 65 49 80 11 00 00 00 00 00 00 28 [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:13]Read from MH i2c: E2 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 17 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 17 00 65 49 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:44:13]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:13]wFMCommunicate OK [09:44:13]requested_item fd.num is exist - process it [09:44:13]SAM_PROTO_GetFieldsCounters [09:44:13]wFMCommunicate request_size=4 [09:44:13]MH_SAM_APDU [09:44:13]CAPDU: 80 13 00 00 [09:44:13]Write to MH i2c: E2 08 00 66 49 80 13 00 00 00 00 00 00 2B [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:13]Read from MH i2c: E2 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 62 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 62 00 66 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 92 13 01 00 0E 04 04 00 C4 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 6A [09:44: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 92 13 01 00 0E 04 04 00 C4 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 [09:44:13]wFMCommunicate OK [09:44:13]SAM_PROTO_GetFieldsCounters done [09:44:13]requested_item shift.num is exist - process it [09:44:13]requested_item shift.opened is exist - process it [09:44:13]req_shift_opened [09:44:13]FM_GetShiftState [09:44:13]SAM_PROTO_GetShiftState [09:44:13]wFMCommunicate request_size=4 [09:44:13]MH_SAM_APDU [09:44:13]CAPDU: 80 13 01 00 [09:44:13]Write to MH i2c: E2 08 00 67 49 80 13 01 00 00 00 00 00 2D [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:13]Read from MH i2c: E2 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 0E 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 0E 00 67 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BA [09:44:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:13]wFMCommunicate OK [09:44:13]SAM_PROTO_GetShiftState done [09:44:13]FM_GetShiftState done [09:44:13]req_shift_opened done [09:44:13]requested_item shift.open_date is exist - process it [09:44:13]req_shift_open_date [09:44:13]req_shift_open_date done [09:44:13]produce_requested_data done [09:44:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70546,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:44:13]process_action_free close_receipt [09:44:13]json_value_free [09:44:13]json_value_free done [09:44:13]process_json_proto returns [09:44:13]Send response to host [09:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70546,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:44:13]free response buf [09:44:13]execute_script done [09:44:13]execute_script returns [09:44:13]free content buf [09:44:13]Sock 9.Close socket [09:44:13]Sock 9.Thread stoped [09:44:17]OFD Sender: No OFD packet to send [09:44:17]accept exits with 7 [09:44:17]New connection [09:44:17]New thread 3066699108 created [09:44:17]Thread 3066555748 joined [09:44:17]Waiting for new connection... [09:44:17] Sock 7.Parse request [09:44:17]Sock 7.Check first char [09:44:17]Sock 7.First char is OK [09:44:17]request: POST /json_proto HTTP/1.0 [09:44:17]Method: POST [09:44:17]URL: /json_proto [09:44:17]Method is POST - this is cgi request [09:44:17]url: /json_proto [09:44:17]query_string will be loaded in cgi processing [09:44:17]execute_cgi json_proto POST (null) [09:44:17]execute_cgi path=json_proto method=POST [09:44:17]POST find Content-Length [09:44:17]Host: 172.17.50.3:8080 [09:44:17]Content-Length: 754 [09:44:17]Content-Type: application/json [09:44:17] [09:44:17]POST finish read [09:44:17]Found Content-Length = 754 [09:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886317", "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" : 4.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\u000A30033791", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:17]execute_script... [09:44: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)2886317", "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" : 4.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\u000A30033791", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:17]POST & json_proto [09:44:17]process_json_proto [09:44:17]json parsed OK: [09:44:17]protocol is kg_v1.0 [09:44:17]action value=close_receipt [09:44:17]process_action close_receipt [09:44:17]cmd_close_receipt [09:44:17]MH_GetDate [09:44:17]Write to MH i2c: F0 00 00 68 49 A0 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 09 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: F0 09 00 68 49 00 76 C5 18 67 6B 98 1E 66 EA [09:44:17]GetLastDocTimeStamp 1729676653 [09:44:17]current date 1729676662 [09:44:17]FM_GetShiftState [09:44:17]SAM_PROTO_GetShiftState [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 13 01 00 [09:44:17]Write to MH i2c: E2 08 00 69 49 80 13 01 00 00 00 00 00 2F [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:17]Read from MH i2c: E2 0E 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0E 00 69 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BC [09:44:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_GetShiftState done [09:44:17]FM_GetShiftState done [09:44:17]opened in 1729642435 [09:44:17]opened+sec_in_day 1729728835 [09:44:17]quantity*price = 0 [09:44:17]sum+1 = 1 [09:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 63 23.10.2024 09:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30033791 ФМ: 0000000000963346 ФД: 70547 ФПД: 142772380018655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70547&fm=142772380018655&tin=02508201610067®Number=0000000000156251&sum=0 [09:44:19]StoreToDocumentArchive [09:44:19]shift 196 fd 70547 [09:44:19]save to /storage/0196/doc_00070547 [09:44:19]save last doc name /storage/0196/doc_00070547 to /storage/kkm_last_doc_name [09:44:19]save OK [09:44:19]Clear old archive folders... [09:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:19]tlvbuf is 00C3CA20 [09:44:19]SAM_PROTO_ClearQueue [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 09 00 00 [09:44:19]Write to MH i2c: E2 08 00 76 49 80 09 00 00 00 00 00 00 31 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 76 49 00 90 00 33 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_ClearQueue done [09:44:19]KKMCreateOFDPacket [09:44:19]OFDProtocolAddRootSTLVToBuf [09:44:19]FM_MakeSignedData [09:44:19]FM_MakeSignedData [09:44:19]SAM_PROTO_SignData [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 01 02 [09:44:19]Write to MH i2c: E2 08 00 77 49 80 0D 01 02 00 00 00 00 39 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 77 49 00 90 00 34 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=255 [09:44:19]MH_SAM_APDU [09:44: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 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 81 [09:44:19]Write to MH i2c: E2 02 01 78 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 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 81 00 00 D1 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 78 49 00 90 00 35 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=10 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 02 02 05 D9 C8 FE A7 DF [09:44:19]Write to MH i2c: E2 0D 00 79 49 80 0D 02 02 05 00 D9 C8 FE A7 DF 00 00 6B [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 03 00 79 49 00 90 00 36 [09:44:19]RAPDU: 90 00 [09:44:19]wFMCommunicate OK [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 0D 03 02 [09:44:19]Write to MH i2c: E2 08 00 7A 49 80 0D 03 02 00 00 00 00 3E [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0B 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0B 00 7A 49 00 24 64 D1 D8 50 E4 B5 73 90 00 CC [09:44:19]RAPDU: 24 64 D1 D8 50 E4 B5 73 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_SignData done [09:44:19]FM_MakeSignedData done [09:44:19]CreateOFDProtocolMessage [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 11 00 00 [09:44:19]Write to MH i2c: E2 08 00 7B 49 80 11 00 00 00 00 00 00 3E [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 17 00 [09:44:19]MH_I2C_Read... [09:44:19]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 [09:44: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:44:19]wFMCommunicate OK [09:44:19]CreateOFDProtocolMessage done [09:44:19]OFDSenderStorePacket 70547 [09:44:19]StoreOFDPacket docnum=70547 [09:44: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 58 78 07 01 84 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 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 81 D9 C8 FE A7 DF 24 64 D1 D8 50 E4 B5 73 [09:44:19]CheckFolder [09:44:19]dirname=/storage/ofd_packets [09:44:19]CheckFolder done [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00070547 [09:44:19]NVStorageSaveData ofd_packets/00070547 [09:44:19]File name is /storage/ofd_packets/00070547 [09:44:19]Write 301 bytes [09:44:19]NVStorageSaveData done [09:44:19]OFDSenderStorePacket done [09:44:19]KKMCreateOFDPacket done [09:44:19]NVStorageSaveData kkm_last_timestamp [09:44:19]File name is /storage/kkm_last_timestamp [09:44:19]Write 4 bytes [09:44:19]NVStorageSaveData done [09:44:19]ExternCall_PrintAddStr [09:44:19]wPrintStart [09:44:19]Write to MH i2c: 01 00 00 7C 49 C5 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 7C 49 00 00 00 00 00 FF 0F DA [09:44:19]RasterBufferAndPrint [09:44:19]line Счет N : (1)2886317 [09:44:19]line ИНН: 02508201610067 [09:44:19]line Контрольно-Кассовый Чек [09:44:19]line ПРОДАЖА [09:44:19]line ТРК (МРК, ГНК) : 32 [09:44:19]line Товар: 2710124130 [09:44:19]line Аи-92-К-5 [09:44:19]line 4.000 * 0.00 [09:44:19]line = 0.00 [09:44:19]line НДС 12% НСП 1% [09:44:19]line > о реализуемом товаре [09:44:19]line ИТОГО: 0.00 [09:44:19]line НСП 1% : 0.00 [09:44:19]line НДС 12% : 0.00 [09:44:19]line Наличными: 0.00 [09:44:19]line Безнал.: 0.00 [09:44:19]line Место: АЗС № 85 "Партнер Нефть" [09:44:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:19]line СНО: Общий режим [09:44:19]line Чек 63 23.10.2024 09:44 [09:44:19]line Смена: 196 ФФД: 1.0 [09:44:19]line ЗНМ: 0300000167 [09:44:19]line РНМ: 0000000000156251 [09:44:19]line Версия ККМ: v1.0 [09:44:19]line Талоны: ТК ГПНА Online [09:44:19]line 30033791 [09:44:19]line ФМ: 0000000000963346 [09:44:19]line ФД: 70547 [09:44:19]line ФПД: 142772380018655 [09:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70547&fm=142772380018655&tin=02508201610067®Number=0000000000156251&sum=0 [09:44:19]written 0, free lines is 4095 [09:44:19]OFD Sender: Processing packet 70547 [packets to send 18, broken 17] [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00070547 [09:44:19]OFD Sender: To server: pG, [09:44:19]CommunicateWithHost lk.salyk.kg:30040 [09:44:19]ConnectInit lk.salyk.kg [09:44:20]Connected sock=11 [09:44: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 58 78 07 01 84 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 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 81 D9 C8 FE A7 DF 24 64 D1 D8 50 E4 B5 73 [09:44:20]Write to MH i2c: 01 00 00 A6 49 EF [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 07 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: 01 07 00 A6 49 00 00 00 00 00 FD 0C FF [09:44:20]RasterBufferAndPrint [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]line [09:44:20]written 0, free lines is 3337 [09:44:20]MH_Cut [09:44:20]Write to MH i2c: D1 01 00 AD 49 01 C8 [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 01 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: D1 01 00 AD 49 00 C7 [09:44:20]Write to MH i2c: 01 00 00 AE 49 F7 [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44: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 56 54 47 00 30 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 13 01 00 F4 03 04 00 14 6F 18 67 B6 04 01 00 00 43 60 FE 3E 43 8D E8 69 [09:44:20]CommunicateWithHost err = 0 [09:44:20]CheckOFDResponse [09:44:20]1017 (14) - 77093643461234 [09:44:20]1041 (16) - 0000000000963346 [09:44:20]1040 (4) - 70547 [09:44:20]1012 (4) - 23.10.2024 03:35 [09:44:20]1206 (1) - 0 [09:44:20]OFD Sender: Remove packet 70547 [09:44:20]ProducePacketName [09:44:20]name=ofd_packets/00070547 [09:44:20]NVStorageDeleteData [09:44:20]*** Cut start [09:44:20]*** Partial cut [09:44:20]*** CUTSNS_PIN = 1 [09:44:20]OFD Sender: No OFD packet to send [09:44:20]*** CUTSNS_PIN = 0 [09:44:21]*** Brake cut motor [09:44:21]Read from MH i2c: 01 [09:44:21]MH_I2C_Read... [09:44:21]*** Stop cut motor [09:44:21]*** Cut end [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 AE 49 00 00 00 00 00 FF 0F 0C [09:44:21]process_action close_receipt done [09:44:21]requested_data is exist [09:44:21]produce_requested_data [09:44:21]requested_item fm.sn is exist - process it [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 AF 49 80 11 00 00 00 00 00 00 72 [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 AF 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [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]requested_item fd.num is exist - process it [09:44:21]SAM_PROTO_GetFieldsCounters [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 00 00 [09:44:21]Write to MH i2c: E2 08 00 B0 49 80 13 00 00 00 00 00 00 75 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 62 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 62 00 B0 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 93 13 01 00 0E 04 04 00 C4 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 B8 [09:44: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 93 13 01 00 0E 04 04 00 C4 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 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetFieldsCounters done [09:44:21]requested_item shift.num is exist - process it [09:44:21]requested_item shift.opened is exist - process it [09:44:21]req_shift_opened [09:44:21]FM_GetShiftState [09:44:21]SAM_PROTO_GetShiftState [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 01 00 [09:44:21]Write to MH i2c: E2 08 00 B1 49 80 13 01 00 00 00 00 00 77 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 B1 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 04 [09:44:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetShiftState done [09:44:21]FM_GetShiftState done [09:44:21]req_shift_opened done [09:44:21]requested_item shift.open_date is exist - process it [09:44:21]req_shift_open_date [09:44:21]req_shift_open_date done [09:44:21]produce_requested_data done [09:44:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70547,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:44:21]process_action_free close_receipt [09:44:21]json_value_free [09:44:21]json_value_free done [09:44:21]process_json_proto returns [09:44:21]Send response to host [09:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70547,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:44:21]free response buf [09:44:21]execute_script done [09:44:21]execute_script returns [09:44:21]free content buf [09:44:21]Sock 7.Close socket [09:44:21]Sock 7.Thread stoped [09:44:22]accept exits with 9 [09:44:22]New connection [09:44:22]New thread 3066555748 created [09:44:22]Thread 3066699108 joined [09:44:22]Waiting for new connection... [09:44:22] Sock 9.Parse request [09:44:22]Sock 9.Check first char [09:44:22]Sock 9.First char is OK [09:44:22]request: POST /json_proto HTTP/1.0 [09:44:22]Method: POST [09:44:22]URL: /json_proto [09:44:22]Method is POST - this is cgi request [09:44:22]url: /json_proto [09:44:22]query_string will be loaded in cgi processing [09:44:22]execute_cgi json_proto POST (null) [09:44:22]execute_cgi path=json_proto method=POST [09:44:22]POST find Content-Length [09:44:22]Host: 172.17.50.3:8080 [09:44:22]Content-Length: 689 [09:44:22]Content-Type: application/json [09:44:22] [09:44:22]POST finish read [09:44:22]Found Content-Length = 689 [09:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886315", "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 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:22]execute_script... [09:44:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886315", "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 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:22]POST & json_proto [09:44:22]process_json_proto [09:44:22]json parsed OK: [09:44:22]protocol is kg_v1.0 [09:44:22]action value=close_receipt [09:44:22]process_action close_receipt [09:44:22]cmd_close_receipt [09:44:22]MH_GetDate [09:44:22]Write to MH i2c: F0 00 00 B2 49 EA [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: F0 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: F0 09 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: F0 09 00 B2 49 00 7A C5 18 67 6B 98 1E 66 38 [09:44:22]GetLastDocTimeStamp 1729676662 [09:44:22]current date 1729676666 [09:44:22]FM_GetShiftState [09:44:22]SAM_PROTO_GetShiftState [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 13 01 00 [09:44:22]Write to MH i2c: E2 08 00 B3 49 80 13 01 00 00 00 00 00 79 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 0E 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 0E 00 B3 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 06 [09:44:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:22]wFMCommunicate OK [09:44:22]SAM_PROTO_GetShiftState done [09:44:22]FM_GetShiftState done [09:44:22]opened in 1729642435 [09:44:22]opened+sec_in_day 1729728835 [09:44:22]quantity*price = 200025 [09:44:22]sum+1 = 200026 [09:44:22]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 СНО: Общий режим Чек 64 23.10.2024 09:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70548 ФПД: 82344387105083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70548&fm=82344387105083&tin=02508201610067®Number=0000000000156251&sum=200000 [09:44:23]StoreToDocumentArchive [09:44:23]shift 196 fd 70548 [09:44:23]save to /storage/0196/doc_00070548 [09:44:23]save last doc name /storage/0196/doc_00070548 to /storage/kkm_last_doc_name [09:44:23]save OK [09:44:23]Clear old archive folders... [09:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:44:23]tlvbuf is 00B52780 [09:44:23]SAM_PROTO_ClearQueue [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 09 00 00 [09:44:23]Write to MH i2c: E2 08 00 C0 49 80 09 00 00 00 00 00 00 7B [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C0 49 00 90 00 7D [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_ClearQueue done [09:44:23]KKMCreateOFDPacket [09:44:23]OFDProtocolAddRootSTLVToBuf [09:44:23]FM_MakeSignedData [09:44:23]FM_MakeSignedData [09:44:23]SAM_PROTO_SignData [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 0D 01 02 [09:44:23]Write to MH i2c: E2 08 00 C1 49 80 0D 01 02 00 00 00 00 83 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C1 49 00 90 00 7E [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]wFMCommunicate request_size=255 [09:44:23]MH_SAM_APDU [09:44: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 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 40 00 00 00 F4 03 04 00 7A C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [09:44:23]Write to MH i2c: E2 02 01 C2 49 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 40 00 00 00 F4 03 04 00 7A C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 83 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C2 49 00 90 00 7F [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]wFMCommunicate request_size=16 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4A E4 4B F1 51 3B [09:44:23]Write to MH i2c: E2 13 00 C3 49 80 0D 02 02 0B 00 00 35 04 06 00 4A E4 4B F1 51 3B 00 00 D1 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 C3 49 00 90 00 80 [09:44:24]RAPDU: 90 00 [09:44:24]wFMCommunicate OK [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 0D 03 02 [09:44:24]Write to MH i2c: E2 08 00 C4 49 80 0D 03 02 00 00 00 00 88 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0B 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0B 00 C4 49 00 75 B3 5B 2B C7 9B 27 A7 90 00 67 [09:44:24]RAPDU: 75 B3 5B 2B C7 9B 27 A7 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_SignData done [09:44:24]FM_MakeSignedData done [09:44:24]CreateOFDProtocolMessage [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 11 00 00 [09:44:24]Write to MH i2c: E2 08 00 C5 49 80 11 00 00 00 00 00 00 88 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 C5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [09:44:24]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:24]wFMCommunicate OK [09:44:24]CreateOFDProtocolMessage done [09:44:24]OFDSenderStorePacket 70548 [09:44:24]StoreOFDPacket docnum=70548 [09:44: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 15 01 00 00 BB 0A 0D 01 D9 1E 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 40 00 00 00 F4 03 04 00 7A C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 4A E4 4B F1 51 3B 75 B3 5B 2B C7 9B 27 A7 [09:44:24]CheckFolder [09:44:24]dirname=/storage/ofd_packets [09:44:24]CheckFolder done [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00070548 [09:44:24]NVStorageSaveData ofd_packets/00070548 [09:44:24]File name is /storage/ofd_packets/00070548 [09:44:24]Write 307 bytes [09:44:24]NVStorageSaveData done [09:44:24]OFDSenderStorePacket done [09:44:24]KKMCreateOFDPacket done [09:44:24]NVStorageSaveData kkm_last_timestamp [09:44:24]File name is /storage/kkm_last_timestamp [09:44:24]Write 4 bytes [09:44:24]NVStorageSaveData done [09:44:24]ExternCall_PrintAddStr [09:44:24]wPrintStart [09:44:24]Write to MH i2c: 01 00 00 C6 49 0F [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 C6 49 00 00 00 00 00 FF 0F 24 [09:44:24]RasterBufferAndPrint [09:44:24]line Счет N : (1)2886315 [09:44:24]line ИНН: 02508201610067 [09:44:24]line Контрольно-Кассовый Чек [09:44:24]line ПРОДАЖА [09:44:24]line ТРК (МРК, ГНК) : 11 [09:44:24]line Товар: 2710194240 [09:44:24]line D-ENERGY Дт-К-2 [09:44:24]line 25.910 * 77.20 [09:44:24]line = 2000.25 [09:44:24]line НДС 12% НСП 1% [09:44:24]line > о реализуемом товаре [09:44:24]line ОКРУГЛЕНИЕ: -0.25 [09:44:24]line ИТОГО: 2000.00 [09:44:24]line Внесено: 2000.00 [09:44:24]line СДАЧА: 0.00 [09:44:24]line НСП 1% : 17.70 [09:44:24]line НДС 12% : 212.42 [09:44:24]line Наличными: 2000.00 [09:44:24]line Безнал.: 0.00 [09:44:24]line Место: АЗС № 85 "Партнер Нефть" [09:44:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:24]line СНО: Общий режим [09:44:24]line Чек 64 23.10.2024 09:44 [09:44:24]line Смена: 196 ФФД: 1.0 [09:44:24]line ЗНМ: 0300000167 [09:44:24]line РНМ: 0000000000156251 [09:44:24]line Версия ККМ: v1.0 [09:44:24]line ФМ: 0000000000963346 [09:44:24]line ФД: 70548 [09:44:24]line ФПД: 82344387105083 [09:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70548&fm=82344387105083&tin=02508201610067®Number=0000000000156251&sum=200000 [09:44:24]written 0, free lines is 4095 [09:44:24]OFD Sender: Processing packet 70548 [packets to send 18, broken 17] [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00070548 [09:44:24]OFD Sender: To server: pG, [09:44:24]CommunicateWithHost lk.salyk.kg:30040 [09:44:24]ConnectInit lk.salyk.kg [09:44:24]Connected sock=10 [09:44: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 BB 0A 0D 01 D9 1E 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 40 00 00 00 F4 03 04 00 7A C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 4A E4 4B F1 51 3B 75 B3 5B 2B C7 9B 27 A7 [09:44: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 60 F1 47 00 52 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 18 6F 18 67 B6 04 01 00 00 E2 2E D6 B7 60 59 2A 11 [09:44:24]CommunicateWithHost err = 0 [09:44:24]CheckOFDResponse [09:44:24]1017 (14) - 77093643461234 [09:44:24]1041 (16) - 0000000000963346 [09:44:24]1040 (4) - 70548 [09:44:24]1012 (4) - 23.10.2024 03:35 [09:44:24]1206 (1) - 0 [09:44:24]OFD Sender: Remove packet 70548 [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00070548 [09:44:24]NVStorageDeleteData [09:44:24]Write to MH i2c: 01 00 00 F1 49 3A [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 F1 49 00 00 00 00 00 0D 0D 5B [09:44:24]RasterBufferAndPrint [09:44:24]line [09:44:24]line [09:44:24]line [09:44:24]line [09:44:24]line [09:44:24]written 0, free lines is 3365 [09:44:24]MH_Cut [09:44:24]Write to MH i2c: D1 01 00 F8 49 01 13 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 01 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 01 00 F8 49 00 12 [09:44:24]Write to MH i2c: 01 00 00 F9 49 42 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:25]OFD Sender: No OFD packet to send [09:44:25]*** Cut start [09:44:25]*** Partial cut [09:44:25]*** CUTSNS_PIN = 1 [09:44:25]*** CUTSNS_PIN = 0 [09:44:25]*** Brake cut motor [09:44:25]Read from MH i2c: 01 [09:44:25]MH_I2C_Read... [09:44:25]*** Stop cut motor [09:44:25]*** Cut end [09:44:25]Read from MH i2c: 01 07 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 F9 49 00 00 00 00 00 FF 0F 57 [09:44:25]process_action close_receipt done [09:44:25]requested_data is exist [09:44:25]produce_requested_data [09:44:25]requested_item fm.sn is exist - process it [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 11 00 00 [09:44:25]Write to MH i2c: E2 08 00 FA 49 80 11 00 00 00 00 00 00 BD [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 17 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 17 00 FA 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [09:44: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:44:26]wFMCommunicate OK [09:44:26]requested_item fd.num is exist - process it [09:44:26]SAM_PROTO_GetFieldsCounters [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 00 00 [09:44:26]Write to MH i2c: E2 08 00 FB 49 80 13 00 00 00 00 00 00 C0 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 62 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 62 00 FB 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 94 13 01 00 0E 04 04 00 C4 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 07 [09:44: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 94 13 01 00 0E 04 04 00 C4 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 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetFieldsCounters done [09:44:26]requested_item shift.num is exist - process it [09:44:26]requested_item shift.opened is exist - process it [09:44:26]req_shift_opened [09:44:26]FM_GetShiftState [09:44:26]SAM_PROTO_GetShiftState [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 01 00 [09:44:26]Write to MH i2c: E2 08 00 FC 49 80 13 01 00 00 00 00 00 C2 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 FC 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4F [09:44:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetShiftState done [09:44:26]FM_GetShiftState done [09:44:26]req_shift_opened done [09:44:26]requested_item shift.open_date is exist - process it [09:44:26]req_shift_open_date [09:44:26]req_shift_open_date done [09:44:26]produce_requested_data done [09:44:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70548,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:44:26]process_action_free close_receipt [09:44:26]json_value_free [09:44:26]json_value_free done [09:44:26]process_json_proto returns [09:44:26]Send response to host [09:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70548,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:44:26]free response buf [09:44:26]execute_script done [09:44:26]execute_script returns [09:44:26]free content buf [09:44:26]Sock 9.Close socket [09:44:26]Sock 9.Thread stoped [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:14]accept exits with 7 [09:45:14]New connection [09:45:14]New thread 3066699108 created [09:45:14]Thread 3066555748 joined [09:45:14]Waiting for new connection... [09:45:14] Sock 7.Parse request [09:45:14]Sock 7.Check first char [09:45:14]Sock 7.First char is OK [09:45:14]request: POST /json_proto HTTP/1.0 [09:45:14]Method: POST [09:45:14]URL: /json_proto [09:45:14]Method is POST - this is cgi request [09:45:14]url: /json_proto [09:45:14]query_string will be loaded in cgi processing [09:45:14]execute_cgi json_proto POST (null) [09:45:14]execute_cgi path=json_proto method=POST [09:45:14]POST find Content-Length [09:45:14]Host: 172.17.50.3:8080 [09:45:14]Content-Length: 678 [09:45:14]Content-Type: application/json [09:45:14] [09:45:14]POST finish read [09:45:14]Found Content-Length = 678 [09:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886318", "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" : 3.490, "sum" : 233.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 233.00, "total" : 233.00, "payments": [ { "type": 0, "sum" : 233.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:14]execute_script... [09:45: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)2886318", "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" : 3.490, "sum" : 233.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 233.00, "total" : 233.00, "payments": [ { "type": 0, "sum" : 233.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:14]POST & json_proto [09:45:14]process_json_proto [09:45:14]json parsed OK: [09:45:14]protocol is kg_v1.0 [09:45:14]action value=close_receipt [09:45:14]process_action close_receipt [09:45:14]cmd_close_receipt [09:45:14]MH_GetDate [09:45:14]Write to MH i2c: F0 00 00 FD 49 35 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: F0 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: F0 09 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: F0 09 00 FD 49 00 AE C5 18 67 6B 98 1E 66 B7 [09:45:14]GetLastDocTimeStamp 1729676666 [09:45:14]current date 1729676718 [09:45:14]FM_GetShiftState [09:45:14]SAM_PROTO_GetShiftState [09:45:14]wFMCommunicate request_size=4 [09:45:14]MH_SAM_APDU [09:45:14]CAPDU: 80 13 01 00 [09:45:14]Write to MH i2c: E2 08 00 FE 49 80 13 01 00 00 00 00 00 C4 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 FE 49 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 51 [09:45:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:45:14]wFMCommunicate OK [09:45:14]SAM_PROTO_GetShiftState done [09:45:14]FM_GetShiftState done [09:45:14]opened in 1729642435 [09:45:14]opened+sec_in_day 1729728835 [09:45:14]quantity*price = 23348 [09:45:14]sum+1 = 23349 [09:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 233.00 Внесено: 233.00 СДАЧА: 0.00 НСП 1% : 2.07 НДС 12% : 24.79 Наличными: 233.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 65 23.10.2024 09:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70549 ФПД: 96095635725493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70549&fm=96095635725493&tin=02508201610067®Number=0000000000156251&sum=23300 [09:45:15]StoreToDocumentArchive [09:45:15]shift 196 fd 70549 [09:45:15]save to /storage/0196/doc_00070549 [09:45:15]save last doc name /storage/0196/doc_00070549 to /storage/kkm_last_doc_name [09:45:15]save OK [09:45:15]Clear old archive folders... [09:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:15]tlvbuf is 00E920C0 [09:45:15]SAM_PROTO_ClearQueue [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 09 00 00 [09:45:15]Write to MH i2c: E2 08 00 0B 4A 80 09 00 00 00 00 00 00 C7 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 0B 4A 00 90 00 C9 [09:45:15]RAPDU: 90 00 [09:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_ClearQueue done [09:45:15]KKMCreateOFDPacket [09:45:15]OFDProtocolAddRootSTLVToBuf [09:45:15]FM_MakeSignedData [09:45:15]FM_MakeSignedData [09:45:15]SAM_PROTO_SignData [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 0D 01 02 [09:45:15]Write to MH i2c: E2 08 00 0C 4A 80 0D 01 02 00 00 00 00 CF [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 0C 4A 00 90 00 CA [09:45:15]RAPDU: 90 00 [09:45:15]wFMCommunicate OK [09:45:15]wFMCommunicate request_size=255 [09:45:15]MH_SAM_APDU [09:45: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 A2 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AE C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 [09:45:15]Write to MH i2c: E2 02 01 0D 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 A2 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AE C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 00 00 89 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 0D 4A 00 90 00 CB [09:45:15]RAPDU: 90 00 [09:45:15]wFMCommunicate OK [09:45:15]wFMCommunicate request_size=10 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 0D 02 02 05 66 02 3B 5C B5 [09:45:15]Write to MH i2c: E2 0D 00 0E 4A 80 0D 02 02 05 00 66 02 3B 5C B5 00 00 90 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 03 00 0E 4A 00 90 00 CC [09:45:15]RAPDU: 90 00 [09:45:15]wFMCommunicate OK [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 0D 03 02 [09:45:15]Write to MH i2c: E2 08 00 0F 4A 80 0D 03 02 00 00 00 00 D4 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0B 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0B 00 0F 4A 00 92 05 A1 AD 5F AE BB 9A 90 00 1C [09:45:15]RAPDU: 92 05 A1 AD 5F AE BB 9A 90 00 [09:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_SignData done [09:45:15]FM_MakeSignedData done [09:45:15]CreateOFDProtocolMessage [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 11 00 00 [09:45:15]Write to MH i2c: E2 08 00 10 4A 80 11 00 00 00 00 00 00 D4 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 10 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [09: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 [09:45:15]wFMCommunicate OK [09:45:15]CreateOFDProtocolMessage done [09:45:15]OFDSenderStorePacket 70549 [09:45:15]StoreOFDPacket docnum=70549 [09: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 0F 01 00 00 93 89 07 01 AD 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 A2 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AE C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 66 02 3B 5C B5 92 05 A1 AD 5F AE BB 9A [09:45:15]CheckFolder [09:45:15]dirname=/storage/ofd_packets [09:45:15]CheckFolder done [09:45:15]ProducePacketName [09:45:15]name=ofd_packets/00070549 [09:45:15]NVStorageSaveData ofd_packets/00070549 [09:45:15]File name is /storage/ofd_packets/00070549 [09:45:15]Write 301 bytes [09:45:15]NVStorageSaveData done [09:45:15]OFDSenderStorePacket done [09:45:15]KKMCreateOFDPacket done [09:45:15]NVStorageSaveData kkm_last_timestamp [09:45:15]File name is /storage/kkm_last_timestamp [09:45:15]Write 4 bytes [09:45:15]NVStorageSaveData done [09:45:15]ExternCall_PrintAddStr [09:45:15]wPrintStart [09:45:15]Write to MH i2c: 01 00 00 11 4A 5B [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: 01 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: 01 07 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: 01 07 00 11 4A 00 00 00 00 00 FF 0F 70 [09:45:15]RasterBufferAndPrint [09:45:15]line Счет N : (1)2886318 [09:45:15]line ИНН: 02508201610067 [09:45:15]line Контрольно-Кассовый Чек [09:45:15]line ПРОДАЖА [09:45:15]line ТРК (МРК, ГНК) : 32 [09:45:15]line Товар: 2710124130 [09:45:15]line Аи-92-К-5 [09:45:15]line 3.490 * 66.90 [09:45:15]line = 233.48 [09:45:15]line НДС 12% НСП 1% [09:45:15]line > о реализуемом товаре [09:45:15]line ОКРУГЛЕНИЕ: -0.48 [09:45:15]line ИТОГО: 233.00 [09:45:15]line Внесено: 233.00 [09:45:15]line СДАЧА: 0.00 [09:45:15]line НСП 1% : 2.07 [09:45:15]line НДС 12% : 24.79 [09:45:15]line Наличными: 233.00 [09:45:15]line Безнал.: 0.00 [09:45:15]line Место: АЗС № 85 "Партнер Нефть" [09:45:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:45:15]line СНО: Общий режим [09:45:15]line Чек 65 23.10.2024 09:45 [09:45:15]line Смена: 196 ФФД: 1.0 [09:45:15]line ЗНМ: 0300000167 [09:45:15]line РНМ: 0000000000156251 [09:45:15]line Версия ККМ: v1.0 [09:45:15]line ФМ: 0000000000963346 [09:45:15]line ФД: 70549 [09:45:15]line ФПД: 96095635725493 [09:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70549&fm=96095635725493&tin=02508201610067®Number=0000000000156251&sum=23300 [09:45:15]OFD Sender: Processing packet 70549 [packets to send 18, broken 17] [09:45:15]ProducePacketName [09:45:15]name=ofd_packets/00070549 [09:45:15]OFD Sender: To server: pG, [09:45:15]CommunicateWithHost lk.salyk.kg:30040 [09:45:15]ConnectInit lk.salyk.kg [09:45:16]written 0, free lines is 4095 [09:45:16]Connected sock=10 [09:45: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 93 89 07 01 AD 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 A2 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 09 00 00 00 00 07 04 06 00 04 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AE C5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 66 02 3B 5C B5 92 05 A1 AD 5F AE BB 9A [09:45: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 C1 A5 47 00 0C 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 95 13 01 00 F4 03 04 00 4C 6F 18 67 B6 04 01 00 00 CB 2D C3 90 E9 FE 8B D0 [09:45:16]CommunicateWithHost err = 0 [09:45:16]CheckOFDResponse [09:45:16]1017 (14) - 77093643461234 [09:45:16]1041 (16) - 0000000000963346 [09:45:16]1040 (4) - 70549 [09:45:16]1012 (4) - 23.10.2024 03:36 [09:45:16]1206 (1) - 0 [09:45:16]OFD Sender: Remove packet 70549 [09:45:16]ProducePacketName [09:45:16]name=ofd_packets/00070549 [09:45:16]NVStorageDeleteData [09:45:16]Write to MH i2c: 01 00 00 3C 4A 86 [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: 01 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: 01 07 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: 01 07 00 3C 4A 00 00 00 00 00 EC 0C 85 [09:45:16]RasterBufferAndPrint [09:45:16]line [09:45:16]line [09:45:16]line [09:45:16]line [09:45:16]line [09:45:16]written 0, free lines is 3317 [09:45:16]MH_Cut [09:45:16]Write to MH i2c: D1 01 00 43 4A 01 5F [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: D1 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: D1 01 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: D1 01 00 43 4A 00 5E [09:45:16]Write to MH i2c: 01 00 00 44 4A 8E [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]OFD Sender: No OFD packet to send [09:45:17]*** Cut start [09:45:17]*** Partial cut [09:45:17]*** CUTSNS_PIN = 1 [09:45:17]*** CUTSNS_PIN = 0 [09:45:17]*** Brake cut motor [09:45:17]Read from MH i2c: 01 [09:45:17]MH_I2C_Read... [09:45:17]*** Stop cut motor [09:45:17]*** Cut end [09:45:17]Read from MH i2c: 01 07 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: 01 07 00 44 4A 00 00 00 00 00 FF 0F A3 [09:45:17]process_action close_receipt done [09:45:17]requested_data is exist [09:45:17]produce_requested_data [09:45:17]requested_item fm.sn is exist - process it [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 11 00 00 [09:45:17]Write to MH i2c: E2 08 00 45 4A 80 11 00 00 00 00 00 00 09 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 17 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 17 00 45 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [09:45: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:45:18]wFMCommunicate OK [09:45:18]requested_item fd.num is exist - process it [09:45:18]SAM_PROTO_GetFieldsCounters [09:45:18]wFMCommunicate request_size=4 [09:45:18]MH_SAM_APDU [09:45:18]CAPDU: 80 13 00 00 [09:45:18]Write to MH i2c: E2 08 00 46 4A 80 13 00 00 00 00 00 00 0C [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 62 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 62 00 46 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 95 13 01 00 0E 04 04 00 C4 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 57 [09:45: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 95 13 01 00 0E 04 04 00 C4 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 [09:45:18]wFMCommunicate OK [09:45:18]SAM_PROTO_GetFieldsCounters done [09:45:18]requested_item shift.num is exist - process it [09:45:18]requested_item shift.opened is exist - process it [09:45:18]req_shift_opened [09:45:18]FM_GetShiftState [09:45:18]SAM_PROTO_GetShiftState [09:45:18]wFMCommunicate request_size=4 [09:45:18]MH_SAM_APDU [09:45:18]CAPDU: 80 13 01 00 [09:45:18]Write to MH i2c: E2 08 00 47 4A 80 13 01 00 00 00 00 00 0E [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:18]Read from MH i2c: E2 0E 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 0E 00 47 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9B [09:45:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:45:18]wFMCommunicate OK [09:45:18]SAM_PROTO_GetShiftState done [09:45:18]FM_GetShiftState done [09:45:18]req_shift_opened done [09:45:18]requested_item shift.open_date is exist - process it [09:45:18]req_shift_open_date [09:45:18]req_shift_open_date done [09:45:18]produce_requested_data done [09:45:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70549,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:45:18]process_action_free close_receipt [09:45:18]json_value_free [09:45:18]json_value_free done [09:45:18]process_json_proto returns [09:45:18]Send response to host [09:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70549,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:45:18]free response buf [09:45:18]execute_script done [09:45:18]execute_script returns [09:45:18]free content buf [09:45:18]Sock 7.Close socket [09:45:18]Sock 7.Thread stoped [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:38]accept exits with 9 [09:47:38]New connection [09:47:38]New thread 3066555748 created [09:47:38]Thread 3066699108 joined [09:47:38]Waiting for new connection... [09:47:38] Sock 9.Parse request [09:47:38]Sock 9.Check first char [09:47:38]Sock 9.First char is OK [09:47:38]request: POST /json_proto HTTP/1.0 [09:47:38]Method: POST [09:47:38]URL: /json_proto [09:47:38]Method is POST - this is cgi request [09:47:38]url: /json_proto [09:47:38]query_string will be loaded in cgi processing [09:47:38]execute_cgi json_proto POST (null) [09:47:38]execute_cgi path=json_proto method=POST [09:47:38]POST find Content-Length [09:47:38]Host: 172.17.50.3:8080 [09:47:38]Content-Length: 686 [09:47:38]Content-Type: application/json [09:47:38] [09:47:38]POST finish read [09:47:38]Found Content-Length = 686 [09:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886319", "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" ] } } [09:47:38]execute_script... [09:47: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)2886319", "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" ] } } [09:47:38]POST & json_proto [09:47:38]process_json_proto [09:47:38]json parsed OK: [09:47:38]protocol is kg_v1.0 [09:47:38]action value=close_receipt [09:47:38]process_action close_receipt [09:47:38]cmd_close_receipt [09:47:38]MH_GetDate [09:47:38]Write to MH i2c: F0 00 00 48 4A 81 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: F0 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: F0 09 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: F0 09 00 48 4A 00 3E C6 18 67 6B 98 1E 66 94 [09:47:38]GetLastDocTimeStamp 1729676718 [09:47:38]current date 1729676862 [09:47:38]FM_GetShiftState [09:47:38]SAM_PROTO_GetShiftState [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 13 01 00 [09:47:38]Write to MH i2c: E2 08 00 49 4A 80 13 01 00 00 00 00 00 10 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0E 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0E 00 49 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9D [09:47:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_GetShiftState done [09:47:38]FM_GetShiftState done [09:47:38]opened in 1729642435 [09:47:38]opened+sec_in_day 1729728835 [09:47:38]quantity*price = 150037 [09:47:38]sum+1 = 150038 [09:47:38]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 СНО: Общий режим Чек 66 23.10.2024 09:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70550 ФПД: 127567957901922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70550&fm=127567957901922&tin=02508201610067®Number=0000000000156251&sum=150000 [09:47:39]StoreToDocumentArchive [09:47:39]shift 196 fd 70550 [09:47:39]save to /storage/0196/doc_00070550 [09:47:39]save last doc name /storage/0196/doc_00070550 to /storage/kkm_last_doc_name [09:47:39]save OK [09:47:39]Clear old archive folders... [09:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:47:39]tlvbuf is 00E92130 [09:47:39]SAM_PROTO_ClearQueue [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 09 00 00 [09:47:39]Write to MH i2c: E2 08 00 56 4A 80 09 00 00 00 00 00 00 12 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 56 4A 00 90 00 14 [09:47:39]RAPDU: 90 00 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_ClearQueue done [09:47:39]KKMCreateOFDPacket [09:47:39]OFDProtocolAddRootSTLVToBuf [09:47:39]FM_MakeSignedData [09:47:39]FM_MakeSignedData [09:47:39]SAM_PROTO_SignData [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 0D 01 02 [09:47:39]Write to MH i2c: E2 08 00 57 4A 80 0D 01 02 00 00 00 00 1A [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 03 00 57 4A 00 90 00 15 [09:47:39]RAPDU: 90 00 [09:47:39]wFMCommunicate OK [09:47:39]wFMCommunicate request_size=255 [09:47:39]MH_SAM_APDU [09:47: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 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 42 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 74 05 [09:47:39]Write to MH i2c: E2 02 01 58 4A 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 42 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 74 05 00 00 80 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 58 4A 00 90 00 16 [09:47:40]RAPDU: 90 00 [09:47:40]wFMCommunicate OK [09:47:40]wFMCommunicate request_size=9 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 0D 02 02 04 BA D0 C2 62 [09:47:40]Write to MH i2c: E2 0C 00 59 4A 80 0D 02 02 04 00 BA D0 C2 62 00 00 D3 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 59 4A 00 90 00 17 [09:47:40]RAPDU: 90 00 [09:47:40]wFMCommunicate OK [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 0D 03 02 [09:47:40]Write to MH i2c: E2 08 00 5A 4A 80 0D 03 02 00 00 00 00 1F [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 0B 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 0B 00 5A 4A 00 1C EC 57 92 DD A3 18 F8 90 00 A1 [09:47:40]RAPDU: 1C EC 57 92 DD A3 18 F8 90 00 [09:47:40]wFMCommunicate OK [09:47:40]SAM_PROTO_SignData done [09:47:40]FM_MakeSignedData done [09:47:40]CreateOFDProtocolMessage [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 11 00 00 [09:47:40]Write to MH i2c: E2 08 00 5B 4A 80 11 00 00 00 00 00 00 1F [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 17 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 17 00 5B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [09:47: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:47:40]wFMCommunicate OK [09:47:40]CreateOFDProtocolMessage done [09:47:40]OFDSenderStorePacket 70550 [09:47:40]StoreOFDPacket docnum=70550 [09:47: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 4C 8F 06 01 0F B0 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 42 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 74 05 BA D0 C2 62 1C EC 57 92 DD A3 18 F8 [09:47:40]CheckFolder [09:47:40]dirname=/storage/ofd_packets [09:47:40]CheckFolder done [09:47:40]ProducePacketName [09:47:40]name=ofd_packets/00070550 [09:47:40]NVStorageSaveData ofd_packets/00070550 [09:47:40]File name is /storage/ofd_packets/00070550 [09:47:40]Write 300 bytes [09:47:40]NVStorageSaveData done [09:47:40]OFDSenderStorePacket done [09:47:40]KKMCreateOFDPacket done [09:47:40]NVStorageSaveData kkm_last_timestamp [09:47:40]File name is /storage/kkm_last_timestamp [09:47:40]Write 4 bytes [09:47:40]NVStorageSaveData done [09:47:40]ExternCall_PrintAddStr [09:47:40]wPrintStart [09:47:40]Write to MH i2c: 01 00 00 5C 4A A6 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 07 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 07 00 5C 4A 00 00 00 00 00 FF 0F BB [09:47:40]RasterBufferAndPrint [09:47:40]line Счет N : (1)2886319 [09:47:40]line ИНН: 02508201610067 [09:47:40]line Контрольно-Кассовый Чек [09:47:40]line ПРОДАЖА [09:47:40]line ТРК (МРК, ГНК) : 71 [09:47:40]line Товар: 2711129700 [09:47:40]line ГАЗ-К-3 [09:47:40]line 38.570 * 38.90 [09:47:40]line = 1500.37 [09:47:40]line НДС 12% НСП 1% [09:47:40]line > о реализуемом товаре [09:47:40]line ОКРУГЛЕНИЕ: -0.37 [09:47:40]line ИТОГО: 1500.00 [09:47:40]line Внесено: 1500.00 [09:47:40]line СДАЧА: 0.00 [09:47:40]line НСП 1% : 13.28 [09:47:40]line НДС 12% : 159.33 [09:47:40]line Наличными: 1500.00 [09:47:40]line Безнал.: 0.00 [09:47:40]line Место: АЗС № 85 "Партнер Нефть" [09:47:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:47:40]line СНО: Общий режим [09:47:40]line Чек 66 23.10.2024 09:47 [09:47:40]line Смена: 196 ФФД: 1.0 [09:47:40]line ЗНМ: 0300000167 [09:47:40]line РНМ: 0000000000156251 [09:47:40]line Версия ККМ: v1.0 [09:47:40]line ФМ: 0000000000963346 [09:47:40]line ФД: 70550 [09:47:40]line ФПД: 127567957901922 [09:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70550&fm=127567957901922&tin=02508201610067®Number=0000000000156251&sum=150000 [09:47:40]OFD Sender: Processing packet 70550 [packets to send 18, broken 17] [09:47:40]ProducePacketName [09:47:40]name=ofd_packets/00070550 [09:47:40]OFD Sender: To server: pG, [09:47:40]CommunicateWithHost lk.salyk.kg:30040 [09:47:40]ConnectInit lk.salyk.kg [09:47:40]written 0, free lines is 4095 [09:47:40]Connected sock=11 [09:47: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 4C 8F 06 01 0F B0 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 42 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 74 05 BA D0 C2 62 1C EC 57 92 DD A3 18 F8 [09:47: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 DC 06 47 00 D3 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 96 13 01 00 F4 03 04 00 DC 6F 18 67 B6 04 01 00 00 9E D3 A1 CD BE 11 DB 8C [09:47:40]CommunicateWithHost err = 0 [09:47:40]CheckOFDResponse [09:47:40]1017 (14) - 77093643461234 [09:47:40]1041 (16) - 0000000000963346 [09:47:40]1040 (4) - 70550 [09:47:40]1012 (4) - 23.10.2024 03:39 [09:47:40]1206 (1) - 0 [09:47:40]OFD Sender: Remove packet 70550 [09:47:40]ProducePacketName [09:47:40]name=ofd_packets/00070550 [09:47:40]NVStorageDeleteData [09:47:41]Write to MH i2c: 01 00 00 87 4A D1 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 07 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 07 00 87 4A 00 00 00 00 00 02 0D E7 [09:47:41]RasterBufferAndPrint [09:47:41]line [09:47:41]line [09:47:41]line [09:47:41]line [09:47:41]line [09:47:41]written 0, free lines is 3336 [09:47:41]MH_Cut [09:47:41]Write to MH i2c: D1 01 00 8E 4A 01 AA [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: D1 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: D1 01 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: D1 01 00 8E 4A 00 A9 [09:47:41]Write to MH i2c: 01 00 00 8F 4A D9 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]OFD Sender: No OFD packet to send [09:47:41]*** Cut start [09:47:41]*** Partial cut [09:47:41]*** CUTSNS_PIN = 1 [09:47:41]*** CUTSNS_PIN = 0 [09:47:42]*** Brake cut motor [09:47:42]Read from MH i2c: 01 [09:47:42]MH_I2C_Read... [09:47:42]*** Stop cut motor [09:47:42]*** Cut end [09:47:42]Read from MH i2c: 01 07 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: 01 07 00 8F 4A 00 00 00 00 00 FF 0F EE [09:47:42]process_action close_receipt done [09:47:42]requested_data is exist [09:47:42]produce_requested_data [09:47:42]requested_item fm.sn is exist - process it [09:47:42]wFMCommunicate request_size=4 [09:47:42]MH_SAM_APDU [09:47:42]CAPDU: 80 11 00 00 [09:47:42]Write to MH i2c: E2 08 00 90 4A 80 11 00 00 00 00 00 00 54 [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:42]Read from MH i2c: E2 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 17 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 17 00 90 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [09:47: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:47:42]wFMCommunicate OK [09:47:42]requested_item fd.num is exist - process it [09:47:42]SAM_PROTO_GetFieldsCounters [09:47:42]wFMCommunicate request_size=4 [09:47:42]MH_SAM_APDU [09:47:42]CAPDU: 80 13 00 00 [09:47:42]Write to MH i2c: E2 08 00 91 4A 80 13 00 00 00 00 00 00 57 [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:42]Read from MH i2c: E2 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 62 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 62 00 91 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 96 13 01 00 0E 04 04 00 C4 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 A6 [09:47: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 96 13 01 00 0E 04 04 00 C4 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 [09:47:42]wFMCommunicate OK [09:47:42]SAM_PROTO_GetFieldsCounters done [09:47:42]requested_item shift.num is exist - process it [09:47:42]requested_item shift.opened is exist - process it [09:47:42]req_shift_opened [09:47:42]FM_GetShiftState [09:47:42]SAM_PROTO_GetShiftState [09:47:42]wFMCommunicate request_size=4 [09:47:42]MH_SAM_APDU [09:47:42]CAPDU: 80 13 01 00 [09:47:42]Write to MH i2c: E2 08 00 92 4A 80 13 01 00 00 00 00 00 59 [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:42]Read from MH i2c: E2 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 0E 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: E2 0E 00 92 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E6 [09:47:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:47:42]wFMCommunicate OK [09:47:42]SAM_PROTO_GetShiftState done [09:47:42]FM_GetShiftState done [09:47:42]req_shift_opened done [09:47:42]requested_item shift.open_date is exist - process it [09:47:42]req_shift_open_date [09:47:42]req_shift_open_date done [09:47:42]produce_requested_data done [09:47:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70550,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:47:42]process_action_free close_receipt [09:47:42]json_value_free [09:47:42]json_value_free done [09:47:42]process_json_proto returns [09:47:42]Send response to host [09:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70550,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:47:42]free response buf [09:47:42]execute_script done [09:47:42]execute_script returns [09:47:42]free content buf [09:47:42]Sock 9.Close socket [09:47:42]Sock 9.Thread stoped [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:39]accept exits with 7 [09:50:39]New connection [09:50:39]New thread 3066699108 created [09:50:39]Thread 3066555748 joined [09:50:39]Waiting for new connection... [09:50:39] Sock 7.Parse request [09:50:39]Sock 7.Check first char [09:50:39]Sock 7.First char is OK [09:50:39]request: POST /json_proto HTTP/1.0 [09:50:39]Method: POST [09:50:39]URL: /json_proto [09:50:39]Method is POST - this is cgi request [09:50:39]url: /json_proto [09:50:39]query_string will be loaded in cgi processing [09:50:39]execute_cgi json_proto POST (null) [09:50:39]execute_cgi path=json_proto method=POST [09:50:39]POST find Content-Length [09:50:39]Host: 172.17.50.3:8080 [09:50:39]Content-Length: 678 [09:50:39]Content-Type: application/json [09:50:39] [09:50:39]POST finish read [09:50:39]Found Content-Length = 678 [09:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886320", "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" ] } } [09:50:39]execute_script... [09:50: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)2886320", "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" ] } } [09:50:39]POST & json_proto [09:50:39]process_json_proto [09:50:39]json parsed OK: [09:50:39]protocol is kg_v1.0 [09:50:39]action value=close_receipt [09:50:39]process_action close_receipt [09:50:39]cmd_close_receipt [09:50:39]MH_GetDate [09:50:39]Write to MH i2c: F0 00 00 93 4A CC [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 09 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 09 00 93 4A 00 F3 C6 18 67 6B 98 1E 66 94 [09:50:39]GetLastDocTimeStamp 1729676862 [09:50:39]current date 1729677043 [09:50:39]FM_GetShiftState [09:50:39]SAM_PROTO_GetShiftState [09:50:39]wFMCommunicate request_size=4 [09:50:39]MH_SAM_APDU [09:50:39]CAPDU: 80 13 01 00 [09:50:39]Write to MH i2c: E2 08 00 94 4A 80 13 01 00 00 00 00 00 5B [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:39]Read from MH i2c: E2 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: E2 0E 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: E2 0E 00 94 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E8 [09:50:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:50:39]wFMCommunicate OK [09:50:39]SAM_PROTO_GetShiftState done [09:50:39]FM_GetShiftState done [09:50:39]opened in 1729642435 [09:50:39]opened+sec_in_day 1729728835 [09:50:39]quantity*price = 50041 [09:50:39]sum+1 = 50042 [09:50:39]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 СНО: Общий режим Чек 67 23.10.2024 09:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70551 ФПД: 32306645893703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095043&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70551&fm=32306645893703&tin=02508201610067®Number=0000000000156251&sum=50000 [09:50:40]StoreToDocumentArchive [09:50:40]shift 196 fd 70551 [09:50:40]save to /storage/0196/doc_00070551 [09:50:40]save last doc name /storage/0196/doc_00070551 to /storage/kkm_last_doc_name [09:50:40]save OK [09:50:40]Clear old archive folders... [09:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:40]tlvbuf is 00CB3AC0 [09:50:40]SAM_PROTO_ClearQueue [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 09 00 00 [09:50:40]Write to MH i2c: E2 08 00 A1 4A 80 09 00 00 00 00 00 00 5D [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 A1 4A 00 90 00 5F [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]SAM_PROTO_ClearQueue done [09:50:40]KKMCreateOFDPacket [09:50:40]OFDProtocolAddRootSTLVToBuf [09:50:40]FM_MakeSignedData [09:50:40]FM_MakeSignedData [09:50:40]SAM_PROTO_SignData [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 01 02 [09:50:40]Write to MH i2c: E2 08 00 A2 4A 80 0D 01 02 00 00 00 00 65 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 A2 4A 00 90 00 60 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=255 [09:50:40]MH_SAM_APDU [09:50: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 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 43 00 00 00 F4 03 04 00 F3 C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1D [09:50:40]Write to MH i2c: E2 02 01 A3 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 43 00 00 00 F4 03 04 00 F3 C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1D 00 00 F5 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 A3 4A 00 90 00 61 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=10 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 02 02 05 61 FA 27 02 47 [09:50:40]Write to MH i2c: E2 0D 00 A4 4A 80 0D 02 02 05 00 61 FA 27 02 47 00 00 3D [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 A4 4A 00 90 00 62 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 03 02 [09:50:40]Write to MH i2c: E2 08 00 A5 4A 80 0D 03 02 00 00 00 00 6A [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:41]Read from MH i2c: E2 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 0B 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 0B 00 A5 4A 00 D1 89 DF 5D AC 44 67 10 90 00 68 [09:50:41]RAPDU: D1 89 DF 5D AC 44 67 10 90 00 [09:50:41]wFMCommunicate OK [09:50:41]SAM_PROTO_SignData done [09:50:41]FM_MakeSignedData done [09:50:41]CreateOFDProtocolMessage [09:50:41]wFMCommunicate request_size=4 [09:50:41]MH_SAM_APDU [09:50:41]CAPDU: 80 11 00 00 [09:50:41]Write to MH i2c: E2 08 00 A6 4A 80 11 00 00 00 00 00 00 6A [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:41]Read from MH i2c: E2 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 17 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 17 00 A6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [09:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:50:41]wFMCommunicate OK [09:50:41]CreateOFDProtocolMessage done [09:50:41]OFDSenderStorePacket 70551 [09:50:41]StoreOFDPacket docnum=70551 [09:50: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 0F 01 00 00 83 FA 07 01 17 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 43 00 00 00 F4 03 04 00 F3 C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1D 61 FA 27 02 47 D1 89 DF 5D AC 44 67 10 [09:50:41]CheckFolder [09:50:41]dirname=/storage/ofd_packets [09:50:41]CheckFolder done [09:50:41]ProducePacketName [09:50:41]name=ofd_packets/00070551 [09:50:41]NVStorageSaveData ofd_packets/00070551 [09:50:41]File name is /storage/ofd_packets/00070551 [09:50:41]Write 301 bytes [09:50:41]NVStorageSaveData done [09:50:41]OFDSenderStorePacket done [09:50:41]KKMCreateOFDPacket done [09:50:41]NVStorageSaveData kkm_last_timestamp [09:50:41]File name is /storage/kkm_last_timestamp [09:50:41]Write 4 bytes [09:50:41]NVStorageSaveData done [09:50:41]ExternCall_PrintAddStr [09:50:41]wPrintStart [09:50:41]Write to MH i2c: 01 00 00 A7 4A F1 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 A7 4A 00 00 00 00 00 FF 0F 06 [09:50:41]RasterBufferAndPrint [09:50:41]line Счет N : (1)2886320 [09:50:41]line ИНН: 02508201610067 [09:50:41]line Контрольно-Кассовый Чек [09:50:41]line ПРОДАЖА [09:50:41]line ТРК (МРК, ГНК) : 32 [09:50:41]line Товар: 2710124130 [09:50:41]line Аи-92-К-5 [09:50:41]line 7.480 * 66.90 [09:50:41]line = 500.41 [09:50:41]line НДС 12% НСП 1% [09:50:41]line > о реализуемом товаре [09:50:41]line ОКРУГЛЕНИЕ: -0.41 [09:50:41]line ИТОГО: 500.00 [09:50:41]line Внесено: 500.00 [09:50:41]line СДАЧА: 0.00 [09:50:41]line НСП 1% : 4.43 [09:50:41]line НДС 12% : 53.14 [09:50:41]line Наличными: 500.00 [09:50:41]line Безнал.: 0.00 [09:50:41]line Место: АЗС № 85 "Партнер Нефть" [09:50:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:50:41]line СНО: Общий режим [09:50:41]line Чек 67 23.10.2024 09:50 [09:50:41]line Смена: 196 ФФД: 1.0 [09:50:41]line ЗНМ: 0300000167 [09:50:41]line РНМ: 0000000000156251 [09:50:41]line Версия ККМ: v1.0 [09:50:41]line ФМ: 0000000000963346 [09:50:41]line ФД: 70551 [09:50:41]line ФПД: 32306645893703 [09:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095043&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70551&fm=32306645893703&tin=02508201610067®Number=0000000000156251&sum=50000 [09:50:41]OFD Sender: Processing packet 70551 [packets to send 18, broken 17] [09:50:41]ProducePacketName [09:50:41]name=ofd_packets/00070551 [09:50:41]OFD Sender: To server: pG, [09:50:41]CommunicateWithHost lk.salyk.kg:30040 [09:50:41]ConnectInit lk.salyk.kg [09:50:41]written 0, free lines is 4095 [09:50:41]Connected sock=10 [09:50: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 83 FA 07 01 17 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 43 00 00 00 F4 03 04 00 F3 C6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1D 61 FA 27 02 47 D1 89 DF 5D AC 44 67 10 [09:50: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 FC 80 47 00 F4 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 97 13 01 00 F4 03 04 00 91 70 18 67 B6 04 01 00 00 D4 3F A4 81 DA 3F 75 4E [09:50:41]CommunicateWithHost err = 0 [09:50:41]CheckOFDResponse [09:50:41]1017 (14) - 77093643461234 [09:50:41]1041 (16) - 0000000000963346 [09:50:41]1040 (4) - 70551 [09:50:41]1012 (4) - 23.10.2024 03:42 [09:50:41]1206 (1) - 0 [09:50:41]OFD Sender: Remove packet 70551 [09:50:41]ProducePacketName [09:50:41]name=ofd_packets/00070551 [09:50:41]NVStorageDeleteData [09:50:41]Write to MH i2c: 01 00 00 D2 4A 1C [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 D2 4A 00 00 00 00 00 F8 0C 27 [09:50:41]RasterBufferAndPrint [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]written 0, free lines is 3326 [09:50:41]MH_Cut [09:50:41]Write to MH i2c: D1 01 00 D9 4A 01 F5 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 01 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 01 00 D9 4A 00 F4 [09:50:41]Write to MH i2c: 01 00 00 DA 4A 24 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:42]OFD Sender: No OFD packet to send [09:50:42]*** Cut start [09:50:42]*** Partial cut [09:50:42]*** CUTSNS_PIN = 1 [09:50:42]*** CUTSNS_PIN = 0 [09:50:42]*** Brake cut motor [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]*** Stop cut motor [09:50:43]*** Cut end [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 DA 4A 00 00 00 00 00 FF 0F 39 [09:50:43]process_action close_receipt done [09:50:43]requested_data is exist [09:50:43]produce_requested_data [09:50:43]requested_item fm.sn is exist - process it [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 11 00 00 [09:50:43]Write to MH i2c: E2 08 00 DB 4A 80 11 00 00 00 00 00 00 9F [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 17 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 17 00 DB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [09:50: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:50:43]wFMCommunicate OK [09:50:43]requested_item fd.num is exist - process it [09:50:43]SAM_PROTO_GetFieldsCounters [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 13 00 00 [09:50:43]Write to MH i2c: E2 08 00 DC 4A 80 13 00 00 00 00 00 00 A2 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 62 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 62 00 DC 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 97 13 01 00 0E 04 04 00 C4 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 F5 [09:50: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 97 13 01 00 0E 04 04 00 C4 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 [09:50:43]wFMCommunicate OK [09:50:43]SAM_PROTO_GetFieldsCounters done [09:50:43]requested_item shift.num is exist - process it [09:50:43]requested_item shift.opened is exist - process it [09:50:43]req_shift_opened [09:50:43]FM_GetShiftState [09:50:43]SAM_PROTO_GetShiftState [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 13 01 00 [09:50:43]Write to MH i2c: E2 08 00 DD 4A 80 13 01 00 00 00 00 00 A4 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 0E 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 0E 00 DD 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 31 [09:50:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:50:43]wFMCommunicate OK [09:50:43]SAM_PROTO_GetShiftState done [09:50:43]FM_GetShiftState done [09:50:43]req_shift_opened done [09:50:43]requested_item shift.open_date is exist - process it [09:50:43]req_shift_open_date [09:50:43]req_shift_open_date done [09:50:43]produce_requested_data done [09:50:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70551,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:50:43]process_action_free close_receipt [09:50:43]json_value_free [09:50:43]json_value_free done [09:50:43]process_json_proto returns [09:50:43]Send response to host [09:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70551,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:50:43]free response buf [09:50:43]execute_script done [09:50:43]execute_script returns [09:50:43]free content buf [09:50:43]Sock 7.Close socket [09:50:43]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:46]accept exits with 9 [09:55:46]New connection [09:55:46]New thread 3066555748 created [09:55:46]Thread 3066699108 joined [09:55:46]Waiting for new connection... [09:55:46] Sock 9.Parse request [09:55:46]Sock 9.Check first char [09:55:46]Sock 9.First char is OK [09:55:46]request: POST /json_proto HTTP/1.0 [09:55:46]Method: POST [09:55:46]URL: /json_proto [09:55:46]Method is POST - this is cgi request [09:55:46]url: /json_proto [09:55:46]query_string will be loaded in cgi processing [09:55:46]execute_cgi json_proto POST (null) [09:55:46]execute_cgi path=json_proto method=POST [09:55:46]POST find Content-Length [09:55:46]Host: 172.17.50.3:8080 [09:55:46]Content-Length: 793 [09:55:46]Content-Type: application/json [09:55:46] [09:55:46]POST finish read [09:55:46]Found Content-Length = 793 [09:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886321", "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" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68923", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:46]execute_script... [09:55: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)2886321", "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" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68923", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:46]POST & json_proto [09:55:46]process_json_proto [09:55:46]json parsed OK: [09:55:46]protocol is kg_v1.0 [09:55:46]action value=close_receipt [09:55:46]process_action close_receipt [09:55:46]cmd_close_receipt [09:55:46]MH_GetDate [09:55:46]Write to MH i2c: F0 00 00 DE 4A 17 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 09 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 09 00 DE 4A 00 26 C8 18 67 6B 98 1E 66 14 [09:55:46]GetLastDocTimeStamp 1729677043 [09:55:46]current date 1729677350 [09:55:46]FM_GetShiftState [09:55:46]SAM_PROTO_GetShiftState [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 13 01 00 [09:55:46]Write to MH i2c: E2 08 00 DF 4A 80 13 01 00 00 00 00 00 A6 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0E 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0E 00 DF 4A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 33 [09:55:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:55:46]wFMCommunicate OK [09:55:46]SAM_PROTO_GetShiftState done [09:55:46]FM_GetShiftState done [09:55:46]opened in 1729642435 [09:55:46]opened+sec_in_day 1729728835 [09:55:46]quantity*price = 0 [09:55:46]sum+1 = 1 [09:55: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 СНО: Общий режим Чек 68 23.10.2024 09:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 68923 ФМ: 0000000000963346 ФД: 70552 ФПД: 11082784903795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70552&fm=11082784903795&tin=02508201610067®Number=0000000000156251&sum=0 [09:55:47]StoreToDocumentArchive [09:55:47]shift 196 fd 70552 [09:55:47]save to /storage/0196/doc_00070552 [09:55:47]save last doc name /storage/0196/doc_00070552 to /storage/kkm_last_doc_name [09:55:47]save OK [09:55:47]Clear old archive folders... [09:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:47]tlvbuf is B6F1A3B0 [09:55:47]SAM_PROTO_ClearQueue [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 09 00 00 [09:55:47]Write to MH i2c: E2 08 00 EC 4A 80 09 00 00 00 00 00 00 A8 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 EC 4A 00 90 00 AA [09:55:47]RAPDU: 90 00 [09:55:47]wFMCommunicate OK [09:55:47]SAM_PROTO_ClearQueue done [09:55:47]KKMCreateOFDPacket [09:55:47]OFDProtocolAddRootSTLVToBuf [09:55:47]FM_MakeSignedData [09:55:47]FM_MakeSignedData [09:55:47]SAM_PROTO_SignData [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 0D 01 02 [09:55:47]Write to MH i2c: E2 08 00 ED 4A 80 0D 01 02 00 00 00 00 B0 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 ED 4A 00 90 00 AB [09:55:47]RAPDU: 90 00 [09:55:47]wFMCommunicate OK [09:55:47]wFMCommunicate request_size=255 [09:55:47]MH_SAM_APDU [09:55: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 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 44 00 00 00 F4 03 04 00 26 C8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0A [09:55:47]Write to MH i2c: E2 02 01 EE 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 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 44 00 00 00 F4 03 04 00 26 C8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0A 00 00 BB [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 EE 4A 00 90 00 AC [09:55:47]RAPDU: 90 00 [09:55:47]wFMCommunicate OK [09:55:47]wFMCommunicate request_size=10 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 0D 02 02 05 14 69 75 12 73 [09:55:47]Write to MH i2c: E2 0D 00 EF 4A 80 0D 02 02 05 00 14 69 75 12 73 00 00 34 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 03 00 EF 4A 00 90 00 AD [09:55:47]RAPDU: 90 00 [09:55:47]wFMCommunicate OK [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 0D 03 02 [09:55:47]Write to MH i2c: E2 08 00 F0 4A 80 0D 03 02 00 00 00 00 B5 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 0B 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 0B 00 F0 4A 00 8B D9 05 1A 8D 97 75 48 90 00 1A [09:55:48]RAPDU: 8B D9 05 1A 8D 97 75 48 90 00 [09:55:48]wFMCommunicate OK [09:55:48]SAM_PROTO_SignData done [09:55:48]FM_MakeSignedData done [09:55:48]CreateOFDProtocolMessage [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 11 00 00 [09:55:48]Write to MH i2c: E2 08 00 F1 4A 80 11 00 00 00 00 00 00 B5 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 F1 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [09:55: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:55:48]wFMCommunicate OK [09:55:48]CreateOFDProtocolMessage done [09:55:48]OFDSenderStorePacket 70552 [09:55:48]StoreOFDPacket docnum=70552 [09:55: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 49 2B 07 01 2F 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 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 44 00 00 00 F4 03 04 00 26 C8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0A 14 69 75 12 73 8B D9 05 1A 8D 97 75 48 [09:55:48]CheckFolder [09:55:48]dirname=/storage/ofd_packets [09:55:48]CheckFolder done [09:55:48]ProducePacketName [09:55:48]name=ofd_packets/00070552 [09:55:48]NVStorageSaveData ofd_packets/00070552 [09:55:48]File name is /storage/ofd_packets/00070552 [09:55:48]Write 301 bytes [09:55:48]NVStorageSaveData done [09:55:48]OFDSenderStorePacket done [09:55:48]KKMCreateOFDPacket done [09:55:48]NVStorageSaveData kkm_last_timestamp [09:55:48]File name is /storage/kkm_last_timestamp [09:55:48]Write 4 bytes [09:55:48]NVStorageSaveData done [09:55:48]ExternCall_PrintAddStr [09:55:48]wPrintStart [09:55:48]Write to MH i2c: 01 00 00 F2 4A 3C [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 F2 4A 00 00 00 00 00 FF 0F 51 [09:55:48]RasterBufferAndPrint [09:55:48]line Счет N : (1)2886321 [09:55:48]line ИНН: 02508201610067 [09:55:48]line Контрольно-Кассовый Чек [09:55:48]line ПРОДАЖА [09:55:48]line ТРК (МРК, ГНК) : 32 [09:55:48]line Товар: 2710124130 [09:55:48]line Аи-92-К-5 [09:55:48]line 40.000 * 0.00 [09:55:48]line = 0.00 [09:55:48]line НДС 12% НСП 1% [09:55:48]line > о реализуемом товаре [09:55:48]line ИТОГО: 0.00 [09:55:48]line НСП 1% : 0.00 [09:55:48]line НДС 12% : 0.00 [09:55:48]line Наличными: 0.00 [09:55:48]line Безнал.: 0.00 [09:55:48]line Место: АЗС № 85 "Партнер Нефть" [09:55:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:55:48]line СНО: Общий режим [09:55:48]line Чек 68 23.10.2024 09:55 [09:55:48]line Смена: 196 ФФД: 1.0 [09:55:48]line ЗНМ: 0300000167 [09:55:48]line РНМ: 0000000000156251 [09:55:48]line Версия ККМ: v1.0 [09:55:48]line Талоны: Топливная Карта [09:55:48]line 68923 [09:55:48]line ФМ: 0000000000963346 [09:55:48]line ФД: 70552 [09:55:48]line ФПД: 11082784903795 [09:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70552&fm=11082784903795&tin=02508201610067®Number=0000000000156251&sum=0 [09:55:48]OFD Sender: Processing packet 70552 [packets to send 18, broken 17] [09:55:48]ProducePacketName [09:55:48]name=ofd_packets/00070552 [09:55:48]OFD Sender: To server: pG, [09:55:48]CommunicateWithHost lk.salyk.kg:30040 [09:55:48]ConnectInit lk.salyk.kg [09:55:48]written 0, free lines is 4095 [09:55:48]Connected sock=10 [09:55: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 49 2B 07 01 2F 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 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 44 00 00 00 F4 03 04 00 26 C8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0A 14 69 75 12 73 8B D9 05 1A 8D 97 75 48 [09:55: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 B5 47 00 9A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 13 01 00 F4 03 04 00 C4 71 18 67 B6 04 01 00 00 F0 89 13 0D C0 3B E1 67 [09:55:48]CommunicateWithHost err = 0 [09:55:48]CheckOFDResponse [09:55:48]1017 (14) - 77093643461234 [09:55:48]1041 (16) - 0000000000963346 [09:55:48]1040 (4) - 70552 [09:55:48]1012 (4) - 23.10.2024 03:47 [09:55:48]1206 (1) - 0 [09:55:48]OFD Sender: Remove packet 70552 [09:55:48]ProducePacketName [09:55:48]name=ofd_packets/00070552 [09:55:48]NVStorageDeleteData [09:55:48]Write to MH i2c: 01 00 00 1C 4B 67 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 1C 4B 00 00 00 00 00 FB 0C 75 [09:55:48]RasterBufferAndPrint [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]written 0, free lines is 3329 [09:55:48]MH_Cut [09:55:48]Write to MH i2c: D1 01 00 23 4B 01 40 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 01 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 01 00 23 4B 00 3F [09:55:48]Write to MH i2c: 01 00 00 24 4B 6F [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:49]OFD Sender: No OFD packet to send [09:55:49]*** Cut start [09:55:49]*** Partial cut [09:55:49]*** CUTSNS_PIN = 1 [09:55:49]*** CUTSNS_PIN = 0 [09:55:49]*** Brake cut motor [09:55:50]Read from MH i2c: 01 [09:55:50]MH_I2C_Read... [09:55:50]*** Stop cut motor [09:55:50]*** Cut end [09:55:50]Read from MH i2c: 01 07 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: 01 07 00 24 4B 00 00 00 00 00 FF 0F 84 [09:55:50]process_action close_receipt done [09:55:50]requested_data is exist [09:55:50]produce_requested_data [09:55:50]requested_item fm.sn is exist - process it [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 11 00 00 [09:55:50]Write to MH i2c: E2 08 00 25 4B 80 11 00 00 00 00 00 00 EA [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 25 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [09:55: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:55:50]wFMCommunicate OK [09:55:50]requested_item fd.num is exist - process it [09:55:50]SAM_PROTO_GetFieldsCounters [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 00 00 [09:55:50]Write to MH i2c: E2 08 00 26 4B 80 13 00 00 00 00 00 00 ED [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 62 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 62 00 26 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 98 13 01 00 0E 04 04 00 C4 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 44 [09:55: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 98 13 01 00 0E 04 04 00 C4 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 [09:55:50]wFMCommunicate OK [09:55:50]SAM_PROTO_GetFieldsCounters done [09:55:50]requested_item shift.num is exist - process it [09:55:50]requested_item shift.opened is exist - process it [09:55:50]req_shift_opened [09:55:50]FM_GetShiftState [09:55:50]SAM_PROTO_GetShiftState [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 01 00 [09:55:50]Write to MH i2c: E2 08 00 27 4B 80 13 01 00 00 00 00 00 EF [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 0E 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 0E 00 27 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7C [09:55:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [09:55:50]wFMCommunicate OK [09:55:50]SAM_PROTO_GetShiftState done [09:55:50]FM_GetShiftState done [09:55:50]req_shift_opened done [09:55:50]requested_item shift.open_date is exist - process it [09:55:50]req_shift_open_date [09:55:50]req_shift_open_date done [09:55:50]produce_requested_data done [09:55:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70552,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [09:55:50]process_action_free close_receipt [09:55:50]json_value_free [09:55:50]json_value_free done [09:55:50]process_json_proto returns [09:55:50]Send response to host [09:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70552,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [09:55:50]free response buf [09:55:50]execute_script done [09:55:50]execute_script returns [09:55:50]free content buf [09:55:50]Sock 9.Close socket [09:55:50]Sock 9.Thread stoped [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]accept exits with 7 [10:02:09]New connection [10:02:09]New thread 3066699108 created [10:02:09]Thread 3066555748 joined [10:02:09]Waiting for new connection... [10:02:09] Sock 7.Parse request [10:02:09]Sock 7.Check first char [10:02:09]Sock 7.First char is OK [10:02:09]request: POST /json_proto HTTP/1.0 [10:02:09]Method: POST [10:02:09]URL: /json_proto [10:02:09]Method is POST - this is cgi request [10:02:09]url: /json_proto [10:02:09]query_string will be loaded in cgi processing [10:02:09]execute_cgi json_proto POST (null) [10:02:09]execute_cgi path=json_proto method=POST [10:02:09]POST find Content-Length [10:02:09]Host: 172.17.50.3:8080 [10:02:09]Content-Length: 678 [10:02:09]Content-Type: application/json [10:02:09] [10:02:09]POST finish read [10:02:09]Found Content-Length = 678 [10:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886322", "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:02:09]execute_script... [10:02:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886322", "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:02:09]POST & json_proto [10:02:09]process_json_proto [10:02:09]json parsed OK: [10:02:09]protocol is kg_v1.0 [10:02:09]action value=close_receipt [10:02:09]process_action close_receipt [10:02:09]cmd_close_receipt [10:02:09]MH_GetDate [10:02:09]Write to MH i2c: F0 00 00 28 4B 62 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: F0 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: F0 09 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: F0 09 00 28 4B 00 A5 C9 18 67 6B 98 1E 66 DF [10:02:09]GetLastDocTimeStamp 1729677350 [10:02:09]current date 1729677733 [10:02:09]FM_GetShiftState [10:02:09]SAM_PROTO_GetShiftState [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 13 01 00 [10:02:09]Write to MH i2c: E2 08 00 29 4B 80 13 01 00 00 00 00 00 F1 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 0E 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 0E 00 29 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7E [10:02:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:02:09]wFMCommunicate OK [10:02:09]SAM_PROTO_GetShiftState done [10:02:09]FM_GetShiftState done [10:02:09]opened in 1729642435 [10:02:09]opened+sec_in_day 1729728835 [10:02:09]quantity*price = 50041 [10:02:09]sum+1 = 50042 [10:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 69 23.10.2024 10:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70553 ФПД: 92830113066342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70553&fm=92830113066342&tin=02508201610067®Number=0000000000156251&sum=50000 [10:02:10]StoreToDocumentArchive [10:02:10]shift 196 fd 70553 [10:02:10]save to /storage/0196/doc_00070553 [10:02:10]save last doc name /storage/0196/doc_00070553 to /storage/kkm_last_doc_name [10:02:10]save OK [10:02:10]Clear old archive folders... [10:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:10]tlvbuf is 00E8FC20 [10:02:10]SAM_PROTO_ClearQueue [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 09 00 00 [10:02:10]Write to MH i2c: E2 08 00 36 4B 80 09 00 00 00 00 00 00 F3 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 36 4B 00 90 00 F5 [10:02:10]RAPDU: 90 00 [10:02:10]wFMCommunicate OK [10:02:10]SAM_PROTO_ClearQueue done [10:02:10]KKMCreateOFDPacket [10:02:10]OFDProtocolAddRootSTLVToBuf [10:02:10]FM_MakeSignedData [10:02:10]FM_MakeSignedData [10:02:10]SAM_PROTO_SignData [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 0D 01 02 [10:02:10]Write to MH i2c: E2 08 00 37 4B 80 0D 01 02 00 00 00 00 FB [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 37 4B 00 90 00 F6 [10:02:10]RAPDU: 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=255 [10:02:10]MH_SAM_APDU [10:02: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 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 45 00 00 00 F4 03 04 00 A5 C9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 54 [10:02:10]Write to MH i2c: E2 02 01 38 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 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 45 00 00 00 F4 03 04 00 A5 C9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 54 00 00 7B [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 38 4B 00 90 00 F7 [10:02:10]RAPDU: 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=10 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 0D 02 02 05 6D B1 E9 ED 66 [10:02:10]Write to MH i2c: E2 0D 00 39 4B 80 0D 02 02 05 00 6D B1 E9 ED 66 00 00 62 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 03 00 39 4B 00 90 00 F8 [10:02:10]RAPDU: 90 00 [10:02:10]wFMCommunicate OK [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 0D 03 02 [10:02:10]Write to MH i2c: E2 08 00 3A 4B 80 0D 03 02 00 00 00 00 00 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0B 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0B 00 3A 4B 00 91 1E EB 99 49 03 39 23 90 00 DC [10:02:11]RAPDU: 91 1E EB 99 49 03 39 23 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_SignData done [10:02:11]FM_MakeSignedData done [10:02:11]CreateOFDProtocolMessage [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 11 00 00 [10:02:11]Write to MH i2c: E2 08 00 3B 4B 80 11 00 00 00 00 00 00 00 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 17 00 [10:02:11]MH_I2C_Read... [10:02:11]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 [10: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 [10:02:11]wFMCommunicate OK [10:02:11]CreateOFDProtocolMessage done [10:02:11]OFDSenderStorePacket 70553 [10:02:11]StoreOFDPacket docnum=70553 [10:02: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 9A AD 07 01 59 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 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 45 00 00 00 F4 03 04 00 A5 C9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 54 6D B1 E9 ED 66 91 1E EB 99 49 03 39 23 [10:02:11]CheckFolder [10:02:11]dirname=/storage/ofd_packets [10:02:11]CheckFolder done [10:02:11]ProducePacketName [10:02:11]name=ofd_packets/00070553 [10:02:11]NVStorageSaveData ofd_packets/00070553 [10:02:11]File name is /storage/ofd_packets/00070553 [10:02:11]Write 301 bytes [10:02:11]NVStorageSaveData done [10:02:11]OFDSenderStorePacket done [10:02:11]KKMCreateOFDPacket done [10:02:11]NVStorageSaveData kkm_last_timestamp [10:02:11]File name is /storage/kkm_last_timestamp [10:02:11]Write 4 bytes [10:02:11]NVStorageSaveData done [10:02:11]ExternCall_PrintAddStr [10:02:11]wPrintStart [10:02:11]Write to MH i2c: 01 00 00 3C 4B 87 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 07 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 07 00 3C 4B 00 00 00 00 00 FF 0F 9C [10:02:11]RasterBufferAndPrint [10:02:11]line Счет N : (1)2886322 [10:02:11]line ИНН: 02508201610067 [10:02:11]line Контрольно-Кассовый Чек [10:02:11]line ПРОДАЖА [10:02:11]line ТРК (МРК, ГНК) : 42 [10:02:11]line Товар: 2710124130 [10:02:11]line Аи-92-К-5 [10:02:11]line 7.480 * 66.90 [10:02:11]line = 500.41 [10:02:11]line НДС 12% НСП 1% [10:02:11]line > о реализуемом товаре [10:02:11]line ОКРУГЛЕНИЕ: -0.41 [10:02:11]line ИТОГО: 500.00 [10:02:11]line Внесено: 500.00 [10:02:11]line СДАЧА: 0.00 [10:02:11]line НСП 1% : 4.43 [10:02:11]line НДС 12% : 53.14 [10:02:11]line Наличными: 500.00 [10:02:11]line Безнал.: 0.00 [10:02:11]line Место: АЗС № 85 "Партнер Нефть" [10:02:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:02:11]line СНО: Общий режим [10:02:11]line Чек 69 23.10.2024 10:02 [10:02:11]line Смена: 196 ФФД: 1.0 [10:02:11]line ЗНМ: 0300000167 [10:02:11]line РНМ: 0000000000156251 [10:02:11]line Версия ККМ: v1.0 [10:02:11]line ФМ: 0000000000963346 [10:02:11]line ФД: 70553 [10:02:11]line ФПД: 92830113066342 [10:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70553&fm=92830113066342&tin=02508201610067®Number=0000000000156251&sum=50000 [10:02:11]written 0, free lines is 4095 [10:02:11]OFD Sender: Processing packet 70553 [packets to send 18, broken 17] [10:02:11]ProducePacketName [10:02:11]name=ofd_packets/00070553 [10:02:11]OFD Sender: To server: pG, [10:02:11]CommunicateWithHost lk.salyk.kg:30040 [10:02:11]ConnectInit lk.salyk.kg [10:02:11]Connected sock=10 [10:02: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 9A AD 07 01 59 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 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 45 00 00 00 F4 03 04 00 A5 C9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 54 6D B1 E9 ED 66 91 1E EB 99 49 03 39 23 [10:02: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 A2 87 47 00 D9 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 99 13 01 00 F4 03 04 00 43 73 18 67 B6 04 01 00 00 0D 30 65 16 F4 D7 79 B1 [10:02:11]CommunicateWithHost err = 0 [10:02:11]CheckOFDResponse [10:02:11]1017 (14) - 77093643461234 [10:02:11]1041 (16) - 0000000000963346 [10:02:11]1040 (4) - 70553 [10:02:11]1012 (4) - 23.10.2024 03:53 [10:02:11]1206 (1) - 0 [10:02:11]OFD Sender: Remove packet 70553 [10:02:11]ProducePacketName [10:02:11]name=ofd_packets/00070553 [10:02:11]NVStorageDeleteData [10:02:11]Write to MH i2c: 01 00 00 67 4B B2 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 07 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: 01 07 00 67 4B 00 00 00 00 00 EA 0C AF [10:02:11]RasterBufferAndPrint [10:02:11]line [10:02:11]line [10:02:11]line [10:02:11]line [10:02:11]line [10:02:11]written 0, free lines is 3312 [10:02:11]MH_Cut [10:02:11]Write to MH i2c: D1 01 00 6E 4B 01 8B [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: D1 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: D1 01 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: D1 01 00 6E 4B 00 8A [10:02:11]Write to MH i2c: 01 00 00 6F 4B BA [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]OFD Sender: No OFD packet to send [10:02:12]*** Cut start [10:02:12]*** Partial cut [10:02:12]*** CUTSNS_PIN = 1 [10:02:12]*** CUTSNS_PIN = 0 [10:02:12]*** Brake cut motor [10:02:12]Read from MH i2c: 01 [10:02:12]MH_I2C_Read... [10:02:12]*** Stop cut motor [10:02:12]*** Cut end [10:02:12]Read from MH i2c: 01 07 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 6F 4B 00 00 00 00 00 FF 0F CF [10:02:12]process_action close_receipt done [10:02:12]requested_data is exist [10:02:12]produce_requested_data [10:02:12]requested_item fm.sn is exist - process it [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 11 00 00 [10:02:12]Write to MH i2c: E2 08 00 70 4B 80 11 00 00 00 00 00 00 35 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:12]Read from MH i2c: E2 17 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 17 00 70 4B 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:02: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:02:12]wFMCommunicate OK [10:02:12]requested_item fd.num is exist - process it [10:02:12]SAM_PROTO_GetFieldsCounters [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 13 00 00 [10:02:12]Write to MH i2c: E2 08 00 71 4B 80 13 00 00 00 00 00 00 38 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 62 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 62 00 71 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 99 13 01 00 0E 04 04 00 C4 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 93 [10:02: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 99 13 01 00 0E 04 04 00 C4 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 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_GetFieldsCounters done [10:02:13]requested_item shift.num is exist - process it [10:02:13]requested_item shift.opened is exist - process it [10:02:13]req_shift_opened [10:02:13]FM_GetShiftState [10:02:13]SAM_PROTO_GetShiftState [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 13 01 00 [10:02:13]Write to MH i2c: E2 08 00 72 4B 80 13 01 00 00 00 00 00 3A [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0E 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0E 00 72 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C7 [10:02:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_GetShiftState done [10:02:13]FM_GetShiftState done [10:02:13]req_shift_opened done [10:02:13]requested_item shift.open_date is exist - process it [10:02:13]req_shift_open_date [10:02:13]req_shift_open_date done [10:02:13]produce_requested_data done [10:02:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70553,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:02:13]process_action_free close_receipt [10:02:13]json_value_free [10:02:13]json_value_free done [10:02:13]process_json_proto returns [10:02:13]Send response to host [10:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70553,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:02:13]free response buf [10:02:13]execute_script done [10:02:13]execute_script returns [10:02:13]free content buf [10:02:13]Sock 7.Close socket [10:02:13]Sock 7.Thread stoped [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:24]accept exits with 9 [10:05:24]New connection [10:05:24]New thread 3066555748 created [10:05:24]Thread 3066699108 joined [10:05:24]Waiting for new connection... [10:05:24] Sock 9.Parse request [10:05:24]Sock 9.Check first char [10:05:24]Sock 9.First char is OK [10:05:24]request: POST /json_proto HTTP/1.0 [10:05:24]Method: POST [10:05:24]URL: /json_proto [10:05:24]Method is POST - this is cgi request [10:05:24]url: /json_proto [10:05:24]query_string will be loaded in cgi processing [10:05:24]execute_cgi json_proto POST (null) [10:05:24]execute_cgi path=json_proto method=POST [10:05:24]POST find Content-Length [10:05:24]Host: 172.17.50.3:8080 [10:05:24]Content-Length: 801 [10:05:24]Content-Type: application/json [10:05:24] [10:05:24]POST finish read [10:05:24]Found Content-Length = 801 [10:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886323", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:24]execute_script... [10:05: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)2886323", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:24]POST & json_proto [10:05:24]process_json_proto [10:05:24]json parsed OK: [10:05:24]protocol is kg_v1.0 [10:05:24]action value=close_receipt [10:05:24]process_action close_receipt [10:05:24]cmd_close_receipt [10:05:24]MH_GetDate [10:05:24]Write to MH i2c: F0 00 00 73 4B AD [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 73 4B 00 68 CA 18 67 6B 98 1E 66 EE [10:05:24]GetLastDocTimeStamp 1729677733 [10:05:24]current date 1729677928 [10:05:24]FM_GetShiftState [10:05:24]SAM_PROTO_GetShiftState [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 13 01 00 [10:05:24]Write to MH i2c: E2 08 00 74 4B 80 13 01 00 00 00 00 00 3C [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 74 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C9 [10:05:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:05:24]wFMCommunicate OK [10:05:24]SAM_PROTO_GetShiftState done [10:05:24]FM_GetShiftState done [10:05:24]opened in 1729642435 [10:05:24]opened+sec_in_day 1729728835 [10:05:24]quantity*price = 0 [10:05:24]sum+1 = 1 [10:05: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 СНО: Общий режим Чек 70 23.10.2024 10:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4564758 ФМ: 0000000000963346 ФД: 70554 ФПД: 105182200948309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100528&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70554&fm=105182200948309&tin=02508201610067®Number=0000000000156251&sum=0 [10:05:25]StoreToDocumentArchive [10:05:25]shift 196 fd 70554 [10:05:25]save to /storage/0196/doc_00070554 [10:05:25]save last doc name /storage/0196/doc_00070554 to /storage/kkm_last_doc_name [10:05:25]save OK [10:05:25]Clear old archive folders... [10:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:25]tlvbuf is 00E92040 [10:05:25]SAM_PROTO_ClearQueue [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 09 00 00 [10:05:25]Write to MH i2c: E2 08 00 81 4B 80 09 00 00 00 00 00 00 3E [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 81 4B 00 90 00 40 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_ClearQueue done [10:05:25]KKMCreateOFDPacket [10:05:25]OFDProtocolAddRootSTLVToBuf [10:05:25]FM_MakeSignedData [10:05:25]FM_MakeSignedData [10:05:25]SAM_PROTO_SignData [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 01 02 [10:05:25]Write to MH i2c: E2 08 00 82 4B 80 0D 01 02 00 00 00 00 46 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 82 4B 00 90 00 41 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=255 [10:05:25]MH_SAM_APDU [10:05: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 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 46 00 00 00 F4 03 04 00 68 CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5F [10:05:25]Write to MH i2c: E2 02 01 83 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 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 46 00 00 00 F4 03 04 00 68 CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5F 00 00 49 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 83 4B 00 90 00 42 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=10 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 02 02 05 A9 A3 B9 66 55 [10:05:25]Write to MH i2c: E2 0D 00 84 4B 80 0D 02 02 05 00 A9 A3 B9 66 55 00 00 13 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 84 4B 00 90 00 43 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 03 02 [10:05:25]Write to MH i2c: E2 08 00 85 4B 80 0D 03 02 00 00 00 00 4B [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 85 4B 00 86 3F 2D 27 5A 92 7A 7A 90 00 45 [10:05:25]RAPDU: 86 3F 2D 27 5A 92 7A 7A 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_SignData done [10:05:25]FM_MakeSignedData done [10:05:25]CreateOFDProtocolMessage [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 11 00 00 [10:05:25]Write to MH i2c: E2 08 00 86 4B 80 11 00 00 00 00 00 00 4B [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 86 4B 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:05: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:05:25]wFMCommunicate OK [10:05:25]CreateOFDProtocolMessage done [10:05:25]OFDSenderStorePacket 70554 [10:05:25]StoreOFDPacket docnum=70554 [10:05: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 B0 DE 07 01 A4 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 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 46 00 00 00 F4 03 04 00 68 CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5F A9 A3 B9 66 55 86 3F 2D 27 5A 92 7A 7A [10:05:25]CheckFolder [10:05:25]dirname=/storage/ofd_packets [10:05:25]CheckFolder done [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00070554 [10:05:25]NVStorageSaveData ofd_packets/00070554 [10:05:25]File name is /storage/ofd_packets/00070554 [10:05:25]Write 301 bytes [10:05:25]NVStorageSaveData done [10:05:25]OFDSenderStorePacket done [10:05:25]KKMCreateOFDPacket done [10:05:25]NVStorageSaveData kkm_last_timestamp [10:05:25]File name is /storage/kkm_last_timestamp [10:05:25]Write 4 bytes [10:05:25]NVStorageSaveData done [10:05:25]ExternCall_PrintAddStr [10:05:25]wPrintStart [10:05:25]Write to MH i2c: 01 00 00 87 4B D2 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [10:05:25]RasterBufferAndPrint [10:05:25]line Счет N : (1)2886323 [10:05:25]line ИНН: 02508201610067 [10:05:25]line Контрольно-Кассовый Чек [10:05:25]line ПРОДАЖА [10:05:25]line ТРК (МРК, ГНК) : 12 [10:05:25]line Товар: 2710124130 [10:05:25]line Аи-92-К-5 [10:05:25]line 10.000 * 0.00 [10:05:25]line = 0.00 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line ИТОГО: 0.00 [10:05:25]line НСП 1% : 0.00 [10:05:25]line НДС 12% : 0.00 [10:05:25]line Наличными: 0.00 [10:05:25]line Безнал.: 0.00 [10:05:25]line Место: АЗС № 85 "Партнер Нефть" [10:05:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:05:25]line СНО: Общий режим [10:05:25]line Чек 70 23.10.2024 10:05 [10:05:25]line Смена: 196 ФФД: 1.0 [10:05:25]line ЗНМ: 0300000167 [10:05:25]line РНМ: 0000000000156251 [10:05:25]line Версия ККМ: v1.0 [10:05:25]line Талоны: Топливные Талоны [10:05:25]line 4564758 [10:05:25]line ФМ: 0000000000963346 [10:05:25]line ФД: 70554 [10:05:25]line ФПД: 105182200948309 [10:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100528&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70554&fm=105182200948309&tin=02508201610067®Number=0000000000156251&sum=0 [10:05:26]OFD Sender: Processing packet 70554 [packets to send 18, broken 17] [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00070554 [10:05:26]OFD Sender: To server: pG, [10:05:26]CommunicateWithHost lk.salyk.kg:30040 [10:05:26]ConnectInit lk.salyk.kg [10:05:26]written 0, free lines is 4095 [10:05:26]Connected sock=10 [10:05: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 B0 DE 07 01 A4 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 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 46 00 00 00 F4 03 04 00 68 CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5F A9 A3 B9 66 55 86 3F 2D 27 5A 92 7A 7A [10:05: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 14 8A 47 00 AE 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 9A 13 01 00 F4 03 04 00 06 74 18 67 B6 04 01 00 00 5F 46 C6 70 F2 EB DB 35 [10:05:26]CommunicateWithHost err = 0 [10:05:26]CheckOFDResponse [10:05:26]1017 (14) - 77093643461234 [10:05:26]1041 (16) - 0000000000963346 [10:05:26]1040 (4) - 70554 [10:05:26]1012 (4) - 23.10.2024 03:56 [10:05:26]1206 (1) - 0 [10:05:26]OFD Sender: Remove packet 70554 [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00070554 [10:05:26]NVStorageDeleteData [10:05:26]Write to MH i2c: 01 00 00 B1 4B FC [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 B1 4B 00 00 00 00 00 F1 0C 00 [10:05:26]RasterBufferAndPrint [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]written 0, free lines is 3319 [10:05:26]MH_Cut [10:05:26]Write to MH i2c: D1 01 00 B8 4B 01 D5 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 B8 4B 00 D4 [10:05:26]Write to MH i2c: 01 00 00 B9 4B 04 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]OFD Sender: No OFD packet to send [10:05:27]*** Cut start [10:05:27]*** Partial cut [10:05:27]*** CUTSNS_PIN = 1 [10:05:27]*** CUTSNS_PIN = 0 [10:05:27]*** Brake cut motor [10:05:27]Read from MH i2c: 01 [10:05:27]MH_I2C_Read... [10:05:27]*** Stop cut motor [10:05:27]*** Cut end [10:05:27]Read from MH i2c: 01 07 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 B9 4B 00 00 00 00 00 FF 0F 19 [10:05:27]process_action close_receipt done [10:05:27]requested_data is exist [10:05:27]produce_requested_data [10:05:27]requested_item fm.sn is exist - process it [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 11 00 00 [10:05:27]Write to MH i2c: E2 08 00 BA 4B 80 11 00 00 00 00 00 00 7F [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 BA 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [10: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 [10:05:27]wFMCommunicate OK [10:05:27]requested_item fd.num is exist - process it [10:05:27]SAM_PROTO_GetFieldsCounters [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 13 00 00 [10:05:27]Write to MH i2c: E2 08 00 BB 4B 80 13 00 00 00 00 00 00 82 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 62 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 62 00 BB 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 9A 13 01 00 0E 04 04 00 C4 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 E1 [10:05: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 9A 13 01 00 0E 04 04 00 C4 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 [10:05:27]wFMCommunicate OK [10:05:27]SAM_PROTO_GetFieldsCounters done [10:05:27]requested_item shift.num is exist - process it [10:05:27]requested_item shift.opened is exist - process it [10:05:27]req_shift_opened [10:05:27]FM_GetShiftState [10:05:27]SAM_PROTO_GetShiftState [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 13 01 00 [10:05:27]Write to MH i2c: E2 08 00 BC 4B 80 13 01 00 00 00 00 00 84 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:28]Read from MH i2c: E2 0E 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 BC 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 11 [10:05:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetShiftState done [10:05:28]FM_GetShiftState done [10:05:28]req_shift_opened done [10:05:28]requested_item shift.open_date is exist - process it [10:05:28]req_shift_open_date [10:05:28]req_shift_open_date done [10:05:28]produce_requested_data done [10:05:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70554,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:05:28]process_action_free close_receipt [10:05:28]json_value_free [10:05:28]json_value_free done [10:05:28]process_json_proto returns [10:05:28]Send response to host [10:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70554,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:05:28]free response buf [10:05:28]execute_script done [10:05:28]execute_script returns [10:05:28]free content buf [10:05:28]Sock 9.Close socket [10:05:28]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:18]accept exits with 7 [10:06:18]New connection [10:06:18]New thread 3066699108 created [10:06:18]Thread 3066555748 joined [10:06:18]Waiting for new connection... [10:06:18] Sock 7.Parse request [10:06:18]Sock 7.Check first char [10:06:18]Sock 7.First char is OK [10:06:18]request: POST /json_proto HTTP/1.0 [10:06:18]Method: POST [10:06:18]URL: /json_proto [10:06:18]Method is POST - this is cgi request [10:06:18]url: /json_proto [10:06:18]query_string will be loaded in cgi processing [10:06:18]execute_cgi json_proto POST (null) [10:06:18]execute_cgi path=json_proto method=POST [10:06:18]POST find Content-Length [10:06:18]Host: 172.17.50.3:8080 [10:06:18]Content-Length: 678 [10:06:18]Content-Type: application/json [10:06:18] [10:06:18]POST finish read [10:06:18]Found Content-Length = 678 [10:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886324", "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" : 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" ] } } [10:06:18]execute_script... [10:06: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)2886324", "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" : 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" ] } } [10:06:18]POST & json_proto [10:06:18]process_json_proto [10:06:18]json parsed OK: [10:06:18]protocol is kg_v1.0 [10:06:18]action value=close_receipt [10:06:18]process_action close_receipt [10:06:18]cmd_close_receipt [10:06:18]MH_GetDate [10:06:18]Write to MH i2c: F0 00 00 BD 4B F7 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: F0 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: F0 09 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: F0 09 00 BD 4B 00 9E CA 18 67 6B 98 1E 66 6E [10:06:18]GetLastDocTimeStamp 1729677928 [10:06:18]current date 1729677982 [10:06:18]FM_GetShiftState [10:06:18]SAM_PROTO_GetShiftState [10:06:18]wFMCommunicate request_size=4 [10:06:18]MH_SAM_APDU [10:06:18]CAPDU: 80 13 01 00 [10:06:18]Write to MH i2c: E2 08 00 BE 4B 80 13 01 00 00 00 00 00 86 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:18]Read from MH i2c: E2 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 0E 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 0E 00 BE 4B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 13 [10:06:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:06:18]wFMCommunicate OK [10:06:18]SAM_PROTO_GetShiftState done [10:06:18]FM_GetShiftState done [10:06:18]opened in 1729642435 [10:06:18]opened+sec_in_day 1729728835 [10:06:18]quantity*price = 60027 [10:06:18]sum+1 = 60029 [10:06:18]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 СНО: Общий режим Чек 71 23.10.2024 10:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70555 ФПД: 129556437304488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70555&fm=129556437304488&tin=02508201610067®Number=0000000000156251&sum=60000 [10:06:19]StoreToDocumentArchive [10:06:19]shift 196 fd 70555 [10:06:19]save to /storage/0196/doc_00070555 [10:06:19]save last doc name /storage/0196/doc_00070555 to /storage/kkm_last_doc_name [10:06:19]save OK [10:06:19]Clear old archive folders... [10:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:19]tlvbuf is 00BC2CE0 [10:06:19]SAM_PROTO_ClearQueue [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 09 00 00 [10:06:19]Write to MH i2c: E2 08 00 CB 4B 80 09 00 00 00 00 00 00 88 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 03 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 03 00 CB 4B 00 90 00 8A [10:06:19]RAPDU: 90 00 [10:06:19]wFMCommunicate OK [10:06:19]SAM_PROTO_ClearQueue done [10:06:19]KKMCreateOFDPacket [10:06:19]OFDProtocolAddRootSTLVToBuf [10:06:19]FM_MakeSignedData [10:06:19]FM_MakeSignedData [10:06:19]SAM_PROTO_SignData [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 0D 01 02 [10:06:19]Write to MH i2c: E2 08 00 CC 4B 80 0D 01 02 00 00 00 00 90 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 03 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 03 00 CC 4B 00 90 00 8B [10:06:19]RAPDU: 90 00 [10:06:19]wFMCommunicate OK [10:06:19]wFMCommunicate request_size=255 [10:06:19]MH_SAM_APDU [10:06: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 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 47 00 00 00 F4 03 04 00 9E CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 75 [10:06:19]Write to MH i2c: E2 02 01 CD 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 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 47 00 00 00 F4 03 04 00 9E CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 75 00 00 8D [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 CD 4B 00 90 00 8C [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=10 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 02 02 05 D4 B5 6C 84 A8 [10:06:20]Write to MH i2c: E2 0D 00 CE 4B 80 0D 02 02 05 00 D4 B5 6C 84 A8 00 00 BE [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 CE 4B 00 90 00 8D [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 03 02 [10:06:20]Write to MH i2c: E2 08 00 CF 4B 80 0D 03 02 00 00 00 00 95 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0B 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0B 00 CF 4B 00 A2 F3 BF 09 B0 50 54 89 90 00 D0 [10:06:20]RAPDU: A2 F3 BF 09 B0 50 54 89 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_SignData done [10:06:20]FM_MakeSignedData done [10:06:20]CreateOFDProtocolMessage [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 11 00 00 [10:06:20]Write to MH i2c: E2 08 00 D0 4B 80 11 00 00 00 00 00 00 95 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 17 00 [10:06:20]MH_I2C_Read... [10:06:20]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 [10:06: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:06:20]wFMCommunicate OK [10:06:20]CreateOFDProtocolMessage done [10:06:20]OFDSenderStorePacket 70555 [10:06:20]StoreOFDPacket docnum=70555 [10:06: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 16 AC 07 01 2F 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 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 47 00 00 00 F4 03 04 00 9E CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 75 D4 B5 6C 84 A8 A2 F3 BF 09 B0 50 54 89 [10:06:20]CheckFolder [10:06:20]dirname=/storage/ofd_packets [10:06:20]CheckFolder done [10:06:20]ProducePacketName [10:06:20]name=ofd_packets/00070555 [10:06:20]NVStorageSaveData ofd_packets/00070555 [10:06:20]File name is /storage/ofd_packets/00070555 [10:06:20]Write 301 bytes [10:06:20]NVStorageSaveData done [10:06:20]OFDSenderStorePacket done [10:06:20]KKMCreateOFDPacket done [10:06:20]NVStorageSaveData kkm_last_timestamp [10:06:20]File name is /storage/kkm_last_timestamp [10:06:20]Write 4 bytes [10:06:20]NVStorageSaveData done [10:06:20]ExternCall_PrintAddStr [10:06:20]wPrintStart [10:06:20]Write to MH i2c: 01 00 00 D1 4B 1C [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 07 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 07 00 D1 4B 00 00 00 00 00 FF 0F 31 [10:06:20]RasterBufferAndPrint [10:06:20]line Счет N : (1)2886324 [10:06:20]line ИНН: 02508201610067 [10:06:20]line Контрольно-Кассовый Чек [10:06:20]line ПРОДАЖА [10:06:20]line ТРК (МРК, ГНК) : 43 [10:06:20]line Товар: 2710124500 [10:06:20]line Аи-95-К-5 [10:06:20]line 8.090 * 74.20 [10:06:20]line = 600.28 [10:06:20]line НДС 12% НСП 1% [10:06:20]line > о реализуемом товаре [10:06:20]line ОКРУГЛЕНИЕ: -0.28 [10:06:20]line ИТОГО: 600.00 [10:06:20]line Внесено: 600.00 [10:06:20]line СДАЧА: 0.00 [10:06:20]line НСП 1% : 5.31 [10:06:20]line НДС 12% : 63.75 [10:06:20]line Наличными: 600.00 [10:06:20]line Безнал.: 0.00 [10:06:20]line Место: АЗС № 85 "Партнер Нефть" [10:06:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:06:20]line СНО: Общий режим [10:06:20]line Чек 71 23.10.2024 10:06 [10:06:20]line Смена: 196 ФФД: 1.0 [10:06:20]line ЗНМ: 0300000167 [10:06:20]line РНМ: 0000000000156251 [10:06:20]line Версия ККМ: v1.0 [10:06:20]line ФМ: 0000000000963346 [10:06:20]line ФД: 70555 [10:06:20]line ФПД: 129556437304488 [10:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70555&fm=129556437304488&tin=02508201610067®Number=0000000000156251&sum=60000 [10:06:20]OFD Sender: Processing packet 70555 [packets to send 18, broken 17] [10:06:20]ProducePacketName [10:06:20]name=ofd_packets/00070555 [10:06:20]OFD Sender: To server: pG, [10:06:20]CommunicateWithHost lk.salyk.kg:30040 [10:06:20]ConnectInit lk.salyk.kg [10:06:20]written 0, free lines is 4095 [10:06:20]Connected sock=10 [10:06: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 16 AC 07 01 2F 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 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 47 00 00 00 F4 03 04 00 9E CA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 75 D4 B5 6C 84 A8 A2 F3 BF 09 B0 50 54 89 [10:06: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 A6 3E 47 00 78 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 9B 13 01 00 F4 03 04 00 3D 74 18 67 B6 04 01 00 00 95 C5 DA A0 02 50 1F 89 [10:06:20]CommunicateWithHost err = 0 [10:06:20]CheckOFDResponse [10:06:20]1017 (14) - 77093643461234 [10:06:20]1041 (16) - 0000000000963346 [10:06:20]1040 (4) - 70555 [10:06:20]1012 (4) - 23.10.2024 03:57 [10:06:20]1206 (1) - 0 [10:06:20]OFD Sender: Remove packet 70555 [10:06:20]ProducePacketName [10:06:20]name=ofd_packets/00070555 [10:06:20]NVStorageDeleteData [10:06:21]Write to MH i2c: 01 00 00 FC 4B 47 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 FC 4B 00 00 00 00 00 F0 0C 4A [10:06:21]RasterBufferAndPrint [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]written 0, free lines is 3321 [10:06:21]MH_Cut [10:06:21]Write to MH i2c: D1 01 00 03 4C 01 21 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 03 4C 00 20 [10:06:21]Write to MH i2c: 01 00 00 04 4C 50 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]OFD Sender: No OFD packet to send [10:06:21]*** Cut start [10:06:21]*** Partial cut [10:06:21]*** CUTSNS_PIN = 1 [10:06:21]*** CUTSNS_PIN = 0 [10:06:22]*** Brake cut motor [10:06:22]Read from MH i2c: 01 [10:06:22]MH_I2C_Read... [10:06:22]*** Stop cut motor [10:06:22]*** Cut end [10:06:22]Read from MH i2c: 01 07 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: 01 07 00 04 4C 00 00 00 00 00 FF 0F 65 [10:06:22]process_action close_receipt done [10:06:22]requested_data is exist [10:06:22]produce_requested_data [10:06:22]requested_item fm.sn is exist - process it [10:06:22]wFMCommunicate request_size=4 [10:06:22]MH_SAM_APDU [10:06:22]CAPDU: 80 11 00 00 [10:06:22]Write to MH i2c: E2 08 00 05 4C 80 11 00 00 00 00 00 00 CB [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:22]Read from MH i2c: E2 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 17 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 17 00 05 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [10:06: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:06:22]wFMCommunicate OK [10:06:22]requested_item fd.num is exist - process it [10:06:22]SAM_PROTO_GetFieldsCounters [10:06:22]wFMCommunicate request_size=4 [10:06:22]MH_SAM_APDU [10:06:22]CAPDU: 80 13 00 00 [10:06:22]Write to MH i2c: E2 08 00 06 4C 80 13 00 00 00 00 00 00 CE [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:22]Read from MH i2c: E2 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 62 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 62 00 06 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 9B 13 01 00 0E 04 04 00 C4 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 31 [10:06: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 9B 13 01 00 0E 04 04 00 C4 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 [10:06:22]wFMCommunicate OK [10:06:22]SAM_PROTO_GetFieldsCounters done [10:06:22]requested_item shift.num is exist - process it [10:06:22]requested_item shift.opened is exist - process it [10:06:22]req_shift_opened [10:06:22]FM_GetShiftState [10:06:22]SAM_PROTO_GetShiftState [10:06:22]wFMCommunicate request_size=4 [10:06:22]MH_SAM_APDU [10:06:22]CAPDU: 80 13 01 00 [10:06:22]Write to MH i2c: E2 08 00 07 4C 80 13 01 00 00 00 00 00 D0 [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:22]Read from MH i2c: E2 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 0E 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 0E 00 07 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5D [10:06:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:06:22]wFMCommunicate OK [10:06:22]SAM_PROTO_GetShiftState done [10:06:22]FM_GetShiftState done [10:06:22]req_shift_opened done [10:06:22]requested_item shift.open_date is exist - process it [10:06:22]req_shift_open_date [10:06:22]req_shift_open_date done [10:06:22]produce_requested_data done [10:06:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70555,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:06:22]process_action_free close_receipt [10:06:22]json_value_free [10:06:22]json_value_free done [10:06:22]process_json_proto returns [10:06:22]Send response to host [10:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70555,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:06:22]free response buf [10:06:22]execute_script done [10:06:22]execute_script returns [10:06:22]free content buf [10:06:22]Sock 7.Close socket [10:06:22]Sock 7.Thread stoped [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:26]accept exits with 9 [10:08:26]New connection [10:08:26]New thread 3066555748 created [10:08:26]Thread 3066699108 joined [10:08:26]Waiting for new connection... [10:08:26] Sock 9.Parse request [10:08:26]Sock 9.Check first char [10:08:26]Sock 9.First char is OK [10:08:26]request: POST /json_proto HTTP/1.0 [10:08:26]Method: POST [10:08:26]URL: /json_proto [10:08:26]Method is POST - this is cgi request [10:08:26]url: /json_proto [10:08:26]query_string will be loaded in cgi processing [10:08:26]execute_cgi json_proto POST (null) [10:08:26]execute_cgi path=json_proto method=POST [10:08:26]POST find Content-Length [10:08:26]Host: 172.17.50.3:8080 [10:08:26]Content-Length: 689 [10:08:26]Content-Type: application/json [10:08:26] [10:08:26]POST finish read [10:08:26]Found Content-Length = 689 [10:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886325", "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" ] } } [10:08:26]execute_script... [10:08: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)2886325", "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" ] } } [10:08:26]POST & json_proto [10:08:26]process_json_proto [10:08:26]json parsed OK: [10:08:26]protocol is kg_v1.0 [10:08:26]action value=close_receipt [10:08:26]process_action close_receipt [10:08:26]cmd_close_receipt [10:08:26]MH_GetDate [10:08:26]Write to MH i2c: F0 00 00 08 4C 43 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: F0 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: F0 09 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: F0 09 00 08 4C 00 1F CB 18 67 6B 98 1E 66 3C [10:08:26]GetLastDocTimeStamp 1729677982 [10:08:26]current date 1729678111 [10:08:26]FM_GetShiftState [10:08:26]SAM_PROTO_GetShiftState [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 13 01 00 [10:08:26]Write to MH i2c: E2 08 00 09 4C 80 13 01 00 00 00 00 00 D2 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0E 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0E 00 09 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5F [10:08:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_GetShiftState done [10:08:26]FM_GetShiftState done [10:08:26]opened in 1729642435 [10:08:26]opened+sec_in_day 1729728835 [10:08:26]quantity*price = 100051 [10:08:26]sum+1 = 100052 [10:08:26]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 СНО: Общий режим Чек 72 23.10.2024 10:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70556 ФПД: 38686169302557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70556&fm=38686169302557&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:28]StoreToDocumentArchive [10:08:28]shift 196 fd 70556 [10:08:28]save to /storage/0196/doc_00070556 [10:08:28]save last doc name /storage/0196/doc_00070556 to /storage/kkm_last_doc_name [10:08:28]save OK [10:08:28]Clear old archive folders... [10:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:08:28]tlvbuf is B6D6A830 [10:08:28]SAM_PROTO_ClearQueue [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 09 00 00 [10:08:28]Write to MH i2c: E2 08 00 16 4C 80 09 00 00 00 00 00 00 D4 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 16 4C 00 90 00 D6 [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_ClearQueue done [10:08:28]KKMCreateOFDPacket [10:08:28]OFDProtocolAddRootSTLVToBuf [10:08:28]FM_MakeSignedData [10:08:28]FM_MakeSignedData [10:08:28]SAM_PROTO_SignData [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 0D 01 02 [10:08:28]Write to MH i2c: E2 08 00 17 4C 80 0D 01 02 00 00 00 00 DC [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 17 4C 00 90 00 D7 [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]wFMCommunicate request_size=255 [10:08:28]MH_SAM_APDU [10:08: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 48 00 00 00 F4 03 04 00 1F CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [10:08:28]Write to MH i2c: E2 02 01 18 4C 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 48 00 00 00 F4 03 04 00 1F CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 53 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 18 4C 00 90 00 D8 [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]wFMCommunicate request_size=16 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 2F 53 61 06 1D [10:08:28]Write to MH i2c: E2 13 00 19 4C 80 0D 02 02 0B 00 00 35 04 06 00 23 2F 53 61 06 1D 00 00 5D [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 03 00 19 4C 00 90 00 D9 [10:08:28]RAPDU: 90 00 [10:08:28]wFMCommunicate OK [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 0D 03 02 [10:08:28]Write to MH i2c: E2 08 00 1A 4C 80 0D 03 02 00 00 00 00 E1 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0B 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0B 00 1A 4C 00 D0 F6 57 20 64 2B 3B C4 90 00 AD [10:08:28]RAPDU: D0 F6 57 20 64 2B 3B C4 90 00 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_SignData done [10:08:28]FM_MakeSignedData done [10:08:28]CreateOFDProtocolMessage [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 11 00 00 [10:08:28]Write to MH i2c: E2 08 00 1B 4C 80 11 00 00 00 00 00 00 E1 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 1B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [10:08:28]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:28]wFMCommunicate OK [10:08:28]CreateOFDProtocolMessage done [10:08:28]OFDSenderStorePacket 70556 [10:08:28]StoreOFDPacket docnum=70556 [10:08: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 15 01 00 00 A9 93 0D 01 A8 04 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 48 00 00 00 F4 03 04 00 1F CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 2F 53 61 06 1D D0 F6 57 20 64 2B 3B C4 [10:08:28]CheckFolder [10:08:28]dirname=/storage/ofd_packets [10:08:28]CheckFolder done [10:08:28]ProducePacketName [10:08:28]name=ofd_packets/00070556 [10:08:28]NVStorageSaveData ofd_packets/00070556 [10:08:28]File name is /storage/ofd_packets/00070556 [10:08:28]Write 307 bytes [10:08:28]NVStorageSaveData done [10:08:28]OFDSenderStorePacket done [10:08:28]KKMCreateOFDPacket done [10:08:28]NVStorageSaveData kkm_last_timestamp [10:08:28]File name is /storage/kkm_last_timestamp [10:08:28]Write 4 bytes [10:08:28]OFD Sender: Processing packet 70556 [packets to send 18, broken 17] [10:08:28]ProducePacketName [10:08:28]name=ofd_packets/00070556 [10:08:28]OFD Sender: To server: pG, [10:08:28]CommunicateWithHost lk.salyk.kg:30040 [10:08:28]ConnectInit lk.salyk.kg [10:08:28]NVStorageSaveData done [10:08:28]ExternCall_PrintAddStr [10:08:28]wPrintStart [10:08:28]Write to MH i2c: 01 00 00 1C 4C 68 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 07 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 07 00 1C 4C 00 00 00 00 00 FF 0F 7D [10:08:28]RasterBufferAndPrint [10:08:28]line Счет N : (1)2886325 [10:08:28]line ИНН: 02508201610067 [10:08:28]line Контрольно-Кассовый Чек [10:08:28]line ПРОДАЖА [10:08:28]line ТРК (МРК, ГНК) : 31 [10:08:28]line Товар: 2710194240 [10:08:28]line D-ENERGY Дт-К-2 [10:08:28]line 12.960 * 77.20 [10:08:28]line = 1000.51 [10:08:28]line НДС 12% НСП 1% [10:08:28]line > о реализуемом товаре [10:08:28]line ОКРУГЛЕНИЕ: -0.51 [10:08:28]line ИТОГО: 1000.00 [10:08:28]line Внесено: 1000.00 [10:08:28]line СДАЧА: 0.00 [10:08:28]line НСП 1% : 8.85 [10:08:28]line НДС 12% : 106.25 [10:08:28]line Наличными: 1000.00 [10:08:28]line Безнал.: 0.00 [10:08:28]line Место: АЗС № 85 "Партнер Нефть" [10:08:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:08:28]line СНО: Общий режим [10:08:28]line Чек 72 23.10.2024 10:08 [10:08:28]line Смена: 196 ФФД: 1.0 [10:08:28]line ЗНМ: 0300000167 [10:08:28]line РНМ: 0000000000156251 [10:08:28]line Версия ККМ: v1.0 [10:08:28]line ФМ: 0000000000963346 [10:08:28]line ФД: 70556 [10:08:28]line ФПД: 38686169302557 [10:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70556&fm=38686169302557&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:28]Connected sock=11 [10:08: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 15 01 00 00 A9 93 0D 01 A8 04 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 48 00 00 00 F4 03 04 00 1F CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 23 2F 53 61 06 1D D0 F6 57 20 64 2B 3B C4 [10:08:28]written 0, free lines is 4095 [10:08: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 A9 B6 47 00 7F 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 9C 13 01 00 F4 03 04 00 BD 74 18 67 B6 04 01 00 00 36 E7 1C AF 0E 1B EC 1F [10:08:29]CommunicateWithHost err = 0 [10:08:29]CheckOFDResponse [10:08:29]1017 (14) - 77093643461234 [10:08:29]1041 (16) - 0000000000963346 [10:08:29]1040 (4) - 70556 [10:08:29]1012 (4) - 23.10.2024 03:59 [10:08:29]1206 (1) - 0 [10:08:29]OFD Sender: Remove packet 70556 [10:08:29]ProducePacketName [10:08:29]name=ofd_packets/00070556 [10:08:29]NVStorageDeleteData [10:08:29]Write to MH i2c: 01 00 00 47 4C 93 [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 07 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: 01 07 00 47 4C 00 00 00 00 00 F0 0C 96 [10:08:29]RasterBufferAndPrint [10:08:29]line [10:08:29]line [10:08:29]line [10:08:29]line [10:08:29]line [10:08:29]written 0, free lines is 3321 [10:08:29]MH_Cut [10:08:29]Write to MH i2c: D1 01 00 4E 4C 01 6C [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: D1 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: D1 01 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: D1 01 00 4E 4C 00 6B [10:08:29]Write to MH i2c: 01 00 00 4F 4C 9B [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]OFD Sender: No OFD packet to send [10:08:30]*** Cut start [10:08:30]*** Partial cut [10:08:30]*** CUTSNS_PIN = 1 [10:08:30]*** CUTSNS_PIN = 0 [10:08:30]*** Brake cut motor [10:08:30]Read from MH i2c: 01 [10:08:30]MH_I2C_Read... [10:08:30]*** Stop cut motor [10:08:30]*** Cut end [10:08:30]Read from MH i2c: 01 07 00 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: 01 07 00 4F 4C 00 00 00 00 00 FF 0F B0 [10:08:30]process_action close_receipt done [10:08:30]requested_data is exist [10:08:30]produce_requested_data [10:08:30]requested_item fm.sn is exist - process it [10:08:30]wFMCommunicate request_size=4 [10:08:30]MH_SAM_APDU [10:08:30]CAPDU: 80 11 00 00 [10:08:30]Write to MH i2c: E2 08 00 50 4C 80 11 00 00 00 00 00 00 16 [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:30]Read from MH i2c: E2 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: E2 17 00 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: E2 17 00 50 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [10:08:30]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:30]wFMCommunicate OK [10:08:30]requested_item fd.num is exist - process it [10:08:30]SAM_PROTO_GetFieldsCounters [10:08:30]wFMCommunicate request_size=4 [10:08:30]MH_SAM_APDU [10:08:30]CAPDU: 80 13 00 00 [10:08:30]Write to MH i2c: E2 08 00 51 4C 80 13 00 00 00 00 00 00 19 [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:30]Read from MH i2c: E2 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: E2 62 00 [10:08:30]MH_I2C_Read... [10:08:30]Read from MH i2c: E2 62 00 51 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 9C 13 01 00 0E 04 04 00 C4 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 80 [10:08: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 9C 13 01 00 0E 04 04 00 C4 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 [10:08:30]wFMCommunicate OK [10:08:30]SAM_PROTO_GetFieldsCounters done [10:08:30]requested_item shift.num is exist - process it [10:08:30]requested_item shift.opened is exist - process it [10:08:30]req_shift_opened [10:08:30]FM_GetShiftState [10:08:30]SAM_PROTO_GetShiftState [10:08:30]wFMCommunicate request_size=4 [10:08:30]MH_SAM_APDU [10:08:30]CAPDU: 80 13 01 00 [10:08:30]Write to MH i2c: E2 08 00 52 4C 80 13 01 00 00 00 00 00 1B [10:08:30]Write i2c OK [10:08:30]MH_I2C_Read... [10:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:31]Read from MH i2c: E2 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 0E 00 [10:08:31]MH_I2C_Read... [10:08:31]Read from MH i2c: E2 0E 00 52 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A8 [10:08:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:08:31]wFMCommunicate OK [10:08:31]SAM_PROTO_GetShiftState done [10:08:31]FM_GetShiftState done [10:08:31]req_shift_opened done [10:08:31]requested_item shift.open_date is exist - process it [10:08:31]req_shift_open_date [10:08:31]req_shift_open_date done [10:08:31]produce_requested_data done [10:08:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70556,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:08:31]process_action_free close_receipt [10:08:31]json_value_free [10:08:31]json_value_free done [10:08:31]process_json_proto returns [10:08:31]Send response to host [10:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70556,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:08:31]free response buf [10:08:31]execute_script done [10:08:31]execute_script returns [10:08:31]free content buf [10:08:31]Sock 9.Close socket [10:08:31]Sock 9.Thread stoped [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:02]int [10:09:02]Write to MH i2c: 01 00 00 53 4C 9F [10:09:02]*** FLAG_PRN_PAP1 set [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 53 4C 00 01 00 00 00 FF 0F B5 [10:09:02]state=0 [10:09:02]No paper [10:09:02]int [10:09:02]Write to MH i2c: 01 00 00 54 4C A0 [10:09:02]*** FLAG_PRN_PAP2 set [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 54 4C 00 03 00 00 00 FF 0F B8 [10:09:02]state=0 [10:09:02]No paper [10:09:02]Cover opened [10:09:02]int [10:09:02]Write to MH i2c: 01 00 00 55 4C A1 [10:09:02]*** FLAG_PRN_PAP2 reset [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 55 4C 00 01 00 00 00 FF 0F B7 [10:09:02]state=3 [10:09:02]No paper [10:09:02]Cover closed [10:09:03]int [10:09:03]Write to MH i2c: 01 00 00 56 4C A2 [10:09:03]*** FLAG_PRN_PAP2 set [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 56 4C 00 03 00 00 00 FF 0F BA [10:09:03]state=0 [10:09:03]No paper [10:09:03]Cover opened [10:09:04]OFD Sender: No OFD packet to send [10:09:05]int [10:09:05]Write to MH i2c: 01 00 00 57 4C A3 [10:09:05]*** FLAG_PRN_PAP2 reset [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 07 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 07 00 57 4C 00 01 00 00 00 FF 0F B9 [10:09:05]state=3 [10:09:05]No paper [10:09:05]Cover closed [10:09:05]int [10:09:05]Write to MH i2c: 01 00 00 58 4C A4 [10:09:05]*** FLAG_PRN_PAP1 reset [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 07 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 07 00 58 4C 00 00 00 00 00 FF 0F B9 [10:09:05]state=0 [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:33]accept exits with 7 [10:09:33]New connection [10:09:33]New thread 3066699108 created [10:09:33]Thread 3066555748 joined [10:09:33]Waiting for new connection... [10:09:33] Sock 7.Parse request [10:09:33]Sock 7.Check first char [10:09:33]Sock 7.First char is OK [10:09:33]request: POST /json_proto HTTP/1.0 [10:09:33]Method: POST [10:09:33]URL: /json_proto [10:09:33]Method is POST - this is cgi request [10:09:33]url: /json_proto [10:09:33]query_string will be loaded in cgi processing [10:09:33]execute_cgi json_proto POST (null) [10:09:33]execute_cgi path=json_proto method=POST [10:09:33]POST find Content-Length [10:09:33]Host: 172.17.50.3:8080 [10:09:33]Content-Length: 755 [10:09:33]Content-Type: application/json [10:09:33] [10:09:33]POST finish read [10:09:33]Found Content-Length = 755 [10:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886326", "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" : 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\u000A30086070", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:33]execute_script... [10:09: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)2886326", "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" : 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\u000A30086070", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:33]POST & json_proto [10:09:33]process_json_proto [10:09:33]json parsed OK: [10:09:33]protocol is kg_v1.0 [10:09:33]action value=close_receipt [10:09:33]process_action close_receipt [10:09:33]cmd_close_receipt [10:09:33]MH_GetDate [10:09:33]Write to MH i2c: F0 00 00 59 4C 94 [10:09:33]Write i2c OK [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: F0 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: F0 09 00 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: F0 09 00 59 4C 00 61 CB 18 67 6B 98 1E 66 CF [10:09:33]GetLastDocTimeStamp 1729678111 [10:09:33]current date 1729678177 [10:09:33]FM_GetShiftState [10:09:33]SAM_PROTO_GetShiftState [10:09:33]wFMCommunicate request_size=4 [10:09:33]MH_SAM_APDU [10:09:33]CAPDU: 80 13 01 00 [10:09:33]Write to MH i2c: E2 08 00 5A 4C 80 13 01 00 00 00 00 00 23 [10:09:33]Write i2c OK [10:09:33]MH_I2C_Read... [10:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:33]Read from MH i2c: E2 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 0E 00 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 0E 00 5A 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B0 [10:09:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:09:33]wFMCommunicate OK [10:09:33]SAM_PROTO_GetShiftState done [10:09:33]FM_GetShiftState done [10:09:33]opened in 1729642435 [10:09:33]opened+sec_in_day 1729728835 [10:09:33]quantity*price = 0 [10:09:33]sum+1 = 1 [10:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 73 23.10.2024 10:09 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30086070 ФМ: 0000000000963346 ФД: 70557 ФПД: 193624687704488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70557&fm=193624687704488&tin=02508201610067®Number=0000000000156251&sum=0 [10:09:34]StoreToDocumentArchive [10:09:34]shift 196 fd 70557 [10:09:34]save to /storage/0196/doc_00070557 [10:09:34]save last doc name /storage/0196/doc_00070557 to /storage/kkm_last_doc_name [10:09:34]save OK [10:09:34]Clear old archive folders... [10:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:34]tlvbuf is 00C33A50 [10:09:34]SAM_PROTO_ClearQueue [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 09 00 00 [10:09:34]Write to MH i2c: E2 08 00 67 4C 80 09 00 00 00 00 00 00 25 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 67 4C 00 90 00 27 [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]SAM_PROTO_ClearQueue done [10:09:34]KKMCreateOFDPacket [10:09:34]OFDProtocolAddRootSTLVToBuf [10:09:34]FM_MakeSignedData [10:09:34]FM_MakeSignedData [10:09:34]SAM_PROTO_SignData [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 0D 01 02 [10:09:34]Write to MH i2c: E2 08 00 68 4C 80 0D 01 02 00 00 00 00 2D [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 68 4C 00 90 00 28 [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]wFMCommunicate request_size=255 [10:09:34]MH_SAM_APDU [10:09: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B0 [10:09:34]Write to MH i2c: E2 02 01 69 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B0 00 00 EF [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]OFD Sender: No OFD packet to send [10:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 69 4C 00 90 00 29 [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]wFMCommunicate request_size=10 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 0D 02 02 05 19 C2 BA F9 A8 [10:09:34]Write to MH i2c: E2 0D 00 6A 4C 80 0D 02 02 05 00 19 C2 BA F9 A8 00 00 70 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 6A 4C 00 90 00 2A [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 0D 03 02 [10:09:34]Write to MH i2c: E2 08 00 6B 4C 80 0D 03 02 00 00 00 00 32 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 0B 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 0B 00 6B 4C 00 C9 90 FF F3 37 7C A0 05 90 00 D6 [10:09:34]RAPDU: C9 90 FF F3 37 7C A0 05 90 00 [10:09:34]wFMCommunicate OK [10:09:34]SAM_PROTO_SignData done [10:09:34]FM_MakeSignedData done [10:09:34]CreateOFDProtocolMessage [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 11 00 00 [10:09:34]Write to MH i2c: E2 08 00 6C 4C 80 11 00 00 00 00 00 00 32 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 17 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 17 00 6C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [10:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:09:34]wFMCommunicate OK [10:09:34]CreateOFDProtocolMessage done [10:09:34]OFDSenderStorePacket 70557 [10:09:34]StoreOFDPacket docnum=70557 [10:09: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 E0 B2 07 01 50 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B0 19 C2 BA F9 A8 C9 90 FF F3 37 7C A0 05 [10:09:34]CheckFolder [10:09:34]dirname=/storage/ofd_packets [10:09:34]CheckFolder done [10:09:34]ProducePacketName [10:09:34]name=ofd_packets/00070557 [10:09:34]NVStorageSaveData ofd_packets/00070557 [10:09:34]File name is /storage/ofd_packets/00070557 [10:09:34]Write 301 bytes [10:09:34]NVStorageSaveData done [10:09:34]OFDSenderStorePacket done [10:09:34]KKMCreateOFDPacket done [10:09:34]NVStorageSaveData kkm_last_timestamp [10:09:34]File name is /storage/kkm_last_timestamp [10:09:34]Write 4 bytes [10:09:34]NVStorageSaveData done [10:09:34]ExternCall_PrintAddStr [10:09:34]wPrintStart [10:09:34]Write to MH i2c: 01 00 00 6D 4C B9 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 6D 4C 00 00 00 00 00 FF 0F CE [10:09:34]RasterBufferAndPrint [10:09:34]line Счет N : (1)2886326 [10:09:34]line ИНН: 02508201610067 [10:09:34]line Контрольно-Кассовый Чек [10:09:34]line ПРОДАЖА [10:09:34]line ТРК (МРК, ГНК) : 42 [10:09:34]line Товар: 2710124130 [10:09:34]line Аи-92-К-5 [10:09:34]line 30.000 * 0.00 [10:09:34]line = 0.00 [10:09:34]line НДС 12% НСП 1% [10:09:34]line > о реализуемом товаре [10:09:34]line ИТОГО: 0.00 [10:09:34]line НСП 1% : 0.00 [10:09:34]line НДС 12% : 0.00 [10:09:34]line Наличными: 0.00 [10:09:34]line Безнал.: 0.00 [10:09:34]line Место: АЗС № 85 "Партнер Нефть" [10:09:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:09:34]line СНО: Общий режим [10:09:34]line Чек 73 23.10.2024 10:09 [10:09:34]line Смена: 196 ФФД: 1.0 [10:09:34]OFD Sender: Processing packet 70557 [packets to send 18, broken 17] [10:09:34]ProducePacketName [10:09:34]name=ofd_packets/00070557 [10:09:34]OFD Sender: To server: pG, [10:09:34]CommunicateWithHost lk.salyk.kg:30040 [10:09:34]ConnectInit lk.salyk.kg [10:09:34]line ЗНМ: 0300000167 [10:09:34]line РНМ: 0000000000156251 [10:09:34]line Версия ККМ: v1.0 [10:09:34]line Талоны: ТК ГПНА Online [10:09:34]line 30086070 [10:09:34]line ФМ: 0000000000963346 [10:09:34]line ФД: 70557 [10:09:34]line ФПД: 193624687704488 [10:09:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70557&fm=193624687704488&tin=02508201610067®Number=0000000000156251&sum=0 [10:09:35]Connected sock=11 [10:09: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 E0 B2 07 01 50 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 61 CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B0 19 C2 BA F9 A8 C9 90 FF F3 37 7C A0 05 [10:09:35]written 0, free lines is 4095 [10:09: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 14 57 47 00 34 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 FF 74 18 67 B6 04 01 00 00 7F 01 9C A8 DB 3E 7B CA [10:09:35]CommunicateWithHost err = 0 [10:09:35]CheckOFDResponse [10:09:35]1017 (14) - 77093643461234 [10:09:35]1041 (16) - 0000000000963346 [10:09:35]1040 (4) - 70557 [10:09:35]1012 (4) - 23.10.2024 04:01 [10:09:35]1206 (1) - 0 [10:09:35]OFD Sender: Remove packet 70557 [10:09:35]ProducePacketName [10:09:35]name=ofd_packets/00070557 [10:09:35]NVStorageDeleteData [10:09:35]Write to MH i2c: 01 00 00 97 4C E3 [10:09:35]Write i2c OK [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: 01 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: 01 07 00 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: 01 07 00 97 4C 00 00 00 00 00 EC 0C E2 [10:09:35]RasterBufferAndPrint [10:09:35]line [10:09:35]line [10:09:35]line [10:09:35]line [10:09:35]line [10:09:35]written 0, free lines is 3314 [10:09:35]MH_Cut [10:09:35]Write to MH i2c: D1 01 00 9E 4C 01 BC [10:09:35]Write i2c OK [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: D1 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: D1 01 00 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: D1 01 00 9E 4C 00 BB [10:09:35]Write to MH i2c: 01 00 00 9F 4C EB [10:09:35]Write i2c OK [10:09:35]MH_I2C_Read... [10:09:35]OFD Sender: No OFD packet to send [10:09:36]*** Cut start [10:09:36]*** Partial cut [10:09:36]*** CUTSNS_PIN = 1 [10:09:36]*** CUTSNS_PIN = 0 [10:09:36]*** Brake cut motor [10:09:37]Read from MH i2c: 01 [10:09:37]MH_I2C_Read... [10:09:37]*** Stop cut motor [10:09:37]*** Cut end [10:09:37]Read from MH i2c: 01 07 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: 01 07 00 9F 4C 00 00 00 00 00 FF 0F 00 [10:09:37]process_action close_receipt done [10:09:37]requested_data is exist [10:09:37]produce_requested_data [10:09:37]requested_item fm.sn is exist - process it [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 11 00 00 [10:09:37]Write to MH i2c: E2 08 00 A0 4C 80 11 00 00 00 00 00 00 66 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 17 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 17 00 A0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [10: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 [10:09:37]wFMCommunicate OK [10:09:37]requested_item fd.num is exist - process it [10:09:37]SAM_PROTO_GetFieldsCounters [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 13 00 00 [10:09:37]Write to MH i2c: E2 08 00 A1 4C 80 13 00 00 00 00 00 00 69 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 62 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 62 00 A1 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 9D 13 01 00 0E 04 04 00 C4 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 D4 [10:09: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 9D 13 01 00 0E 04 04 00 C4 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 [10:09:37]wFMCommunicate OK [10:09:37]SAM_PROTO_GetFieldsCounters done [10:09:37]requested_item shift.num is exist - process it [10:09:37]requested_item shift.opened is exist - process it [10:09:37]req_shift_opened [10:09:37]FM_GetShiftState [10:09:37]SAM_PROTO_GetShiftState [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 13 01 00 [10:09:37]Write to MH i2c: E2 08 00 A2 4C 80 13 01 00 00 00 00 00 6B [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 0E 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 0E 00 A2 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F8 [10:09:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:09:37]wFMCommunicate OK [10:09:37]SAM_PROTO_GetShiftState done [10:09:37]FM_GetShiftState done [10:09:37]req_shift_opened done [10:09:37]requested_item shift.open_date is exist - process it [10:09:37]req_shift_open_date [10:09:37]req_shift_open_date done [10:09:37]produce_requested_data done [10:09:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70557,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:09:37]process_action_free close_receipt [10:09:37]json_value_free [10:09:37]json_value_free done [10:09:37]process_json_proto returns [10:09:37]Send response to host [10:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70557,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:09:37]free response buf [10:09:37]execute_script done [10:09:37]execute_script returns [10:09:37]free content buf [10:09:37]Sock 7.Close socket [10:09:37]Sock 7.Thread stoped [10:09:40]OFD Sender: No OFD packet to send [10:09:42]accept exits with 9 [10:09:42]New connection [10:09:42]New thread 3066555748 created [10:09:42]Thread 3066699108 joined [10:09:42]Waiting for new connection... [10:09:42] Sock 9.Parse request [10:09:42]Sock 9.Check first char [10:09:42]Sock 9.First char is OK [10:09:42]request: POST /json_proto HTTP/1.0 [10:09:42]Method: POST [10:09:42]URL: /json_proto [10:09:42]Method is POST - this is cgi request [10:09:42]url: /json_proto [10:09:42]query_string will be loaded in cgi processing [10:09:42]execute_cgi json_proto POST (null) [10:09:42]execute_cgi path=json_proto method=POST [10:09:42]POST find Content-Length [10:09:42]Host: 172.17.50.3:8080 [10:09:42]Content-Length: 682 [10:09:42]Content-Type: application/json [10:09:42] [10:09:42]POST finish read [10:09:42]Found Content-Length = 682 [10:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886327", "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" : 10.290, "sum" : 400.28, "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:09:42]execute_script... [10:09: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)2886327", "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" : 10.290, "sum" : 400.28, "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:09:42]POST & json_proto [10:09:42]process_json_proto [10:09:42]json parsed OK: [10:09:42]protocol is kg_v1.0 [10:09:42]action value=close_receipt [10:09:42]process_action close_receipt [10:09:42]cmd_close_receipt [10:09:42]MH_GetDate [10:09:42]Write to MH i2c: F0 00 00 A3 4C DE [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: F0 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: F0 09 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: F0 09 00 A3 4C 00 6A CB 18 67 6B 98 1E 66 22 [10:09:42]GetLastDocTimeStamp 1729678177 [10:09:42]current date 1729678186 [10:09:42]FM_GetShiftState [10:09:42]SAM_PROTO_GetShiftState [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 13 01 00 [10:09:42]Write to MH i2c: E2 08 00 A4 4C 80 13 01 00 00 00 00 00 6D [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 A4 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FA [10:09:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_GetShiftState done [10:09:42]FM_GetShiftState done [10:09:42]opened in 1729642435 [10:09:42]opened+sec_in_day 1729728835 [10:09:42]quantity*price = 40028 [10:09:42]sum+1 = 40029 [10:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 74 23.10.2024 10:09 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70558 ФПД: 201332653079153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70558&fm=201332653079153&tin=02508201610067®Number=0000000000156251&sum=40000 [10:09:43]StoreToDocumentArchive [10:09:43]shift 196 fd 70558 [10:09:43]save to /storage/0196/doc_00070558 [10:09:43]save last doc name /storage/0196/doc_00070558 to /storage/kkm_last_doc_name [10:09:43]save OK [10:09:43]Clear old archive folders... [10:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:09:43]tlvbuf is 00B44F10 [10:09:43]SAM_PROTO_ClearQueue [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 09 00 00 [10:09:43]Write to MH i2c: E2 08 00 B1 4C 80 09 00 00 00 00 00 00 6F [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 B1 4C 00 90 00 71 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_ClearQueue done [10:09:43]KKMCreateOFDPacket [10:09:43]OFDProtocolAddRootSTLVToBuf [10:09:43]FM_MakeSignedData [10:09:43]FM_MakeSignedData [10:09:43]SAM_PROTO_SignData [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 01 02 [10:09:43]Write to MH i2c: E2 08 00 B2 4C 80 0D 01 02 00 00 00 00 77 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 B2 4C 00 90 00 72 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=255 [10:09:43]MH_SAM_APDU [10:09:43]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 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 4A 00 00 00 F4 03 04 00 6A CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 1C [10:09:43]Write to MH i2c: E2 02 01 B3 4C 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 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 4A 00 00 00 F4 03 04 00 6A CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 1C 00 00 C9 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 B3 4C 00 90 00 73 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=9 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 02 02 04 69 44 BA 71 [10:09:43]Write to MH i2c: E2 0C 00 B4 4C 80 0D 02 02 04 00 69 44 BA 71 00 00 5A [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 B4 4C 00 90 00 74 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 03 02 [10:09:43]Write to MH i2c: E2 08 00 B5 4C 80 0D 03 02 00 00 00 00 7C [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 B5 4C 00 3A 9C 2C 77 4B 7C 78 A3 90 00 D8 [10:09:43]RAPDU: 3A 9C 2C 77 4B 7C 78 A3 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_SignData done [10:09:43]FM_MakeSignedData done [10:09:43]CreateOFDProtocolMessage [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 11 00 00 [10:09:43]Write to MH i2c: E2 08 00 B6 4C 80 11 00 00 00 00 00 00 7C [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 B6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [10:09: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:09:44]wFMCommunicate OK [10:09:44]CreateOFDProtocolMessage done [10:09:44]OFDSenderStorePacket 70558 [10:09:44]StoreOFDPacket docnum=70558 [10:09: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 B1 1D 06 01 8F 31 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 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 4A 00 00 00 F4 03 04 00 6A CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 1C 69 44 BA 71 3A 9C 2C 77 4B 7C 78 A3 [10:09:44]CheckFolder [10:09:44]dirname=/storage/ofd_packets [10:09:44]CheckFolder done [10:09:44]ProducePacketName [10:09:44]name=ofd_packets/00070558 [10:09:44]NVStorageSaveData ofd_packets/00070558 [10:09:44]File name is /storage/ofd_packets/00070558 [10:09:44]Write 300 bytes [10:09:44]NVStorageSaveData done [10:09:44]OFDSenderStorePacket done [10:09:44]KKMCreateOFDPacket done [10:09:44]NVStorageSaveData kkm_last_timestamp [10:09:44]File name is /storage/kkm_last_timestamp [10:09:44]Write 4 bytes [10:09:44]NVStorageSaveData done [10:09:44]ExternCall_PrintAddStr [10:09:44]wPrintStart [10:09:44]Write to MH i2c: 01 00 00 B7 4C 03 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 B7 4C 00 00 00 00 00 FF 0F 18 [10:09:44]RasterBufferAndPrint [10:09:44]line Счет N : (1)2886327 [10:09:44]line ИНН: 02508201610067 [10:09:44]line Контрольно-Кассовый Чек [10:09:44]line ПРОДАЖА [10:09:44]line ТРК (МРК, ГНК) : 71 [10:09:44]line Товар: 2711129700 [10:09:44]line ГАЗ-К-3 [10:09:44]line 10.290 * 38.90 [10:09:44]line = 400.28 [10:09:44]line НДС 12% НСП 1% [10:09:44]line > о реализуемом товаре [10:09:44]line ОКРУГЛЕНИЕ: -0.28 [10:09:44]line ИТОГО: 400.00 [10:09:44]line Внесено: 400.00 [10:09:44]line СДАЧА: 0.00 [10:09:44]line НСП 1% : 3.54 [10:09:44]line НДС 12% : 42.51 [10:09:44]line Наличными: 400.00 [10:09:44]line Безнал.: 0.00 [10:09:44]line Место: АЗС № 85 "Партнер Нефть" [10:09:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:09:44]line СНО: Общий режим [10:09:44]line Чек 74 23.10.2024 10:09 [10:09:44]line Смена: 196 ФФД: 1.0 [10:09:44]line ЗНМ: 0300000167 [10:09:44]line РНМ: 0000000000156251 [10:09:44]line Версия ККМ: v1.0 [10:09:44]line ФМ: 0000000000963346 [10:09:44]line ФД: 70558 [10:09:44]line ФПД: 201332653079153 [10:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70558&fm=201332653079153&tin=02508201610067®Number=0000000000156251&sum=40000 [10:09:44]written 0, free lines is 4095 [10:09:44]OFD Sender: Processing packet 70558 [packets to send 18, broken 17] [10:09:44]ProducePacketName [10:09:44]name=ofd_packets/00070558 [10:09:44]OFD Sender: To server: pG, [10:09:44]CommunicateWithHost lk.salyk.kg:30040 [10:09:44]ConnectInit lk.salyk.kg [10:09:44]Connected sock=10 [10:09: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 B1 1D 06 01 8F 31 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 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 4A 00 00 00 F4 03 04 00 6A CB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 1C 69 44 BA 71 3A 9C 2C 77 4B 7C 78 A3 [10:09: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 71 D5 47 00 A4 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 9E 13 01 00 F4 03 04 00 08 75 18 67 B6 04 01 00 00 28 49 BE 7E 7D D5 C0 AF [10:09:44]CommunicateWithHost err = 0 [10:09:44]CheckOFDResponse [10:09:44]1017 (14) - 77093643461234 [10:09:44]1041 (16) - 0000000000963346 [10:09:44]1040 (4) - 70558 [10:09:44]1012 (4) - 23.10.2024 04:01 [10:09:44]1206 (1) - 0 [10:09:44]OFD Sender: Remove packet 70558 [10:09:44]ProducePacketName [10:09:44]name=ofd_packets/00070558 [10:09:44]NVStorageDeleteData [10:09:44]Write to MH i2c: 01 00 00 E2 4C 2E [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 E2 4C 00 00 00 00 00 FB 0C 3C [10:09:44]RasterBufferAndPrint [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]written 0, free lines is 3335 [10:09:44]MH_Cut [10:09:44]Write to MH i2c: D1 01 00 E9 4C 01 07 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 E9 4C 00 06 [10:09:44]Write to MH i2c: 01 00 00 EA 4C 36 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]OFD Sender: No OFD packet to send [10:09:45]*** Cut start [10:09:45]*** Partial cut [10:09:45]*** CUTSNS_PIN = 1 [10:09:45]*** CUTSNS_PIN = 0 [10:09:45]*** Brake cut motor [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]*** Stop cut motor [10:09:45]*** Cut end [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 EA 4C 00 00 00 00 00 FF 0F 4B [10:09:45]process_action close_receipt done [10:09:45]requested_data is exist [10:09:45]produce_requested_data [10:09:45]requested_item fm.sn is exist - process it [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 EB 4C 80 11 00 00 00 00 00 00 B1 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 EB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [10: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 [10:09:45]wFMCommunicate OK [10:09:45]requested_item fd.num is exist - process it [10:09:45]SAM_PROTO_GetFieldsCounters [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 00 00 [10:09:45]Write to MH i2c: E2 08 00 EC 4C 80 13 00 00 00 00 00 00 B4 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 62 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 62 00 EC 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 9E 13 01 00 0E 04 04 00 C4 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 23 [10:09: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 9E 13 01 00 0E 04 04 00 C4 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 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_GetFieldsCounters done [10:09:45]requested_item shift.num is exist - process it [10:09:45]requested_item shift.opened is exist - process it [10:09:45]req_shift_opened [10:09:45]FM_GetShiftState [10:09:45]SAM_PROTO_GetShiftState [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 01 00 [10:09:45]Write to MH i2c: E2 08 00 ED 4C 80 13 01 00 00 00 00 00 B6 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0E 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0E 00 ED 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 43 [10:09:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_GetShiftState done [10:09:46]FM_GetShiftState done [10:09:46]req_shift_opened done [10:09:46]requested_item shift.open_date is exist - process it [10:09:46]req_shift_open_date [10:09:46]req_shift_open_date done [10:09:46]produce_requested_data done [10:09:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70558,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:09:46]process_action_free close_receipt [10:09:46]json_value_free [10:09:46]json_value_free done [10:09:46]process_json_proto returns [10:09:46]Send response to host [10:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70558,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:09:46]free response buf [10:09:46]execute_script done [10:09:46]execute_script returns [10:09:46]free content buf [10:09:46]Sock 9.Close socket [10:09:46]Sock 9.Thread stoped [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:30]accept exits with 7 [10:12:30]New connection [10:12:30]New thread 3066699108 created [10:12:30]Thread 3066555748 joined [10:12:30]Waiting for new connection... [10:12:30] Sock 7.Parse request [10:12:30]Sock 7.Check first char [10:12:30]Sock 7.First char is OK [10:12:30]request: POST /json_proto HTTP/1.0 [10:12:30]Method: POST [10:12:30]URL: /json_proto [10:12:30]Method is POST - this is cgi request [10:12:30]url: /json_proto [10:12:30]query_string will be loaded in cgi processing [10:12:30]execute_cgi json_proto POST (null) [10:12:30]execute_cgi path=json_proto method=POST [10:12:30]POST find Content-Length [10:12:30]Host: 172.17.50.3:8080 [10:12:30]Content-Length: 755 [10:12:30]Content-Type: application/json [10:12:30] [10:12:30]POST finish read [10:12:30]Found Content-Length = 755 [10:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886329", "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\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" ] } } [10:12:30]execute_script... [10:12: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)2886329", "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\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" ] } } [10:12:30]POST & json_proto [10:12:30]process_json_proto [10:12:30]json parsed OK: [10:12:30]protocol is kg_v1.0 [10:12:30]action value=close_receipt [10:12:30]process_action close_receipt [10:12:30]cmd_close_receipt [10:12:30]MH_GetDate [10:12:30]Write to MH i2c: F0 00 00 EE 4C 29 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: F0 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: F0 09 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: F0 09 00 EE 4C 00 13 CC 18 67 6B 98 1E 66 17 [10:12:30]GetLastDocTimeStamp 1729678186 [10:12:30]current date 1729678355 [10:12:30]FM_GetShiftState [10:12:30]SAM_PROTO_GetShiftState [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 13 01 00 [10:12:30]Write to MH i2c: E2 08 00 EF 4C 80 13 01 00 00 00 00 00 B8 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 EF 4C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 45 [10:12:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetShiftState done [10:12:30]FM_GetShiftState done [10:12:30]opened in 1729642435 [10:12:30]opened+sec_in_day 1729728835 [10:12:30]quantity*price = 0 [10:12:30]sum+1 = 1 [10:12: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 СНО: Общий режим Чек 75 23.10.2024 10:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021887 ФМ: 0000000000963346 ФД: 70559 ФПД: 202476679316280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70559&fm=202476679316280&tin=02508201610067®Number=0000000000156251&sum=0 [10:12:31]StoreToDocumentArchive [10:12:31]shift 196 fd 70559 [10:12:31]save to /storage/0196/doc_00070559 [10:12:31]save last doc name /storage/0196/doc_00070559 to /storage/kkm_last_doc_name [10:12:31]save OK [10:12:31]Clear old archive folders... [10:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:31]tlvbuf is 00D78830 [10:12:31]SAM_PROTO_ClearQueue [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 09 00 00 [10:12:31]Write to MH i2c: E2 08 00 FC 4C 80 09 00 00 00 00 00 00 BA [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 FC 4C 00 90 00 BC [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_ClearQueue done [10:12:31]KKMCreateOFDPacket [10:12:31]OFDProtocolAddRootSTLVToBuf [10:12:31]FM_MakeSignedData [10:12:31]FM_MakeSignedData [10:12:31]SAM_PROTO_SignData [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 01 02 [10:12:31]Write to MH i2c: E2 08 00 FD 4C 80 0D 01 02 00 00 00 00 C2 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 FD 4C 00 90 00 BD [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=255 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4B 00 00 00 F4 03 04 00 13 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B8 [10:12:32]Write to MH i2c: E2 02 01 FE 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 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 4B 00 00 00 F4 03 04 00 13 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B8 00 00 D5 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 FE 4C 00 90 00 BE [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=10 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 02 02 05 26 C6 8B C3 38 [10:12:32]Write to MH i2c: E2 0D 00 FF 4C 80 0D 02 02 05 00 26 C6 8B C3 38 00 00 41 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 03 00 FF 4C 00 90 00 BF [10:12:32]RAPDU: 90 00 [10:12:32]wFMCommunicate OK [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 0D 03 02 [10:12:32]Write to MH i2c: E2 08 00 00 4D 80 0D 03 02 00 00 00 00 C8 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0B 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0B 00 00 4D 00 A8 DA 23 FA 05 0D 99 4A 90 00 5D [10:12:32]RAPDU: A8 DA 23 FA 05 0D 99 4A 90 00 [10:12:32]wFMCommunicate OK [10:12:32]SAM_PROTO_SignData done [10:12:32]FM_MakeSignedData done [10:12:32]CreateOFDProtocolMessage [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 11 00 00 [10:12:32]Write to MH i2c: E2 08 00 01 4D 80 11 00 00 00 00 00 00 C8 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 17 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 17 00 01 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [10:12: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:12:32]wFMCommunicate OK [10:12:32]CreateOFDProtocolMessage done [10:12:32]OFDSenderStorePacket 70559 [10:12:32]StoreOFDPacket docnum=70559 [10:12: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 A8 14 07 01 0B 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 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 4B 00 00 00 F4 03 04 00 13 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B8 26 C6 8B C3 38 A8 DA 23 FA 05 0D 99 4A [10:12:32]CheckFolder [10:12:32]dirname=/storage/ofd_packets [10:12:32]CheckFolder done [10:12:32]ProducePacketName [10:12:32]name=ofd_packets/00070559 [10:12:32]NVStorageSaveData ofd_packets/00070559 [10:12:32]File name is /storage/ofd_packets/00070559 [10:12:32]Write 301 bytes [10:12:32]NVStorageSaveData done [10:12:32]OFDSenderStorePacket done [10:12:32]KKMCreateOFDPacket done [10:12:32]NVStorageSaveData kkm_last_timestamp [10:12:32]File name is /storage/kkm_last_timestamp [10:12:32]Write 4 bytes [10:12:32]NVStorageSaveData done [10:12:32]ExternCall_PrintAddStr [10:12:32]wPrintStart [10:12:32]Write to MH i2c: 01 00 00 02 4D 4F [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 02 4D 00 00 00 00 00 FF 0F 64 [10:12:32]RasterBufferAndPrint [10:12:32]line Счет N : (1)2886329 [10:12:32]line ИНН: 02508201610067 [10:12:32]line Контрольно-Кассовый Чек [10:12:32]line ПРОДАЖА [10:12:32]line ТРК (МРК, ГНК) : 42 [10:12:32]line Товар: 2710124130 [10:12:32]line Аи-92-К-5 [10:12:32]line 10.000 * 0.00 [10:12:32]line = 0.00 [10:12:32]line НДС 12% НСП 1% [10:12:32]line > о реализуемом товаре [10:12:32]line ИТОГО: 0.00 [10:12:32]line НСП 1% : 0.00 [10:12:32]line НДС 12% : 0.00 [10:12:32]line Наличными: 0.00 [10:12:32]line Безнал.: 0.00 [10:12:32]line Место: АЗС № 85 "Партнер Нефть" [10:12:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:12:32]line СНО: Общий режим [10:12:32]line Чек 75 23.10.2024 10:12 [10:12:32]line Смена: 196 ФФД: 1.0 [10:12:32]line ЗНМ: 0300000167 [10:12:32]line РНМ: 0000000000156251 [10:12:32]line Версия ККМ: v1.0 [10:12:32]line Талоны: ТК ГПНА Online [10:12:32]line 30021887 [10:12:32]line ФМ: 0000000000963346 [10:12:32]line ФД: 70559 [10:12:32]line ФПД: 202476679316280 [10:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70559&fm=202476679316280&tin=02508201610067®Number=0000000000156251&sum=0 [10:12:32]OFD Sender: Processing packet 70559 [packets to send 18, broken 17] [10:12:32]ProducePacketName [10:12:32]name=ofd_packets/00070559 [10:12:32]OFD Sender: To server: pG, [10:12:32]CommunicateWithHost lk.salyk.kg:30040 [10:12:32]ConnectInit lk.salyk.kg [10:12:32]written 0, free lines is 4095 [10:12:32]Connected sock=10 [10:12: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 A8 14 07 01 0B 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 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 4B 00 00 00 F4 03 04 00 13 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B8 26 C6 8B C3 38 A8 DA 23 FA 05 0D 99 4A [10:12: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 D4 AE 47 00 B7 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 9F 13 01 00 F4 03 04 00 B1 75 18 67 B6 04 01 00 00 E8 FD 10 D7 96 6C 92 C1 [10:12:33]CommunicateWithHost err = 0 [10:12:33]CheckOFDResponse [10:12:33]1017 (14) - 77093643461234 [10:12:33]1041 (16) - 0000000000963346 [10:12:33]1040 (4) - 70559 [10:12:33]1012 (4) - 23.10.2024 04:04 [10:12:33]1206 (1) - 0 [10:12:33]OFD Sender: Remove packet 70559 [10:12:33]ProducePacketName [10:12:33]name=ofd_packets/00070559 [10:12:33]NVStorageDeleteData [10:12:33]Write to MH i2c: 01 00 00 2C 4D 79 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 2C 4D 00 00 00 00 00 00 0D 8D [10:12:33]RasterBufferAndPrint [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]line [10:12:33]written 0, free lines is 3337 [10:12:33]MH_Cut [10:12:33]Write to MH i2c: D1 01 00 33 4D 01 52 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: D1 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: D1 01 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: D1 01 00 33 4D 00 51 [10:12:33]Write to MH i2c: 01 00 00 34 4D 81 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]OFD Sender: No OFD packet to send [10:12:33]*** Cut start [10:12:33]*** Partial cut [10:12:33]*** CUTSNS_PIN = 1 [10:12:33]*** CUTSNS_PIN = 0 [10:12:34]*** Brake cut motor [10:12:34]Read from MH i2c: 01 [10:12:34]MH_I2C_Read... [10:12:34]*** Stop cut motor [10:12:34]*** Cut end [10:12:34]Read from MH i2c: 01 07 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 34 4D 00 00 00 00 00 FF 0F 96 [10:12:34]process_action close_receipt done [10:12:34]requested_data is exist [10:12:34]produce_requested_data [10:12:34]requested_item fm.sn is exist - process it [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 11 00 00 [10:12:34]Write to MH i2c: E2 08 00 35 4D 80 11 00 00 00 00 00 00 FC [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 35 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [10:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:12:34]wFMCommunicate OK [10:12:34]requested_item fd.num is exist - process it [10:12:34]SAM_PROTO_GetFieldsCounters [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 13 00 00 [10:12:34]Write to MH i2c: E2 08 00 36 4D 80 13 00 00 00 00 00 00 FF [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 62 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 62 00 36 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 9F 13 01 00 0E 04 04 00 C4 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 72 [10:12: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 9F 13 01 00 0E 04 04 00 C4 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 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_GetFieldsCounters done [10:12:34]requested_item shift.num is exist - process it [10:12:34]requested_item shift.opened is exist - process it [10:12:34]req_shift_opened [10:12:34]FM_GetShiftState [10:12:34]SAM_PROTO_GetShiftState [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 13 01 00 [10:12:34]Write to MH i2c: E2 08 00 37 4D 80 13 01 00 00 00 00 00 01 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 37 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8E [10:12:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_GetShiftState done [10:12:34]FM_GetShiftState done [10:12:34]req_shift_opened done [10:12:34]requested_item shift.open_date is exist - process it [10:12:34]req_shift_open_date [10:12:34]req_shift_open_date done [10:12:34]produce_requested_data done [10:12:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70559,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:12:34]process_action_free close_receipt [10:12:34]json_value_free [10:12:34]json_value_free done [10:12:34]process_json_proto returns [10:12:34]Send response to host [10:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70559,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:12:34]free response buf [10:12:34]execute_script done [10:12:34]execute_script returns [10:12:34]free content buf [10:12:34]Sock 7.Close socket [10:12:34]Sock 7.Thread stoped [10:12:35]accept exits with 9 [10:12:35]New connection [10:12:35]New thread 3066555748 created [10:12:35]Thread 3066699108 joined [10:12:35]Waiting for new connection... [10:12:35] Sock 9.Parse request [10:12:35]Sock 9.Check first char [10:12:35]Sock 9.First char is OK [10:12:35]request: POST /json_proto HTTP/1.0 [10:12:35]Method: POST [10:12:35]URL: /json_proto [10:12:35]Method is POST - this is cgi request [10:12:35]url: /json_proto [10:12:35]query_string will be loaded in cgi processing [10:12:35]execute_cgi json_proto POST (null) [10:12:35]execute_cgi path=json_proto method=POST [10:12:35]POST find Content-Length [10:12:35]Host: 172.17.50.3:8080 [10:12:35]Content-Length: 678 [10:12:35]Content-Type: application/json [10:12:35] [10:12:35]POST finish read [10:12:35]Found Content-Length = 678 [10:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886328", "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" ] } } [10:12:35]execute_script... [10: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)2886328", "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" ] } } [10:12:35]POST & json_proto [10:12:35]process_json_proto [10:12:35]json parsed OK: [10:12:35]protocol is kg_v1.0 [10:12:35]action value=close_receipt [10:12:35]process_action close_receipt [10:12:35]cmd_close_receipt [10:12:35]MH_GetDate [10:12:35]Write to MH i2c: F0 00 00 38 4D 74 [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: F0 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: F0 09 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: F0 09 00 38 4D 00 17 CC 18 67 6B 98 1E 66 66 [10:12:35]GetLastDocTimeStamp 1729678355 [10:12:35]current date 1729678359 [10:12:35]FM_GetShiftState [10:12:35]SAM_PROTO_GetShiftState [10:12:35]wFMCommunicate request_size=4 [10:12:35]MH_SAM_APDU [10:12:35]CAPDU: 80 13 01 00 [10:12:35]Write to MH i2c: E2 08 00 39 4D 80 13 01 00 00 00 00 00 03 [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:35]Read from MH i2c: E2 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: E2 0E 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: E2 0E 00 39 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 90 [10:12:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:12:35]wFMCommunicate OK [10:12:35]SAM_PROTO_GetShiftState done [10:12:35]FM_GetShiftState done [10:12:35]opened in 1729642435 [10:12:35]opened+sec_in_day 1729728835 [10:12:35]quantity*price = 50041 [10:12:35]sum+1 = 50042 [10:12:35]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 СНО: Общий режим Чек 76 23.10.2024 10:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70560 ФПД: 102729863479925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101239&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70560&fm=102729863479925&tin=02508201610067®Number=0000000000156251&sum=50000 [10:12:36]StoreToDocumentArchive [10:12:36]shift 196 fd 70560 [10:12:36]save to /storage/0196/doc_00070560 [10:12:36]save last doc name /storage/0196/doc_00070560 to /storage/kkm_last_doc_name [10:12:36]save OK [10:12:36]Clear old archive folders... [10:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:36]tlvbuf is 00C24750 [10:12:36]SAM_PROTO_ClearQueue [10:12:36]wFMCommunicate request_size=4 [10:12:36]MH_SAM_APDU [10:12:36]CAPDU: 80 09 00 00 [10:12:36]Write to MH i2c: E2 08 00 46 4D 80 09 00 00 00 00 00 00 05 [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 46 4D 00 90 00 07 [10:12:36]RAPDU: 90 00 [10:12:36]wFMCommunicate OK [10:12:36]SAM_PROTO_ClearQueue done [10:12:36]KKMCreateOFDPacket [10:12:36]OFDProtocolAddRootSTLVToBuf [10:12:36]FM_MakeSignedData [10:12:36]FM_MakeSignedData [10:12:36]SAM_PROTO_SignData [10:12:36]wFMCommunicate request_size=4 [10:12:36]MH_SAM_APDU [10:12:36]CAPDU: 80 0D 01 02 [10:12:36]Write to MH i2c: E2 08 00 47 4D 80 0D 01 02 00 00 00 00 0D [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 47 4D 00 90 00 08 [10:12:36]RAPDU: 90 00 [10:12:36]wFMCommunicate OK [10:12:36]wFMCommunicate request_size=255 [10:12:36]MH_SAM_APDU [10: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 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 4C 00 00 00 F4 03 04 00 17 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5D [10:12:36]Write to MH i2c: E2 02 01 48 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 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 4C 00 00 00 F4 03 04 00 17 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5D 00 00 19 [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 03 00 48 4D 00 90 00 09 [10:12:36]RAPDU: 90 00 [10:12:36]wFMCommunicate OK [10:12:37]wFMCommunicate request_size=10 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 0D 02 02 05 6E A9 05 42 75 [10:12:37]Write to MH i2c: E2 0D 00 49 4D 80 0D 02 02 05 00 6E A9 05 42 75 00 00 ED [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 03 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 03 00 49 4D 00 90 00 0A [10:12:37]RAPDU: 90 00 [10:12:37]wFMCommunicate OK [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 0D 03 02 [10:12:37]Write to MH i2c: E2 08 00 4A 4D 80 0D 03 02 00 00 00 00 12 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0B 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0B 00 4A 4D 00 FB D3 E8 33 E6 B7 05 4A 90 00 E8 [10:12:37]RAPDU: FB D3 E8 33 E6 B7 05 4A 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_SignData done [10:12:37]FM_MakeSignedData done [10:12:37]CreateOFDProtocolMessage [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 11 00 00 [10:12:37]Write to MH i2c: E2 08 00 4B 4D 80 11 00 00 00 00 00 00 12 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 4B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [10: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 [10:12:37]wFMCommunicate OK [10:12:37]CreateOFDProtocolMessage done [10:12:37]OFDSenderStorePacket 70560 [10:12:37]StoreOFDPacket docnum=70560 [10: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 48 AB 07 01 C3 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 4C 00 00 00 F4 03 04 00 17 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5D 6E A9 05 42 75 FB D3 E8 33 E6 B7 05 4A [10:12:37]CheckFolder [10:12:37]dirname=/storage/ofd_packets [10:12:37]CheckFolder done [10:12:37]ProducePacketName [10:12:37]name=ofd_packets/00070560 [10:12:37]NVStorageSaveData ofd_packets/00070560 [10:12:37]File name is /storage/ofd_packets/00070560 [10:12:37]Write 301 bytes [10:12:37]NVStorageSaveData done [10:12:37]OFDSenderStorePacket done [10:12:37]KKMCreateOFDPacket done [10:12:37]NVStorageSaveData kkm_last_timestamp [10:12:37]File name is /storage/kkm_last_timestamp [10:12:37]Write 4 bytes [10:12:37]NVStorageSaveData done [10:12:37]ExternCall_PrintAddStr [10:12:37]wPrintStart [10:12:37]Write to MH i2c: 01 00 00 4C 4D 99 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 4C 4D 00 00 00 00 00 FF 0F AE [10:12:37]RasterBufferAndPrint [10:12:37]line Счет N : (1)2886328 [10:12:37]line ИНН: 02508201610067 [10:12:37]line Контрольно-Кассовый Чек [10:12:37]line ПРОДАЖА [10:12:37]line ТРК (МРК, ГНК) : 12 [10:12:37]line Товар: 2710124130 [10:12:37]line Аи-92-К-5 [10:12:37]line 7.480 * 66.90 [10:12:37]line = 500.41 [10:12:37]line НДС 12% НСП 1% [10:12:37]line > о реализуемом товаре [10:12:37]line ОКРУГЛЕНИЕ: -0.41 [10:12:37]line ИТОГО: 500.00 [10:12:37]line Внесено: 500.00 [10:12:37]line СДАЧА: 0.00 [10:12:37]line НСП 1% : 4.43 [10:12:37]line НДС 12% : 53.14 [10:12:37]line Наличными: 500.00 [10:12:37]line Безнал.: 0.00 [10:12:37]line Место: АЗС № 85 "Партнер Нефть" [10:12:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:12:37]line СНО: Общий режим [10:12:37]line Чек 76 23.10.2024 10:12 [10:12:37]line Смена: 196 ФФД: 1.0 [10:12:37]line ЗНМ: 0300000167 [10:12:37]line РНМ: 0000000000156251 [10:12:37]line Версия ККМ: v1.0 [10:12:37]line ФМ: 0000000000963346 [10:12:37]line ФД: 70560 [10:12:37]line ФПД: 102729863479925 [10:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101239&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70560&fm=102729863479925&tin=02508201610067®Number=0000000000156251&sum=50000 [10:12:37]written 0, free lines is 4095 [10:12:37]OFD Sender: Processing packet 70560 [packets to send 18, broken 17] [10:12:37]ProducePacketName [10:12:37]name=ofd_packets/00070560 [10:12:37]OFD Sender: To server: pG, [10:12:37]CommunicateWithHost lk.salyk.kg:30040 [10:12:37]ConnectInit lk.salyk.kg [10:12:37]Connected sock=10 [10: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 48 AB 07 01 C3 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 4C 00 00 00 F4 03 04 00 17 CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5D 6E A9 05 42 75 FB D3 E8 33 E6 B7 05 4A [10: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 FB BB 47 00 55 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 13 01 00 F4 03 04 00 B5 75 18 67 B6 04 01 00 00 30 55 65 4A 5B 4D 0F F8 [10:12:37]CommunicateWithHost err = 0 [10:12:37]CheckOFDResponse [10:12:37]1017 (14) - 77093643461234 [10:12:37]1041 (16) - 0000000000963346 [10:12:37]1040 (4) - 70560 [10:12:37]1012 (4) - 23.10.2024 04:04 [10:12:37]1206 (1) - 0 [10:12:37]OFD Sender: Remove packet 70560 [10:12:37]ProducePacketName [10:12:37]name=ofd_packets/00070560 [10:12:37]NVStorageDeleteData [10:12:37]Write to MH i2c: 01 00 00 77 4D C4 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 77 4D 00 00 00 00 00 00 0D D8 [10:12:37]RasterBufferAndPrint [10:12:37]line [10:12:37]line [10:12:37]line [10:12:37]line [10:12:37]line [10:12:37]written 0, free lines is 3343 [10:12:38]MH_Cut [10:12:38]Write to MH i2c: D1 01 00 7E 4D 01 9D [10:12:38]Write i2c OK [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: D1 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: D1 01 00 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: D1 01 00 7E 4D 00 9C [10:12:38]Write to MH i2c: 01 00 00 7F 4D CC [10:12:38]Write i2c OK [10:12:38]MH_I2C_Read... [10:12:38]OFD Sender: No OFD packet to send [10:12:38]*** Cut start [10:12:38]*** Partial cut [10:12:38]*** CUTSNS_PIN = 1 [10:12:38]*** CUTSNS_PIN = 0 [10:12:38]*** Brake cut motor [10:12:39]Read from MH i2c: 01 [10:12:39]MH_I2C_Read... [10:12:39]*** Stop cut motor [10:12:39]*** Cut end [10:12:39]Read from MH i2c: 01 07 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 07 00 7F 4D 00 00 00 00 00 FF 0F E1 [10:12:39]process_action close_receipt done [10:12:39]requested_data is exist [10:12:39]produce_requested_data [10:12:39]requested_item fm.sn is exist - process it [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 11 00 00 [10:12:39]Write to MH i2c: E2 08 00 80 4D 80 11 00 00 00 00 00 00 47 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 17 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 17 00 80 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [10: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 [10:12:39]wFMCommunicate OK [10:12:39]requested_item fd.num is exist - process it [10:12:39]SAM_PROTO_GetFieldsCounters [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 13 00 00 [10:12:39]Write to MH i2c: E2 08 00 81 4D 80 13 00 00 00 00 00 00 4A [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 62 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 62 00 81 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 A0 13 01 00 0E 04 04 00 C4 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 C1 [10: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 A0 13 01 00 0E 04 04 00 C4 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 [10:12:39]wFMCommunicate OK [10:12:39]SAM_PROTO_GetFieldsCounters done [10:12:39]requested_item shift.num is exist - process it [10:12:39]requested_item shift.opened is exist - process it [10:12:39]req_shift_opened [10:12:39]FM_GetShiftState [10:12:39]SAM_PROTO_GetShiftState [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 13 01 00 [10:12:39]Write to MH i2c: E2 08 00 82 4D 80 13 01 00 00 00 00 00 4C [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 0E 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 0E 00 82 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D9 [10:12:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:12:39]wFMCommunicate OK [10:12:39]SAM_PROTO_GetShiftState done [10:12:39]FM_GetShiftState done [10:12:39]req_shift_opened done [10:12:39]requested_item shift.open_date is exist - process it [10:12:39]req_shift_open_date [10:12:39]req_shift_open_date done [10:12:39]produce_requested_data done [10:12:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70560,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:12:39]process_action_free close_receipt [10:12:39]json_value_free [10:12:39]json_value_free done [10:12:39]process_json_proto returns [10:12:39]Send response to host [10:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70560,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:12:39]free response buf [10:12:39]execute_script done [10:12:39]execute_script returns [10:12:39]free content buf [10:12:39]Sock 9.Close socket [10:12:39]Sock 9.Thread stoped [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:06]accept exits with 7 [10:15:06]New connection [10:15:06]New thread 3066699108 created [10:15:06]Thread 3066555748 joined [10:15:06]Waiting for new connection... [10:15:06] Sock 7.Parse request [10:15:06]Sock 7.Check first char [10:15:06]Sock 7.First char is OK [10:15:06]request: POST /json_proto HTTP/1.0 [10:15:06]Method: POST [10:15:06]URL: /json_proto [10:15:06]Method is POST - this is cgi request [10:15:06]url: /json_proto [10:15:06]query_string will be loaded in cgi processing [10:15:06]execute_cgi json_proto POST (null) [10:15:06]execute_cgi path=json_proto method=POST [10:15:06]POST find Content-Length [10:15:06]Host: 172.17.50.3:8080 [10:15:06]Content-Length: 767 [10:15:06]Content-Type: application/json [10:15:06] [10:15:06]POST finish read [10:15:06]Found Content-Length = 767 [10:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886330", "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" ] } } [10:15:06]execute_script... [10:15: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)2886330", "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" ] } } [10:15:06]POST & json_proto [10:15:06]process_json_proto [10:15:06]json parsed OK: [10:15:06]protocol is kg_v1.0 [10:15:06]action value=close_receipt [10:15:06]process_action close_receipt [10:15:06]cmd_close_receipt [10:15:06]MH_GetDate [10:15:06]Write to MH i2c: F0 00 00 83 4D BF [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: F0 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: F0 09 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: F0 09 00 83 4D 00 AF CC 18 67 6B 98 1E 66 49 [10:15:06]GetLastDocTimeStamp 1729678359 [10:15:06]current date 1729678511 [10:15:06]FM_GetShiftState [10:15:06]SAM_PROTO_GetShiftState [10:15:06]wFMCommunicate request_size=4 [10:15:06]MH_SAM_APDU [10:15:06]CAPDU: 80 13 01 00 [10:15:06]Write to MH i2c: E2 08 00 84 4D 80 13 01 00 00 00 00 00 4E [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:06]Read from MH i2c: E2 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 0E 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: E2 0E 00 84 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DB [10:15:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:15:06]wFMCommunicate OK [10:15:06]SAM_PROTO_GetShiftState done [10:15:06]FM_GetShiftState done [10:15:06]opened in 1729642435 [10:15:06]opened+sec_in_day 1729728835 [10:15:06]quantity*price = 120015 [10:15:06]sum+1 = 120016 [10:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.15 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.15 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 77 23.10.2024 10:15 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70561 ФПД: 127051295759726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70561&fm=127051295759726&tin=02508201610067®Number=0000000000156251&sum=120015 [10:15:07]StoreToDocumentArchive [10:15:07]shift 196 fd 70561 [10:15:07]save to /storage/0196/doc_00070561 [10:15:07]save last doc name /storage/0196/doc_00070561 to /storage/kkm_last_doc_name [10:15:07]save OK [10:15:07]Clear old archive folders... [10:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:15:07]tlvbuf is 00ED9E00 [10:15:07]SAM_PROTO_ClearQueue [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 09 00 00 [10:15:07]Write to MH i2c: E2 08 00 91 4D 80 09 00 00 00 00 00 00 50 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 03 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 03 00 91 4D 00 90 00 52 [10:15:07]RAPDU: 90 00 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_ClearQueue done [10:15:07]KKMCreateOFDPacket [10:15:07]OFDProtocolAddRootSTLVToBuf [10:15:07]FM_MakeSignedData [10:15:07]FM_MakeSignedData [10:15:07]SAM_PROTO_SignData [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 0D 01 02 [10:15:07]Write to MH i2c: E2 08 00 92 4D 80 0D 01 02 00 00 00 00 58 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 03 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 03 00 92 4D 00 90 00 53 [10:15:07]RAPDU: 90 00 [10:15:07]wFMCommunicate OK [10:15:07]wFMCommunicate request_size=255 [10:15:07]MH_SAM_APDU [10:15:07]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 4D 00 00 00 F4 03 04 00 AF CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 73 8D 6F 5A [10:15:07]Write to MH i2c: E2 02 01 93 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 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 4D 00 00 00 F4 03 04 00 AF CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 73 8D 6F 5A 00 00 EC [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 03 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 03 00 93 4D 00 90 00 54 [10:15:08]RAPDU: 90 00 [10:15:08]wFMCommunicate OK [10:15:08]wFMCommunicate request_size=7 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 0D 02 02 02 1D 6E [10:15:08]Write to MH i2c: E2 0A 00 94 4D 80 0D 02 02 02 00 1D 6E 00 00 EA [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 03 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 03 00 94 4D 00 90 00 55 [10:15:08]RAPDU: 90 00 [10:15:08]wFMCommunicate OK [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 0D 03 02 [10:15:08]Write to MH i2c: E2 08 00 95 4D 80 0D 03 02 00 00 00 00 5D [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 0B 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 0B 00 95 4D 00 1E 69 AC 1C F9 C6 8D FD 90 00 F6 [10:15:08]RAPDU: 1E 69 AC 1C F9 C6 8D FD 90 00 [10:15:08]wFMCommunicate OK [10:15:08]SAM_PROTO_SignData done [10:15:08]FM_MakeSignedData done [10:15:08]CreateOFDProtocolMessage [10:15:08]wFMCommunicate request_size=4 [10:15:08]MH_SAM_APDU [10:15:08]CAPDU: 80 11 00 00 [10:15:08]Write to MH i2c: E2 08 00 96 4D 80 11 00 00 00 00 00 00 5D [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:08]Read from MH i2c: E2 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 17 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: E2 17 00 96 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [10:15: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:15:08]wFMCommunicate OK [10:15:08]CreateOFDProtocolMessage done [10:15:08]OFDSenderStorePacket 70561 [10:15:08]StoreOFDPacket docnum=70561 [10:15: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 0C 01 00 00 39 64 04 01 F3 EB 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 4D 00 00 00 F4 03 04 00 AF CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 73 8D 6F 5A 1D 6E 1E 69 AC 1C F9 C6 8D FD [10:15:08]CheckFolder [10:15:08]dirname=/storage/ofd_packets [10:15:08]CheckFolder done [10:15:08]ProducePacketName [10:15:08]name=ofd_packets/00070561 [10:15:08]NVStorageSaveData ofd_packets/00070561 [10:15:08]File name is /storage/ofd_packets/00070561 [10:15:08]Write 298 bytes [10:15:08]NVStorageSaveData done [10:15:08]OFDSenderStorePacket done [10:15:08]KKMCreateOFDPacket done [10:15:08]NVStorageSaveData kkm_last_timestamp [10:15:08]File name is /storage/kkm_last_timestamp [10:15:08]Write 4 bytes [10:15:08]NVStorageSaveData done [10:15:08]ExternCall_PrintAddStr [10:15:08]wPrintStart [10:15:08]Write to MH i2c: 01 00 00 97 4D E4 [10:15:08]Write i2c OK [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: 01 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: 01 07 00 [10:15:08]MH_I2C_Read... [10:15:08]Read from MH i2c: 01 07 00 97 4D 00 00 00 00 00 FF 0F F9 [10:15:08]RasterBufferAndPrint [10:15:08]line Счет N : (1)2886330 [10:15:08]line ИНН: 02508201610067 [10:15:08]line Контрольно-Кассовый Чек [10:15:08]line ПРОДАЖА [10:15:08]line ТРК (МРК, ГНК) : 51 [10:15:08]line Товар: 2710194210 [10:15:08]line ДТ-К-5 [10:15:08]line 15.750 * 76.20 [10:15:08]line = 1200.15 [10:15:08]line НДС 12% НСП 1% [10:15:08]line > о реализуемом товаре [10:15:08]line ИТОГО: 1200.15 [10:15:08]line НСП 1% : 10.62 [10:15:08]line НДС 12% : 127.45 [10:15:08]line Наличными: 0.00 [10:15:08]line Безнал.: 1200.15 [10:15:08]line Место: АЗС № 85 "Партнер Нефть" [10:15:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:08]line СНО: Общий режим [10:15:08]line Чек 77 23.10.2024 10:15 [10:15:08]line Смена: 196 ФФД: 1.0 [10:15:08]line ЗНМ: 0300000167 [10:15:08]line РНМ: 0000000000156251 [10:15:08]line Версия ККМ: v1.0 [10:15:08]line Платежная система: Mbank [10:15:08]line ФМ: 0000000000963346 [10:15:08]line ФД: 70561 [10:15:08]line ФПД: 127051295759726 [10:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70561&fm=127051295759726&tin=02508201610067®Number=0000000000156251&sum=120015 [10:15:08]OFD Sender: Processing packet 70561 [packets to send 18, broken 17] [10:15:08]ProducePacketName [10:15:08]name=ofd_packets/00070561 [10:15:08]OFD Sender: To server: pG, [10:15:08]CommunicateWithHost lk.salyk.kg:30040 [10:15:08]ConnectInit lk.salyk.kg [10:15:08]written 0, free lines is 4095 [10:15:08]Connected sock=10 [10:15: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 0C 01 00 00 39 64 04 01 F3 EB 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 4D 00 00 00 F4 03 04 00 AF CC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 73 8D 6F 5A 1D 6E 1E 69 AC 1C F9 C6 8D FD [10:15: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 B8 AE 47 00 FE 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 A1 13 01 00 F4 03 04 00 4D 76 18 67 B6 04 01 00 00 CF 83 0E 8C 47 B7 62 81 [10:15:09]CommunicateWithHost err = 0 [10:15:09]CheckOFDResponse [10:15:09]1017 (14) - 77093643461234 [10:15:09]1041 (16) - 0000000000963346 [10:15:09]1040 (4) - 70561 [10:15:09]1012 (4) - 23.10.2024 04:06 [10:15:09]1206 (1) - 0 [10:15:09]OFD Sender: Remove packet 70561 [10:15:09]ProducePacketName [10:15:09]name=ofd_packets/00070561 [10:15:09]NVStorageDeleteData [10:15:09]Write to MH i2c: 01 00 00 C0 4D 0D [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 07 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: 01 07 00 C0 4D 00 00 00 00 00 03 0D 24 [10:15:09]RasterBufferAndPrint [10:15:09]line [10:15:09]line [10:15:09]line [10:15:09]line [10:15:09]line [10:15:09]written 0, free lines is 3337 [10:15:09]MH_Cut [10:15:09]Write to MH i2c: D1 01 00 C7 4D 01 E6 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: D1 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: D1 01 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: D1 01 00 C7 4D 00 E5 [10:15:09]Write to MH i2c: 01 00 00 C8 4D 15 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]OFD Sender: No OFD packet to send [10:15:09]*** Cut start [10:15:09]*** Partial cut [10:15:09]*** CUTSNS_PIN = 1 [10:15:09]*** CUTSNS_PIN = 0 [10:15:10]*** Brake cut motor [10:15:10]Read from MH i2c: 01 [10:15:10]MH_I2C_Read... [10:15:10]*** Stop cut motor [10:15:10]*** Cut end [10:15:10]Read from MH i2c: 01 07 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: 01 07 00 C8 4D 00 00 00 00 00 FF 0F 2A [10:15:10]process_action close_receipt done [10:15:10]requested_data is exist [10:15:10]produce_requested_data [10:15:10]requested_item fm.sn is exist - process it [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 11 00 00 [10:15:10]Write to MH i2c: E2 08 00 C9 4D 80 11 00 00 00 00 00 00 90 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 17 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 17 00 C9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [10:15:10]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:10]wFMCommunicate OK [10:15:10]requested_item fd.num is exist - process it [10:15:10]SAM_PROTO_GetFieldsCounters [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 13 00 00 [10:15:10]Write to MH i2c: E2 08 00 CA 4D 80 13 00 00 00 00 00 00 93 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 62 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 62 00 CA 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 A1 13 01 00 0E 04 04 00 C4 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 0E [10:15: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 A1 13 01 00 0E 04 04 00 C4 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 [10:15:10]wFMCommunicate OK [10:15:10]SAM_PROTO_GetFieldsCounters done [10:15:10]requested_item shift.num is exist - process it [10:15:10]requested_item shift.opened is exist - process it [10:15:10]req_shift_opened [10:15:10]FM_GetShiftState [10:15:10]SAM_PROTO_GetShiftState [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 13 01 00 [10:15:10]Write to MH i2c: E2 08 00 CB 4D 80 13 01 00 00 00 00 00 95 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 0E 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 0E 00 CB 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 22 [10:15:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:15:10]wFMCommunicate OK [10:15:10]SAM_PROTO_GetShiftState done [10:15:10]FM_GetShiftState done [10:15:10]req_shift_opened done [10:15:10]requested_item shift.open_date is exist - process it [10:15:10]req_shift_open_date [10:15:10]req_shift_open_date done [10:15:10]produce_requested_data done [10:15:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70561,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:15:10]process_action_free close_receipt [10:15:10]json_value_free [10:15:10]json_value_free done [10:15:10]process_json_proto returns [10:15:10]Send response to host [10:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70561,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:15:10]free response buf [10:15:10]execute_script done [10:15:10]execute_script returns [10:15:10]free content buf [10:15:10]Sock 7.Close socket [10:15:10]Sock 7.Thread stoped [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:33]accept exits with 9 [10:19:33]New connection [10:19:33]New thread 3066555748 created [10:19:33]Thread 3066699108 joined [10:19:33]Waiting for new connection... [10:19:33] Sock 9.Parse request [10:19:33]Sock 9.Check first char [10:19:33]Sock 9.First char is OK [10:19:33]request: POST /json_proto HTTP/1.0 [10:19:33]Method: POST [10:19:33]URL: /json_proto [10:19:33]Method is POST - this is cgi request [10:19:33]url: /json_proto [10:19:33]query_string will be loaded in cgi processing [10:19:33]execute_cgi json_proto POST (null) [10:19:33]execute_cgi path=json_proto method=POST [10:19:33]POST find Content-Length [10:19:33]Host: 172.17.50.3:8080 [10:19:33]Content-Length: 754 [10:19:33]Content-Type: application/json [10:19:33] [10:19:33]POST finish read [10:19:33]Found Content-Length = 754 [10:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886331", "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" ] } } [10:19:33]execute_script... [10: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)2886331", "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" ] } } [10:19:33]POST & json_proto [10:19:33]process_json_proto [10:19:33]json parsed OK: [10:19:33]protocol is kg_v1.0 [10:19:33]action value=close_receipt [10:19:33]process_action close_receipt [10:19:33]cmd_close_receipt [10:19:33]MH_GetDate [10:19:33]Write to MH i2c: F0 00 00 CC 4D 08 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: F0 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: F0 09 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: F0 09 00 CC 4D 00 B9 CD 18 67 6B 98 1E 66 9D [10:19:33]GetLastDocTimeStamp 1729678511 [10:19:33]current date 1729678777 [10:19:33]FM_GetShiftState [10:19:33]SAM_PROTO_GetShiftState [10:19:33]wFMCommunicate request_size=4 [10:19:33]MH_SAM_APDU [10:19:33]CAPDU: 80 13 01 00 [10:19:33]Write to MH i2c: E2 08 00 CD 4D 80 13 01 00 00 00 00 00 97 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:33]Read from MH i2c: E2 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: E2 0E 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: E2 0E 00 CD 4D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 24 [10:19:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:19:33]wFMCommunicate OK [10:19:33]SAM_PROTO_GetShiftState done [10:19:33]FM_GetShiftState done [10:19:33]opened in 1729642435 [10:19:33]opened+sec_in_day 1729728835 [10:19:33]quantity*price = 0 [10:19:33]sum+1 = 1 [10:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 78 23.10.2024 10:19 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70562 ФПД: 37926789596281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70562&fm=37926789596281&tin=02508201610067®Number=0000000000156251&sum=0 [10:19:34]StoreToDocumentArchive [10:19:34]shift 196 fd 70562 [10:19:34]save to /storage/0196/doc_00070562 [10:19:34]save last doc name /storage/0196/doc_00070562 to /storage/kkm_last_doc_name [10:19:34]save OK [10:19:34]Clear old archive folders... [10:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:34]tlvbuf is 00AE3EF0 [10:19:34]SAM_PROTO_ClearQueue [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 09 00 00 [10:19:34]Write to MH i2c: E2 08 00 DA 4D 80 09 00 00 00 00 00 00 99 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 DA 4D 00 90 00 9B [10:19:34]RAPDU: 90 00 [10:19:34]wFMCommunicate OK [10:19:34]SAM_PROTO_ClearQueue done [10:19:34]KKMCreateOFDPacket [10:19:34]OFDProtocolAddRootSTLVToBuf [10:19:34]FM_MakeSignedData [10:19:34]FM_MakeSignedData [10:19:34]SAM_PROTO_SignData [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 0D 01 02 [10:19:34]Write to MH i2c: E2 08 00 DB 4D 80 0D 01 02 00 00 00 00 A1 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 DB 4D 00 90 00 9C [10:19:34]RAPDU: 90 00 [10:19:34]wFMCommunicate OK [10:19:34]wFMCommunicate request_size=255 [10:19:34]MH_SAM_APDU [10: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 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 4E 00 00 00 F4 03 04 00 B9 CD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 [10:19:34]Write to MH i2c: E2 02 01 DC 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 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 4E 00 00 00 F4 03 04 00 B9 CD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 00 00 2F [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]OFD Sender: No OFD packet to send [10:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 DC 4D 00 90 00 9D [10:19:34]RAPDU: 90 00 [10:19:34]wFMCommunicate OK [10:19:34]wFMCommunicate request_size=10 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 0D 02 02 05 7E 84 D2 44 79 [10:19:34]Write to MH i2c: E2 0D 00 DD 4D 80 0D 02 02 05 00 7E 84 D2 44 79 00 00 3F [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 03 00 DD 4D 00 90 00 9E [10:19:34]RAPDU: 90 00 [10:19:34]wFMCommunicate OK [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 0D 03 02 [10:19:34]Write to MH i2c: E2 08 00 DE 4D 80 0D 03 02 00 00 00 00 A6 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0B 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0B 00 DE 4D 00 AB E6 72 F1 F0 D4 93 EB 90 00 DD [10:19:35]RAPDU: AB E6 72 F1 F0 D4 93 EB 90 00 [10:19:35]wFMCommunicate OK [10:19:35]SAM_PROTO_SignData done [10:19:35]FM_MakeSignedData done [10:19:35]CreateOFDProtocolMessage [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 11 00 00 [10:19:35]Write to MH i2c: E2 08 00 DF 4D 80 11 00 00 00 00 00 00 A6 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 DF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [10:19: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:19:35]wFMCommunicate OK [10:19:35]CreateOFDProtocolMessage done [10:19:35]OFDSenderStorePacket 70562 [10:19:35]StoreOFDPacket docnum=70562 [10:19: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 AD 18 07 01 DB 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 F4 03 04 00 B9 CD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 7E 84 D2 44 79 AB E6 72 F1 F0 D4 93 EB [10:19:35]CheckFolder [10:19:35]dirname=/storage/ofd_packets [10:19:35]CheckFolder done [10:19:35]ProducePacketName [10:19:35]name=ofd_packets/00070562 [10:19:35]NVStorageSaveData ofd_packets/00070562 [10:19:35]File name is /storage/ofd_packets/00070562 [10:19:35]Write 301 bytes [10:19:35]NVStorageSaveData done [10:19:35]OFDSenderStorePacket done [10:19:35]KKMCreateOFDPacket done [10:19:35]NVStorageSaveData kkm_last_timestamp [10:19:35]File name is /storage/kkm_last_timestamp [10:19:35]Write 4 bytes [10:19:35]NVStorageSaveData done [10:19:35]ExternCall_PrintAddStr [10:19:35]wPrintStart [10:19:35]Write to MH i2c: 01 00 00 E0 4D 2D [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 E0 4D 00 00 00 00 00 FF 0F 42 [10:19:35]RasterBufferAndPrint [10:19:35]line Счет N : (1)2886331 [10:19:35]line ИНН: 02508201610067 [10:19:35]line Контрольно-Кассовый Чек [10:19:35]line ПРОДАЖА [10:19:35]line ТРК (МРК, ГНК) : 22 [10:19:35]line Товар: 2710124130 [10:19:35]line Аи-92-К-5 [10:19:35]line 5.000 * 0.00 [10:19:35]line = 0.00 [10:19:35]line НДС 12% НСП 1% [10:19:35]line > о реализуемом товаре [10:19:35]line ИТОГО: 0.00 [10:19:35]line НСП 1% : 0.00 [10:19:35]line НДС 12% : 0.00 [10:19:35]line Наличными: 0.00 [10:19:35]line Безнал.: 0.00 [10:19:35]line Место: АЗС № 85 "Партнер Нефть" [10:19:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:19:35]line СНО: Общий режим [10:19:35]line Чек 78 23.10.2024 10:19 [10:19:35]line Смена: 196 ФФД: 1.0 [10:19:35]line ЗНМ: 0300000167 [10:19:35]line РНМ: 0000000000156251 [10:19:35]line Версия ККМ: v1.0 [10:19:35]line Талоны: ТК ГПНА Online [10:19:35]line 30100970 [10:19:35]line ФМ: 0000000000963346 [10:19:35]line ФД: 70562 [10:19:35]line ФПД: 37926789596281 [10:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70562&fm=37926789596281&tin=02508201610067®Number=0000000000156251&sum=0 [10:19:35]OFD Sender: Processing packet 70562 [packets to send 18, broken 17] [10:19:35]ProducePacketName [10:19:35]name=ofd_packets/00070562 [10:19:35]OFD Sender: To server: pG, [10:19:35]CommunicateWithHost lk.salyk.kg:30040 [10:19:35]ConnectInit lk.salyk.kg [10:19:35]written 0, free lines is 4095 [10:19:35]Connected sock=7 [10: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 AD 18 07 01 DB 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 F4 03 04 00 B9 CD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 7E 84 D2 44 79 AB E6 72 F1 F0 D4 93 EB [10: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 28 D6 47 00 88 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 A2 13 01 00 F4 03 04 00 57 77 18 67 B6 04 01 00 00 90 A0 B0 D1 86 0F F4 EA [10:19:35]CommunicateWithHost err = 0 [10:19:35]CheckOFDResponse [10:19:35]1017 (14) - 77093643461234 [10:19:35]1041 (16) - 0000000000963346 [10:19:35]1040 (4) - 70562 [10:19:35]1012 (4) - 23.10.2024 04:11 [10:19:35]1206 (1) - 0 [10:19:35]OFD Sender: Remove packet 70562 [10:19:35]ProducePacketName [10:19:35]name=ofd_packets/00070562 [10:19:35]NVStorageDeleteData [10:19:35]Write to MH i2c: 01 00 00 0A 4E 58 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 0A 4E 00 00 00 00 00 F9 0C 64 [10:19:35]RasterBufferAndPrint [10:19:35]line [10:19:35]line [10:19:35]line [10:19:35]line [10:19:35]line [10:19:35]written 0, free lines is 3330 [10:19:35]MH_Cut [10:19:35]Write to MH i2c: D1 01 00 11 4E 01 31 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: D1 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: D1 01 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: D1 01 00 11 4E 00 30 [10:19:35]Write to MH i2c: 01 00 00 12 4E 60 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:36]OFD Sender: No OFD packet to send [10:19:36]*** Cut start [10:19:36]*** Partial cut [10:19:36]*** CUTSNS_PIN = 1 [10:19:36]*** CUTSNS_PIN = 0 [10:19:36]*** Brake cut motor [10:19:37]Read from MH i2c: 01 [10:19:37]MH_I2C_Read... [10:19:37]*** Stop cut motor [10:19:37]*** Cut end [10:19:37]Read from MH i2c: 01 07 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: 01 07 00 12 4E 00 00 00 00 00 FF 0F 75 [10:19:37]process_action close_receipt done [10:19:37]requested_data is exist [10:19:37]produce_requested_data [10:19:37]requested_item fm.sn is exist - process it [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 11 00 00 [10:19:37]Write to MH i2c: E2 08 00 13 4E 80 11 00 00 00 00 00 00 DB [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 17 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 17 00 13 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [10:19: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:19:37]wFMCommunicate OK [10:19:37]requested_item fd.num is exist - process it [10:19:37]SAM_PROTO_GetFieldsCounters [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 13 00 00 [10:19:37]Write to MH i2c: E2 08 00 14 4E 80 13 00 00 00 00 00 00 DE [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 62 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 62 00 14 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 A2 13 01 00 0E 04 04 00 C4 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 5D [10: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 A2 13 01 00 0E 04 04 00 C4 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 [10:19:37]wFMCommunicate OK [10:19:37]SAM_PROTO_GetFieldsCounters done [10:19:37]requested_item shift.num is exist - process it [10:19:37]requested_item shift.opened is exist - process it [10:19:37]req_shift_opened [10:19:37]FM_GetShiftState [10:19:37]SAM_PROTO_GetShiftState [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 13 01 00 [10:19:37]Write to MH i2c: E2 08 00 15 4E 80 13 01 00 00 00 00 00 E0 [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 0E 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 0E 00 15 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6D [10:19:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:19:37]wFMCommunicate OK [10:19:37]SAM_PROTO_GetShiftState done [10:19:37]FM_GetShiftState done [10:19:37]req_shift_opened done [10:19:37]requested_item shift.open_date is exist - process it [10:19:37]req_shift_open_date [10:19:37]req_shift_open_date done [10:19:37]produce_requested_data done [10:19:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70562,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:19:37]process_action_free close_receipt [10:19:37]json_value_free [10:19:37]json_value_free done [10:19:37]process_json_proto returns [10:19:37]Send response to host [10:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70562,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:19:37]free response buf [10:19:37]execute_script done [10:19:37]execute_script returns [10:19:37]free content buf [10:19:37]Sock 9.Close socket [10:19:37]Sock 9.Thread stoped [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [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:20:59]accept exits with 10 [10:20:59]New connection [10:20:59]New thread 3066699108 created [10:20:59]Thread 3066555748 joined [10:20:59]Waiting for new connection... [10:20:59] Sock 10.Parse request [10:20:59]Sock 10.Check first char [10:20:59]Sock 10.First char is OK [10:20:59]request: POST /json_proto HTTP/1.0 [10:20:59]Method: POST [10:20:59]URL: /json_proto [10:20:59]Method is POST - this is cgi request [10:20:59]url: /json_proto [10:20:59]query_string will be loaded in cgi processing [10:20:59]execute_cgi json_proto POST (null) [10:20:59]execute_cgi path=json_proto method=POST [10:20:59]POST find Content-Length [10:20:59]Host: 172.17.50.3:8080 [10:20:59]Content-Length: 686 [10:20:59]Content-Type: application/json [10:20:59] [10:20:59]POST finish read [10:20:59]Found Content-Length = 686 [10:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886332", "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" ] } } [10:20:59]execute_script... [10:20: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)2886332", "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" ] } } [10:20:59]POST & json_proto [10:20:59]process_json_proto [10:20:59]json parsed OK: [10:20:59]protocol is kg_v1.0 [10:20:59]action value=close_receipt [10:20:59]process_action close_receipt [10:20:59]cmd_close_receipt [10:20:59]MH_GetDate [10:20:59]Write to MH i2c: F0 00 00 16 4E 53 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: F0 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: F0 09 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: F0 09 00 16 4E 00 0F CE 18 67 6B 98 1E 66 3F [10:20:59]GetLastDocTimeStamp 1729678777 [10:20:59]current date 1729678863 [10:20:59]FM_GetShiftState [10:20:59]SAM_PROTO_GetShiftState [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 13 01 00 [10:20:59]Write to MH i2c: E2 08 00 17 4E 80 13 01 00 00 00 00 00 E2 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 17 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6F [10:20:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:20:59]wFMCommunicate OK [10:20:59]SAM_PROTO_GetShiftState done [10:20:59]FM_GetShiftState done [10:20:59]opened in 1729642435 [10:20:59]opened+sec_in_day 1729728835 [10:20:59]quantity*price = 130003 [10:20:59]sum+1 = 130005 [10:20:59]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 СНО: Общий режим Чек 79 23.10.2024 10:21 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70563 ФПД: 167151231765144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70563&fm=167151231765144&tin=02508201610067®Number=0000000000156251&sum=130000 [10:21:00]StoreToDocumentArchive [10:21:00]shift 196 fd 70563 [10:21:00]save to /storage/0196/doc_00070563 [10:21:00]save last doc name /storage/0196/doc_00070563 to /storage/kkm_last_doc_name [10:21:00]save OK [10:21:00]Clear old archive folders... [10:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:21:00]tlvbuf is 00E20060 [10:21:00]SAM_PROTO_ClearQueue [10:21:00]wFMCommunicate request_size=4 [10:21:00]MH_SAM_APDU [10:21:00]CAPDU: 80 09 00 00 [10:21:00]Write to MH i2c: E2 08 00 24 4E 80 09 00 00 00 00 00 00 E4 [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:00]Read from MH i2c: E2 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 03 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 03 00 24 4E 00 90 00 E6 [10:21:00]RAPDU: 90 00 [10:21:00]wFMCommunicate OK [10:21:00]SAM_PROTO_ClearQueue done [10:21:00]KKMCreateOFDPacket [10:21:00]OFDProtocolAddRootSTLVToBuf [10:21:00]FM_MakeSignedData [10:21:00]FM_MakeSignedData [10:21:00]SAM_PROTO_SignData [10:21:00]wFMCommunicate request_size=4 [10:21:00]MH_SAM_APDU [10:21:00]CAPDU: 80 0D 01 02 [10:21:00]Write to MH i2c: E2 08 00 25 4E 80 0D 01 02 00 00 00 00 EC [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:00]Read from MH i2c: E2 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 03 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [10:21:00]RAPDU: 90 00 [10:21:00]wFMCommunicate OK [10:21:00]wFMCommunicate request_size=255 [10:21:00]MH_SAM_APDU [10:21: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 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 4F 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 05 [10:21:00]Write to MH i2c: E2 02 01 26 4E 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 4F 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 05 00 00 BD [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]wFMCommunicate request_size=9 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 0D 02 02 04 ED CB 0A 98 [10:21:01]Write to MH i2c: E2 0C 00 27 4E 80 0D 02 02 04 00 ED CB 0A 98 00 00 51 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 0D 03 02 [10:21:01]Write to MH i2c: E2 08 00 28 4E 80 0D 03 02 00 00 00 00 F1 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0B 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0B 00 28 4E 00 72 98 B5 77 65 51 42 F3 90 00 13 [10:21:01]RAPDU: 72 98 B5 77 65 51 42 F3 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_SignData done [10:21:01]FM_MakeSignedData done [10:21:01]CreateOFDProtocolMessage [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 11 00 00 [10:21:01]Write to MH i2c: E2 08 00 29 4E 80 11 00 00 00 00 00 00 F1 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 17 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 17 00 29 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [10:21: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:21:01]wFMCommunicate OK [10:21:01]CreateOFDProtocolMessage done [10:21:01]OFDSenderStorePacket 70563 [10:21:01]StoreOFDPacket docnum=70563 [10:21: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 B4 7D 06 01 09 D4 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 4F 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 05 ED CB 0A 98 72 98 B5 77 65 51 42 F3 [10:21:01]CheckFolder [10:21:01]dirname=/storage/ofd_packets [10:21:01]CheckFolder done [10:21:01]ProducePacketName [10:21:01]name=ofd_packets/00070563 [10:21:01]NVStorageSaveData ofd_packets/00070563 [10:21:01]File name is /storage/ofd_packets/00070563 [10:21:01]Write 300 bytes [10:21:01]NVStorageSaveData done [10:21:01]OFDSenderStorePacket done [10:21:01]KKMCreateOFDPacket done [10:21:01]NVStorageSaveData kkm_last_timestamp [10:21:01]File name is /storage/kkm_last_timestamp [10:21:01]Write 4 bytes [10:21:01]NVStorageSaveData done [10:21:01]ExternCall_PrintAddStr [10:21:01]wPrintStart [10:21:01]Write to MH i2c: 01 00 00 2A 4E 78 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 2A 4E 00 00 00 00 00 FF 0F 8D [10:21:01]RasterBufferAndPrint [10:21:01]line Счет N : (1)2886332 [10:21:01]line ИНН: 02508201610067 [10:21:01]line Контрольно-Кассовый Чек [10:21:01]line ПРОДАЖА [10:21:01]line ТРК (МРК, ГНК) : 71 [10:21:01]line Товар: 2711129700 [10:21:01]line ГАЗ-К-3 [10:21:01]line 33.420 * 38.90 [10:21:01]line = 1300.04 [10:21:01]line НДС 12% НСП 1% [10:21:01]line > о реализуемом товаре [10:21:01]line ОКРУГЛЕНИЕ: -0.04 [10:21:01]line ИТОГО: 1300.00 [10:21:01]line Внесено: 1300.00 [10:21:01]line СДАЧА: 0.00 [10:21:01]line НСП 1% : 11.50 [10:21:01]line НДС 12% : 138.06 [10:21:01]line Наличными: 1300.00 [10:21:01]line Безнал.: 0.00 [10:21:01]line Место: АЗС № 85 "Партнер Нефть" [10:21:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:21:01]line СНО: Общий режим [10:21:01]line Чек 79 23.10.2024 10:21 [10:21:01]line Смена: 196 ФФД: 1.0 [10:21:01]line ЗНМ: 0300000167 [10:21:01]line РНМ: 0000000000156251 [10:21:01]line Версия ККМ: v1.0 [10:21:01]line ФМ: 0000000000963346 [10:21:01]line ФД: 70563 [10:21:01]line ФПД: 167151231765144 [10:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70563&fm=167151231765144&tin=02508201610067®Number=0000000000156251&sum=130000 [10:21:01]OFD Sender: Processing packet 70563 [packets to send 18, broken 17] [10:21:01]ProducePacketName [10:21:01]name=ofd_packets/00070563 [10:21:01]OFD Sender: To server: pG, [10:21:01]CommunicateWithHost lk.salyk.kg:30040 [10:21:01]ConnectInit lk.salyk.kg [10:21:01]written 0, free lines is 4095 [10:21:01]Connected sock=9 [10:21: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 B4 7D 06 01 09 D4 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 4F 00 00 00 F4 03 04 00 0F CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 05 ED CB 0A 98 72 98 B5 77 65 51 42 F3 [10:21: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 78 13 47 00 C7 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 A3 13 01 00 F4 03 04 00 AD 77 18 67 B6 04 01 00 00 88 FC 93 3A 77 96 4B 4B [10:21:01]CommunicateWithHost err = 0 [10:21:01]CheckOFDResponse [10:21:01]1017 (14) - 77093643461234 [10:21:01]1041 (16) - 0000000000963346 [10:21:01]1040 (4) - 70563 [10:21:01]1012 (4) - 23.10.2024 04:12 [10:21:01]1206 (1) - 0 [10:21:01]OFD Sender: Remove packet 70563 [10:21:01]ProducePacketName [10:21:01]name=ofd_packets/00070563 [10:21:01]NVStorageDeleteData [10:21:01]Write to MH i2c: 01 00 00 55 4E A3 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 55 4E 00 00 00 00 00 E4 0C 9A [10:21:01]RasterBufferAndPrint [10:21:01]line [10:21:01]line [10:21:01]line [10:21:01]line [10:21:01]line [10:21:01]written 0, free lines is 3309 [10:21:01]MH_Cut [10:21:01]Write to MH i2c: D1 01 00 5C 4E 01 7C [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: D1 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: D1 01 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: D1 01 00 5C 4E 00 7B [10:21:01]Write to MH i2c: 01 00 00 5D 4E AB [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:02]OFD Sender: No OFD packet to send [10:21:02]*** Cut start [10:21:02]*** Partial cut [10:21:02]*** CUTSNS_PIN = 1 [10:21:02]*** CUTSNS_PIN = 0 [10:21:02]*** Brake cut motor [10:21:03]Read from MH i2c: 01 [10:21:03]MH_I2C_Read... [10:21:03]*** Stop cut motor [10:21:03]*** Cut end [10:21:03]Read from MH i2c: 01 07 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: 01 07 00 5D 4E 00 00 00 00 00 FF 0F C0 [10:21:03]process_action close_receipt done [10:21:03]requested_data is exist [10:21:03]produce_requested_data [10:21:03]requested_item fm.sn is exist - process it [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 11 00 00 [10:21:03]Write to MH i2c: E2 08 00 5E 4E 80 11 00 00 00 00 00 00 26 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 17 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 17 00 5E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [10: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 [10:21:03]wFMCommunicate OK [10:21:03]requested_item fd.num is exist - process it [10:21:03]SAM_PROTO_GetFieldsCounters [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 13 00 00 [10:21:03]Write to MH i2c: E2 08 00 5F 4E 80 13 00 00 00 00 00 00 29 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 62 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 62 00 5F 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 A3 13 01 00 0E 04 04 00 C4 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 AC [10:21: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 A3 13 01 00 0E 04 04 00 C4 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 [10:21:03]wFMCommunicate OK [10:21:03]SAM_PROTO_GetFieldsCounters done [10:21:03]requested_item shift.num is exist - process it [10:21:03]requested_item shift.opened is exist - process it [10:21:03]req_shift_opened [10:21:03]FM_GetShiftState [10:21:03]SAM_PROTO_GetShiftState [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 13 01 00 [10:21:03]Write to MH i2c: E2 08 00 60 4E 80 13 01 00 00 00 00 00 2B [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:03]Read from MH i2c: E2 0E 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 0E 00 60 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B8 [10:21:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:21:03]wFMCommunicate OK [10:21:03]SAM_PROTO_GetShiftState done [10:21:03]FM_GetShiftState done [10:21:03]req_shift_opened done [10:21:03]requested_item shift.open_date is exist - process it [10:21:03]req_shift_open_date [10:21:03]req_shift_open_date done [10:21:03]produce_requested_data done [10:21:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70563,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:21:03]process_action_free close_receipt [10:21:03]json_value_free [10:21:03]json_value_free done [10:21:03]process_json_proto returns [10:21:03]Send response to host [10:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70563,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:21:03]free response buf [10:21:03]execute_script done [10:21:03]execute_script returns [10:21:03]free content buf [10:21:03]Sock 10.Close socket [10:21:03]Sock 10.Thread stoped [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:35]accept exits with 7 [10:21:35]New connection [10:21:35]New thread 3066555748 created [10:21:35]Thread 3066699108 joined [10:21:35]Waiting for new connection... [10:21:35] Sock 7.Parse request [10:21:35]Sock 7.Check first char [10:21:35]Sock 7.First char is OK [10:21:35]request: POST /json_proto HTTP/1.0 [10:21:35]Method: POST [10:21:35]URL: /json_proto [10:21:35]Method is POST - this is cgi request [10:21:35]url: /json_proto [10:21:35]query_string will be loaded in cgi processing [10:21:35]execute_cgi json_proto POST (null) [10:21:35]execute_cgi path=json_proto method=POST [10:21:35]POST find Content-Length [10:21:35]Host: 172.17.50.3:8080 [10:21:35]Content-Length: 678 [10:21:35]Content-Type: application/json [10:21:35] [10:21:35]POST finish read [10:21:35]Found Content-Length = 678 [10:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886333", "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" ] } } [10:21:35]execute_script... [10:21: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)2886333", "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" ] } } [10:21:35]POST & json_proto [10:21:35]process_json_proto [10:21:35]json parsed OK: [10:21:35]protocol is kg_v1.0 [10:21:35]action value=close_receipt [10:21:35]process_action close_receipt [10:21:35]cmd_close_receipt [10:21:35]MH_GetDate [10:21:35]Write to MH i2c: F0 00 00 61 4E 9E [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: F0 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: F0 09 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: F0 09 00 61 4E 00 33 CE 18 67 6B 98 1E 66 AE [10:21:35]GetLastDocTimeStamp 1729678863 [10:21:35]current date 1729678899 [10:21:35]FM_GetShiftState [10:21:35]SAM_PROTO_GetShiftState [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 13 01 00 [10:21:35]Write to MH i2c: E2 08 00 62 4E 80 13 01 00 00 00 00 00 2D [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 62 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BA [10:21:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_GetShiftState done [10:21:35]FM_GetShiftState done [10:21:35]opened in 1729642435 [10:21:35]opened+sec_in_day 1729728835 [10:21:35]quantity*price = 50041 [10:21:35]sum+1 = 50042 [10:21:35]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 СНО: Общий режим Чек 80 23.10.2024 10:21 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70564 ФПД: 37806234573817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102139&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70564&fm=37806234573817&tin=02508201610067®Number=0000000000156251&sum=50000 [10:21:36]StoreToDocumentArchive [10:21:36]shift 196 fd 70564 [10:21:36]save to /storage/0196/doc_00070564 [10:21:36]save last doc name /storage/0196/doc_00070564 to /storage/kkm_last_doc_name [10:21:36]save OK [10:21:36]Clear old archive folders... [10:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:36]tlvbuf is 00EA56E0 [10:21:36]SAM_PROTO_ClearQueue [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 09 00 00 [10:21:36]Write to MH i2c: E2 08 00 6F 4E 80 09 00 00 00 00 00 00 2F [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 6F 4E 00 90 00 31 [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]SAM_PROTO_ClearQueue done [10:21:36]KKMCreateOFDPacket [10:21:36]OFDProtocolAddRootSTLVToBuf [10:21:36]FM_MakeSignedData [10:21:36]FM_MakeSignedData [10:21:36]SAM_PROTO_SignData [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 01 02 [10:21:36]Write to MH i2c: E2 08 00 70 4E 80 0D 01 02 00 00 00 00 37 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 70 4E 00 90 00 32 [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]wFMCommunicate request_size=255 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 33 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 [10:21:36]Write to MH i2c: E2 02 01 71 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 33 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 00 00 2E [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 71 4E 00 90 00 33 [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]wFMCommunicate request_size=10 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 02 02 05 62 73 2E 9B F9 [10:21:36]Write to MH i2c: E2 0D 00 72 4E 80 0D 02 02 05 00 62 73 2E 9B F9 00 00 DB [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 03 00 72 4E 00 90 00 34 [10:21:36]RAPDU: 90 00 [10:21:36]wFMCommunicate OK [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 0D 03 02 [10:21:36]Write to MH i2c: E2 08 00 73 4E 80 0D 03 02 00 00 00 00 3C [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0B 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0B 00 73 4E 00 8F 1D C9 4F B4 32 4A 7A 90 00 AB [10:21:37]RAPDU: 8F 1D C9 4F B4 32 4A 7A 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_SignData done [10:21:37]FM_MakeSignedData done [10:21:37]CreateOFDProtocolMessage [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 11 00 00 [10:21:37]Write to MH i2c: E2 08 00 74 4E 80 11 00 00 00 00 00 00 3C [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 74 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [10:21: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:21:37]wFMCommunicate OK [10:21:37]CreateOFDProtocolMessage done [10:21:37]OFDSenderStorePacket 70564 [10:21:37]StoreOFDPacket docnum=70564 [10:21: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 30 79 07 01 ED 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 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 50 00 00 00 F4 03 04 00 33 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 62 73 2E 9B F9 8F 1D C9 4F B4 32 4A 7A [10:21:37]CheckFolder [10:21:37]dirname=/storage/ofd_packets [10:21:37]CheckFolder done [10:21:37]ProducePacketName [10:21:37]name=ofd_packets/00070564 [10:21:37]NVStorageSaveData ofd_packets/00070564 [10:21:37]File name is /storage/ofd_packets/00070564 [10:21:37]Write 301 bytes [10:21:37]NVStorageSaveData done [10:21:37]OFDSenderStorePacket done [10:21:37]KKMCreateOFDPacket done [10:21:37]NVStorageSaveData kkm_last_timestamp [10:21:37]File name is /storage/kkm_last_timestamp [10:21:37]Write 4 bytes [10:21:37]NVStorageSaveData done [10:21:37]ExternCall_PrintAddStr [10:21:37]wPrintStart [10:21:37]Write to MH i2c: 01 00 00 75 4E C3 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 75 4E 00 00 00 00 00 FF 0F D8 [10:21:37]RasterBufferAndPrint [10:21:37]line Счет N : (1)2886333 [10:21:37]line ИНН: 02508201610067 [10:21:37]line Контрольно-Кассовый Чек [10:21:37]line ПРОДАЖА [10:21:37]line ТРК (МРК, ГНК) : 12 [10:21:37]line Товар: 2710124130 [10:21:37]line Аи-92-К-5 [10:21:37]line 7.480 * 66.90 [10:21:37]line = 500.41 [10:21:37]line НДС 12% НСП 1% [10:21:37]line > о реализуемом товаре [10:21:37]line ОКРУГЛЕНИЕ: -0.41 [10:21:37]line ИТОГО: 500.00 [10:21:37]line Внесено: 500.00 [10:21:37]line СДАЧА: 0.00 [10:21:37]line НСП 1% : 4.43 [10:21:37]line НДС 12% : 53.14 [10:21:37]line Наличными: 500.00 [10:21:37]line Безнал.: 0.00 [10:21:37]line Место: АЗС № 85 "Партнер Нефть" [10:21:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:21:37]line СНО: Общий режим [10:21:37]line Чек 80 23.10.2024 10:21 [10:21:37]line Смена: 196 ФФД: 1.0 [10:21:37]line ЗНМ: 0300000167 [10:21:37]line РНМ: 0000000000156251 [10:21:37]line Версия ККМ: v1.0 [10:21:37]line ФМ: 0000000000963346 [10:21:37]line ФД: 70564 [10:21:37]line ФПД: 37806234573817 [10:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102139&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70564&fm=37806234573817&tin=02508201610067®Number=0000000000156251&sum=50000 [10:21:37]OFD Sender: Processing packet 70564 [packets to send 18, broken 17] [10:21:37]ProducePacketName [10:21:37]name=ofd_packets/00070564 [10:21:37]OFD Sender: To server: pG, [10:21:37]CommunicateWithHost lk.salyk.kg:30040 [10:21:37]ConnectInit lk.salyk.kg [10:21:37]written 0, free lines is 4095 [10:21:37]Connected sock=10 [10:21: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 30 79 07 01 ED 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 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 50 00 00 00 F4 03 04 00 33 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 62 73 2E 9B F9 8F 1D C9 4F B4 32 4A 7A [10:21: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 65 97 47 00 EB 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 A4 13 01 00 F4 03 04 00 D1 77 18 67 B6 04 01 00 00 55 E0 81 D7 FE FF 15 F8 [10:21:37]CommunicateWithHost err = 0 [10:21:37]CheckOFDResponse [10:21:37]1017 (14) - 77093643461234 [10:21:37]1041 (16) - 0000000000963346 [10:21:37]1040 (4) - 70564 [10:21:37]1012 (4) - 23.10.2024 04:13 [10:21:37]1206 (1) - 0 [10:21:37]OFD Sender: Remove packet 70564 [10:21:37]ProducePacketName [10:21:37]name=ofd_packets/00070564 [10:21:37]NVStorageDeleteData [10:21:37]Write to MH i2c: 01 00 00 A0 4E EE [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 A0 4E 00 00 00 00 00 DD 0C DE [10:21:37]RasterBufferAndPrint [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]line [10:21:37]written 0, free lines is 3302 [10:21:37]MH_Cut [10:21:37]Write to MH i2c: D1 01 00 A7 4E 01 C7 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 01 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: D1 01 00 A7 4E 00 C6 [10:21:37]Write to MH i2c: 01 00 00 A8 4E F6 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:38]OFD Sender: No OFD packet to send [10:21:38]*** Cut start [10:21:38]*** Partial cut [10:21:38]*** CUTSNS_PIN = 1 [10:21:38]*** CUTSNS_PIN = 0 [10:21:38]*** Brake cut motor [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]*** Stop cut motor [10:21:39]*** Cut end [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 A8 4E 00 00 00 00 00 FF 0F 0B [10:21:39]process_action close_receipt done [10:21:39]requested_data is exist [10:21:39]produce_requested_data [10:21:39]requested_item fm.sn is exist - process it [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 11 00 00 [10:21:39]Write to MH i2c: E2 08 00 A9 4E 80 11 00 00 00 00 00 00 71 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 17 00 A9 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C3 [10:21: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:21:39]wFMCommunicate OK [10:21:39]requested_item fd.num is exist - process it [10:21:39]SAM_PROTO_GetFieldsCounters [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 13 00 00 [10:21:39]Write to MH i2c: E2 08 00 AA 4E 80 13 00 00 00 00 00 00 74 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 62 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 62 00 AA 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 A4 13 01 00 0E 04 04 00 C4 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 FB [10:21: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 A4 13 01 00 0E 04 04 00 C4 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 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_GetFieldsCounters done [10:21:39]requested_item shift.num is exist - process it [10:21:39]requested_item shift.opened is exist - process it [10:21:39]req_shift_opened [10:21:39]FM_GetShiftState [10:21:39]SAM_PROTO_GetShiftState [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 13 01 00 [10:21:39]Write to MH i2c: E2 08 00 AB 4E 80 13 01 00 00 00 00 00 76 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0E 00 AB 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 03 [10:21:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_GetShiftState done [10:21:39]FM_GetShiftState done [10:21:39]req_shift_opened done [10:21:39]requested_item shift.open_date is exist - process it [10:21:39]req_shift_open_date [10:21:39]req_shift_open_date done [10:21:39]produce_requested_data done [10:21:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70564,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:21:39]process_action_free close_receipt [10:21:39]json_value_free [10:21:39]json_value_free done [10:21:39]process_json_proto returns [10:21:39]Send response to host [10:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70564,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:21:39]free response buf [10:21:39]execute_script done [10:21:39]execute_script returns [10:21:39]free content buf [10:21:39]Sock 7.Close socket [10:21:39]Sock 7.Thread stoped [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:57]accept exits with 9 [10:22:57]New connection [10:22:57]New thread 3066699108 created [10:22:57]Thread 3066555748 joined [10:22:57]Waiting for new connection... [10:22:57] Sock 9.Parse request [10:22:57]Sock 9.Check first char [10:22:57]Sock 9.First char is OK [10:22:57]request: POST /json_proto HTTP/1.0 [10:22:57]Method: POST [10:22:57]URL: /json_proto [10:22:57]Method is POST - this is cgi request [10:22:57]url: /json_proto [10:22:57]query_string will be loaded in cgi processing [10:22:57]execute_cgi json_proto POST (null) [10:22:57]execute_cgi path=json_proto method=POST [10:22:57]POST find Content-Length [10:22:57]Host: 172.17.50.3:8080 [10:22:57]Content-Length: 679 [10:22:57]Content-Type: application/json [10:22:57] [10:22:57]POST finish read [10:22:57]Found Content-Length = 679 [10:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886334", "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" : 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" ] } } [10:22:57]execute_script... [10: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)2886334", "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" : 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" ] } } [10:22:57]POST & json_proto [10:22:57]process_json_proto [10:22:57]json parsed OK: [10:22:57]protocol is kg_v1.0 [10:22:57]action value=close_receipt [10:22:57]process_action close_receipt [10:22:57]cmd_close_receipt [10:22:57]MH_GetDate [10:22:57]Write to MH i2c: F0 00 00 AC 4E E9 [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: F0 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: F0 09 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: F0 09 00 AC 4E 00 85 CE 18 67 6B 98 1E 66 4B [10:22:57]GetLastDocTimeStamp 1729678899 [10:22:57]current date 1729678981 [10:22:57]FM_GetShiftState [10:22:57]SAM_PROTO_GetShiftState [10:22:57]wFMCommunicate request_size=4 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 13 01 00 [10:22:57]Write to MH i2c: E2 08 00 AD 4E 80 13 01 00 00 00 00 00 78 [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 0E 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 0E 00 AD 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 05 [10:22:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:22:57]wFMCommunicate OK [10:22:57]SAM_PROTO_GetShiftState done [10:22:57]FM_GetShiftState done [10:22:57]opened in 1729642435 [10:22:57]opened+sec_in_day 1729728835 [10:22:57]quantity*price = 80012 [10:22:57]sum+1 = 80013 [10:22:57]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 СНО: Общий режим Чек 81 23.10.2024 10:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70565 ФПД: 192945704284588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70565&fm=192945704284588&tin=02508201610067®Number=0000000000156251&sum=80000 [10:22:58]StoreToDocumentArchive [10:22:58]shift 196 fd 70565 [10:22:58]save to /storage/0196/doc_00070565 [10:22:58]save last doc name /storage/0196/doc_00070565 to /storage/kkm_last_doc_name [10:22:58]save OK [10:22:58]Clear old archive folders... [10:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:58]tlvbuf is 00C24890 [10:22:58]SAM_PROTO_ClearQueue [10:22:58]wFMCommunicate request_size=4 [10:22:58]MH_SAM_APDU [10:22:58]CAPDU: 80 09 00 00 [10:22:58]Write to MH i2c: E2 08 00 BA 4E 80 09 00 00 00 00 00 00 7A [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:58]Read from MH i2c: E2 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 03 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 03 00 BA 4E 00 90 00 7C [10:22:58]RAPDU: 90 00 [10:22:58]wFMCommunicate OK [10:22:58]SAM_PROTO_ClearQueue done [10:22:58]KKMCreateOFDPacket [10:22:58]OFDProtocolAddRootSTLVToBuf [10:22:58]FM_MakeSignedData [10:22:58]FM_MakeSignedData [10:22:58]SAM_PROTO_SignData [10:22:58]wFMCommunicate request_size=4 [10:22:58]MH_SAM_APDU [10:22:58]CAPDU: 80 0D 01 02 [10:22:58]Write to MH i2c: E2 08 00 BB 4E 80 0D 01 02 00 00 00 00 82 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:58]Read from MH i2c: E2 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 03 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 03 00 BB 4E 00 90 00 7D [10:22:58]RAPDU: 90 00 [10:22:58]wFMCommunicate OK [10:22:58]wFMCommunicate request_size=255 [10:22:58]MH_SAM_APDU [10:22: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 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 51 00 00 00 F4 03 04 00 85 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF [10:22:58]Write to MH i2c: E2 02 01 BC 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 85 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF 00 00 46 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 BC 4E 00 90 00 7E [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]wFMCommunicate request_size=10 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 02 02 05 7B AC 2A 31 AC [10:22:59]Write to MH i2c: E2 0D 00 BD 4E 80 0D 02 02 05 00 7B AC 2A 31 AC 00 00 BD [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 BD 4E 00 90 00 7F [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 03 02 [10:22:59]Write to MH i2c: E2 08 00 BE 4E 80 0D 03 02 00 00 00 00 87 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 0B 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 0B 00 BE 4E 00 B3 C0 8A D3 97 68 C2 E5 90 00 FE [10:22:59]RAPDU: B3 C0 8A D3 97 68 C2 E5 90 00 [10:22:59]wFMCommunicate OK [10:22:59]SAM_PROTO_SignData done [10:22:59]FM_MakeSignedData done [10:22:59]CreateOFDProtocolMessage [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 11 00 00 [10:22:59]Write to MH i2c: E2 08 00 BF 4E 80 11 00 00 00 00 00 00 87 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 17 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 17 00 BF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D9 [10: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 [10:22:59]wFMCommunicate OK [10:22:59]CreateOFDProtocolMessage done [10:22:59]OFDSenderStorePacket 70565 [10:22:59]StoreOFDPacket docnum=70565 [10: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 0F 01 00 00 60 D6 07 01 B5 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 85 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF 7B AC 2A 31 AC B3 C0 8A D3 97 68 C2 E5 [10:22:59]CheckFolder [10:22:59]dirname=/storage/ofd_packets [10:22:59]CheckFolder done [10:22:59]ProducePacketName [10:22:59]name=ofd_packets/00070565 [10:22:59]NVStorageSaveData ofd_packets/00070565 [10:22:59]File name is /storage/ofd_packets/00070565 [10:22:59]Write 301 bytes [10:22:59]NVStorageSaveData done [10:22:59]OFDSenderStorePacket done [10:22:59]KKMCreateOFDPacket done [10:22:59]NVStorageSaveData kkm_last_timestamp [10:22:59]File name is /storage/kkm_last_timestamp [10:22:59]Write 4 bytes [10:22:59]NVStorageSaveData done [10:22:59]ExternCall_PrintAddStr [10:22:59]wPrintStart [10:22:59]Write to MH i2c: 01 00 00 C0 4E 0E [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 07 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 07 00 C0 4E 00 00 00 00 00 FF 0F 23 [10:22:59]RasterBufferAndPrint [10:22:59]line Счет N : (1)2886334 [10:22:59]line ИНН: 02508201610067 [10:22:59]line Контрольно-Кассовый Чек [10:22:59]line ПРОДАЖА [10:22:59]line ТРК (МРК, ГНК) : 22 [10:22:59]line Товар: 2710124130 [10:22:59]line Аи-92-К-5 [10:22:59]line 11.960 * 66.90 [10:22:59]line = 800.12 [10:22:59]line НДС 12% НСП 1% [10:22:59]line > о реализуемом товаре [10:22:59]line ОКРУГЛЕНИЕ: -0.12 [10:22:59]line ИТОГО: 800.00 [10:22:59]line Внесено: 800.00 [10:22:59]line СДАЧА: 0.00 [10:22:59]line НСП 1% : 7.08 [10:22:59]line НДС 12% : 84.97 [10:22:59]line Наличными: 800.00 [10:22:59]line Безнал.: 0.00 [10:22:59]line Место: АЗС № 85 "Партнер Нефть" [10:22:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:22:59]line СНО: Общий режим [10:22:59]line Чек 81 23.10.2024 10:23 [10:22:59]line Смена: 196 ФФД: 1.0 [10:22:59]line ЗНМ: 0300000167 [10:22:59]line РНМ: 0000000000156251 [10:22:59]line Версия ККМ: v1.0 [10:22:59]line ФМ: 0000000000963346 [10:22:59]line ФД: 70565 [10:22:59]line ФПД: 192945704284588 [10:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70565&fm=192945704284588&tin=02508201610067®Number=0000000000156251&sum=80000 [10:22:59]OFD Sender: Processing packet 70565 [packets to send 18, broken 17] [10:22:59]ProducePacketName [10:22:59]name=ofd_packets/00070565 [10:22:59]OFD Sender: To server: pG, [10:22:59]CommunicateWithHost lk.salyk.kg:30040 [10:22:59]ConnectInit lk.salyk.kg [10:22:59]written 0, free lines is 4095 [10:22:59]Connected sock=10 [10: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 0F 01 00 00 60 D6 07 01 B5 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 85 CE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF 7B AC 2A 31 AC B3 C0 8A D3 97 68 C2 E5 [10:22: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 C2 50 47 00 4B 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 A5 13 01 00 F4 03 04 00 23 78 18 67 B6 04 01 00 00 28 E5 D3 FC 16 1A FC 44 [10:22:59]CommunicateWithHost err = 0 [10:22:59]CheckOFDResponse [10:22:59]1017 (14) - 77093643461234 [10:22:59]1041 (16) - 0000000000963346 [10:22:59]1040 (4) - 70565 [10:22:59]1012 (4) - 23.10.2024 04:14 [10:22:59]1206 (1) - 0 [10:22:59]OFD Sender: Remove packet 70565 [10:22:59]ProducePacketName [10:22:59]name=ofd_packets/00070565 [10:22:59]NVStorageDeleteData [10:22:59]Write to MH i2c: 01 00 00 EB 4E 39 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 07 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 07 00 EB 4E 00 00 00 00 00 EF 0C 3B [10:22:59]RasterBufferAndPrint [10:22:59]line [10:22:59]line [10:22:59]line [10:22:59]line [10:22:59]line [10:22:59]written 0, free lines is 3317 [10:23:00]MH_Cut [10:23:00]Write to MH i2c: D1 01 00 F2 4E 01 12 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 01 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 01 00 F2 4E 00 11 [10:23:00]Write to MH i2c: 01 00 00 F3 4E 41 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]OFD Sender: No OFD packet to send [10:23:00]*** Cut start [10:23:00]*** Partial cut [10:23:00]*** CUTSNS_PIN = 1 [10:23:00]*** CUTSNS_PIN = 0 [10:23:00]*** Brake cut motor [10:23:01]Read from MH i2c: 01 [10:23:01]MH_I2C_Read... [10:23:01]*** Stop cut motor [10:23:01]*** Cut end [10:23:01]Read from MH i2c: 01 07 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 07 00 F3 4E 00 00 00 00 00 FF 0F 56 [10:23:01]process_action close_receipt done [10:23:01]requested_data is exist [10:23:01]produce_requested_data [10:23:01]requested_item fm.sn is exist - process it [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 11 00 00 [10:23:01]Write to MH i2c: E2 08 00 F4 4E 80 11 00 00 00 00 00 00 BC [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 17 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 17 00 F4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [10: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 [10:23:01]wFMCommunicate OK [10:23:01]requested_item fd.num is exist - process it [10:23:01]SAM_PROTO_GetFieldsCounters [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 13 00 00 [10:23:01]Write to MH i2c: E2 08 00 F5 4E 80 13 00 00 00 00 00 00 BF [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 62 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 62 00 F5 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 A5 13 01 00 0E 04 04 00 C4 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 4A [10: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 A5 13 01 00 0E 04 04 00 C4 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 [10:23:01]wFMCommunicate OK [10:23:01]SAM_PROTO_GetFieldsCounters done [10:23:01]requested_item shift.num is exist - process it [10:23:01]requested_item shift.opened is exist - process it [10:23:01]req_shift_opened [10:23:01]FM_GetShiftState [10:23:01]SAM_PROTO_GetShiftState [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 13 01 00 [10:23:01]Write to MH i2c: E2 08 00 F6 4E 80 13 01 00 00 00 00 00 C1 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:01]Read from MH i2c: E2 0E 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 0E 00 F6 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4E [10:23:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:23:01]wFMCommunicate OK [10:23:01]SAM_PROTO_GetShiftState done [10:23:01]FM_GetShiftState done [10:23:01]req_shift_opened done [10:23:01]requested_item shift.open_date is exist - process it [10:23:01]req_shift_open_date [10:23:01]req_shift_open_date done [10:23:01]produce_requested_data done [10:23:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70565,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:23:01]process_action_free close_receipt [10:23:01]json_value_free [10:23:01]json_value_free done [10:23:01]process_json_proto returns [10:23:01]Send response to host [10:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70565,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:23:01]free response buf [10:23:01]execute_script done [10:23:01]execute_script returns [10:23:01]free content buf [10:23:01]Sock 9.Close socket [10:23:01]Sock 9.Thread stoped [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:18]accept exits with 7 [10:26:18]New connection [10:26:18]New thread 3066555748 created [10:26:18]Thread 3066699108 joined [10:26:18]Waiting for new connection... [10:26:18] Sock 7.Parse request [10:26:18]Sock 7.Check first char [10:26:18]Sock 7.First char is OK [10:26:18]request: POST /json_proto HTTP/1.0 [10:26:18]Method: POST [10:26:18]URL: /json_proto [10:26:18]Method is POST - this is cgi request [10:26:18]url: /json_proto [10:26:18]query_string will be loaded in cgi processing [10:26:18]execute_cgi json_proto POST (null) [10:26:18]execute_cgi path=json_proto method=POST [10:26:18]POST find Content-Length [10:26:18]Host: 172.17.50.3:8080 [10:26:18]Content-Length: 755 [10:26:18]Content-Type: application/json [10:26:18] [10:26:18]POST finish read [10:26:18]Found Content-Length = 755 [10:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886336", "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\u000A30057386", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]execute_script... [10:26: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)2886336", "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\u000A30057386", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:18]POST & json_proto [10:26:18]process_json_proto [10:26:18]json parsed OK: [10:26:18]protocol is kg_v1.0 [10:26:18]action value=close_receipt [10:26:18]process_action close_receipt [10:26:18]cmd_close_receipt [10:26:18]MH_GetDate [10:26:18]Write to MH i2c: F0 00 00 F7 4E 34 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: F0 09 00 F7 4E 00 4E CF 18 67 6B 98 1E 66 60 [10:26:18]GetLastDocTimeStamp 1729678981 [10:26:18]current date 1729679182 [10:26:18]FM_GetShiftState [10:26:18]SAM_PROTO_GetShiftState [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 13 01 00 [10:26:18]Write to MH i2c: E2 08 00 F8 4E 80 13 01 00 00 00 00 00 C3 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 F8 4E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 50 [10:26:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetShiftState done [10:26:18]FM_GetShiftState done [10:26:18]opened in 1729642435 [10:26:18]opened+sec_in_day 1729728835 [10:26:18]quantity*price = 0 [10:26:18]sum+1 = 1 [10:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 82 23.10.2024 10:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30057386 ФМ: 0000000000963346 ФД: 70566 ФПД: 131403298331331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70566&fm=131403298331331&tin=02508201610067®Number=0000000000156251&sum=0 [10:26:19]StoreToDocumentArchive [10:26:19]shift 196 fd 70566 [10:26:19]save to /storage/0196/doc_00070566 [10:26:19]save last doc name /storage/0196/doc_00070566 to /storage/kkm_last_doc_name [10:26:19]save OK [10:26:19]Clear old archive folders... [10:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:19]tlvbuf is 00E89F60 [10:26:19]SAM_PROTO_ClearQueue [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 09 00 00 [10:26:19]Write to MH i2c: E2 08 00 05 4F 80 09 00 00 00 00 00 00 C6 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 05 4F 00 90 00 C8 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_ClearQueue done [10:26:19]KKMCreateOFDPacket [10:26:19]OFDProtocolAddRootSTLVToBuf [10:26:19]FM_MakeSignedData [10:26:19]FM_MakeSignedData [10:26:19]SAM_PROTO_SignData [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 01 02 [10:26:19]Write to MH i2c: E2 08 00 06 4F 80 0D 01 02 00 00 00 00 CE [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 06 4F 00 90 00 C9 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=255 [10:26:19]MH_SAM_APDU [10:26: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 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 52 00 00 00 F4 03 04 00 4E CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 77 [10:26:19]Write to MH i2c: E2 02 01 07 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 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 52 00 00 00 F4 03 04 00 4E CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 77 00 00 23 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 07 4F 00 90 00 CA [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=10 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 05 82 B6 EB 5A C3 [10:26:19]Write to MH i2c: E2 0D 00 08 4F 80 0D 02 02 05 00 82 B6 EB 5A C3 00 00 1B [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 08 4F 00 90 00 CB [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 03 02 [10:26:19]Write to MH i2c: E2 08 00 09 4F 80 0D 03 02 00 00 00 00 D3 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 09 4F 00 39 FD C1 60 46 B0 DC E3 90 00 E0 [10:26:19]RAPDU: 39 FD C1 60 46 B0 DC E3 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_SignData done [10:26:19]FM_MakeSignedData done [10:26:19]CreateOFDProtocolMessage [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 11 00 00 [10:26:19]Write to MH i2c: E2 08 00 0A 4F 80 11 00 00 00 00 00 00 D3 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 0A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [10:26: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:26:19]wFMCommunicate OK [10:26:19]CreateOFDProtocolMessage done [10:26:19]OFDSenderStorePacket 70566 [10:26:19]StoreOFDPacket docnum=70566 [10:26: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 FD 12 07 01 DB 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 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 52 00 00 00 F4 03 04 00 4E CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 77 82 B6 EB 5A C3 39 FD C1 60 46 B0 DC E3 [10:26:19]CheckFolder [10:26:19]dirname=/storage/ofd_packets [10:26:19]CheckFolder done [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00070566 [10:26:19]NVStorageSaveData ofd_packets/00070566 [10:26:19]File name is /storage/ofd_packets/00070566 [10:26:19]Write 301 bytes [10:26:19]NVStorageSaveData done [10:26:19]OFDSenderStorePacket done [10:26:19]KKMCreateOFDPacket done [10:26:19]NVStorageSaveData kkm_last_timestamp [10:26:19]File name is /storage/kkm_last_timestamp [10:26:19]Write 4 bytes [10:26:19]NVStorageSaveData done [10:26:19]ExternCall_PrintAddStr [10:26:19]wPrintStart [10:26:19]Write to MH i2c: 01 00 00 0B 4F 5A [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 0B 4F 00 00 00 00 00 FF 0F 6F [10:26:19]RasterBufferAndPrint [10:26:19]line Счет N : (1)2886336 [10:26:19]line ИНН: 02508201610067 [10:26:19]line Контрольно-Кассовый Чек [10:26:19]line ПРОДАЖА [10:26:19]line ТРК (МРК, ГНК) : 32 [10:26:19]line Товар: 2710124130 [10:26:19]line Аи-92-К-5 [10:26:19]line 20.000 * 0.00 [10:26:19]line = 0.00 [10:26:19]line НДС 12% НСП 1% [10:26:19]line > о реализуемом товаре [10:26:19]line ИТОГО: 0.00 [10:26:19]line НСП 1% : 0.00 [10:26:19]line НДС 12% : 0.00 [10:26:19]line Наличными: 0.00 [10:26:19]line Безнал.: 0.00 [10:26:19]line Место: АЗС № 85 "Партнер Нефть" [10:26:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:26:19]line СНО: Общий режим [10:26:19]line Чек 82 23.10.2024 10:26 [10:26:19]line Смена: 196 ФФД: 1.0 [10:26:19]line ЗНМ: 0300000167 [10:26:19]line РНМ: 0000000000156251 [10:26:19]line Версия ККМ: v1.0 [10:26:19]line Талоны: ТК ГПНА Online [10:26:19]line 30057386 [10:26:19]line ФМ: 0000000000963346 [10:26:19]line ФД: 70566 [10:26:19]line ФПД: 131403298331331 [10:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70566&fm=131403298331331&tin=02508201610067®Number=0000000000156251&sum=0 [10:26:20]OFD Sender: Processing packet 70566 [packets to send 18, broken 17] [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00070566 [10:26:20]OFD Sender: To server: pG, [10:26:20]CommunicateWithHost lk.salyk.kg:30040 [10:26:20]ConnectInit lk.salyk.kg [10:26:20]written 0, free lines is 4095 [10:26:20]Connected sock=10 [10:26: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 FD 12 07 01 DB 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 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 52 00 00 00 F4 03 04 00 4E CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 77 82 B6 EB 5A C3 39 FD C1 60 46 B0 DC E3 [10: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 3D 60 47 00 52 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 A6 13 01 00 F4 03 04 00 EC 78 18 67 B6 04 01 00 00 AA 57 1A 53 34 79 16 2E [10:26:20]CommunicateWithHost err = 0 [10:26:20]CheckOFDResponse [10:26:20]1017 (14) - 77093643461234 [10:26:20]1041 (16) - 0000000000963346 [10:26:20]1040 (4) - 70566 [10:26:20]1012 (4) - 23.10.2024 04:17 [10:26:20]1206 (1) - 0 [10:26:20]OFD Sender: Remove packet 70566 [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00070566 [10:26:20]NVStorageDeleteData [10:26:20]Write to MH i2c: 01 00 00 35 4F 84 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 35 4F 00 00 00 00 00 04 0D 9C [10:26:20]RasterBufferAndPrint [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]written 0, free lines is 3339 [10:26:20]MH_Cut [10:26:20]Write to MH i2c: D1 01 00 3C 4F 01 5D [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 3C 4F 00 5C [10:26:20]Write to MH i2c: 01 00 00 3D 4F 8C [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]OFD Sender: No OFD packet to send [10:26:21]*** Cut start [10:26:21]*** Partial cut [10:26:21]*** CUTSNS_PIN = 1 [10:26:21]*** CUTSNS_PIN = 0 [10:26:21]*** Brake cut motor [10:26:21]Read from MH i2c: 01 [10:26:21]MH_I2C_Read... [10:26:21]*** Stop cut motor [10:26:21]*** Cut end [10:26:21]Read from MH i2c: 01 07 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 3D 4F 00 00 00 00 00 FF 0F A1 [10:26:21]process_action close_receipt done [10:26:21]requested_data is exist [10:26:21]produce_requested_data [10:26:21]requested_item fm.sn is exist - process it [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 11 00 00 [10:26:21]Write to MH i2c: E2 08 00 3E 4F 80 11 00 00 00 00 00 00 07 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 3E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [10:26: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:26:21]wFMCommunicate OK [10:26:21]requested_item fd.num is exist - process it [10:26:21]SAM_PROTO_GetFieldsCounters [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 13 00 00 [10:26:21]Write to MH i2c: E2 08 00 3F 4F 80 13 00 00 00 00 00 00 0A [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 62 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 62 00 3F 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 A6 13 01 00 0E 04 04 00 C4 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 99 [10:26: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 A6 13 01 00 0E 04 04 00 C4 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 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_GetFieldsCounters done [10:26:21]requested_item shift.num is exist - process it [10:26:21]requested_item shift.opened is exist - process it [10:26:21]req_shift_opened [10:26:21]FM_GetShiftState [10:26:21]SAM_PROTO_GetShiftState [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 13 01 00 [10:26:21]Write to MH i2c: E2 08 00 40 4F 80 13 01 00 00 00 00 00 0C [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0E 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0E 00 40 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 99 [10:26:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_GetShiftState done [10:26:22]FM_GetShiftState done [10:26:22]req_shift_opened done [10:26:22]requested_item shift.open_date is exist - process it [10:26:22]req_shift_open_date [10:26:22]req_shift_open_date done [10:26:22]produce_requested_data done [10:26:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70566,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:26:22]process_action_free close_receipt [10:26:22]json_value_free [10:26:22]json_value_free done [10:26:22]process_json_proto returns [10:26:22]Send response to host [10:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70566,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:26:22]free response buf [10:26:22]execute_script done [10:26:22]execute_script returns [10:26:22]free content buf [10:26:22]Sock 7.Close socket [10:26:22]Sock 7.Thread stoped [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:43]accept exits with 9 [10:27:43]New connection [10:27:43]New thread 3066699108 created [10:27:43]Thread 3066555748 joined [10:27:43]Waiting for new connection... [10:27:43] Sock 9.Parse request [10:27:43]Sock 9.Check first char [10:27:43]Sock 9.First char is OK [10:27:43]request: POST /json_proto HTTP/1.0 [10:27:43]Method: POST [10:27:43]URL: /json_proto [10:27:43]Method is POST - this is cgi request [10:27:43]url: /json_proto [10:27:43]query_string will be loaded in cgi processing [10:27:43]execute_cgi json_proto POST (null) [10:27:43]execute_cgi path=json_proto method=POST [10:27:43]POST find Content-Length [10:27:43]Host: 172.17.50.3:8080 [10:27:43]Content-Length: 683 [10:27:43]Content-Type: application/json [10:27:43] [10:27:43]POST finish read [10:27:43]Found Content-Length = 683 [10:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886337", "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" ] } } [10:27:43]execute_script... [10:27: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)2886337", "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" ] } } [10:27:43]POST & json_proto [10:27:43]process_json_proto [10:27:43]json parsed OK: [10:27:43]protocol is kg_v1.0 [10:27:43]action value=close_receipt [10:27:43]process_action close_receipt [10:27:43]cmd_close_receipt [10:27:43]MH_GetDate [10:27:43]Write to MH i2c: F0 00 00 41 4F 7F [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 41 4F 00 A3 CF 18 67 6B 98 1E 66 00 [10:27:43]GetLastDocTimeStamp 1729679182 [10:27:43]current date 1729679267 [10:27:43]FM_GetShiftState [10:27:43]SAM_PROTO_GetShiftState [10:27:43]wFMCommunicate request_size=4 [10:27:43]MH_SAM_APDU [10:27:43]CAPDU: 80 13 01 00 [10:27:43]Write to MH i2c: E2 08 00 42 4F 80 13 01 00 00 00 00 00 0E [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:43]Read from MH i2c: E2 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 42 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9B [10:27:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:27:43]wFMCommunicate OK [10:27:43]SAM_PROTO_GetShiftState done [10:27:43]FM_GetShiftState done [10:27:43]opened in 1729642435 [10:27:43]opened+sec_in_day 1729728835 [10:27:43]quantity*price = 100021 [10:27:43]sum+1 = 100023 [10:27:43]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 СНО: Общий режим Чек 83 23.10.2024 10:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70567 ФПД: 96048900294810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70567&fm=96048900294810&tin=02508201610067®Number=0000000000156251&sum=100000 [10:27:44]StoreToDocumentArchive [10:27:44]shift 196 fd 70567 [10:27:44]save to /storage/0196/doc_00070567 [10:27:44]save last doc name /storage/0196/doc_00070567 to /storage/kkm_last_doc_name [10:27:44]save OK [10:27:44]Clear old archive folders... [10:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:44]tlvbuf is 00E8A0E0 [10:27:44]SAM_PROTO_ClearQueue [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 09 00 00 [10:27:44]Write to MH i2c: E2 08 00 4F 4F 80 09 00 00 00 00 00 00 10 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 4F 4F 00 90 00 12 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_ClearQueue done [10:27:44]KKMCreateOFDPacket [10:27:44]OFDProtocolAddRootSTLVToBuf [10:27:44]FM_MakeSignedData [10:27:44]FM_MakeSignedData [10:27:44]SAM_PROTO_SignData [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 01 02 [10:27:44]Write to MH i2c: E2 08 00 50 4F 80 0D 01 02 00 00 00 00 18 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 50 4F 00 90 00 13 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=255 [10:27:44]MH_SAM_APDU [10:27: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 53 00 00 00 F4 03 04 00 A3 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 [10:27:44]Write to MH i2c: E2 02 01 51 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 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 53 00 00 00 F4 03 04 00 A3 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 00 00 D8 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 51 4F 00 90 00 14 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=10 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 02 02 05 5B 20 95 48 9A [10:27:44]Write to MH i2c: E2 0D 00 52 4F 80 0D 02 02 05 00 5B 20 95 48 9A 00 00 17 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 52 4F 00 90 00 15 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 03 02 [10:27:44]Write to MH i2c: E2 08 00 53 4F 80 0D 03 02 00 00 00 00 1D [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0B 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0B 00 53 4F 00 58 B3 08 27 A6 35 21 F3 90 00 47 [10:27:44]RAPDU: 58 B3 08 27 A6 35 21 F3 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_SignData done [10:27:44]FM_MakeSignedData done [10:27:44]CreateOFDProtocolMessage [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 11 00 00 [10:27:44]Write to MH i2c: E2 08 00 54 4F 80 11 00 00 00 00 00 00 1D [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 54 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [10: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 [10:27:44]wFMCommunicate OK [10:27:44]CreateOFDProtocolMessage done [10:27:44]OFDSenderStorePacket 70567 [10:27:44]StoreOFDPacket docnum=70567 [10: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 0F 01 00 00 FA 64 07 01 33 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 A3 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 5B 20 95 48 9A 58 B3 08 27 A6 35 21 F3 [10:27:44]CheckFolder [10:27:44]dirname=/storage/ofd_packets [10:27:44]CheckFolder done [10:27:44]ProducePacketName [10:27:44]name=ofd_packets/00070567 [10:27:44]NVStorageSaveData ofd_packets/00070567 [10:27:44]File name is /storage/ofd_packets/00070567 [10:27:44]Write 301 bytes [10:27:44]NVStorageSaveData done [10:27:44]OFDSenderStorePacket done [10:27:44]KKMCreateOFDPacket done [10:27:44]NVStorageSaveData kkm_last_timestamp [10:27:44]File name is /storage/kkm_last_timestamp [10:27:44]Write 4 bytes [10:27:44]NVStorageSaveData done [10:27:44]ExternCall_PrintAddStr [10:27:44]wPrintStart [10:27:44]Write to MH i2c: 01 00 00 55 4F A4 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 07 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 07 00 55 4F 00 00 00 00 00 FF 0F B9 [10:27:44]RasterBufferAndPrint [10:27:44]line Счет N : (1)2886337 [10:27:44]line ИНН: 02508201610067 [10:27:44]line Контрольно-Кассовый Чек [10:27:44]line ПРОДАЖА [10:27:44]line ТРК (МРК, ГНК) : 13 [10:27:44]line Товар: 2710124500 [10:27:44]line Аи-95-К-5 [10:27:44]line 13.480 * 74.20 [10:27:44]line = 1000.22 [10:27:44]line НДС 12% НСП 1% [10:27:44]line > о реализуемом товаре [10:27:44]line ОКРУГЛЕНИЕ: -0.22 [10:27:44]line ИТОГО: 1000.00 [10:27:44]line Внесено: 1000.00 [10:27:44]line СДАЧА: 0.00 [10:27:44]line НСП 1% : 8.85 [10:27:44]line НДС 12% : 106.22 [10:27:44]line Наличными: 1000.00 [10:27:44]line Безнал.: 0.00 [10:27:44]line Место: АЗС № 85 "Партнер Нефть" [10:27:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:27:44]line СНО: Общий режим [10:27:44]line Чек 83 23.10.2024 10:27 [10:27:44]line Смена: 196 ФФД: 1.0 [10:27:44]line ЗНМ: 0300000167 [10:27:44]line РНМ: 0000000000156251 [10:27:44]line Версия ККМ: v1.0 [10:27:44]line ФМ: 0000000000963346 [10:27:44]line ФД: 70567 [10:27:44]line ФПД: 96048900294810 [10:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70567&fm=96048900294810&tin=02508201610067®Number=0000000000156251&sum=100000 [10:27:45]OFD Sender: Processing packet 70567 [packets to send 18, broken 17] [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00070567 [10:27:45]OFD Sender: To server: pG, [10:27:45]CommunicateWithHost lk.salyk.kg:30040 [10:27:45]ConnectInit lk.salyk.kg [10:27:45]written 0, free lines is 4095 [10:27:45]Connected sock=10 [10:27: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 FA 64 07 01 33 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 A3 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 57 5B 20 95 48 9A 58 B3 08 27 A6 35 21 F3 [10:27: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 98 47 47 00 A8 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 A7 13 01 00 F4 03 04 00 41 79 18 67 B6 04 01 00 00 D0 64 64 51 A7 84 71 80 [10:27:45]CommunicateWithHost err = 0 [10:27:45]CheckOFDResponse [10:27:45]1017 (14) - 77093643461234 [10:27:45]1041 (16) - 0000000000963346 [10:27:45]1040 (4) - 70567 [10:27:45]1012 (4) - 23.10.2024 04:19 [10:27:45]1206 (1) - 0 [10:27:45]OFD Sender: Remove packet 70567 [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00070567 [10:27:45]NVStorageDeleteData [10:27:45]Write to MH i2c: 01 00 00 80 4F CF [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 80 4F 00 00 00 00 00 E3 0C C5 [10:27:45]RasterBufferAndPrint [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]written 0, free lines is 3305 [10:27:45]MH_Cut [10:27:45]Write to MH i2c: D1 01 00 87 4F 01 A8 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 01 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 01 00 87 4F 00 A7 [10:27:45]Write to MH i2c: 01 00 00 88 4F D7 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:46]OFD Sender: No OFD packet to send [10:27:46]*** Cut start [10:27:46]*** Partial cut [10:27:46]*** CUTSNS_PIN = 1 [10:27:46]*** CUTSNS_PIN = 0 [10:27:46]*** Brake cut motor [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]*** Stop cut motor [10:27:47]*** Cut end [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 88 4F 00 00 00 00 00 FF 0F EC [10:27:47]process_action close_receipt done [10:27:47]requested_data is exist [10:27:47]produce_requested_data [10:27:47]requested_item fm.sn is exist - process it [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 11 00 00 [10:27:47]Write to MH i2c: E2 08 00 89 4F 80 11 00 00 00 00 00 00 52 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 89 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [10:27: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:27:47]wFMCommunicate OK [10:27:47]requested_item fd.num is exist - process it [10:27:47]SAM_PROTO_GetFieldsCounters [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 13 00 00 [10:27:47]Write to MH i2c: E2 08 00 8A 4F 80 13 00 00 00 00 00 00 55 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 62 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 62 00 8A 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 A7 13 01 00 0E 04 04 00 C4 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 E8 [10:27: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 A7 13 01 00 0E 04 04 00 C4 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 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_GetFieldsCounters done [10:27:47]requested_item shift.num is exist - process it [10:27:47]requested_item shift.opened is exist - process it [10:27:47]req_shift_opened [10:27:47]FM_GetShiftState [10:27:47]SAM_PROTO_GetShiftState [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 13 01 00 [10:27:47]Write to MH i2c: E2 08 00 8B 4F 80 13 01 00 00 00 00 00 57 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:47]Read from MH i2c: E2 0E 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0E 00 8B 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E4 [10:27:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_GetShiftState done [10:27:47]FM_GetShiftState done [10:27:47]req_shift_opened done [10:27:47]requested_item shift.open_date is exist - process it [10:27:47]req_shift_open_date [10:27:47]req_shift_open_date done [10:27:47]produce_requested_data done [10:27:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70567,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:27:47]process_action_free close_receipt [10:27:47]json_value_free [10:27:47]json_value_free done [10:27:47]process_json_proto returns [10:27:47]Send response to host [10:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70567,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:27:47]free response buf [10:27:47]execute_script done [10:27:47]execute_script returns [10:27:47]free content buf [10:27:47]Sock 9.Close socket [10:27:47]Sock 9.Thread stoped [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:08]accept exits with 7 [10:29:08]New connection [10:29:08]New thread 3066555748 created [10:29:08]Thread 3066699108 joined [10:29:08]Waiting for new connection... [10:29:08] Sock 7.Parse request [10:29:08]Sock 7.Check first char [10:29:08]Sock 7.First char is OK [10:29:08]request: POST /json_proto HTTP/1.0 [10:29:08]Method: POST [10:29:08]URL: /json_proto [10:29:08]Method is POST - this is cgi request [10:29:08]url: /json_proto [10:29:08]query_string will be loaded in cgi processing [10:29:08]execute_cgi json_proto POST (null) [10:29:08]execute_cgi path=json_proto method=POST [10:29:08]POST find Content-Length [10:29:08]Host: 172.17.50.3:8080 [10:29:08]Content-Length: 686 [10:29:08]Content-Type: application/json [10:29:08] [10:29:08]POST finish read [10:29:08]Found Content-Length = 686 [10:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886338", "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:29:08]execute_script... [10:29: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)2886338", "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:29:08]POST & json_proto [10:29:08]process_json_proto [10:29:08]json parsed OK: [10:29:08]protocol is kg_v1.0 [10:29:08]action value=close_receipt [10:29:08]process_action close_receipt [10:29:08]cmd_close_receipt [10:29:08]MH_GetDate [10:29:08]Write to MH i2c: F0 00 00 8C 4F CA [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 09 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 09 00 8C 4F 00 F9 CF 18 67 6B 98 1E 66 A1 [10:29:08]GetLastDocTimeStamp 1729679267 [10:29:08]current date 1729679353 [10:29:08]FM_GetShiftState [10:29:08]SAM_PROTO_GetShiftState [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 13 01 00 [10:29:08]Write to MH i2c: E2 08 00 8D 4F 80 13 01 00 00 00 00 00 59 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 8D 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E6 [10:29:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]opened in 1729642435 [10:29:09]opened+sec_in_day 1729728835 [10:29:09]quantity*price = 100011 [10:29:09]sum+1 = 100013 [10:29:09]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 23.10.2024 10:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70568 ФПД: 49937302635775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70568&fm=49937302635775&tin=02508201610067®Number=0000000000156251&sum=100000 [10:29:10]StoreToDocumentArchive [10:29:10]shift 196 fd 70568 [10:29:10]save to /storage/0196/doc_00070568 [10:29:10]save last doc name /storage/0196/doc_00070568 to /storage/kkm_last_doc_name [10:29:10]save OK [10:29:10]Clear old archive folders... [10:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:29:10]tlvbuf is 00ED46B0 [10:29:10]SAM_PROTO_ClearQueue [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 09 00 00 [10:29:10]Write to MH i2c: E2 08 00 9A 4F 80 09 00 00 00 00 00 00 5B [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9A 4F 00 90 00 5D [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_ClearQueue done [10:29:10]KKMCreateOFDPacket [10:29:10]OFDProtocolAddRootSTLVToBuf [10:29:10]FM_MakeSignedData [10:29:10]FM_MakeSignedData [10:29:10]SAM_PROTO_SignData [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 01 02 [10:29:10]Write to MH i2c: E2 08 00 9B 4F 80 0D 01 02 00 00 00 00 63 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9B 4F 00 90 00 5E [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=255 [10:29:10]MH_SAM_APDU [10:29:10]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 F9 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2D 6A [10:29:10]Write to MH i2c: E2 02 01 9C 4F 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 F9 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2D 6A 00 00 79 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9C 4F 00 90 00 5F [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=9 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 02 02 04 EF 2F 44 FF [10:29:10]Write to MH i2c: E2 0C 00 9D 4F 80 0D 02 02 04 00 EF 2F 44 FF 00 00 CF [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 9D 4F 00 90 00 60 [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 03 02 [10:29:10]Write to MH i2c: E2 08 00 9E 4F 80 0D 03 02 00 00 00 00 68 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 9E 4F 00 57 28 F5 B0 ED E1 20 89 90 00 04 [10:29:10]RAPDU: 57 28 F5 B0 ED E1 20 89 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_SignData done [10:29:10]FM_MakeSignedData done [10:29:10]CreateOFDProtocolMessage [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 11 00 00 [10:29:10]Write to MH i2c: E2 08 00 9F 4F 80 11 00 00 00 00 00 00 68 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 9F 4F 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:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:29:10]wFMCommunicate OK [10:29:10]CreateOFDProtocolMessage done [10:29:10]OFDSenderStorePacket 70568 [10:29:10]StoreOFDPacket docnum=70568 [10:29: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 D7 FF 06 01 5E 46 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 F9 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2D 6A EF 2F 44 FF 57 28 F5 B0 ED E1 20 89 [10:29:10]CheckFolder [10:29:10]dirname=/storage/ofd_packets [10:29:10]CheckFolder done [10:29:10]ProducePacketName [10:29:10]name=ofd_packets/00070568 [10:29:10]NVStorageSaveData ofd_packets/00070568 [10:29:10]File name is /storage/ofd_packets/00070568 [10:29:10]Write 300 bytes [10:29:10]NVStorageSaveData done [10:29:10]OFDSenderStorePacket done [10:29:10]KKMCreateOFDPacket done [10:29:10]NVStorageSaveData kkm_last_timestamp [10:29:10]File name is /storage/kkm_last_timestamp [10:29:10]Write 4 bytes [10:29:10]NVStorageSaveData done [10:29:10]ExternCall_PrintAddStr [10:29:10]wPrintStart [10:29:10]Write to MH i2c: 01 00 00 A0 4F EF [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 A0 4F 00 00 00 00 00 FF 0F 04 [10:29:10]RasterBufferAndPrint [10:29:10]line Счет N : (1)2886338 [10:29:10]line ИНН: 02508201610067 [10:29:10]line Контрольно-Кассовый Чек [10:29:10]line ПРОДАЖА [10:29:10]line ТРК (МРК, ГНК) : 71 [10:29:10]line Товар: 2711129700 [10:29:10]line ГАЗ-К-3 [10:29:10]line 25.710 * 38.90 [10:29:10]line = 1000.12 [10:29:10]line НДС 12% НСП 1% [10:29:10]line > о реализуемом товаре [10:29:10]line ОКРУГЛЕНИЕ: -0.12 [10:29:10]line ИТОГО: 1000.00 [10:29:10]line Внесено: 1000.00 [10:29:10]line СДАЧА: 0.00 [10:29:10]line НСП 1% : 8.85 [10:29:10]line НДС 12% : 106.21 [10:29:10]line Наличными: 1000.00 [10:29:10]line Безнал.: 0.00 [10:29:10]line Место: АЗС № 85 "Партнер Нефть" [10:29:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:29:10]line СНО: Общий режим [10:29:10]line Чек 84 23.10.2024 10:29 [10:29:10]line Смена: 196 ФФД: 1.0 [10:29:10]line ЗНМ: 0300000167 [10:29:10]line РНМ: 0000000000156251 [10:29:10]line Версия ККМ: v1.0 [10:29:10]line ФМ: 0000000000963346 [10:29:10]line ФД: 70568 [10:29:10]line ФПД: 49937302635775 [10:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70568&fm=49937302635775&tin=02508201610067®Number=0000000000156251&sum=100000 [10:29:10]OFD Sender: Processing packet 70568 [packets to send 18, broken 17] [10:29:10]ProducePacketName [10:29:10]name=ofd_packets/00070568 [10:29:10]OFD Sender: To server: pG, [10:29:10]CommunicateWithHost lk.salyk.kg:30040 [10:29:10]ConnectInit lk.salyk.kg [10:29:10]written 0, free lines is 4095 [10:29:11]Connected sock=10 [10:29: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 0E 01 00 00 D7 FF 06 01 5E 46 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 F9 CF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 2D 6A EF 2F 44 FF 57 28 F5 B0 ED E1 20 89 [10:29: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 55 B9 47 00 07 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 A8 13 01 00 F4 03 04 00 97 79 18 67 B6 04 01 00 00 C2 A9 33 A2 86 0D 97 DD [10:29:11]CommunicateWithHost err = 0 [10:29:11]CheckOFDResponse [10:29:11]1017 (14) - 77093643461234 [10:29:11]1041 (16) - 0000000000963346 [10:29:11]1040 (4) - 70568 [10:29:11]1012 (4) - 23.10.2024 04:20 [10:29:11]1206 (1) - 0 [10:29:11]OFD Sender: Remove packet 70568 [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00070568 [10:29:11]NVStorageDeleteData [10:29:11]Write to MH i2c: 01 00 00 CB 4F 1A [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 CB 4F 00 00 00 00 00 EE 0C 1B [10:29:11]RasterBufferAndPrint [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]written 0, free lines is 3316 [10:29:11]MH_Cut [10:29:11]Write to MH i2c: D1 01 00 D2 4F 01 F3 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 D2 4F 00 F2 [10:29:11]Write to MH i2c: 01 00 00 D3 4F 22 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]OFD Sender: No OFD packet to send [10:29:12]*** Cut start [10:29:12]*** Partial cut [10:29:12]*** CUTSNS_PIN = 1 [10:29:12]*** CUTSNS_PIN = 0 [10:29:12]*** Brake cut motor [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]*** Stop cut motor [10:29:12]*** Cut end [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 D3 4F 00 00 00 00 00 FF 0F 37 [10:29:12]process_action close_receipt done [10:29:12]requested_data is exist [10:29:12]produce_requested_data [10:29:12]requested_item fm.sn is exist - process it [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 11 00 00 [10:29:12]Write to MH i2c: E2 08 00 D4 4F 80 11 00 00 00 00 00 00 9D [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 D4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [10:29: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:29:12]wFMCommunicate OK [10:29:12]requested_item fd.num is exist - process it [10:29:12]SAM_PROTO_GetFieldsCounters [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 13 00 00 [10:29:12]Write to MH i2c: E2 08 00 D5 4F 80 13 00 00 00 00 00 00 A0 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 62 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 62 00 D5 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 A8 13 01 00 0E 04 04 00 C4 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 37 [10:29: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 A8 13 01 00 0E 04 04 00 C4 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 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_GetFieldsCounters done [10:29:12]requested_item shift.num is exist - process it [10:29:12]requested_item shift.opened is exist - process it [10:29:12]req_shift_opened [10:29:12]FM_GetShiftState [10:29:12]SAM_PROTO_GetShiftState [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 13 01 00 [10:29:12]Write to MH i2c: E2 08 00 D6 4F 80 13 01 00 00 00 00 00 A2 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0E 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0E 00 D6 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2F [10:29:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_GetShiftState done [10:29:12]FM_GetShiftState done [10:29:12]req_shift_opened done [10:29:12]requested_item shift.open_date is exist - process it [10:29:12]req_shift_open_date [10:29:12]req_shift_open_date done [10:29:12]produce_requested_data done [10:29:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70568,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:29:12]process_action_free close_receipt [10:29:12]json_value_free [10:29:12]json_value_free done [10:29:12]process_json_proto returns [10:29:12]Send response to host [10:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70568,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:29:12]free response buf [10:29:12]execute_script done [10:29:12]execute_script returns [10:29:12]free content buf [10:29:12]Sock 7.Close socket [10:29:12]Sock 7.Thread stoped [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:42]accept exits with 9 [10:29:42]New connection [10:29:42]New thread 3066699108 created [10:29:42]Thread 3066555748 joined [10:29:42]Waiting for new connection... [10:29:42] Sock 9.Parse request [10:29:42]Sock 9.Check first char [10:29:42]Sock 9.First char is OK [10:29:42]request: POST /json_proto HTTP/1.0 [10:29:42]Method: POST [10:29:42]URL: /json_proto [10:29:42]Method is POST - this is cgi request [10:29:42]url: /json_proto [10:29:42]query_string will be loaded in cgi processing [10:29:42]execute_cgi json_proto POST (null) [10:29:42]execute_cgi path=json_proto method=POST [10:29:42]POST find Content-Length [10:29:42]Host: 172.17.50.3:8080 [10:29:42]Content-Length: 752 [10:29:42]Content-Type: application/json [10:29:42] [10:29:42]POST finish read [10:29:42]Found Content-Length = 752 [10:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886339", "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" : 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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:42]execute_script... [10:29: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)2886339", "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" : 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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:42]POST & json_proto [10:29:42]process_json_proto [10:29:42]json parsed OK: [10:29:42]protocol is kg_v1.0 [10:29:42]action value=close_receipt [10:29:42]process_action close_receipt [10:29:42]cmd_close_receipt [10:29:42]MH_GetDate [10:29:42]Write to MH i2c: F0 00 00 D7 4F 15 [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: F0 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: F0 09 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: F0 09 00 D7 4F 00 1A D0 18 67 6B 98 1E 66 0E [10:29:42]GetLastDocTimeStamp 1729679353 [10:29:42]current date 1729679386 [10:29:42]FM_GetShiftState [10:29:42]SAM_PROTO_GetShiftState [10:29:42]wFMCommunicate request_size=4 [10:29:42]MH_SAM_APDU [10:29:42]CAPDU: 80 13 01 00 [10:29:42]Write to MH i2c: E2 08 00 D8 4F 80 13 01 00 00 00 00 00 A4 [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0E 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0E 00 D8 4F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 31 [10:29:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:29:42]wFMCommunicate OK [10:29:42]SAM_PROTO_GetShiftState done [10:29:42]FM_GetShiftState done [10:29:42]opened in 1729642435 [10:29:42]opened+sec_in_day 1729728835 [10:29:42]quantity*price = 0 [10:29:42]sum+1 = 1 [10:29: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 СНО: Общий режим Чек 85 23.10.2024 10:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100988 ФМ: 0000000000963346 ФД: 70569 ФПД: 173072633829449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70569&fm=173072633829449&tin=02508201610067®Number=0000000000156251&sum=0 [10:29:43]StoreToDocumentArchive [10:29:43]shift 196 fd 70569 [10:29:43]save to /storage/0196/doc_00070569 [10:29:43]save last doc name /storage/0196/doc_00070569 to /storage/kkm_last_doc_name [10:29:43]save OK [10:29:43]Clear old archive folders... [10:29:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:43]tlvbuf is 00ED9780 [10:29:43]SAM_PROTO_ClearQueue [10:29:43]wFMCommunicate request_size=4 [10:29:43]MH_SAM_APDU [10:29:43]CAPDU: 80 09 00 00 [10:29:43]Write to MH i2c: E2 08 00 E5 4F 80 09 00 00 00 00 00 00 A6 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:43]Read from MH i2c: E2 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: E2 03 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: E2 03 00 E5 4F 00 90 00 A8 [10:29:43]RAPDU: 90 00 [10:29:43]wFMCommunicate OK [10:29:43]SAM_PROTO_ClearQueue done [10:29:43]KKMCreateOFDPacket [10:29:43]OFDProtocolAddRootSTLVToBuf [10:29:43]FM_MakeSignedData [10:29:43]FM_MakeSignedData [10:29:43]SAM_PROTO_SignData [10:29:43]wFMCommunicate request_size=4 [10:29:43]MH_SAM_APDU [10:29:43]CAPDU: 80 0D 01 02 [10:29:43]Write to MH i2c: E2 08 00 E6 4F 80 0D 01 02 00 00 00 00 AE [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:43]Read from MH i2c: E2 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: E2 03 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [10:29:43]RAPDU: 90 00 [10:29:43]wFMCommunicate OK [10:29:43]wFMCommunicate request_size=255 [10:29:43]MH_SAM_APDU [10:29: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 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 55 00 00 00 F4 03 04 00 1A D0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 68 9C DC [10:29:43]Write to MH i2c: E2 02 01 E7 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 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 55 00 00 00 F4 03 04 00 1A D0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 68 9C DC 00 00 2F [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 03 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [10:29:44]RAPDU: 90 00 [10:29:44]wFMCommunicate OK [10:29:44]wFMCommunicate request_size=7 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 0D 02 02 02 18 49 [10:29:44]Write to MH i2c: E2 0A 00 E8 4F 80 0D 02 02 02 00 18 49 00 00 16 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 03 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [10:29:44]RAPDU: 90 00 [10:29:44]wFMCommunicate OK [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 0D 03 02 [10:29:44]Write to MH i2c: E2 08 00 E9 4F 80 0D 03 02 00 00 00 00 B3 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0B 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0B 00 E9 4F 00 39 C4 3A FE D8 E5 68 4D 90 00 5B [10:29:44]RAPDU: 39 C4 3A FE D8 E5 68 4D 90 00 [10:29:44]wFMCommunicate OK [10:29:44]SAM_PROTO_SignData done [10:29:44]FM_MakeSignedData done [10:29:44]CreateOFDProtocolMessage [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 11 00 00 [10:29:44]Write to MH i2c: E2 08 00 EA 4F 80 11 00 00 00 00 00 00 B3 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 EA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [10: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 [10:29:44]wFMCommunicate OK [10:29:44]CreateOFDProtocolMessage done [10:29:44]OFDSenderStorePacket 70569 [10:29:44]StoreOFDPacket docnum=70569 [10:29: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 6A 2F 04 01 DC 5C 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 55 00 00 00 F4 03 04 00 1A D0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 68 9C DC 18 49 39 C4 3A FE D8 E5 68 4D [10:29:44]CheckFolder [10:29:44]dirname=/storage/ofd_packets [10:29:44]CheckFolder done [10:29:44]ProducePacketName [10:29:44]name=ofd_packets/00070569 [10:29:44]NVStorageSaveData ofd_packets/00070569 [10:29:44]File name is /storage/ofd_packets/00070569 [10:29:44]Write 298 bytes [10:29:44]NVStorageSaveData done [10:29:44]OFDSenderStorePacket done [10:29:44]KKMCreateOFDPacket done [10:29:44]NVStorageSaveData kkm_last_timestamp [10:29:44]File name is /storage/kkm_last_timestamp [10:29:44]Write 4 bytes [10:29:44]NVStorageSaveData done [10:29:44]ExternCall_PrintAddStr [10:29:44]wPrintStart [10:29:44]Write to MH i2c: 01 00 00 EB 4F 3A [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 EB 4F 00 00 00 00 00 FF 0F 4F [10:29:44]RasterBufferAndPrint [10:29:44]line Счет N : (1)2886339 [10:29:44]line ИНН: 02508201610067 [10:29:44]line Контрольно-Кассовый Чек [10:29:44]line ПРОДАЖА [10:29:44]line ТРК (МРК, ГНК) : 61 [10:29:44]line Товар: 2710194210 [10:29:44]line ДТ-К-5 [10:29:44]line 20.000 * 0.00 [10:29:44]line = 0.00 [10:29:44]line НДС 12% НСП 1% [10:29:44]line > о реализуемом товаре [10:29:44]line ИТОГО: 0.00 [10:29:44]line НСП 1% : 0.00 [10:29:44]line НДС 12% : 0.00 [10:29:44]line Наличными: 0.00 [10:29:44]line Безнал.: 0.00 [10:29:44]line Место: АЗС № 85 "Партнер Нефть" [10:29:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:29:44]line СНО: Общий режим [10:29:44]line Чек 85 23.10.2024 10:29 [10:29:44]line Смена: 196 ФФД: 1.0 [10:29:44]line ЗНМ: 0300000167 [10:29:44]line РНМ: 0000000000156251 [10:29:44]line Версия ККМ: v1.0 [10:29:44]line Талоны: ТК ГПНА Online [10:29:44]line 30100988 [10:29:44]line ФМ: 0000000000963346 [10:29:44]line ФД: 70569 [10:29:44]line ФПД: 173072633829449 [10:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70569&fm=173072633829449&tin=02508201610067®Number=0000000000156251&sum=0 [10:29:44]OFD Sender: Processing packet 70569 [packets to send 18, broken 17] [10:29:44]ProducePacketName [10:29:44]name=ofd_packets/00070569 [10:29:44]OFD Sender: To server: pG, [10:29:44]CommunicateWithHost lk.salyk.kg:30040 [10:29:44]ConnectInit lk.salyk.kg [10:29:44]written 0, free lines is 4095 [10:29:44]Connected sock=10 [10:29: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 6A 2F 04 01 DC 5C 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 55 00 00 00 F4 03 04 00 1A D0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 68 9C DC 18 49 39 C4 3A FE D8 E5 68 4D [10: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 BA D8 47 00 2D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 13 01 00 F4 03 04 00 B8 79 18 67 B6 04 01 00 00 A2 A0 F1 ED 58 5F B3 FD [10:29:44]CommunicateWithHost err = 0 [10:29:44]CheckOFDResponse [10:29:44]1017 (14) - 77093643461234 [10:29:44]1041 (16) - 0000000000963346 [10:29:44]1040 (4) - 70569 [10:29:44]1012 (4) - 23.10.2024 04:21 [10:29:44]1206 (1) - 0 [10:29:44]OFD Sender: Remove packet 70569 [10:29:44]ProducePacketName [10:29:44]name=ofd_packets/00070569 [10:29:44]NVStorageDeleteData [10:29:44]Write to MH i2c: 01 00 00 15 50 65 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 15 50 00 00 00 00 00 F5 0C 6D [10:29:44]RasterBufferAndPrint [10:29:44]line [10:29:44]line [10:29:44]line [10:29:44]line [10:29:44]line [10:29:44]written 0, free lines is 3326 [10:29:44]MH_Cut [10:29:44]Write to MH i2c: D1 01 00 1C 50 01 3E [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D1 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D1 01 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D1 01 00 1C 50 00 3D [10:29:44]Write to MH i2c: 01 00 00 1D 50 6D [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:45]OFD Sender: No OFD packet to send [10:29:45]*** Cut start [10:29:45]*** Partial cut [10:29:45]*** CUTSNS_PIN = 1 [10:29:45]*** CUTSNS_PIN = 0 [10:29:45]*** Brake cut motor [10:29:46]Read from MH i2c: 01 [10:29:46]MH_I2C_Read... [10:29:46]*** Stop cut motor [10:29:46]*** Cut end [10:29:46]Read from MH i2c: 01 07 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 1D 50 00 00 00 00 00 FF 0F 82 [10:29:46]process_action close_receipt done [10:29:46]requested_data is exist [10:29:46]produce_requested_data [10:29:46]requested_item fm.sn is exist - process it [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 11 00 00 [10:29:46]Write to MH i2c: E2 08 00 1E 50 80 11 00 00 00 00 00 00 E8 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 17 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 17 00 1E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [10:29: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:29:46]wFMCommunicate OK [10:29:46]requested_item fd.num is exist - process it [10:29:46]SAM_PROTO_GetFieldsCounters [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 13 00 00 [10:29:46]Write to MH i2c: E2 08 00 1F 50 80 13 00 00 00 00 00 00 EB [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 62 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 62 00 1F 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 A9 13 01 00 0E 04 04 00 C4 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 86 [10:29: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 A9 13 01 00 0E 04 04 00 C4 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 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_GetFieldsCounters done [10:29:46]requested_item shift.num is exist - process it [10:29:46]requested_item shift.opened is exist - process it [10:29:46]req_shift_opened [10:29:46]FM_GetShiftState [10:29:46]SAM_PROTO_GetShiftState [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 13 01 00 [10:29:46]Write to MH i2c: E2 08 00 20 50 80 13 01 00 00 00 00 00 ED [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0E 00 20 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [10:29:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_GetShiftState done [10:29:46]FM_GetShiftState done [10:29:46]req_shift_opened done [10:29:46]requested_item shift.open_date is exist - process it [10:29:46]req_shift_open_date [10:29:46]req_shift_open_date done [10:29:46]produce_requested_data done [10:29:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70569,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:29:46]process_action_free close_receipt [10:29:46]json_value_free [10:29:46]json_value_free done [10:29:46]process_json_proto returns [10:29:46]Send response to host [10:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70569,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:29:46]free response buf [10:29:46]execute_script done [10:29:46]execute_script returns [10:29:46]free content buf [10:29:46]Sock 9.Close socket [10:29:46]Sock 9.Thread stoped [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:53]accept exits with 7 [10:34:53]New connection [10:34:53]New thread 3066555748 created [10:34:53]Thread 3066699108 joined [10:34:53]Waiting for new connection... [10:34:53] Sock 7.Parse request [10:34:53]Sock 7.Check first char [10:34:53]Sock 7.First char is OK [10:34:53]request: POST /json_proto HTTP/1.0 [10:34:53]Method: POST [10:34:53]URL: /json_proto [10:34:53]Method is POST - this is cgi request [10:34:53]url: /json_proto [10:34:53]query_string will be loaded in cgi processing [10:34:53]execute_cgi json_proto POST (null) [10:34:53]execute_cgi path=json_proto method=POST [10:34:53]POST find Content-Length [10:34:53]Host: 172.17.50.3:8080 [10:34:53]Content-Length: 767 [10:34:53]Content-Type: application/json [10:34:53] [10:34:53]POST finish read [10:34:53]Found Content-Length = 767 [10:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886340", "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" ] } } [10:34:53]execute_script... [10: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)2886340", "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" ] } } [10:34:53]POST & json_proto [10:34:53]process_json_proto [10:34:53]json parsed OK: [10:34:53]protocol is kg_v1.0 [10:34:53]action value=close_receipt [10:34:53]process_action close_receipt [10:34:53]cmd_close_receipt [10:34:53]MH_GetDate [10:34:53]Write to MH i2c: F0 00 00 21 50 60 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: F0 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: F0 09 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: F0 09 00 21 50 00 51 D1 18 67 6B 98 1E 66 91 [10:34:53]GetLastDocTimeStamp 1729679386 [10:34:53]current date 1729679697 [10:34:53]FM_GetShiftState [10:34:53]SAM_PROTO_GetShiftState [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 13 01 00 [10:34:53]Write to MH i2c: E2 08 00 22 50 80 13 01 00 00 00 00 00 EF [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0E 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0E 00 22 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7C [10:34:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_GetShiftState done [10:34:53]FM_GetShiftState done [10:34:53]opened in 1729642435 [10:34:53]opened+sec_in_day 1729728835 [10:34:53]quantity*price = 50010 [10:34:53]sum+1 = 50012 [10:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 86 23.10.2024 10:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70570 ФПД: 65720084714135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70570&fm=65720084714135&tin=02508201610067®Number=0000000000156251&sum=50011 [10:34:54]StoreToDocumentArchive [10:34:54]shift 196 fd 70570 [10:34:54]save to /storage/0196/doc_00070570 [10:34:54]save last doc name /storage/0196/doc_00070570 to /storage/kkm_last_doc_name [10:34:54]save OK [10:34:54]Clear old archive folders... [10:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:54]tlvbuf is 00CED110 [10:34:54]SAM_PROTO_ClearQueue [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 09 00 00 [10:34:54]Write to MH i2c: E2 08 00 2F 50 80 09 00 00 00 00 00 00 F1 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 2F 50 00 90 00 F3 [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]SAM_PROTO_ClearQueue done [10:34:54]KKMCreateOFDPacket [10:34:54]OFDProtocolAddRootSTLVToBuf [10:34:54]FM_MakeSignedData [10:34:54]FM_MakeSignedData [10:34:54]SAM_PROTO_SignData [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 01 02 [10:34:54]Write to MH i2c: E2 08 00 30 50 80 0D 01 02 00 00 00 00 F9 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 30 50 00 90 00 F4 [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]wFMCommunicate request_size=255 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 51 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3B [10:34:54]Write to MH i2c: E2 02 01 31 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 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 56 00 00 00 F4 03 04 00 51 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3B 00 00 24 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 03 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [10:34:55]RAPDU: 90 00 [10:34:55]wFMCommunicate OK [10:34:55]wFMCommunicate request_size=10 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 0D 02 02 05 C5 A6 4D D2 97 [10:34:55]Write to MH i2c: E2 0D 00 32 50 80 0D 02 02 05 00 C5 A6 4D D2 97 00 00 27 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 03 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 03 00 32 50 00 90 00 F6 [10:34:55]RAPDU: 90 00 [10:34:55]wFMCommunicate OK [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 0D 03 02 [10:34:55]Write to MH i2c: E2 08 00 33 50 80 0D 03 02 00 00 00 00 FE [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0B 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0B 00 33 50 00 12 2B D4 A5 85 27 11 64 90 00 D6 [10:34:55]RAPDU: 12 2B D4 A5 85 27 11 64 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_SignData done [10:34:55]FM_MakeSignedData done [10:34:55]CreateOFDProtocolMessage [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 11 00 00 [10:34:55]Write to MH i2c: E2 08 00 34 50 80 11 00 00 00 00 00 00 FE [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 34 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [10: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 [10:34:55]wFMCommunicate OK [10:34:55]CreateOFDProtocolMessage done [10:34:55]OFDSenderStorePacket 70570 [10:34:55]StoreOFDPacket docnum=70570 [10: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 C1 F5 07 01 C1 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 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 56 00 00 00 F4 03 04 00 51 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3B C5 A6 4D D2 97 12 2B D4 A5 85 27 11 64 [10:34:55]CheckFolder [10:34:55]dirname=/storage/ofd_packets [10:34:55]CheckFolder done [10:34:55]ProducePacketName [10:34:55]name=ofd_packets/00070570 [10:34:55]NVStorageSaveData ofd_packets/00070570 [10:34:55]File name is /storage/ofd_packets/00070570 [10:34:55]Write 301 bytes [10:34:55]NVStorageSaveData done [10:34:55]OFDSenderStorePacket done [10:34:55]KKMCreateOFDPacket done [10:34:55]NVStorageSaveData kkm_last_timestamp [10:34:55]File name is /storage/kkm_last_timestamp [10:34:55]Write 4 bytes [10:34:55]NVStorageSaveData done [10:34:55]ExternCall_PrintAddStr [10:34:55]wPrintStart [10:34:55]Write to MH i2c: 01 00 00 35 50 85 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 35 50 00 00 00 00 00 FF 0F 9A [10:34:55]RasterBufferAndPrint [10:34:55]line Счет N : (1)2886340 [10:34:55]line ИНН: 02508201610067 [10:34:55]line Контрольно-Кассовый Чек [10:34:55]line ПРОДАЖА [10:34:55]line ТРК (МРК, ГНК) : 23 [10:34:55]line Товар: 2710124500 [10:34:55]line Аи-95-К-5 [10:34:55]line 6.740 * 74.20 [10:34:55]line = 500.11 [10:34:55]line НДС 12% НСП 1% [10:34:55]line > о реализуемом товаре [10:34:55]line ИТОГО: 500.11 [10:34:55]line НСП 1% : 4.43 [10:34:55]line НДС 12% : 53.11 [10:34:55]line Наличными: 0.00 [10:34:55]line Безнал.: 500.11 [10:34:55]line Место: АЗС № 85 "Партнер Нефть" [10:34:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:34:55]line СНО: Общий режим [10:34:55]line Чек 86 23.10.2024 10:34 [10:34:55]line Смена: 196 ФФД: 1.0 [10:34:55]line ЗНМ: 0300000167 [10:34:55]line РНМ: 0000000000156251 [10:34:55]line Версия ККМ: v1.0 [10:34:55]line Платежная система: Mbank [10:34:55]line ФМ: 0000000000963346 [10:34:55]line ФД: 70570 [10:34:55]line ФПД: 65720084714135 [10:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70570&fm=65720084714135&tin=02508201610067®Number=0000000000156251&sum=50011 [10:34:55]OFD Sender: Processing packet 70570 [packets to send 18, broken 17] [10:34:55]ProducePacketName [10:34:55]name=ofd_packets/00070570 [10:34:55]OFD Sender: To server: pG, [10:34:55]CommunicateWithHost lk.salyk.kg:30040 [10:34:55]ConnectInit lk.salyk.kg [10:34:55]written 0, free lines is 4095 [10:34:55]Connected sock=10 [10: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 0F 01 00 00 C1 F5 07 01 C1 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 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 56 00 00 00 F4 03 04 00 51 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 3B C5 A6 4D D2 97 12 2B D4 A5 85 27 11 64 [10: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 A6 EC 47 00 2E 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 AA 13 01 00 F4 03 04 00 EF 7A 18 67 B6 04 01 00 00 50 D7 B5 09 58 1C 5A C5 [10:34:55]CommunicateWithHost err = 0 [10:34:55]CheckOFDResponse [10:34:55]1017 (14) - 77093643461234 [10:34:55]1041 (16) - 0000000000963346 [10:34:55]1040 (4) - 70570 [10:34:55]1012 (4) - 23.10.2024 04:26 [10:34:55]1206 (1) - 0 [10:34:55]OFD Sender: Remove packet 70570 [10:34:55]ProducePacketName [10:34:55]name=ofd_packets/00070570 [10:34:55]NVStorageDeleteData [10:34:55]Write to MH i2c: 01 00 00 5E 50 AE [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 5E 50 00 00 00 00 00 18 0D DA [10:34:55]RasterBufferAndPrint [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]line [10:34:55]written 0, free lines is 3358 [10:34:55]MH_Cut [10:34:55]Write to MH i2c: D1 01 00 65 50 01 87 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 01 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: D1 01 00 65 50 00 86 [10:34:55]Write to MH i2c: 01 00 00 66 50 B6 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:56]OFD Sender: No OFD packet to send [10:34:56]*** Cut start [10:34:56]*** Partial cut [10:34:56]*** CUTSNS_PIN = 1 [10:34:56]*** CUTSNS_PIN = 0 [10:34:56]*** Brake cut motor [10:34:57]Read from MH i2c: 01 [10:34:57]MH_I2C_Read... [10:34:57]*** Stop cut motor [10:34:57]*** Cut end [10:34:57]Read from MH i2c: 01 07 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 07 00 66 50 00 00 00 00 00 FF 0F CB [10:34:57]process_action close_receipt done [10:34:57]requested_data is exist [10:34:57]produce_requested_data [10:34:57]requested_item fm.sn is exist - process it [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 11 00 00 [10:34:57]Write to MH i2c: E2 08 00 67 50 80 11 00 00 00 00 00 00 31 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 17 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 17 00 67 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [10: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 [10:34:57]wFMCommunicate OK [10:34:57]requested_item fd.num is exist - process it [10:34:57]SAM_PROTO_GetFieldsCounters [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 13 00 00 [10:34:57]Write to MH i2c: E2 08 00 68 50 80 13 00 00 00 00 00 00 34 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 62 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 62 00 68 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 AA 13 01 00 0E 04 04 00 C4 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 D3 [10: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 AA 13 01 00 0E 04 04 00 C4 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 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_GetFieldsCounters done [10:34:57]requested_item shift.num is exist - process it [10:34:57]requested_item shift.opened is exist - process it [10:34:57]req_shift_opened [10:34:57]FM_GetShiftState [10:34:57]SAM_PROTO_GetShiftState [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 13 01 00 [10:34:57]Write to MH i2c: E2 08 00 69 50 80 13 01 00 00 00 00 00 36 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 69 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [10:34:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_GetShiftState done [10:34:57]FM_GetShiftState done [10:34:57]req_shift_opened done [10:34:57]requested_item shift.open_date is exist - process it [10:34:57]req_shift_open_date [10:34:57]req_shift_open_date done [10:34:57]produce_requested_data done [10:34:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70570,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:34:57]process_action_free close_receipt [10:34:57]json_value_free [10:34:57]json_value_free done [10:34:57]process_json_proto returns [10:34:57]Send response to host [10:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70570,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:34:57]free response buf [10:34:57]execute_script done [10:34:57]execute_script returns [10:34:57]free content buf [10:34:57]Sock 7.Close socket [10:34:57]Sock 7.Thread stoped [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:07]accept exits with 9 [10:35:07]New connection [10:35:07]New thread 3066699108 created [10:35:07]Thread 3066555748 joined [10:35:07]Waiting for new connection... [10:35:07] Sock 9.Parse request [10:35:07]Sock 9.Check first char [10:35:07]Sock 9.First char is OK [10:35:07]request: POST /json_proto HTTP/1.0 [10:35:07]Method: POST [10:35:07]URL: /json_proto [10:35:07]Method is POST - this is cgi request [10:35:07]url: /json_proto [10:35:07]query_string will be loaded in cgi processing [10:35:07]execute_cgi json_proto POST (null) [10:35:07]execute_cgi path=json_proto method=POST [10:35:07]POST find Content-Length [10:35:07]Host: 172.17.50.3:8080 [10:35:07]Content-Length: 683 [10:35:07]Content-Type: application/json [10:35:07] [10:35:07]POST finish read [10:35:07]Found Content-Length = 683 [10:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886341", "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:35:07]execute_script... [10:35: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)2886341", "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:35:07]POST & json_proto [10:35:07]process_json_proto [10:35:07]json parsed OK: [10:35:07]protocol is kg_v1.0 [10:35:07]action value=close_receipt [10:35:07]process_action close_receipt [10:35:07]cmd_close_receipt [10:35:07]MH_GetDate [10:35:07]Write to MH i2c: F0 00 00 6A 50 A9 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 09 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 09 00 6A 50 00 60 D1 18 67 6B 98 1E 66 E9 [10:35:07]GetLastDocTimeStamp 1729679697 [10:35:07]current date 1729679712 [10:35:07]FM_GetShiftState [10:35:07]SAM_PROTO_GetShiftState [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 13 01 00 [10:35:07]Write to MH i2c: E2 08 00 6B 50 80 13 01 00 00 00 00 00 38 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 6B 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [10:35:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_GetShiftState done [10:35:08]FM_GetShiftState done [10:35:08]opened in 1729642435 [10:35:08]opened+sec_in_day 1729728835 [10:35:08]quantity*price = 100015 [10:35:08]sum+1 = 100017 [10:35:08]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 СНО: Общий режим Чек 87 23.10.2024 10:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70571 ФПД: 172555261680475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70571&fm=172555261680475&tin=02508201610067®Number=0000000000156251&sum=100000 [10:35:09]StoreToDocumentArchive [10:35:09]shift 196 fd 70571 [10:35:09]save to /storage/0196/doc_00070571 [10:35:09]save last doc name /storage/0196/doc_00070571 to /storage/kkm_last_doc_name [10:35:09]save OK [10:35:09]Clear old archive folders... [10:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:09]tlvbuf is 00CECC20 [10:35:09]SAM_PROTO_ClearQueue [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 09 00 00 [10:35:09]Write to MH i2c: E2 08 00 78 50 80 09 00 00 00 00 00 00 3A [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 78 50 00 90 00 3C [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]SAM_PROTO_ClearQueue done [10:35:09]KKMCreateOFDPacket [10:35:09]OFDProtocolAddRootSTLVToBuf [10:35:09]FM_MakeSignedData [10:35:09]FM_MakeSignedData [10:35:09]SAM_PROTO_SignData [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 01 02 [10:35:09]Write to MH i2c: E2 08 00 79 50 80 0D 01 02 00 00 00 00 42 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=255 [10:35:09]MH_SAM_APDU [10: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 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 57 00 00 00 F4 03 04 00 60 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9C [10:35:09]Write to MH i2c: E2 02 01 7A 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 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 57 00 00 00 F4 03 04 00 60 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9C 00 00 EB [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 7A 50 00 90 00 3E [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=10 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 02 02 05 F0 27 13 9B 5B [10:35:09]Write to MH i2c: E2 0D 00 7B 50 80 0D 02 02 05 00 F0 27 13 9B 5B 00 00 6F [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 7B 50 00 90 00 3F [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 03 02 [10:35:09]Write to MH i2c: E2 08 00 7C 50 80 0D 03 02 00 00 00 00 47 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 0B 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 0B 00 7C 50 00 79 6B FD 9C 3E F5 6A 8D 90 00 EF [10:35:09]RAPDU: 79 6B FD 9C 3E F5 6A 8D 90 00 [10:35:09]wFMCommunicate OK [10:35:09]SAM_PROTO_SignData done [10:35:09]FM_MakeSignedData done [10:35:09]CreateOFDProtocolMessage [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 11 00 00 [10:35:09]Write to MH i2c: E2 08 00 7D 50 80 11 00 00 00 00 00 00 47 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 17 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 17 00 7D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [10:35: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:35:09]wFMCommunicate OK [10:35:09]CreateOFDProtocolMessage done [10:35:09]OFDSenderStorePacket 70571 [10:35:09]StoreOFDPacket docnum=70571 [10:35: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 89 30 07 01 4C 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 60 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9C F0 27 13 9B 5B 79 6B FD 9C 3E F5 6A 8D [10:35:09]CheckFolder [10:35:09]dirname=/storage/ofd_packets [10:35:09]CheckFolder done [10:35:09]ProducePacketName [10:35:09]name=ofd_packets/00070571 [10:35:09]NVStorageSaveData ofd_packets/00070571 [10:35:09]File name is /storage/ofd_packets/00070571 [10:35:09]Write 301 bytes [10:35:09]NVStorageSaveData done [10:35:09]OFDSenderStorePacket done [10:35:09]KKMCreateOFDPacket done [10:35:09]NVStorageSaveData kkm_last_timestamp [10:35:09]File name is /storage/kkm_last_timestamp [10:35:09]Write 4 bytes [10:35:09]NVStorageSaveData done [10:35:09]ExternCall_PrintAddStr [10:35:09]wPrintStart [10:35:09]Write to MH i2c: 01 00 00 7E 50 CE [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 7E 50 00 00 00 00 00 FF 0F E3 [10:35:09]RasterBufferAndPrint [10:35:09]line Счет N : (1)2886341 [10:35:09]line ИНН: 02508201610067 [10:35:09]line Контрольно-Кассовый Чек [10:35:09]line ПРОДАЖА [10:35:09]line ТРК (МРК, ГНК) : 42 [10:35:09]line Товар: 2710124130 [10:35:09]line Аи-92-К-5 [10:35:09]line 14.950 * 66.90 [10:35:09]line = 1000.16 [10:35:09]line НДС 12% НСП 1% [10:35:09]line > о реализуемом товаре [10:35:09]line ОКРУГЛЕНИЕ: -0.16 [10:35:09]line ИТОГО: 1000.00 [10:35:09]line Внесено: 1000.00 [10:35:09]line СДАЧА: 0.00 [10:35:09]line НСП 1% : 8.85 [10:35:09]line НДС 12% : 106.21 [10:35:09]line Наличными: 1000.00 [10:35:09]line Безнал.: 0.00 [10:35:09]line Место: АЗС № 85 "Партнер Нефть" [10:35:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:35:09]line СНО: Общий режим [10:35:09]line Чек 87 23.10.2024 10:35 [10:35:09]line Смена: 196 ФФД: 1.0 [10:35:09]line ЗНМ: 0300000167 [10:35:09]line РНМ: 0000000000156251 [10:35:09]line Версия ККМ: v1.0 [10:35:09]line ФМ: 0000000000963346 [10:35:09]line ФД: 70571 [10:35:09]line ФПД: 172555261680475 [10:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70571&fm=172555261680475&tin=02508201610067®Number=0000000000156251&sum=100000 [10:35:10]OFD Sender: Processing packet 70571 [packets to send 18, broken 17] [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00070571 [10:35:10]OFD Sender: To server: pG, [10:35:10]CommunicateWithHost lk.salyk.kg:30040 [10:35:10]ConnectInit lk.salyk.kg [10:35:10]written 0, free lines is 4095 [10:35:10]Connected sock=10 [10: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 89 30 07 01 4C 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 60 D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9C F0 27 13 9B 5B 79 6B FD 9C 3E F5 6A 8D [10: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 D9 18 47 00 C2 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 AB 13 01 00 F4 03 04 00 FE 7A 18 67 B6 04 01 00 00 F5 69 3C C0 39 97 DE A4 [10:35:10]CommunicateWithHost err = 0 [10:35:10]CheckOFDResponse [10:35:10]1017 (14) - 77093643461234 [10:35:10]1041 (16) - 0000000000963346 [10:35:10]1040 (4) - 70571 [10:35:10]1012 (4) - 23.10.2024 04:26 [10:35:10]1206 (1) - 0 [10:35:10]OFD Sender: Remove packet 70571 [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00070571 [10:35:10]NVStorageDeleteData [10:35:10]Write to MH i2c: 01 00 00 A9 50 F9 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 A9 50 00 00 00 00 00 EF 0C FB [10:35:10]RasterBufferAndPrint [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]written 0, free lines is 3317 [10:35:10]MH_Cut [10:35:10]Write to MH i2c: D1 01 00 B0 50 01 D2 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 B0 50 00 D1 [10:35:10]Write to MH i2c: 01 00 00 B1 50 01 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]OFD Sender: No OFD packet to send [10:35:11]*** Cut start [10:35:11]*** Partial cut [10:35:11]*** CUTSNS_PIN = 1 [10:35:11]*** CUTSNS_PIN = 0 [10:35:11]*** Brake cut motor [10:35:11]Read from MH i2c: 01 [10:35:11]MH_I2C_Read... [10:35:11]*** Stop cut motor [10:35:11]*** Cut end [10:35:11]Read from MH i2c: 01 07 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 B1 50 00 00 00 00 00 FF 0F 16 [10:35:11]process_action close_receipt done [10:35:11]requested_data is exist [10:35:11]produce_requested_data [10:35:11]requested_item fm.sn is exist - process it [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 11 00 00 [10:35:11]Write to MH i2c: E2 08 00 B2 50 80 11 00 00 00 00 00 00 7C [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 B2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [10:35: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:35:11]wFMCommunicate OK [10:35:11]requested_item fd.num is exist - process it [10:35:11]SAM_PROTO_GetFieldsCounters [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 00 00 [10:35:11]Write to MH i2c: E2 08 00 B3 50 80 13 00 00 00 00 00 00 7F [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 B3 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 AB 13 01 00 0E 04 04 00 C4 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 22 [10: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 AB 13 01 00 0E 04 04 00 C4 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 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetFieldsCounters done [10:35:12]requested_item shift.num is exist - process it [10:35:12]requested_item shift.opened is exist - process it [10:35:12]req_shift_opened [10:35:12]FM_GetShiftState [10:35:12]SAM_PROTO_GetShiftState [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 13 01 00 [10:35:12]Write to MH i2c: E2 08 00 B4 50 80 13 01 00 00 00 00 00 81 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 B4 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0E [10:35:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetShiftState done [10:35:12]FM_GetShiftState done [10:35:12]req_shift_opened done [10:35:12]requested_item shift.open_date is exist - process it [10:35:12]req_shift_open_date [10:35:12]req_shift_open_date done [10:35:12]produce_requested_data done [10:35:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70571,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:35:12]process_action_free close_receipt [10:35:12]json_value_free [10:35:12]json_value_free done [10:35:12]process_json_proto returns [10:35:12]Send response to host [10:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70571,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:35:12]free response buf [10:35:12]execute_script done [10:35:12]execute_script returns [10:35:12]free content buf [10:35:12]Sock 9.Close socket [10:35:12]Sock 9.Thread stoped [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:12]accept exits with 7 [10:37:12]New connection [10:37:12]New thread 3066555748 created [10:37:12]Thread 3066699108 joined [10:37:12]Waiting for new connection... [10:37:12] Sock 7.Parse request [10:37:12]Sock 7.Check first char [10:37:12]Sock 7.First char is OK [10:37:12]request: POST /json_proto HTTP/1.0 [10:37:12]Method: POST [10:37:12]URL: /json_proto [10:37:12]Method is POST - this is cgi request [10:37:12]url: /json_proto [10:37:12]query_string will be loaded in cgi processing [10:37:12]execute_cgi json_proto POST (null) [10:37:12]execute_cgi path=json_proto method=POST [10:37:12]POST find Content-Length [10:37:12]Host: 172.17.50.3:8080 [10:37:12]Content-Length: 771 [10:37:12]Content-Type: application/json [10:37:12] [10:37:12]POST finish read [10:37:12]Found Content-Length = 771 [10:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886342", "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 }]} ], "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]execute_script... [10: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)2886342", "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 }]} ], "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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]POST & json_proto [10:37:12]process_json_proto [10:37:12]json parsed OK: [10:37:12]protocol is kg_v1.0 [10:37:12]action value=close_receipt [10:37:12]process_action close_receipt [10:37:12]cmd_close_receipt [10:37:12]MH_GetDate [10:37:12]Write to MH i2c: F0 00 00 B5 50 F4 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 B5 50 00 DD D1 18 67 6B 98 1E 66 B1 [10:37:12]GetLastDocTimeStamp 1729679712 [10:37:12]current date 1729679837 [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 B6 50 80 13 01 00 00 00 00 00 83 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 B6 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 10 [10:37:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]opened in 1729642435 [10:37:12]opened+sec_in_day 1729728835 [10:37:12]quantity*price = 50025 [10:37:12]sum+1 = 50026 [10:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 88 23.10.2024 10:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70572 ФПД: 189878040724824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70572&fm=189878040724824&tin=02508201610067®Number=0000000000156251&sum=50025 [10:37:13]StoreToDocumentArchive [10:37:13]shift 196 fd 70572 [10:37:13]save to /storage/0196/doc_00070572 [10:37:13]save last doc name /storage/0196/doc_00070572 to /storage/kkm_last_doc_name [10:37:13]save OK [10:37:13]Clear old archive folders... [10:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:37:13]tlvbuf is 00E924D0 [10:37:13]SAM_PROTO_ClearQueue [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 09 00 00 [10:37:13]Write to MH i2c: E2 08 00 C3 50 80 09 00 00 00 00 00 00 85 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 C3 50 00 90 00 87 [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_ClearQueue done [10:37:13]KKMCreateOFDPacket [10:37:13]OFDProtocolAddRootSTLVToBuf [10:37:13]FM_MakeSignedData [10:37:13]FM_MakeSignedData [10:37:13]SAM_PROTO_SignData [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 01 02 [10:37:13]Write to MH i2c: E2 08 00 C4 50 80 0D 01 02 00 00 00 00 8D [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=255 [10:37:13]MH_SAM_APDU [10:37: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 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 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC B1 [10:37:13]Write to MH i2c: E2 02 01 C5 50 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 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC B1 00 00 68 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 C5 50 00 90 00 89 [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=9 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 02 02 04 6D 2B 05 58 [10:37:14]Write to MH i2c: E2 0C 00 C6 50 80 0D 02 02 04 00 6D 2B 05 58 00 00 8D [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 C6 50 00 90 00 8A [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 03 02 [10:37:14]Write to MH i2c: E2 08 00 C7 50 80 0D 03 02 00 00 00 00 92 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 C7 50 00 83 2A 69 92 60 7F 80 FF 90 00 99 [10:37:14]RAPDU: 83 2A 69 92 60 7F 80 FF 90 00 [10:37:14]wFMCommunicate OK [10:37:14]SAM_PROTO_SignData done [10:37:14]FM_MakeSignedData done [10:37:14]CreateOFDProtocolMessage [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 11 00 00 [10:37:14]Write to MH i2c: E2 08 00 C8 50 80 11 00 00 00 00 00 00 92 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 C8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [10: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 [10:37:14]wFMCommunicate OK [10:37:14]CreateOFDProtocolMessage done [10:37:14]OFDSenderStorePacket 70572 [10:37:14]StoreOFDPacket docnum=70572 [10: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 0E 01 00 00 E2 9F 06 01 06 65 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 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC B1 6D 2B 05 58 83 2A 69 92 60 7F 80 FF [10:37:14]CheckFolder [10:37:14]dirname=/storage/ofd_packets [10:37:14]CheckFolder done [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00070572 [10:37:14]NVStorageSaveData ofd_packets/00070572 [10:37:14]File name is /storage/ofd_packets/00070572 [10:37:14]Write 300 bytes [10:37:14]NVStorageSaveData done [10:37:14]OFDSenderStorePacket done [10:37:14]KKMCreateOFDPacket done [10:37:14]NVStorageSaveData kkm_last_timestamp [10:37:14]File name is /storage/kkm_last_timestamp [10:37:14]Write 4 bytes [10:37:14]NVStorageSaveData done [10:37:14]ExternCall_PrintAddStr [10:37:14]wPrintStart [10:37:14]Write to MH i2c: 01 00 00 C9 50 19 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 C9 50 00 00 00 00 00 FF 0F 2E [10:37:14]RasterBufferAndPrint [10:37:14]line Счет N : (1)2886342 [10:37:14]line ИНН: 02508201610067 [10:37:14]line Контрольно-Кассовый Чек [10:37:14]line ПРОДАЖА [10:37:14]line ТРК (МРК, ГНК) : 71 [10:37:14]line Товар: 2711129700 [10:37:14]line ГАЗ-К-3 [10:37:14]line 12.860 * 38.90 [10:37:14]line = 500.25 [10:37:14]line НДС 12% НСП 1% [10:37:14]line > о реализуемом товаре [10:37:14]line ИТОГО: 500.25 [10:37:14]line НСП 1% : 4.43 [10:37:14]line НДС 12% : 53.12 [10:37:14]line Наличными: 0.00 [10:37:14]line Безнал.: 500.25 [10:37:14]line Место: АЗС № 85 "Партнер Нефть" [10:37:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:37:14]line СНО: Общий режим [10:37:14]line Чек 88 23.10.2024 10:37 [10:37:14]line Смена: 196 ФФД: 1.0 [10:37:14]line ЗНМ: 0300000167 [10:37:14]line РНМ: 0000000000156251 [10:37:14]line Версия ККМ: v1.0 [10:37:14]line Платежная система: Mbank [10:37:14]line ФМ: 0000000000963346 [10:37:14]line ФД: 70572 [10:37:14]line ФПД: 189878040724824 [10:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70572&fm=189878040724824&tin=02508201610067®Number=0000000000156251&sum=50025 [10:37:14]OFD Sender: Processing packet 70572 [packets to send 18, broken 17] [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00070572 [10:37:14]OFD Sender: To server: pG, [10:37:14]CommunicateWithHost lk.salyk.kg:30040 [10:37:14]ConnectInit lk.salyk.kg [10:37:14]written 0, free lines is 4095 [10:37:14]Connected sock=10 [10: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 0E 01 00 00 E2 9F 06 01 06 65 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 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD D1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AC B1 6D 2B 05 58 83 2A 69 92 60 7F 80 FF [10: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 B4 CB 47 00 CE 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 AC 13 01 00 F4 03 04 00 7B 7B 18 67 B6 04 01 00 00 F6 5A 51 07 06 62 38 50 [10:37:15]CommunicateWithHost err = 0 [10:37:15]CheckOFDResponse [10:37:15]1017 (14) - 77093643461234 [10:37:15]1041 (16) - 0000000000963346 [10:37:15]1040 (4) - 70572 [10:37:15]1012 (4) - 23.10.2024 04:28 [10:37:15]1206 (1) - 0 [10:37:15]OFD Sender: Remove packet 70572 [10:37:15]ProducePacketName [10:37:15]name=ofd_packets/00070572 [10:37:15]NVStorageDeleteData [10:37:15]Write to MH i2c: 01 00 00 F2 50 42 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 F2 50 00 00 00 00 00 1D 0D 73 [10:37:15]RasterBufferAndPrint [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]written 0, free lines is 3366 [10:37:15]MH_Cut [10:37:15]Write to MH i2c: D1 01 00 F9 50 01 1B [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 F9 50 00 1A [10:37:15]Write to MH i2c: 01 00 00 FA 50 4A [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]OFD Sender: No OFD packet to send [10:37:15]*** Cut start [10:37:15]*** Partial cut [10:37:15]*** CUTSNS_PIN = 1 [10:37:15]*** CUTSNS_PIN = 0 [10:37:16]*** Brake cut motor [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]*** Stop cut motor [10:37:16]*** Cut end [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 FA 50 00 00 00 00 00 FF 0F 5F [10:37:16]process_action close_receipt done [10:37:16]requested_data is exist [10:37:16]produce_requested_data [10:37:16]requested_item fm.sn is exist - process it [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 FB 50 80 11 00 00 00 00 00 00 C5 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 FB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [10: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 [10:37:16]wFMCommunicate OK [10:37:16]requested_item fd.num is exist - process it [10:37:16]SAM_PROTO_GetFieldsCounters [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 00 00 [10:37:16]Write to MH i2c: E2 08 00 FC 50 80 13 00 00 00 00 00 00 C8 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 FC 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 AC 13 01 00 0E 04 04 00 C4 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 6F [10: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 AC 13 01 00 0E 04 04 00 C4 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 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetFieldsCounters done [10:37:16]requested_item shift.num is exist - process it [10:37:16]requested_item shift.opened is exist - process it [10:37:16]req_shift_opened [10:37:16]FM_GetShiftState [10:37:16]SAM_PROTO_GetShiftState [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 01 00 [10:37:16]Write to MH i2c: E2 08 00 FD 50 80 13 01 00 00 00 00 00 CA [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 FD 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 57 [10:37:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetShiftState done [10:37:16]FM_GetShiftState done [10:37:16]req_shift_opened done [10:37:16]requested_item shift.open_date is exist - process it [10:37:16]req_shift_open_date [10:37:16]req_shift_open_date done [10:37:16]produce_requested_data done [10:37:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70572,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:37:16]process_action_free close_receipt [10:37:16]json_value_free [10:37:16]json_value_free done [10:37:16]process_json_proto returns [10:37:16]Send response to host [10:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70572,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:37:16]free response buf [10:37:16]execute_script done [10:37:16]execute_script returns [10:37:16]free content buf [10:37:16]Sock 7.Close socket [10:37:16]Sock 7.Thread stoped [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:17]accept exits with 9 [10:40:17]New connection [10:40:17]New thread 3066699108 created [10:40:17]Thread 3066555748 joined [10:40:17]Waiting for new connection... [10:40:17] Sock 9.Parse request [10:40:17]Sock 9.Check first char [10:40:17]Sock 9.First char is OK [10:40:17]request: POST /json_proto HTTP/1.0 [10:40:17]Method: POST [10:40:17]URL: /json_proto [10:40:17]Method is POST - this is cgi request [10:40:17]url: /json_proto [10:40:17]query_string will be loaded in cgi processing [10:40:17]execute_cgi json_proto POST (null) [10:40:17]execute_cgi path=json_proto method=POST [10:40:17]POST find Content-Length [10:40:17]Host: 172.17.50.3:8080 [10:40:17]Content-Length: 793 [10:40:17]Content-Type: application/json [10:40:17] [10:40:17]POST finish read [10:40:17]Found Content-Length = 793 [10:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886345", "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:40:17]execute_script... [10:40: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)2886345", "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:40:17]POST & json_proto [10:40:17]process_json_proto [10:40:17]json parsed OK: [10:40:17]protocol is kg_v1.0 [10:40:17]action value=close_receipt [10:40:17]process_action close_receipt [10:40:17]cmd_close_receipt [10:40:17]MH_GetDate [10:40:17]Write to MH i2c: F0 00 00 FE 50 3D [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 FE 50 00 96 D2 18 67 6B 98 1E 66 B4 [10:40:17]GetLastDocTimeStamp 1729679837 [10:40:17]current date 1729680022 [10:40:17]FM_GetShiftState [10:40:17]SAM_PROTO_GetShiftState [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 13 01 00 [10:40:17]Write to MH i2c: E2 08 00 FF 50 80 13 01 00 00 00 00 00 CC [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 FF 50 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [10:40:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetShiftState done [10:40:18]FM_GetShiftState done [10:40:18]opened in 1729642435 [10:40:18]opened+sec_in_day 1729728835 [10:40:18]quantity*price = 0 [10:40:18]sum+1 = 1 [10:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 89 23.10.2024 10:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 74592 ФМ: 0000000000963346 ФД: 70573 ФПД: 99108558020234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70573&fm=99108558020234&tin=02508201610067®Number=0000000000156251&sum=0 [10:40:19]StoreToDocumentArchive [10:40:19]shift 196 fd 70573 [10:40:19]save to /storage/0196/doc_00070573 [10:40:19]save last doc name /storage/0196/doc_00070573 to /storage/kkm_last_doc_name [10:40:19]save OK [10:40:19]Clear old archive folders... [10:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:19]tlvbuf is B6E9CA90 [10:40:19]SAM_PROTO_ClearQueue [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 09 00 00 [10:40:19]Write to MH i2c: E2 08 00 0C 51 80 09 00 00 00 00 00 00 CF [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 0C 51 00 90 00 D1 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_ClearQueue done [10:40:19]KKMCreateOFDPacket [10:40:19]OFDProtocolAddRootSTLVToBuf [10:40:19]FM_MakeSignedData [10:40:19]FM_MakeSignedData [10:40:19]SAM_PROTO_SignData [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 01 02 [10:40:19]Write to MH i2c: E2 08 00 0D 51 80 0D 01 02 00 00 00 00 D7 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 0D 51 00 90 00 D2 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=255 [10:40:19]MH_SAM_APDU [10:40: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 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 59 00 00 00 F4 03 04 00 96 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5A [10:40:19]Write to MH i2c: E2 02 01 0E 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 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 59 00 00 00 F4 03 04 00 96 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5A 00 00 B2 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 0E 51 00 90 00 D3 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=10 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 02 02 05 23 82 65 1E 8A [10:40:19]Write to MH i2c: E2 0D 00 0F 51 80 0D 02 02 05 00 23 82 65 1E 8A 00 00 96 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 0F 51 00 90 00 D4 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 03 02 [10:40:19]Write to MH i2c: E2 08 00 10 51 80 0D 03 02 00 00 00 00 DC [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 10 51 00 86 80 16 61 BA BA 8E FC 90 00 58 [10:40:19]RAPDU: 86 80 16 61 BA BA 8E FC 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_SignData done [10:40:19]FM_MakeSignedData done [10:40:19]CreateOFDProtocolMessage [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 11 00 00 [10:40:19]Write to MH i2c: E2 08 00 11 51 80 11 00 00 00 00 00 00 DC [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 11 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [10:40: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:40:19]wFMCommunicate OK [10:40:19]CreateOFDProtocolMessage done [10:40:19]OFDSenderStorePacket 70573 [10:40:19]StoreOFDPacket docnum=70573 [10:40: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 B4 BA 07 01 F0 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 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 59 00 00 00 F4 03 04 00 96 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5A 23 82 65 1E 8A 86 80 16 61 BA BA 8E FC [10:40:19]CheckFolder [10:40:19]dirname=/storage/ofd_packets [10:40:19]CheckFolder done [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00070573 [10:40:19]NVStorageSaveData ofd_packets/00070573 [10:40:19]File name is /storage/ofd_packets/00070573 [10:40:19]Write 301 bytes [10:40:19]NVStorageSaveData done [10:40:19]OFDSenderStorePacket done [10:40:19]KKMCreateOFDPacket done [10:40:19]NVStorageSaveData kkm_last_timestamp [10:40:19]File name is /storage/kkm_last_timestamp [10:40:19]Write 4 bytes [10:40:19]NVStorageSaveData done [10:40:19]ExternCall_PrintAddStr [10:40:19]wPrintStart [10:40:19]Write to MH i2c: 01 00 00 12 51 63 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 12 51 00 00 00 00 00 FF 0F 78 [10:40:19]RasterBufferAndPrint [10:40:19]line Счет N : (1)2886345 [10:40:19]line ИНН: 02508201610067 [10:40:19]line Контрольно-Кассовый Чек [10:40:19]line ПРОДАЖА [10:40:19]line ТРК (МРК, ГНК) : 23 [10:40:19]line Товар: 2710124500 [10:40:19]line Аи-95-К-5 [10:40:19]line 17.520 * 0.00 [10:40:19]line = 0.00 [10:40:19]line НДС 12% НСП 1% [10:40:19]line > о реализуемом товаре [10:40:19]line ИТОГО: 0.00 [10:40:19]line НСП 1% : 0.00 [10:40:19]line НДС 12% : 0.00 [10:40:19]line Наличными: 0.00 [10:40:19]line Безнал.: 0.00 [10:40:19]line Место: АЗС № 85 "Партнер Нефть" [10:40:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:40:19]line СНО: Общий режим [10:40:19]line Чек 89 23.10.2024 10:40 [10:40:19]line Смена: 196 ФФД: 1.0 [10:40:19]line ЗНМ: 0300000167 [10:40:19]line РНМ: 0000000000156251 [10:40:19]line Версия ККМ: v1.0 [10:40:19]line Талоны: Топливная Карта [10:40:19]line 74592 [10:40:19]line ФМ: 0000000000963346 [10:40:19]line ФД: 70573 [10:40:19]line ФПД: 99108558020234 [10:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70573&fm=99108558020234&tin=02508201610067®Number=0000000000156251&sum=0 [10:40:20]OFD Sender: Processing packet 70573 [packets to send 18, broken 17] [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00070573 [10:40:20]OFD Sender: To server: pG, [10:40:20]CommunicateWithHost lk.salyk.kg:30040 [10:40:20]ConnectInit lk.salyk.kg [10:40:20]written 0, free lines is 4095 [10:40:20]Connected sock=10 [10:40: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 B4 BA 07 01 F0 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 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 59 00 00 00 F4 03 04 00 96 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 5A 23 82 65 1E 8A 86 80 16 61 BA BA 8E FC [10:40: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 EA FC 47 00 EA 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 AD 13 01 00 F4 03 04 00 34 7C 18 67 B6 04 01 00 00 C7 A2 82 2B D0 29 D8 63 [10:40:20]CommunicateWithHost err = 0 [10:40:20]CheckOFDResponse [10:40:20]1017 (14) - 77093643461234 [10:40:20]1041 (16) - 0000000000963346 [10:40:20]1040 (4) - 70573 [10:40:20]1012 (4) - 23.10.2024 04:31 [10:40:20]1206 (1) - 0 [10:40:20]OFD Sender: Remove packet 70573 [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00070573 [10:40:20]NVStorageDeleteData [10:40:20]Write to MH i2c: 01 00 00 3C 51 8D [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 3C 51 00 00 00 00 00 0E 0D AF [10:40:20]RasterBufferAndPrint [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]written 0, free lines is 3350 [10:40:20]MH_Cut [10:40:20]Write to MH i2c: D1 01 00 43 51 01 66 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 43 51 00 65 [10:40:20]Write to MH i2c: 01 00 00 44 51 95 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]OFD Sender: No OFD packet to send [10:40:21]*** Cut start [10:40:21]*** Partial cut [10:40:21]*** CUTSNS_PIN = 1 [10:40:21]*** CUTSNS_PIN = 0 [10:40:21]*** Brake cut motor [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]*** Stop cut motor [10:40:21]*** Cut end [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 44 51 00 00 00 00 00 FF 0F AA [10:40:21]process_action close_receipt done [10:40:21]requested_data is exist [10:40:21]produce_requested_data [10:40:21]requested_item fm.sn is exist - process it [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 11 00 00 [10:40:21]Write to MH i2c: E2 08 00 45 51 80 11 00 00 00 00 00 00 10 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 45 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [10: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 [10:40:21]wFMCommunicate OK [10:40:21]requested_item fd.num is exist - process it [10:40:21]SAM_PROTO_GetFieldsCounters [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 00 00 [10:40:21]Write to MH i2c: E2 08 00 46 51 80 13 00 00 00 00 00 00 13 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 46 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 AD 13 01 00 0E 04 04 00 C4 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 BE [10:40: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 AD 13 01 00 0E 04 04 00 C4 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 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetFieldsCounters done [10:40:21]requested_item shift.num is exist - process it [10:40:21]requested_item shift.opened is exist - process it [10:40:21]req_shift_opened [10:40:21]FM_GetShiftState [10:40:21]SAM_PROTO_GetShiftState [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 01 00 [10:40:21]Write to MH i2c: E2 08 00 47 51 80 13 01 00 00 00 00 00 15 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0E 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0E 00 47 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A2 [10:40:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:40:22]wFMCommunicate OK [10:40:22]SAM_PROTO_GetShiftState done [10:40:22]FM_GetShiftState done [10:40:22]req_shift_opened done [10:40:22]requested_item shift.open_date is exist - process it [10:40:22]req_shift_open_date [10:40:22]req_shift_open_date done [10:40:22]produce_requested_data done [10:40:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70573,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:40:22]process_action_free close_receipt [10:40:22]json_value_free [10:40:22]json_value_free done [10:40:22]process_json_proto returns [10:40:22]Send response to host [10:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70573,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:40:22]free response buf [10:40:22]execute_script done [10:40:22]execute_script returns [10:40:22]free content buf [10:40:22]Sock 9.Close socket [10:40:22]Sock 9.Thread stoped [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]accept exits with 7 [10:41:05]New connection [10:41:05]New thread 3066555748 created [10:41:05]Thread 3066699108 joined [10:41:05]Waiting for new connection... [10:41:05] Sock 7.Parse request [10:41:05]Sock 7.Check first char [10:41:05]Sock 7.First char is OK [10:41:05]request: POST /json_proto HTTP/1.0 [10:41:05]Method: POST [10:41:05]URL: /json_proto [10:41:05]Method is POST - this is cgi request [10:41:05]url: /json_proto [10:41:05]query_string will be loaded in cgi processing [10:41:05]execute_cgi json_proto POST (null) [10:41:05]execute_cgi path=json_proto method=POST [10:41:05]POST find Content-Length [10:41:05]Host: 172.17.50.3:8080 [10:41:05]Content-Length: 683 [10:41:05]Content-Type: application/json [10:41:05] [10:41:05]POST finish read [10:41:05]Found Content-Length = 683 [10:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886346", "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" ] } } [10:41:05]execute_script... [10:41: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)2886346", "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" ] } } [10:41:05]POST & json_proto [10:41:05]process_json_proto [10:41:05]json parsed OK: [10:41:05]protocol is kg_v1.0 [10:41:05]action value=close_receipt [10:41:05]process_action close_receipt [10:41:05]cmd_close_receipt [10:41:05]MH_GetDate [10:41:05]Write to MH i2c: F0 00 00 48 51 88 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: F0 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: F0 09 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: F0 09 00 48 51 00 C5 D2 18 67 6B 98 1E 66 2E [10:41:05]GetLastDocTimeStamp 1729680022 [10:41:05]current date 1729680069 [10:41:05]FM_GetShiftState [10:41:05]SAM_PROTO_GetShiftState [10:41:05]wFMCommunicate request_size=4 [10:41:05]MH_SAM_APDU [10:41:05]CAPDU: 80 13 01 00 [10:41:05]Write to MH i2c: E2 08 00 49 51 80 13 01 00 00 00 00 00 17 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:05]Read from MH i2c: E2 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 0E 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 0E 00 49 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A4 [10:41:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:41:05]wFMCommunicate OK [10:41:05]SAM_PROTO_GetShiftState done [10:41:05]FM_GetShiftState done [10:41:05]opened in 1729642435 [10:41:05]opened+sec_in_day 1729728835 [10:41:05]quantity*price = 100015 [10:41:05]sum+1 = 100017 [10:41:05]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 СНО: Общий режим Чек 90 23.10.2024 10:41 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70574 ФПД: 168280228056822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70574&fm=168280228056822&tin=02508201610067®Number=0000000000156251&sum=100000 [10:41:06]StoreToDocumentArchive [10:41:06]shift 196 fd 70574 [10:41:06]save to /storage/0196/doc_00070574 [10:41:06]save last doc name /storage/0196/doc_00070574 to /storage/kkm_last_doc_name [10:41:06]save OK [10:41:06]Clear old archive folders... [10:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:06]tlvbuf is 00CE7670 [10:41:06]SAM_PROTO_ClearQueue [10:41:06]wFMCommunicate request_size=4 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 09 00 00 [10:41:06]Write to MH i2c: E2 08 00 56 51 80 09 00 00 00 00 00 00 19 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 56 51 00 90 00 1B [10:41:06]RAPDU: 90 00 [10:41:06]wFMCommunicate OK [10:41:06]SAM_PROTO_ClearQueue done [10:41:06]KKMCreateOFDPacket [10:41:06]OFDProtocolAddRootSTLVToBuf [10:41:06]FM_MakeSignedData [10:41:06]FM_MakeSignedData [10:41:06]SAM_PROTO_SignData [10:41:06]wFMCommunicate request_size=4 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 0D 01 02 [10:41:06]Write to MH i2c: E2 08 00 57 51 80 0D 01 02 00 00 00 00 21 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 57 51 00 90 00 1C [10:41:06]RAPDU: 90 00 [10:41:06]wFMCommunicate OK [10:41:06]wFMCommunicate request_size=255 [10:41:06]MH_SAM_APDU [10:41: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 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 5A 00 00 00 F4 03 04 00 C5 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 99 [10:41:06]Write to MH i2c: E2 02 01 58 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 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 5A 00 00 00 F4 03 04 00 C5 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 99 00 00 33 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 58 51 00 90 00 1D [10:41:06]RAPDU: 90 00 [10:41:06]wFMCommunicate OK [10:41:06]wFMCommunicate request_size=10 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 0D 02 02 05 0C CB 37 4E F6 [10:41:06]Write to MH i2c: E2 0D 00 59 51 80 0D 02 02 05 00 0C CB 37 4E F6 00 00 80 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 03 00 59 51 00 90 00 1E [10:41:06]RAPDU: 90 00 [10:41:06]wFMCommunicate OK [10:41:06]wFMCommunicate request_size=4 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 0D 03 02 [10:41:06]Write to MH i2c: E2 08 00 5A 51 80 0D 03 02 00 00 00 00 26 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 0B 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 0B 00 5A 51 00 C3 A7 0B 46 BD 48 96 D7 90 00 54 [10:41:06]RAPDU: C3 A7 0B 46 BD 48 96 D7 90 00 [10:41:06]wFMCommunicate OK [10:41:06]SAM_PROTO_SignData done [10:41:06]FM_MakeSignedData done [10:41:06]CreateOFDProtocolMessage [10:41:06]wFMCommunicate request_size=4 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 11 00 00 [10:41:06]Write to MH i2c: E2 08 00 5B 51 80 11 00 00 00 00 00 00 26 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 17 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 17 00 5B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [10: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 [10:41:06]wFMCommunicate OK [10:41:06]CreateOFDProtocolMessage done [10:41:06]OFDSenderStorePacket 70574 [10:41:06]StoreOFDPacket docnum=70574 [10:41: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 CE FC 07 01 B2 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 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 5A 00 00 00 F4 03 04 00 C5 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 99 0C CB 37 4E F6 C3 A7 0B 46 BD 48 96 D7 [10:41:06]CheckFolder [10:41:06]dirname=/storage/ofd_packets [10:41:06]CheckFolder done [10:41:06]ProducePacketName [10:41:06]name=ofd_packets/00070574 [10:41:06]NVStorageSaveData ofd_packets/00070574 [10:41:06]File name is /storage/ofd_packets/00070574 [10:41:06]Write 301 bytes [10:41:06]NVStorageSaveData done [10:41:06]OFDSenderStorePacket done [10:41:06]KKMCreateOFDPacket done [10:41:06]NVStorageSaveData kkm_last_timestamp [10:41:06]File name is /storage/kkm_last_timestamp [10:41:06]Write 4 bytes [10:41:06]NVStorageSaveData done [10:41:06]OFD Sender: Processing packet 70574 [packets to send 18, broken 17] [10:41:06]ProducePacketName [10:41:06]name=ofd_packets/00070574 [10:41:06]OFD Sender: To server: pG, [10:41:06]CommunicateWithHost lk.salyk.kg:30040 [10:41:06]ConnectInit lk.salyk.kg [10:41:06]ExternCall_PrintAddStr [10:41:06]wPrintStart [10:41:06]Write to MH i2c: 01 00 00 5C 51 AD [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: 01 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: 01 07 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: 01 07 00 5C 51 00 00 00 00 00 FF 0F C2 [10:41:06]RasterBufferAndPrint [10:41:06]line Счет N : (1)2886346 [10:41:06]line ИНН: 02508201610067 [10:41:06]line Контрольно-Кассовый Чек [10:41:06]line ПРОДАЖА [10:41:06]line ТРК (МРК, ГНК) : 12 [10:41:06]line Товар: 2710124130 [10:41:06]line Аи-92-К-5 [10:41:06]line 14.950 * 66.90 [10:41:06]line = 1000.16 [10:41:06]line НДС 12% НСП 1% [10:41:06]line > о реализуемом товаре [10:41:06]line ОКРУГЛЕНИЕ: -0.16 [10:41:06]line ИТОГО: 1000.00 [10:41:06]line Внесено: 1000.00 [10:41:06]line СДАЧА: 0.00 [10:41:06]line НСП 1% : 8.85 [10:41:06]line НДС 12% : 106.21 [10:41:06]line Наличными: 1000.00 [10:41:06]line Безнал.: 0.00 [10:41:06]line Место: АЗС № 85 "Партнер Нефть" [10:41:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:41:06]line СНО: Общий режим [10:41:06]line Чек 90 23.10.2024 10:41 [10:41:06]line Смена: 196 ФФД: 1.0 [10:41:06]line ЗНМ: 0300000167 [10:41:06]line РНМ: 0000000000156251 [10:41:06]line Версия ККМ: v1.0 [10:41:06]line ФМ: 0000000000963346 [10:41:06]line ФД: 70574 [10:41:06]line ФПД: 168280228056822 [10:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70574&fm=168280228056822&tin=02508201610067®Number=0000000000156251&sum=100000 [10:41:07]Connected sock=11 [10:41: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 CE FC 07 01 B2 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 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 5A 00 00 00 F4 03 04 00 C5 D2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 99 0C CB 37 4E F6 C3 A7 0B 46 BD 48 96 D7 [10:41:07]written 0, free lines is 4095 [10:41: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 04 90 47 00 EB 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 AE 13 01 00 F4 03 04 00 63 7C 18 67 B6 04 01 00 00 99 CD 17 FF C9 55 DF 1B [10:41:07]CommunicateWithHost err = 0 [10:41:07]CheckOFDResponse [10:41:07]1017 (14) - 77093643461234 [10:41:07]1041 (16) - 0000000000963346 [10:41:07]1040 (4) - 70574 [10:41:07]1012 (4) - 23.10.2024 04:32 [10:41:07]1206 (1) - 0 [10:41:07]OFD Sender: Remove packet 70574 [10:41:07]ProducePacketName [10:41:07]name=ofd_packets/00070574 [10:41:07]NVStorageDeleteData [10:41:07]Write to MH i2c: 01 00 00 87 51 D8 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 87 51 00 00 00 00 00 FE 0C E9 [10:41:07]RasterBufferAndPrint [10:41:07]line [10:41:07]line [10:41:07]line [10:41:07]line [10:41:07]line [10:41:07]written 0, free lines is 3334 [10:41:07]MH_Cut [10:41:07]Write to MH i2c: D1 01 00 8E 51 01 B1 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: D1 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: D1 01 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: D1 01 00 8E 51 00 B0 [10:41:07]Write to MH i2c: 01 00 00 8F 51 E0 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]OFD Sender: No OFD packet to send [10:41:08]*** Cut start [10:41:08]*** Partial cut [10:41:08]*** CUTSNS_PIN = 1 [10:41:08]*** CUTSNS_PIN = 0 [10:41:08]*** Brake cut motor [10:41:08]Read from MH i2c: 01 [10:41:08]MH_I2C_Read... [10:41:08]*** Stop cut motor [10:41:08]*** Cut end [10:41:08]Read from MH i2c: 01 07 00 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: 01 07 00 8F 51 00 00 00 00 00 FF 0F F5 [10:41:08]process_action close_receipt done [10:41:08]requested_data is exist [10:41:08]produce_requested_data [10:41:08]requested_item fm.sn is exist - process it [10:41:08]wFMCommunicate request_size=4 [10:41:08]MH_SAM_APDU [10:41:08]CAPDU: 80 11 00 00 [10:41:08]Write to MH i2c: E2 08 00 90 51 80 11 00 00 00 00 00 00 5B [10:41:08]Write i2c OK [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: E2 [10:41:08]MH_I2C_Read... [10:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:08]Read from MH i2c: E2 17 00 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: E2 17 00 90 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [10: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 [10:41:08]wFMCommunicate OK [10:41:08]requested_item fd.num is exist - process it [10:41:08]SAM_PROTO_GetFieldsCounters [10:41:08]wFMCommunicate request_size=4 [10:41:08]MH_SAM_APDU [10:41:08]CAPDU: 80 13 00 00 [10:41:08]Write to MH i2c: E2 08 00 91 51 80 13 00 00 00 00 00 00 5E [10:41:08]Write i2c OK [10:41:08]MH_I2C_Read... [10:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:09]Read from MH i2c: E2 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: E2 62 00 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: E2 62 00 91 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 AE 13 01 00 0E 04 04 00 C4 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 0D [10:41: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 AE 13 01 00 0E 04 04 00 C4 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 [10:41:09]wFMCommunicate OK [10:41:09]SAM_PROTO_GetFieldsCounters done [10:41:09]requested_item shift.num is exist - process it [10:41:09]requested_item shift.opened is exist - process it [10:41:09]req_shift_opened [10:41:09]FM_GetShiftState [10:41:09]SAM_PROTO_GetShiftState [10:41:09]wFMCommunicate request_size=4 [10:41:09]MH_SAM_APDU [10:41:09]CAPDU: 80 13 01 00 [10:41:09]Write to MH i2c: E2 08 00 92 51 80 13 01 00 00 00 00 00 60 [10:41:09]Write i2c OK [10:41:09]MH_I2C_Read... [10:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:09]Read from MH i2c: E2 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: E2 0E 00 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: E2 0E 00 92 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 ED [10:41:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:41:09]wFMCommunicate OK [10:41:09]SAM_PROTO_GetShiftState done [10:41:09]FM_GetShiftState done [10:41:09]req_shift_opened done [10:41:09]requested_item shift.open_date is exist - process it [10:41:09]req_shift_open_date [10:41:09]req_shift_open_date done [10:41:09]produce_requested_data done [10:41:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70574,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:41:09]process_action_free close_receipt [10:41:09]json_value_free [10:41:09]json_value_free done [10:41:09]process_json_proto returns [10:41:09]Send response to host [10:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70574,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:41:09]free response buf [10:41:09]execute_script done [10:41:09]execute_script returns [10:41:09]free content buf [10:41:09]Sock 7.Close socket [10:41:09]Sock 7.Thread stoped [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:28]accept exits with 9 [10:42:28]New connection [10:42:28]New thread 3066699108 created [10:42:28]Thread 3066555748 joined [10:42:28]Waiting for new connection... [10:42:28] Sock 9.Parse request [10:42:28]Sock 9.Check first char [10:42:28]Sock 9.First char is OK [10:42:28]request: POST /json_proto HTTP/1.0 [10:42:28]Method: POST [10:42:28]URL: /json_proto [10:42:28]Method is POST - this is cgi request [10:42:28]url: /json_proto [10:42:28]query_string will be loaded in cgi processing [10:42:28]execute_cgi json_proto POST (null) [10:42:28]execute_cgi path=json_proto method=POST [10:42:28]POST find Content-Length [10:42:28]Host: 172.17.50.3:8080 [10:42:28]Content-Length: 755 [10:42:28]Content-Type: application/json [10:42:28] [10:42:28]POST finish read [10:42:28]Found Content-Length = 755 [10:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886347", "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" : 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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:28]execute_script... [10:42: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)2886347", "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" : 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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:28]POST & json_proto [10:42:28]process_json_proto [10:42:28]json parsed OK: [10:42:28]protocol is kg_v1.0 [10:42:28]action value=close_receipt [10:42:28]process_action close_receipt [10:42:28]cmd_close_receipt [10:42:28]MH_GetDate [10:42:28]Write to MH i2c: F0 00 00 93 51 D3 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: F0 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: F0 09 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: F0 09 00 93 51 00 19 D3 18 67 6B 98 1E 66 CE [10:42:28]GetLastDocTimeStamp 1729680069 [10:42:28]current date 1729680153 [10:42:28]FM_GetShiftState [10:42:28]SAM_PROTO_GetShiftState [10:42:28]wFMCommunicate request_size=4 [10:42:28]MH_SAM_APDU [10:42:28]CAPDU: 80 13 01 00 [10:42:28]Write to MH i2c: E2 08 00 94 51 80 13 01 00 00 00 00 00 62 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 0E 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 0E 00 94 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EF [10:42:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:42:28]wFMCommunicate OK [10:42:28]SAM_PROTO_GetShiftState done [10:42:28]FM_GetShiftState done [10:42:28]opened in 1729642435 [10:42:28]opened+sec_in_day 1729728835 [10:42:28]quantity*price = 0 [10:42:28]sum+1 = 1 [10:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 91 23.10.2024 10:42 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70575 ФПД: 56450241373950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70575&fm=56450241373950&tin=02508201610067®Number=0000000000156251&sum=0 [10:42:29]StoreToDocumentArchive [10:42:29]shift 196 fd 70575 [10:42:29]save to /storage/0196/doc_00070575 [10:42:29]save last doc name /storage/0196/doc_00070575 to /storage/kkm_last_doc_name [10:42:29]save OK [10:42:29]Clear old archive folders... [10:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:29]tlvbuf is 00CF2040 [10:42:29]SAM_PROTO_ClearQueue [10:42:29]wFMCommunicate request_size=4 [10:42:29]MH_SAM_APDU [10:42:29]CAPDU: 80 09 00 00 [10:42:29]Write to MH i2c: E2 08 00 A1 51 80 09 00 00 00 00 00 00 64 [10:42:29]Write i2c OK [10:42:29]MH_I2C_Read... [10:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:29]Read from MH i2c: E2 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 03 00 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 03 00 A1 51 00 90 00 66 [10:42:29]RAPDU: 90 00 [10:42:29]wFMCommunicate OK [10:42:29]SAM_PROTO_ClearQueue done [10:42:29]KKMCreateOFDPacket [10:42:29]OFDProtocolAddRootSTLVToBuf [10:42:29]FM_MakeSignedData [10:42:29]FM_MakeSignedData [10:42:29]SAM_PROTO_SignData [10:42:29]wFMCommunicate request_size=4 [10:42:29]MH_SAM_APDU [10:42:29]CAPDU: 80 0D 01 02 [10:42:29]Write to MH i2c: E2 08 00 A2 51 80 0D 01 02 00 00 00 00 6C [10:42:29]Write i2c OK [10:42:29]MH_I2C_Read... [10:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:29]Read from MH i2c: E2 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 03 00 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 03 00 A2 51 00 90 00 67 [10:42:29]RAPDU: 90 00 [10:42:29]wFMCommunicate OK [10:42:29]wFMCommunicate request_size=255 [10:42:29]MH_SAM_APDU [10:42:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5B 00 00 00 F4 03 04 00 19 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 [10:42:29]Write to MH i2c: E2 02 01 A3 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 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 5B 00 00 00 F4 03 04 00 19 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 00 00 27 [10:42:29]Write i2c OK [10:42:29]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 03 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 03 00 A3 51 00 90 00 68 [10:42:30]RAPDU: 90 00 [10:42:30]wFMCommunicate OK [10:42:30]wFMCommunicate request_size=10 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 0D 02 02 05 57 58 95 A6 FE [10:42:30]Write to MH i2c: E2 0D 00 A4 51 80 0D 02 02 05 00 57 58 95 A6 FE 00 00 61 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 03 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [10:42:30]RAPDU: 90 00 [10:42:30]wFMCommunicate OK [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 0D 03 02 [10:42:30]Write to MH i2c: E2 08 00 A5 51 80 0D 03 02 00 00 00 00 71 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0B 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0B 00 A5 51 00 56 5F 3D 04 EB 8C C1 64 90 00 04 [10:42:30]RAPDU: 56 5F 3D 04 EB 8C C1 64 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_SignData done [10:42:30]FM_MakeSignedData done [10:42:30]CreateOFDProtocolMessage [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 11 00 00 [10:42:30]Write to MH i2c: E2 08 00 A6 51 80 11 00 00 00 00 00 00 71 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 A6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C3 [10:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:42:30]wFMCommunicate OK [10:42:30]CreateOFDProtocolMessage done [10:42:30]OFDSenderStorePacket 70575 [10:42:30]StoreOFDPacket docnum=70575 [10:42: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 52 00 07 01 65 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 00 00 00 F4 03 04 00 19 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 57 58 95 A6 FE 56 5F 3D 04 EB 8C C1 64 [10:42:30]CheckFolder [10:42:30]dirname=/storage/ofd_packets [10:42:30]CheckFolder done [10:42:30]ProducePacketName [10:42:30]name=ofd_packets/00070575 [10:42:30]NVStorageSaveData ofd_packets/00070575 [10:42:30]File name is /storage/ofd_packets/00070575 [10:42:30]Write 301 bytes [10:42:30]NVStorageSaveData done [10:42:30]OFDSenderStorePacket done [10:42:30]KKMCreateOFDPacket done [10:42:30]NVStorageSaveData kkm_last_timestamp [10:42:30]File name is /storage/kkm_last_timestamp [10:42:30]Write 4 bytes [10:42:30]NVStorageSaveData done [10:42:30]ExternCall_PrintAddStr [10:42:30]wPrintStart [10:42:30]Write to MH i2c: 01 00 00 A7 51 F8 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: 01 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: 01 07 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: 01 07 00 A7 51 00 00 00 00 00 FF 0F 0D [10:42:30]RasterBufferAndPrint [10:42:30]line Счет N : (1)2886347 [10:42:30]line ИНН: 02508201610067 [10:42:30]line Контрольно-Кассовый Чек [10:42:30]line ПРОДАЖА [10:42:30]line ТРК (МРК, ГНК) : 32 [10:42:30]line Товар: 2710124130 [10:42:30]line Аи-92-К-5 [10:42:30]line 10.000 * 0.00 [10:42:30]line = 0.00 [10:42:30]line НДС 12% НСП 1% [10:42:30]line > о реализуемом товаре [10:42:30]line ИТОГО: 0.00 [10:42:30]line НСП 1% : 0.00 [10:42:30]line НДС 12% : 0.00 [10:42:30]line Наличными: 0.00 [10:42:30]line Безнал.: 0.00 [10:42:30]line Место: АЗС № 85 "Партнер Нефть" [10:42:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:42:30]line СНО: Общий режим [10:42:30]line Чек 91 23.10.2024 10:42 [10:42:30]line Смена: 196 ФФД: 1.0 [10:42:30]line ЗНМ: 0300000167 [10:42:30]line РНМ: 0000000000156251 [10:42:30]line Версия ККМ: v1.0 [10:42:30]line Талоны: ТК ГПНА Online [10:42:30]line 30100970 [10:42:30]line ФМ: 0000000000963346 [10:42:30]line ФД: 70575 [10:42:30]line ФПД: 56450241373950 [10:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70575&fm=56450241373950&tin=02508201610067®Number=0000000000156251&sum=0 [10:42:30]OFD Sender: Processing packet 70575 [packets to send 18, broken 17] [10:42:30]ProducePacketName [10:42:30]name=ofd_packets/00070575 [10:42:30]OFD Sender: To server: pG, [10:42:30]CommunicateWithHost lk.salyk.kg:30040 [10:42:30]ConnectInit lk.salyk.kg [10:42:30]written 0, free lines is 4095 [10:42:30]Connected sock=10 [10:42: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 52 00 07 01 65 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 00 00 00 F4 03 04 00 19 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 57 58 95 A6 FE 56 5F 3D 04 EB 8C C1 64 [10:42: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 7B D5 47 00 5E 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 AF 13 01 00 F4 03 04 00 B7 7C 18 67 B6 04 01 00 00 42 13 76 9E 1A 59 6D 53 [10:42:30]CommunicateWithHost err = 0 [10:42:30]CheckOFDResponse [10:42:30]1017 (14) - 77093643461234 [10:42:30]1041 (16) - 0000000000963346 [10:42:30]1040 (4) - 70575 [10:42:30]1012 (4) - 23.10.2024 04:33 [10:42:30]1206 (1) - 0 [10:42:30]OFD Sender: Remove packet 70575 [10:42:30]ProducePacketName [10:42:30]name=ofd_packets/00070575 [10:42:30]NVStorageDeleteData [10:42:31]Write to MH i2c: 01 00 00 D1 51 22 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: 01 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: 01 07 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: 01 07 00 D1 51 00 00 00 00 00 FF 0C 34 [10:42:31]RasterBufferAndPrint [10:42:31]line [10:42:31]line [10:42:31]line [10:42:31]line [10:42:31]line [10:42:31]written 0, free lines is 3333 [10:42:31]MH_Cut [10:42:31]Write to MH i2c: D1 01 00 D8 51 01 FB [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: D1 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: D1 01 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: D1 01 00 D8 51 00 FA [10:42:31]Write to MH i2c: 01 00 00 D9 51 2A [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]OFD Sender: No OFD packet to send [10:42:31]*** Cut start [10:42:31]*** Partial cut [10:42:31]*** CUTSNS_PIN = 1 [10:42:31]*** CUTSNS_PIN = 0 [10:42:31]*** Brake cut motor [10:42:32]Read from MH i2c: 01 [10:42:32]MH_I2C_Read... [10:42:32]*** Stop cut motor [10:42:32]*** Cut end [10:42:32]Read from MH i2c: 01 07 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 07 00 D9 51 00 00 00 00 00 FF 0F 3F [10:42:32]process_action close_receipt done [10:42:32]requested_data is exist [10:42:32]produce_requested_data [10:42:32]requested_item fm.sn is exist - process it [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 11 00 00 [10:42:32]Write to MH i2c: E2 08 00 DA 51 80 11 00 00 00 00 00 00 A5 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 DA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [10:42: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:42:32]wFMCommunicate OK [10:42:32]requested_item fd.num is exist - process it [10:42:32]SAM_PROTO_GetFieldsCounters [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 13 00 00 [10:42:32]Write to MH i2c: E2 08 00 DB 51 80 13 00 00 00 00 00 00 A8 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 62 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 62 00 DB 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 AF 13 01 00 0E 04 04 00 C4 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 5B [10:42: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 AF 13 01 00 0E 04 04 00 C4 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 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_GetFieldsCounters done [10:42:32]requested_item shift.num is exist - process it [10:42:32]requested_item shift.opened is exist - process it [10:42:32]req_shift_opened [10:42:32]FM_GetShiftState [10:42:32]SAM_PROTO_GetShiftState [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 13 01 00 [10:42:32]Write to MH i2c: E2 08 00 DC 51 80 13 01 00 00 00 00 00 AA [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0E 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0E 00 DC 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 37 [10:42:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_GetShiftState done [10:42:32]FM_GetShiftState done [10:42:32]req_shift_opened done [10:42:32]requested_item shift.open_date is exist - process it [10:42:32]req_shift_open_date [10:42:32]req_shift_open_date done [10:42:32]produce_requested_data done [10:42:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70575,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:42:32]process_action_free close_receipt [10:42:32]json_value_free [10:42:32]json_value_free done [10:42:32]process_json_proto returns [10:42:32]Send response to host [10:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70575,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:42:32]free response buf [10:42:32]execute_script done [10:42:32]execute_script returns [10:42:32]free content buf [10:42:32]Sock 9.Close socket [10:42:32]Sock 9.Thread stoped [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:11]accept exits with 7 [10:46:11]New connection [10:46:11]New thread 3066555748 created [10:46:11]Thread 3066699108 joined [10:46:11]Waiting for new connection... [10:46:11] Sock 7.Parse request [10:46:11]Sock 7.Check first char [10:46:11]Sock 7.First char is OK [10:46:11]request: POST /json_proto HTTP/1.0 [10:46:11]Method: POST [10:46:11]URL: /json_proto [10:46:11]Method is POST - this is cgi request [10:46:11]url: /json_proto [10:46:11]query_string will be loaded in cgi processing [10:46:11]execute_cgi json_proto POST (null) [10:46:11]execute_cgi path=json_proto method=POST [10:46:11]POST find Content-Length [10:46:11]Host: 172.17.50.3:8080 [10:46:11]Content-Length: 767 [10:46:11]Content-Type: application/json [10:46:11] [10:46:11]POST finish read [10:46:11]Found Content-Length = 767 [10:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886348", "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" ] } } [10:46:11]execute_script... [10:46: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)2886348", "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" ] } } [10:46:11]POST & json_proto [10:46:11]process_json_proto [10:46:11]json parsed OK: [10:46:11]protocol is kg_v1.0 [10:46:11]action value=close_receipt [10:46:11]process_action close_receipt [10:46:11]cmd_close_receipt [10:46:11]MH_GetDate [10:46:11]Write to MH i2c: F0 00 00 DD 51 1D [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 09 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 09 00 DD 51 00 F8 D3 18 67 6B 98 1E 66 F7 [10:46:11]GetLastDocTimeStamp 1729680153 [10:46:11]current date 1729680376 [10:46:11]FM_GetShiftState [10:46:11]SAM_PROTO_GetShiftState [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 13 01 00 [10:46:11]Write to MH i2c: E2 08 00 DE 51 80 13 01 00 00 00 00 00 AC [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0E 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0E 00 DE 51 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 39 [10:46:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:46:11]wFMCommunicate OK [10:46:11]SAM_PROTO_GetShiftState done [10:46:11]FM_GetShiftState done [10:46:11]opened in 1729642435 [10:46:11]opened+sec_in_day 1729728835 [10:46:11]quantity*price = 50041 [10:46:11]sum+1 = 50042 [10:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 92 23.10.2024 10:46 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70576 ФПД: 240739568411826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70576&fm=240739568411826&tin=02508201610067®Number=0000000000156251&sum=50041 [10:46:12]StoreToDocumentArchive [10:46:12]shift 196 fd 70576 [10:46:12]save to /storage/0196/doc_00070576 [10:46:12]save last doc name /storage/0196/doc_00070576 to /storage/kkm_last_doc_name [10:46:12]save OK [10:46:12]Clear old archive folders... [10:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:12]tlvbuf is 00CB7800 [10:46:12]SAM_PROTO_ClearQueue [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 09 00 00 [10:46:12]Write to MH i2c: E2 08 00 EB 51 80 09 00 00 00 00 00 00 AE [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 EB 51 00 90 00 B0 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_ClearQueue done [10:46:13]KKMCreateOFDPacket [10:46:13]OFDProtocolAddRootSTLVToBuf [10:46:13]FM_MakeSignedData [10:46:13]FM_MakeSignedData [10:46:13]SAM_PROTO_SignData [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 01 02 [10:46:13]Write to MH i2c: E2 08 00 EC 51 80 0D 01 02 00 00 00 00 B6 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 EC 51 00 90 00 B1 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]wFMCommunicate request_size=255 [10:46:13]MH_SAM_APDU [10:46: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 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 5C 00 00 00 F4 03 04 00 F8 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DA [10:46:13]Write to MH i2c: E2 02 01 ED 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 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 5C 00 00 00 F4 03 04 00 F8 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DA 00 00 99 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 ED 51 00 90 00 B2 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]wFMCommunicate request_size=10 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 02 02 05 F3 8C 75 64 B2 [10:46:13]Write to MH i2c: E2 0D 00 EE 51 80 0D 02 02 05 00 F3 8C 75 64 B2 00 00 CD [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 EE 51 00 90 00 B3 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 03 02 [10:46:13]Write to MH i2c: E2 08 00 EF 51 80 0D 03 02 00 00 00 00 BB [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0B 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0B 00 EF 51 00 FB F6 C9 2A 91 0C 74 64 90 00 15 [10:46:13]RAPDU: FB F6 C9 2A 91 0C 74 64 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_SignData done [10:46:13]FM_MakeSignedData done [10:46:13]CreateOFDProtocolMessage [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 11 00 00 [10:46:13]Write to MH i2c: E2 08 00 F0 51 80 11 00 00 00 00 00 00 BB [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 F0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [10:46: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:46:13]wFMCommunicate OK [10:46:13]CreateOFDProtocolMessage done [10:46:13]OFDSenderStorePacket 70576 [10:46:13]StoreOFDPacket docnum=70576 [10:46: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 57 6A 07 01 41 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 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 5C 00 00 00 F4 03 04 00 F8 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DA F3 8C 75 64 B2 FB F6 C9 2A 91 0C 74 64 [10:46:13]CheckFolder [10:46:13]dirname=/storage/ofd_packets [10:46:13]CheckFolder done [10:46:13]ProducePacketName [10:46:13]name=ofd_packets/00070576 [10:46:13]NVStorageSaveData ofd_packets/00070576 [10:46:13]File name is /storage/ofd_packets/00070576 [10:46:13]Write 301 bytes [10:46:13]NVStorageSaveData done [10:46:13]OFDSenderStorePacket done [10:46:13]KKMCreateOFDPacket done [10:46:13]NVStorageSaveData kkm_last_timestamp [10:46:13]File name is /storage/kkm_last_timestamp [10:46:13]Write 4 bytes [10:46:13]NVStorageSaveData done [10:46:13]ExternCall_PrintAddStr [10:46:13]wPrintStart [10:46:13]Write to MH i2c: 01 00 00 F1 51 42 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 F1 51 00 00 00 00 00 FF 0F 57 [10:46:13]RasterBufferAndPrint [10:46:13]line Счет N : (1)2886348 [10:46:13]line ИНН: 02508201610067 [10:46:13]line Контрольно-Кассовый Чек [10:46:13]line ПРОДАЖА [10:46:13]line ТРК (МРК, ГНК) : 12 [10:46:13]line Товар: 2710124130 [10:46:13]line Аи-92-К-5 [10:46:13]line 7.480 * 66.90 [10:46:13]line = 500.41 [10:46:13]line НДС 12% НСП 1% [10:46:13]line > о реализуемом товаре [10:46:13]line ИТОГО: 500.41 [10:46:13]line НСП 1% : 4.43 [10:46:13]line НДС 12% : 53.14 [10:46:13]line Наличными: 0.00 [10:46:13]line Безнал.: 500.41 [10:46:13]line Место: АЗС № 85 "Партнер Нефть" [10:46:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:46:13]line СНО: Общий режим [10:46:13]line Чек 92 23.10.2024 10:46 [10:46:13]line Смена: 196 ФФД: 1.0 [10:46:13]line ЗНМ: 0300000167 [10:46:13]line РНМ: 0000000000156251 [10:46:13]line Версия ККМ: v1.0 [10:46:13]line Платежная система: Mbank [10:46:13]line ФМ: 0000000000963346 [10:46:13]line ФД: 70576 [10:46:13]line ФПД: 240739568411826 [10:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70576&fm=240739568411826&tin=02508201610067®Number=0000000000156251&sum=50041 [10:46:13]OFD Sender: Processing packet 70576 [packets to send 18, broken 17] [10:46:13]ProducePacketName [10:46:13]name=ofd_packets/00070576 [10:46:13]OFD Sender: To server: pG, [10:46:13]CommunicateWithHost lk.salyk.kg:30040 [10:46:13]ConnectInit lk.salyk.kg [10:46:13]written 0, free lines is 4095 [10:46:13]Connected sock=10 [10:46: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 57 6A 07 01 41 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 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 5C 00 00 00 F4 03 04 00 F8 D3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 DA F3 8C 75 64 B2 FB F6 C9 2A 91 0C 74 64 [10:46: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 97 11 47 00 A4 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 B0 13 01 00 F4 03 04 00 96 7D 18 67 B6 04 01 00 00 EF 28 DB 3E 8C 03 F6 F4 [10:46:14]CommunicateWithHost err = 0 [10:46:14]CheckOFDResponse [10:46:14]1017 (14) - 77093643461234 [10:46:14]1041 (16) - 0000000000963346 [10:46:14]1040 (4) - 70576 [10:46:14]1012 (4) - 23.10.2024 04:37 [10:46:14]1206 (1) - 0 [10:46:14]OFD Sender: Remove packet 70576 [10:46:14]ProducePacketName [10:46:14]name=ofd_packets/00070576 [10:46:14]NVStorageDeleteData [10:46:14]Write to MH i2c: 01 00 00 1A 52 6C [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 1A 52 00 00 00 00 00 11 0D 91 [10:46:14]RasterBufferAndPrint [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]written 0, free lines is 3351 [10:46:14]MH_Cut [10:46:14]Write to MH i2c: D1 01 00 21 52 01 45 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 01 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 01 00 21 52 00 44 [10:46:14]Write to MH i2c: 01 00 00 22 52 74 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]OFD Sender: No OFD packet to send [10:46:14]*** Cut start [10:46:14]*** Partial cut [10:46:14]*** CUTSNS_PIN = 1 [10:46:14]*** CUTSNS_PIN = 0 [10:46:15]*** Brake cut motor [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]*** Stop cut motor [10:46:15]*** Cut end [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 22 52 00 00 00 00 00 FF 0F 89 [10:46:15]process_action close_receipt done [10:46:15]requested_data is exist [10:46:15]produce_requested_data [10:46:15]requested_item fm.sn is exist - process it [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 23 52 80 11 00 00 00 00 00 00 EF [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 23 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [10:46: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:46:15]wFMCommunicate OK [10:46:15]requested_item fd.num is exist - process it [10:46:15]SAM_PROTO_GetFieldsCounters [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 13 00 00 [10:46:15]Write to MH i2c: E2 08 00 24 52 80 13 00 00 00 00 00 00 F2 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 62 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 62 00 24 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 B0 13 01 00 0E 04 04 00 C4 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 A9 [10:46: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 B0 13 01 00 0E 04 04 00 C4 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 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_GetFieldsCounters done [10:46:15]requested_item shift.num is exist - process it [10:46:15]requested_item shift.opened is exist - process it [10:46:15]req_shift_opened [10:46:15]FM_GetShiftState [10:46:15]SAM_PROTO_GetShiftState [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 13 01 00 [10:46:15]Write to MH i2c: E2 08 00 25 52 80 13 01 00 00 00 00 00 F4 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0E 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0E 00 25 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 81 [10:46:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_GetShiftState done [10:46:15]FM_GetShiftState done [10:46:15]req_shift_opened done [10:46:15]requested_item shift.open_date is exist - process it [10:46:15]req_shift_open_date [10:46:15]req_shift_open_date done [10:46:15]produce_requested_data done [10:46:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70576,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:46:15]process_action_free close_receipt [10:46:15]json_value_free [10:46:15]json_value_free done [10:46:15]process_json_proto returns [10:46:15]Send response to host [10:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70576,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:46:15]free response buf [10:46:15]execute_script done [10:46:15]execute_script returns [10:46:15]free content buf [10:46:15]Sock 7.Close socket [10:46:15]Sock 7.Thread stoped [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:01]accept exits with 9 [10:49:01]New connection [10:49:01]New thread 3066699108 created [10:49:01]Thread 3066555748 joined [10:49:01]Waiting for new connection... [10:49:01] Sock 9.Parse request [10:49:01]Sock 9.Check first char [10:49:01]Sock 9.First char is OK [10:49:01]request: POST /json_proto HTTP/1.0 [10:49:01]Method: POST [10:49:01]URL: /json_proto [10:49:01]Method is POST - this is cgi request [10:49:01]url: /json_proto [10:49:01]query_string will be loaded in cgi processing [10:49:01]execute_cgi json_proto POST (null) [10:49:01]execute_cgi path=json_proto method=POST [10:49:01]POST find Content-Length [10:49:01]Host: 172.17.50.3:8080 [10:49:01]Content-Length: 678 [10:49:01]Content-Type: application/json [10:49:01] [10:49:01]POST finish read [10:49:01]Found Content-Length = 678 [10:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886349", "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" ] } } [10:49:01]execute_script... [10:49: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)2886349", "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" ] } } [10:49:01]POST & json_proto [10:49:01]process_json_proto [10:49:01]json parsed OK: [10:49:01]protocol is kg_v1.0 [10:49:01]action value=close_receipt [10:49:01]process_action close_receipt [10:49:01]cmd_close_receipt [10:49:01]MH_GetDate [10:49:01]Write to MH i2c: F0 00 00 26 52 67 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 09 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 09 00 26 52 00 A1 D4 18 67 6B 98 1E 66 EB [10:49:01]GetLastDocTimeStamp 1729680376 [10:49:01]current date 1729680545 [10:49:01]FM_GetShiftState [10:49:01]SAM_PROTO_GetShiftState [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 01 00 [10:49:01]Write to MH i2c: E2 08 00 27 52 80 13 01 00 00 00 00 00 F6 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 27 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 83 [10:49:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetShiftState done [10:49:01]FM_GetShiftState done [10:49:01]opened in 1729642435 [10:49:01]opened+sec_in_day 1729728835 [10:49:01]quantity*price = 50010 [10:49:01]sum+1 = 50012 [10:49:01]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 СНО: Общий режим Чек 93 23.10.2024 10:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70577 ФПД: 220811208756929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70577&fm=220811208756929&tin=02508201610067®Number=0000000000156251&sum=50000 [10:49:02]StoreToDocumentArchive [10:49:02]shift 196 fd 70577 [10:49:02]save to /storage/0196/doc_00070577 [10:49:02]save last doc name /storage/0196/doc_00070577 to /storage/kkm_last_doc_name [10:49:02]save OK [10:49:02]Clear old archive folders... [10:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:02]tlvbuf is 00CB33B0 [10:49:02]SAM_PROTO_ClearQueue [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 09 00 00 [10:49:02]Write to MH i2c: E2 08 00 34 52 80 09 00 00 00 00 00 00 F8 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 34 52 00 90 00 FA [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]SAM_PROTO_ClearQueue done [10:49:02]KKMCreateOFDPacket [10:49:02]OFDProtocolAddRootSTLVToBuf [10:49:02]FM_MakeSignedData [10:49:02]FM_MakeSignedData [10:49:02]SAM_PROTO_SignData [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 0D 01 02 [10:49:02]Write to MH i2c: E2 08 00 35 52 80 0D 01 02 00 00 00 00 00 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 35 52 00 90 00 FB [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]wFMCommunicate request_size=255 [10:49:02]MH_SAM_APDU [10:49: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 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 5D 00 00 00 F4 03 04 00 A1 D4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C8 [10:49:02]Write to MH i2c: E2 02 01 36 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5D 00 00 00 F4 03 04 00 A1 D4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C8 00 00 03 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 36 52 00 90 00 FC [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]wFMCommunicate request_size=10 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 0D 02 02 05 D3 9D A9 0E C1 [10:49:02]Write to MH i2c: E2 0D 00 37 52 80 0D 02 02 05 00 D3 9D A9 0E C1 00 00 F5 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 37 52 00 90 00 FD [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 0D 03 02 [10:49:02]Write to MH i2c: E2 08 00 38 52 80 0D 03 02 00 00 00 00 05 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 0B 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 0B 00 38 52 00 E6 EF D2 04 B1 72 97 E8 90 00 53 [10:49:02]RAPDU: E6 EF D2 04 B1 72 97 E8 90 00 [10:49:02]wFMCommunicate OK [10:49:02]SAM_PROTO_SignData done [10:49:02]FM_MakeSignedData done [10:49:02]CreateOFDProtocolMessage [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 11 00 00 [10:49:02]Write to MH i2c: E2 08 00 39 52 80 11 00 00 00 00 00 00 05 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 17 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 17 00 39 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [10: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 [10:49:02]wFMCommunicate OK [10:49:02]CreateOFDProtocolMessage done [10:49:02]OFDSenderStorePacket 70577 [10:49:02]StoreOFDPacket docnum=70577 [10:49: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 C3 AB 07 01 F0 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 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 5D 00 00 00 F4 03 04 00 A1 D4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C8 D3 9D A9 0E C1 E6 EF D2 04 B1 72 97 E8 [10:49:02]CheckFolder [10:49:02]dirname=/storage/ofd_packets [10:49:02]CheckFolder done [10:49:02]ProducePacketName [10:49:02]name=ofd_packets/00070577 [10:49:02]NVStorageSaveData ofd_packets/00070577 [10:49:02]File name is /storage/ofd_packets/00070577 [10:49:02]Write 301 bytes [10:49:02]NVStorageSaveData done [10:49:02]OFDSenderStorePacket done [10:49:02]KKMCreateOFDPacket done [10:49:02]NVStorageSaveData kkm_last_timestamp [10:49:02]File name is /storage/kkm_last_timestamp [10:49:02]Write 4 bytes [10:49:02]NVStorageSaveData done [10:49:02]ExternCall_PrintAddStr [10:49:02]wPrintStart [10:49:02]Write to MH i2c: 01 00 00 3A 52 8C [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 07 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: 01 07 00 3A 52 00 00 00 00 00 FF 0F A1 [10:49:02]RasterBufferAndPrint [10:49:02]line Счет N : (1)2886349 [10:49:02]line ИНН: 02508201610067 [10:49:02]line Контрольно-Кассовый Чек [10:49:02]line ПРОДАЖА [10:49:02]line ТРК (МРК, ГНК) : 23 [10:49:02]line Товар: 2710124500 [10:49:02]line Аи-95-К-5 [10:49:02]line 6.740 * 74.20 [10:49:02]line = 500.11 [10:49:02]line НДС 12% НСП 1% [10:49:02]line > о реализуемом товаре [10:49:02]line ОКРУГЛЕНИЕ: -0.11 [10:49:02]line ИТОГО: 500.00 [10:49:02]line Внесено: 500.00 [10:49:02]line СДАЧА: 0.00 [10:49:02]line НСП 1% : 4.43 [10:49:02]line НДС 12% : 53.11 [10:49:02]line Наличными: 500.00 [10:49:02]line Безнал.: 0.00 [10:49:02]line Место: АЗС № 85 "Партнер Нефть" [10:49:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:49:02]line СНО: Общий режим [10:49:02]line Чек 93 23.10.2024 10:49 [10:49:02]line Смена: 196 ФФД: 1.0 [10:49:02]line ЗНМ: 0300000167 [10:49:02]line РНМ: 0000000000156251 [10:49:02]line Версия ККМ: v1.0 [10:49:02]line ФМ: 0000000000963346 [10:49:02]line ФД: 70577 [10:49:02]line ФПД: 220811208756929 [10:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70577&fm=220811208756929&tin=02508201610067®Number=0000000000156251&sum=50000 [10:49:03]OFD Sender: Processing packet 70577 [packets to send 18, broken 17] [10:49:03]ProducePacketName [10:49:03]name=ofd_packets/00070577 [10:49:03]OFD Sender: To server: pG, [10:49:03]CommunicateWithHost lk.salyk.kg:30040 [10:49:03]ConnectInit lk.salyk.kg [10:49:03]written 0, free lines is 4095 [10:49:03]Connected sock=10 [10:49: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 C3 AB 07 01 F0 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 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 5D 00 00 00 F4 03 04 00 A1 D4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C8 D3 9D A9 0E C1 E6 EF D2 04 B1 72 97 E8 [10:49: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 42 C8 47 00 74 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 B1 13 01 00 F4 03 04 00 3F 7E 18 67 B6 04 01 00 00 24 2E 80 BB CF 2B CE 5E [10:49:03]CommunicateWithHost err = 0 [10:49:03]CheckOFDResponse [10:49:03]1017 (14) - 77093643461234 [10:49:03]1041 (16) - 0000000000963346 [10:49:03]1040 (4) - 70577 [10:49:03]1012 (4) - 23.10.2024 04:40 [10:49:03]1206 (1) - 0 [10:49:03]OFD Sender: Remove packet 70577 [10:49:03]ProducePacketName [10:49:03]name=ofd_packets/00070577 [10:49:03]NVStorageDeleteData [10:49:03]Write to MH i2c: 01 00 00 65 52 B7 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 65 52 00 00 00 00 00 F9 0C C3 [10:49:03]RasterBufferAndPrint [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]line [10:49:03]written 0, free lines is 3328 [10:49:03]MH_Cut [10:49:03]Write to MH i2c: D1 01 00 6C 52 01 90 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 01 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: D1 01 00 6C 52 00 8F [10:49:03]Write to MH i2c: 01 00 00 6D 52 BF [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]OFD Sender: No OFD packet to send [10:49:04]*** Cut start [10:49:04]*** Partial cut [10:49:04]*** CUTSNS_PIN = 1 [10:49:04]*** CUTSNS_PIN = 0 [10:49:04]*** Brake cut motor [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]*** Stop cut motor [10:49:04]*** Cut end [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 6D 52 00 00 00 00 00 FF 0F D4 [10:49:04]process_action close_receipt done [10:49:04]requested_data is exist [10:49:04]produce_requested_data [10:49:04]requested_item fm.sn is exist - process it [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 11 00 00 [10:49:04]Write to MH i2c: E2 08 00 6E 52 80 11 00 00 00 00 00 00 3A [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 6E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [10:49:04]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:04]wFMCommunicate OK [10:49:04]requested_item fd.num is exist - process it [10:49:04]SAM_PROTO_GetFieldsCounters [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 00 00 [10:49:04]Write to MH i2c: E2 08 00 6F 52 80 13 00 00 00 00 00 00 3D [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 6F 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 B1 13 01 00 0E 04 04 00 C4 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 F8 [10:49: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 B1 13 01 00 0E 04 04 00 C4 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 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetFieldsCounters done [10:49:05]requested_item shift.num is exist - process it [10:49:05]requested_item shift.opened is exist - process it [10:49:05]req_shift_opened [10:49:05]FM_GetShiftState [10:49:05]SAM_PROTO_GetShiftState [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 01 00 [10:49:05]Write to MH i2c: E2 08 00 70 52 80 13 01 00 00 00 00 00 3F [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:05]Read from MH i2c: E2 0E 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 0E 00 70 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CC [10:49:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetShiftState done [10:49:05]FM_GetShiftState done [10:49:05]req_shift_opened done [10:49:05]requested_item shift.open_date is exist - process it [10:49:05]req_shift_open_date [10:49:05]req_shift_open_date done [10:49:05]produce_requested_data done [10:49:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70577,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:49:05]process_action_free close_receipt [10:49:05]json_value_free [10:49:05]json_value_free done [10:49:05]process_json_proto returns [10:49:05]Send response to host [10:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70577,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:49:05]free response buf [10:49:05]execute_script done [10:49:05]execute_script returns [10:49:05]free content buf [10:49:05]Sock 9.Close socket [10:49:05]Sock 9.Thread stoped [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [10:53:26]accept exits with 7 [10:53:26]New connection [10:53:26]New thread 3066555748 created [10:53:26]Thread 3066699108 joined [10:53:26]Waiting for new connection... [10:53:26] Sock 7.Parse request [10:53:26]Sock 7.Check first char [10:53:26]Sock 7.First char is OK [10:53:26]request: POST /json_proto HTTP/1.0 [10:53:26]Method: POST [10:53:26]URL: /json_proto [10:53:26]Method is POST - this is cgi request [10:53:26]url: /json_proto [10:53:26]query_string will be loaded in cgi processing [10:53:26]execute_cgi json_proto POST (null) [10:53:26]execute_cgi path=json_proto method=POST [10:53:26]POST find Content-Length [10:53:26]Host: 172.17.50.3:8080 [10:53:26]Content-Length: 689 [10:53:26]Content-Type: application/json [10:53:26] [10:53:26]POST finish read [10:53:26]Found Content-Length = 689 [10:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886350", "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" ] } } [10:53:26]execute_script... [10:53: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)2886350", "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" ] } } [10:53:26]POST & json_proto [10:53:26]process_json_proto [10:53:26]json parsed OK: [10:53:26]protocol is kg_v1.0 [10:53:26]action value=close_receipt [10:53:26]process_action close_receipt [10:53:26]cmd_close_receipt [10:53:26]MH_GetDate [10:53:26]Write to MH i2c: F0 00 00 71 52 B2 [10:53:26]Write i2c OK [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: F0 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: F0 09 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: F0 09 00 71 52 00 AA D5 18 67 6B 98 1E 66 40 [10:53:26]GetLastDocTimeStamp 1729680545 [10:53:26]current date 1729680810 [10:53:26]FM_GetShiftState [10:53:26]SAM_PROTO_GetShiftState [10:53:26]wFMCommunicate request_size=4 [10:53:26]MH_SAM_APDU [10:53:26]CAPDU: 80 13 01 00 [10:53:26]Write to MH i2c: E2 08 00 72 52 80 13 01 00 00 00 00 00 41 [10:53:26]Write i2c OK [10:53:26]MH_I2C_Read... [10:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:26]Read from MH i2c: E2 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 0E 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 0E 00 72 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CE [10:53:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:53:26]wFMCommunicate OK [10:53:26]SAM_PROTO_GetShiftState done [10:53:26]FM_GetShiftState done [10:53:26]opened in 1729642435 [10:53:26]opened+sec_in_day 1729728835 [10:53:26]quantity*price = 150076 [10:53:26]sum+1 = 150078 [10:53:26]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 СНО: Общий режим Чек 94 23.10.2024 10:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70578 ФПД: 54927979098517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105330&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70578&fm=54927979098517&tin=02508201610067®Number=0000000000156251&sum=150000 [10:53:27]StoreToDocumentArchive [10:53:27]shift 196 fd 70578 [10:53:27]save to /storage/0196/doc_00070578 [10:53:27]save last doc name /storage/0196/doc_00070578 to /storage/kkm_last_doc_name [10:53:27]save OK [10:53:27]Clear old archive folders... [10:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:53:27]tlvbuf is B6D6A1A0 [10:53:27]SAM_PROTO_ClearQueue [10:53:27]wFMCommunicate request_size=4 [10:53:27]MH_SAM_APDU [10:53:27]CAPDU: 80 09 00 00 [10:53:27]Write to MH i2c: E2 08 00 7F 52 80 09 00 00 00 00 00 00 43 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 7F 52 00 90 00 45 [10:53:27]RAPDU: 90 00 [10:53:27]wFMCommunicate OK [10:53:27]SAM_PROTO_ClearQueue done [10:53:27]KKMCreateOFDPacket [10:53:27]OFDProtocolAddRootSTLVToBuf [10:53:27]FM_MakeSignedData [10:53:27]FM_MakeSignedData [10:53:27]SAM_PROTO_SignData [10:53:27]wFMCommunicate request_size=4 [10:53:27]MH_SAM_APDU [10:53:27]CAPDU: 80 0D 01 02 [10:53:27]Write to MH i2c: E2 08 00 80 52 80 0D 01 02 00 00 00 00 4B [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 80 52 00 90 00 46 [10:53:27]RAPDU: 90 00 [10:53:27]wFMCommunicate OK [10:53:27]wFMCommunicate request_size=255 [10:53:27]MH_SAM_APDU [10:53:27]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 5E 00 00 00 F4 03 04 00 AA D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [10:53:27]Write to MH i2c: E2 02 01 81 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 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 5E 00 00 00 F4 03 04 00 AA D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 D5 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 81 52 00 90 00 47 [10:53:27]RAPDU: 90 00 [10:53:27]wFMCommunicate OK [10:53:27]wFMCommunicate request_size=16 [10:53:27]MH_SAM_APDU [10:53:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 31 F4 EA AE B1 95 [10:53:27]Write to MH i2c: E2 13 00 82 52 80 0D 02 02 0B 00 00 35 04 06 00 31 F4 EA AE B1 95 00 00 A6 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 03 00 82 52 00 90 00 48 [10:53:27]RAPDU: 90 00 [10:53:27]wFMCommunicate OK [10:53:27]wFMCommunicate request_size=4 [10:53:27]MH_SAM_APDU [10:53:27]CAPDU: 80 0D 03 02 [10:53:27]Write to MH i2c: E2 08 00 83 52 80 0D 03 02 00 00 00 00 50 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 0B 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 0B 00 83 52 00 AC 91 83 5A 78 41 52 73 90 00 E9 [10:53:27]RAPDU: AC 91 83 5A 78 41 52 73 90 00 [10:53:27]wFMCommunicate OK [10:53:27]SAM_PROTO_SignData done [10:53:27]FM_MakeSignedData done [10:53:27]CreateOFDProtocolMessage [10:53:27]wFMCommunicate request_size=4 [10:53:27]MH_SAM_APDU [10:53:27]CAPDU: 80 11 00 00 [10:53:27]Write to MH i2c: E2 08 00 84 52 80 11 00 00 00 00 00 00 50 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:27]Read from MH i2c: E2 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 17 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: E2 17 00 84 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [10: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 [10:53:27]wFMCommunicate OK [10:53:27]CreateOFDProtocolMessage done [10:53:27]OFDSenderStorePacket 70578 [10:53:27]StoreOFDPacket docnum=70578 [10:53: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 15 01 00 00 2D AC 0D 01 E7 32 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 5E 00 00 00 F4 03 04 00 AA D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 31 F4 EA AE B1 95 AC 91 83 5A 78 41 52 73 [10:53:27]CheckFolder [10:53:27]dirname=/storage/ofd_packets [10:53:27]CheckFolder done [10:53:27]ProducePacketName [10:53:27]name=ofd_packets/00070578 [10:53:27]NVStorageSaveData ofd_packets/00070578 [10:53:27]File name is /storage/ofd_packets/00070578 [10:53:27]Write 307 bytes [10:53:27]NVStorageSaveData done [10:53:27]OFDSenderStorePacket done [10:53:27]KKMCreateOFDPacket done [10:53:27]NVStorageSaveData kkm_last_timestamp [10:53:27]File name is /storage/kkm_last_timestamp [10:53:27]Write 4 bytes [10:53:27]NVStorageSaveData done [10:53:27]ExternCall_PrintAddStr [10:53:27]wPrintStart [10:53:27]Write to MH i2c: 01 00 00 85 52 D7 [10:53:27]Write i2c OK [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: 01 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: 01 07 00 [10:53:27]MH_I2C_Read... [10:53:27]Read from MH i2c: 01 07 00 85 52 00 00 00 00 00 FF 0F EC [10:53:27]RasterBufferAndPrint [10:53:27]line Счет N : (1)2886350 [10:53:27]line ИНН: 02508201610067 [10:53:27]line Контрольно-Кассовый Чек [10:53:27]line ПРОДАЖА [10:53:27]line ТРК (МРК, ГНК) : 41 [10:53:27]line Товар: 2710194240 [10:53:27]line D-ENERGY Дт-К-2 [10:53:27]line 19.440 * 77.20 [10:53:27]line = 1500.77 [10:53:27]line НДС 12% НСП 1% [10:53:27]line > о реализуемом товаре [10:53:27]line ОКРУГЛЕНИЕ: -0.77 [10:53:27]line ИТОГО: 1500.00 [10:53:27]line Внесено: 1500.00 [10:53:27]line СДАЧА: 0.00 [10:53:27]line НСП 1% : 13.28 [10:53:27]line НДС 12% : 159.37 [10:53:27]line Наличными: 1500.00 [10:53:27]line Безнал.: 0.00 [10:53:27]line Место: АЗС № 85 "Партнер Нефть" [10:53:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:53:27]line СНО: Общий режим [10:53:27]line Чек 94 23.10.2024 10:53 [10:53:27]line Смена: 196 ФФД: 1.0 [10:53:27]line ЗНМ: 0300000167 [10:53:27]line РНМ: 0000000000156251 [10:53:27]line Версия ККМ: v1.0 [10:53:27]line ФМ: 0000000000963346 [10:53:27]line ФД: 70578 [10:53:27]line ФПД: 54927979098517 [10:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105330&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70578&fm=54927979098517&tin=02508201610067®Number=0000000000156251&sum=150000 [10:53:28]OFD Sender: Processing packet 70578 [packets to send 18, broken 17] [10:53:28]ProducePacketName [10:53:28]name=ofd_packets/00070578 [10:53:28]OFD Sender: To server: pG, [10:53:28]CommunicateWithHost lk.salyk.kg:30040 [10:53:28]ConnectInit lk.salyk.kg [10:53:28]written 0, free lines is 4095 [10:53:28]Connected sock=10 [10:53: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 15 01 00 00 2D AC 0D 01 E7 32 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 5E 00 00 00 F4 03 04 00 AA D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 31 F4 EA AE B1 95 AC 91 83 5A 78 41 52 73 [10:53: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 EA EB 47 00 33 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 B2 13 01 00 F4 03 04 00 48 7F 18 67 B6 04 01 00 00 AC DB B6 1C 13 EE 86 25 [10:53:28]CommunicateWithHost err = 0 [10:53:28]CheckOFDResponse [10:53:28]1017 (14) - 77093643461234 [10:53:28]1041 (16) - 0000000000963346 [10:53:28]1040 (4) - 70578 [10:53:28]1012 (4) - 23.10.2024 04:44 [10:53:28]1206 (1) - 0 [10:53:28]OFD Sender: Remove packet 70578 [10:53:28]ProducePacketName [10:53:28]name=ofd_packets/00070578 [10:53:28]NVStorageDeleteData [10:53:28]Write to MH i2c: 01 00 00 B0 52 02 [10:53:28]Write i2c OK [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: 01 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: 01 07 00 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: 01 07 00 B0 52 00 00 00 00 00 FF 0C 14 [10:53:28]RasterBufferAndPrint [10:53:28]line [10:53:28]line [10:53:28]line [10:53:28]line [10:53:28]line [10:53:28]written 0, free lines is 3333 [10:53:28]MH_Cut [10:53:28]Write to MH i2c: D1 01 00 B7 52 01 DB [10:53:28]Write i2c OK [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: D1 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: D1 01 00 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: D1 01 00 B7 52 00 DA [10:53:28]Write to MH i2c: 01 00 00 B8 52 0A [10:53:28]Write i2c OK [10:53:28]MH_I2C_Read... [10:53:29]OFD Sender: No OFD packet to send [10:53:29]*** Cut start [10:53:29]*** Partial cut [10:53:29]*** CUTSNS_PIN = 1 [10:53:29]*** CUTSNS_PIN = 0 [10:53:29]*** Brake cut motor [10:53:30]Read from MH i2c: 01 [10:53:30]MH_I2C_Read... [10:53:30]*** Stop cut motor [10:53:30]*** Cut end [10:53:30]Read from MH i2c: 01 07 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 B8 52 00 00 00 00 00 FF 0F 1F [10:53:30]process_action close_receipt done [10:53:30]requested_data is exist [10:53:30]produce_requested_data [10:53:30]requested_item fm.sn is exist - process it [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 11 00 00 [10:53:30]Write to MH i2c: E2 08 00 B9 52 80 11 00 00 00 00 00 00 85 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 B9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [10:53:30]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:30]wFMCommunicate OK [10:53:30]requested_item fd.num is exist - process it [10:53:30]SAM_PROTO_GetFieldsCounters [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 13 00 00 [10:53:30]Write to MH i2c: E2 08 00 BA 52 80 13 00 00 00 00 00 00 88 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 62 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 62 00 BA 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 B2 13 01 00 0E 04 04 00 C4 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 47 [10:53: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 B2 13 01 00 0E 04 04 00 C4 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 [10:53:30]wFMCommunicate OK [10:53:30]SAM_PROTO_GetFieldsCounters done [10:53:30]requested_item shift.num is exist - process it [10:53:30]requested_item shift.opened is exist - process it [10:53:30]req_shift_opened [10:53:30]FM_GetShiftState [10:53:30]SAM_PROTO_GetShiftState [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 13 01 00 [10:53:30]Write to MH i2c: E2 08 00 BB 52 80 13 01 00 00 00 00 00 8A [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:30]Read from MH i2c: E2 0E 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 0E 00 BB 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 17 [10:53:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:53:30]wFMCommunicate OK [10:53:30]SAM_PROTO_GetShiftState done [10:53:30]FM_GetShiftState done [10:53:30]req_shift_opened done [10:53:30]requested_item shift.open_date is exist - process it [10:53:30]req_shift_open_date [10:53:30]req_shift_open_date done [10:53:30]produce_requested_data done [10:53:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70578,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:53:30]process_action_free close_receipt [10:53:30]json_value_free [10:53:30]json_value_free done [10:53:30]process_json_proto returns [10:53:30]Send response to host [10:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70578,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:53:30]free response buf [10:53:30]execute_script done [10:53:30]execute_script returns [10:53:30]free content buf [10:53:30]Sock 7.Close socket [10:53:30]Sock 7.Thread stoped [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:43]accept exits with 9 [10:54:43]New connection [10:54:43]New thread 3066699108 created [10:54:43]Thread 3066555748 joined [10:54:43]Waiting for new connection... [10:54:43] Sock 9.Parse request [10:54:43]Sock 9.Check first char [10:54:43]Sock 9.First char is OK [10:54:43]request: POST /json_proto HTTP/1.0 [10:54:43]Method: POST [10:54:43]URL: /json_proto [10:54:43]Method is POST - this is cgi request [10:54:43]url: /json_proto [10:54:43]query_string will be loaded in cgi processing [10:54:43]execute_cgi json_proto POST (null) [10:54:43]execute_cgi path=json_proto method=POST [10:54:43]POST find Content-Length [10:54:43]Host: 172.17.50.3:8080 [10:54:43]Content-Length: 676 [10:54:43]Content-Type: application/json [10:54:43] [10:54:43]POST finish read [10:54:43]Found Content-Length = 676 [10:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886351", "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" : 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" ] } } [10:54:43]execute_script... [10:54: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)2886351", "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" : 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" ] } } [10:54:43]POST & json_proto [10:54:43]process_json_proto [10:54:43]json parsed OK: [10:54:43]protocol is kg_v1.0 [10:54:43]action value=close_receipt [10:54:43]process_action close_receipt [10:54:43]cmd_close_receipt [10:54:43]MH_GetDate [10:54:43]Write to MH i2c: F0 00 00 BC 52 FD [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 BC 52 00 F8 D5 18 67 6B 98 1E 66 D9 [10:54:43]GetLastDocTimeStamp 1729680810 [10:54:43]current date 1729680888 [10:54:43]FM_GetShiftState [10:54:43]SAM_PROTO_GetShiftState [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 13 01 00 [10:54:43]Write to MH i2c: E2 08 00 BD 52 80 13 01 00 00 00 00 00 8C [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 BD 52 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 19 [10:54:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:54:43]wFMCommunicate OK [10:54:43]SAM_PROTO_GetShiftState done [10:54:43]FM_GetShiftState done [10:54:43]opened in 1729642435 [10:54:43]opened+sec_in_day 1729728835 [10:54:43]quantity*price = 80010 [10:54:43]sum+1 = 80011 [10:54:43]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 СНО: Общий режим Чек 95 23.10.2024 10:54 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70579 ФПД: 19053261362155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70579&fm=19053261362155&tin=02508201610067®Number=0000000000156251&sum=80000 [10:54:44]StoreToDocumentArchive [10:54:44]shift 196 fd 70579 [10:54:44]save to /storage/0196/doc_00070579 [10:54:44]save last doc name /storage/0196/doc_00070579 to /storage/kkm_last_doc_name [10:54:44]save OK [10:54:44]Clear old archive folders... [10:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:44]tlvbuf is 00E15950 [10:54:44]SAM_PROTO_ClearQueue [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 09 00 00 [10:54:44]Write to MH i2c: E2 08 00 CA 52 80 09 00 00 00 00 00 00 8E [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 CA 52 00 90 00 90 [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]SAM_PROTO_ClearQueue done [10:54:44]KKMCreateOFDPacket [10:54:44]OFDProtocolAddRootSTLVToBuf [10:54:44]FM_MakeSignedData [10:54:44]FM_MakeSignedData [10:54:44]SAM_PROTO_SignData [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 0D 01 02 [10:54:44]Write to MH i2c: E2 08 00 CB 52 80 0D 01 02 00 00 00 00 96 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 CB 52 00 90 00 91 [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]wFMCommunicate request_size=255 [10:54:44]MH_SAM_APDU [10:54: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 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 5F 00 00 00 F4 03 04 00 F8 D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 54 2E E0 [10:54:44]Write to MH i2c: E2 02 01 CC 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 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 5F 00 00 00 F4 03 04 00 F8 D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 54 2E E0 00 00 F1 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 CC 52 00 90 00 92 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=7 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 02 02 02 13 EB [10:54:45]Write to MH i2c: E2 0A 00 CD 52 80 0D 02 02 02 00 13 EB 00 00 9B [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 CD 52 00 90 00 93 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 03 02 [10:54:45]Write to MH i2c: E2 08 00 CE 52 80 0D 03 02 00 00 00 00 9B [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 CE 52 00 41 68 BA A4 57 38 26 2F 90 00 87 [10:54:45]RAPDU: 41 68 BA A4 57 38 26 2F 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_SignData done [10:54:45]FM_MakeSignedData done [10:54:45]CreateOFDProtocolMessage [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 11 00 00 [10:54:45]Write to MH i2c: E2 08 00 CF 52 80 11 00 00 00 00 00 00 9B [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 CF 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [10:54: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:54:45]wFMCommunicate OK [10:54:45]CreateOFDProtocolMessage done [10:54:45]OFDSenderStorePacket 70579 [10:54:45]StoreOFDPacket docnum=70579 [10:54: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 7B 6E 04 01 2F B0 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 5F 00 00 00 F4 03 04 00 F8 D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 54 2E E0 13 EB 41 68 BA A4 57 38 26 2F [10:54:45]CheckFolder [10:54:45]dirname=/storage/ofd_packets [10:54:45]CheckFolder done [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00070579 [10:54:45]NVStorageSaveData ofd_packets/00070579 [10:54:45]File name is /storage/ofd_packets/00070579 [10:54:45]Write 298 bytes [10:54:45]NVStorageSaveData done [10:54:45]OFDSenderStorePacket done [10:54:45]KKMCreateOFDPacket done [10:54:45]NVStorageSaveData kkm_last_timestamp [10:54:45]File name is /storage/kkm_last_timestamp [10:54:45]Write 4 bytes [10:54:45]NVStorageSaveData done [10:54:45]ExternCall_PrintAddStr [10:54:45]wPrintStart [10:54:45]Write to MH i2c: 01 00 00 D0 52 22 [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 D0 52 00 00 00 00 00 FF 0F 37 [10:54:45]RasterBufferAndPrint [10:54:45]line Счет N : (1)2886351 [10:54:45]line ИНН: 02508201610067 [10:54:45]line Контрольно-Кассовый Чек [10:54:45]line ПРОДАЖА [10:54:45]line ТРК (МРК, ГНК) : 61 [10:54:45]line Товар: 2710194210 [10:54:45]line ДТ-К-5 [10:54:45]line 10.500 * 76.20 [10:54:45]line = 800.10 [10:54:45]line НДС 12% НСП 1% [10:54:45]line > о реализуемом товаре [10:54:45]line ОКРУГЛЕНИЕ: -0.10 [10:54:45]line ИТОГО: 800.00 [10:54:45]line Внесено: 800.00 [10:54:45]line СДАЧА: 0.00 [10:54:45]line НСП 1% : 7.08 [10:54:45]line НДС 12% : 84.97 [10:54:45]line Наличными: 800.00 [10:54:45]line Безнал.: 0.00 [10:54:45]line Место: АЗС № 85 "Партнер Нефть" [10:54:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:54:45]line СНО: Общий режим [10:54:45]line Чек 95 23.10.2024 10:54 [10:54:45]line Смена: 196 ФФД: 1.0 [10:54:45]line ЗНМ: 0300000167 [10:54:45]line РНМ: 0000000000156251 [10:54:45]line Версия ККМ: v1.0 [10:54:45]line ФМ: 0000000000963346 [10:54:45]line ФД: 70579 [10:54:45]line ФПД: 19053261362155 [10:54:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70579&fm=19053261362155&tin=02508201610067®Number=0000000000156251&sum=80000 [10:54:45]OFD Sender: Processing packet 70579 [packets to send 18, broken 17] [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00070579 [10:54:45]OFD Sender: To server: pG, [10:54:45]CommunicateWithHost lk.salyk.kg:30040 [10:54:45]ConnectInit lk.salyk.kg [10:54:45]written 0, free lines is 4095 [10:54:45]Connected sock=10 [10:54: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 7B 6E 04 01 2F B0 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 5F 00 00 00 F4 03 04 00 F8 D5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 54 2E E0 13 EB 41 68 BA A4 57 38 26 2F [10: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 34 BD 47 00 B5 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 B3 13 01 00 F4 03 04 00 96 7F 18 67 B6 04 01 00 00 41 62 96 85 74 E1 E8 D9 [10:54:46]CommunicateWithHost err = 0 [10:54:46]CheckOFDResponse [10:54:46]1017 (14) - 77093643461234 [10:54:46]1041 (16) - 0000000000963346 [10:54:46]1040 (4) - 70579 [10:54:46]1012 (4) - 23.10.2024 04:46 [10:54:46]1206 (1) - 0 [10:54:46]OFD Sender: Remove packet 70579 [10:54:46]ProducePacketName [10:54:46]name=ofd_packets/00070579 [10:54:46]NVStorageDeleteData [10:54:46]Write to MH i2c: 01 00 00 FB 52 4D [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 FB 52 00 00 00 00 00 0D 0D 6E [10:54:46]RasterBufferAndPrint [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]written 0, free lines is 3350 [10:54:46]MH_Cut [10:54:46]Write to MH i2c: D1 01 00 02 53 01 27 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 02 53 00 26 [10:54:46]Write to MH i2c: 01 00 00 03 53 56 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]OFD Sender: No OFD packet to send [10:54:46]*** Cut start [10:54:46]*** Partial cut [10:54:46]*** CUTSNS_PIN = 1 [10:54:46]*** CUTSNS_PIN = 0 [10:54:47]*** Brake cut motor [10:54:47]Read from MH i2c: 01 [10:54:47]MH_I2C_Read... [10:54:47]*** Stop cut motor [10:54:47]*** Cut end [10:54:47]Read from MH i2c: 01 07 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 03 53 00 00 00 00 00 FF 0F 6B [10:54:47]process_action close_receipt done [10:54:47]requested_data is exist [10:54:47]produce_requested_data [10:54:47]requested_item fm.sn is exist - process it [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 11 00 00 [10:54:47]Write to MH i2c: E2 08 00 04 53 80 11 00 00 00 00 00 00 D1 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 04 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [10:54: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:54:47]wFMCommunicate OK [10:54:47]requested_item fd.num is exist - process it [10:54:47]SAM_PROTO_GetFieldsCounters [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 00 00 [10:54:47]Write to MH i2c: E2 08 00 05 53 80 13 00 00 00 00 00 00 D4 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 05 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 97 [10:54: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 13 01 00 0E 04 04 00 C4 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 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetFieldsCounters done [10:54:47]requested_item shift.num is exist - process it [10:54:47]requested_item shift.opened is exist - process it [10:54:47]req_shift_opened [10:54:47]FM_GetShiftState [10:54:47]SAM_PROTO_GetShiftState [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 01 00 [10:54:47]Write to MH i2c: E2 08 00 06 53 80 13 01 00 00 00 00 00 D6 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 06 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 63 [10:54:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetShiftState done [10:54:47]FM_GetShiftState done [10:54:47]req_shift_opened done [10:54:47]requested_item shift.open_date is exist - process it [10:54:47]req_shift_open_date [10:54:47]req_shift_open_date done [10:54:47]produce_requested_data done [10:54:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70579,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:54:47]process_action_free close_receipt [10:54:47]json_value_free [10:54:47]json_value_free done [10:54:47]process_json_proto returns [10:54:47]Send response to host [10:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70579,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:54:47]free response buf [10:54:47]execute_script done [10:54:47]execute_script returns [10:54:47]free content buf [10:54:47]Sock 9.Close socket [10:54:47]Sock 9.Thread stoped [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:50]accept exits with 7 [10:55:50]New connection [10:55:50]New thread 3066555748 created [10:55:50]Thread 3066699108 joined [10:55:50]Waiting for new connection... [10:55:50] Sock 7.Parse request [10:55:50]Sock 7.Check first char [10:55:50]Sock 7.First char is OK [10:55:50]request: POST /json_proto HTTP/1.0 [10:55:50]Method: POST [10:55:50]URL: /json_proto [10:55:50]Method is POST - this is cgi request [10:55:50]url: /json_proto [10:55:50]query_string will be loaded in cgi processing [10:55:50]execute_cgi json_proto POST (null) [10:55:50]execute_cgi path=json_proto method=POST [10:55:50]POST find Content-Length [10:55:50]Host: 172.17.50.3:8080 [10:55:50]Content-Length: 678 [10:55:50]Content-Type: application/json [10:55:50] [10:55:50]POST finish read [10:55:50]Found Content-Length = 678 [10:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886352", "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" ] } } [10:55:50]execute_script... [10:55: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)2886352", "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" ] } } [10:55:50]POST & json_proto [10:55:50]process_json_proto [10:55:50]json parsed OK: [10:55:50]protocol is kg_v1.0 [10:55:50]action value=close_receipt [10:55:50]process_action close_receipt [10:55:50]cmd_close_receipt [10:55:50]MH_GetDate [10:55:50]Write to MH i2c: F0 00 00 07 53 49 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 09 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 09 00 07 53 00 3A D6 18 67 6B 98 1E 66 68 [10:55:50]GetLastDocTimeStamp 1729680888 [10:55:50]current date 1729680954 [10:55:50]FM_GetShiftState [10:55:50]SAM_PROTO_GetShiftState [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 13 01 00 [10:55:50]Write to MH i2c: E2 08 00 08 53 80 13 01 00 00 00 00 00 D8 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0E 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0E 00 08 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 65 [10:55:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:55:50]wFMCommunicate OK [10:55:50]SAM_PROTO_GetShiftState done [10:55:50]FM_GetShiftState done [10:55:50]opened in 1729642435 [10:55:50]opened+sec_in_day 1729728835 [10:55:50]quantity*price = 40006 [10:55:50]sum+1 = 40007 [10:55:50]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 СНО: Общий режим Чек 96 23.10.2024 10:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70580 ФПД: 172775102901513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70580&fm=172775102901513&tin=02508201610067®Number=0000000000156251&sum=40000 [10:55:51]StoreToDocumentArchive [10:55:51]shift 196 fd 70580 [10:55:51]save to /storage/0196/doc_00070580 [10:55:51]save last doc name /storage/0196/doc_00070580 to /storage/kkm_last_doc_name [10:55:51]save OK [10:55:51]Clear old archive folders... [10:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:51]tlvbuf is 00E15950 [10:55:51]SAM_PROTO_ClearQueue [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 09 00 00 [10:55:51]Write to MH i2c: E2 08 00 15 53 80 09 00 00 00 00 00 00 DA [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 15 53 00 90 00 DC [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_ClearQueue done [10:55:51]KKMCreateOFDPacket [10:55:51]OFDProtocolAddRootSTLVToBuf [10:55:51]FM_MakeSignedData [10:55:51]FM_MakeSignedData [10:55:51]SAM_PROTO_SignData [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 01 02 [10:55:51]Write to MH i2c: E2 08 00 16 53 80 0D 01 02 00 00 00 00 E2 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 16 53 00 90 00 DD [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=255 [10:55:51]MH_SAM_APDU [10:55: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 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 60 00 00 00 F4 03 04 00 3A D6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D [10:55:51]Write to MH i2c: E2 02 01 17 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 3A D6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 00 00 52 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]OFD Sender: No OFD packet to send [10:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 17 53 00 90 00 DE [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=10 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 02 02 05 23 56 A2 6D 09 [10:55:51]Write to MH i2c: E2 0D 00 18 53 80 0D 02 02 05 00 23 56 A2 6D 09 00 00 80 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 18 53 00 90 00 DF [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 03 02 [10:55:51]Write to MH i2c: E2 08 00 19 53 80 0D 03 02 00 00 00 00 E7 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0B 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0B 00 19 53 00 61 44 2F FC 04 56 6F CD 90 00 4E [10:55:51]RAPDU: 61 44 2F FC 04 56 6F CD 90 00 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_SignData done [10:55:51]FM_MakeSignedData done [10:55:51]CreateOFDProtocolMessage [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 11 00 00 [10:55:51]Write to MH i2c: E2 08 00 1A 53 80 11 00 00 00 00 00 00 E7 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 1A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [10:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:51]wFMCommunicate OK [10:55:51]CreateOFDProtocolMessage done [10:55:51]OFDSenderStorePacket 70580 [10:55:51]StoreOFDPacket docnum=70580 [10:55: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 14 67 07 01 34 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 3A D6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 23 56 A2 6D 09 61 44 2F FC 04 56 6F CD [10:55:51]CheckFolder [10:55:51]dirname=/storage/ofd_packets [10:55:51]CheckFolder done [10:55:51]ProducePacketName [10:55:51]name=ofd_packets/00070580 [10:55:51]NVStorageSaveData ofd_packets/00070580 [10:55:51]File name is /storage/ofd_packets/00070580 [10:55:51]Write 301 bytes [10:55:51]NVStorageSaveData done [10:55:51]OFDSenderStorePacket done [10:55:51]KKMCreateOFDPacket done [10:55:51]NVStorageSaveData kkm_last_timestamp [10:55:51]File name is /storage/kkm_last_timestamp [10:55:51]Write 4 bytes [10:55:51]NVStorageSaveData done [10:55:51]ExternCall_PrintAddStr [10:55:51]wPrintStart [10:55:51]Write to MH i2c: 01 00 00 1B 53 6E [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 1B 53 00 00 00 00 00 FF 0F 83 [10:55:51]RasterBufferAndPrint [10:55:51]line Счет N : (1)2886352 [10:55:51]line ИНН: 02508201610067 [10:55:51]line Контрольно-Кассовый Чек [10:55:51]line ПРОДАЖА [10:55:51]line ТРК (МРК, ГНК) : 42 [10:55:51]line Товар: 2710124130 [10:55:51]line Аи-92-К-5 [10:55:51]line 5.980 * 66.90 [10:55:51]line = 400.06 [10:55:51]line НДС 12% НСП 1% [10:55:51]line > о реализуемом товаре [10:55:51]line ОКРУГЛЕНИЕ: -0.06 [10:55:51]line ИТОГО: 400.00 [10:55:51]line Внесено: 400.00 [10:55:51]line СДАЧА: 0.00 [10:55:51]line НСП 1% : 3.54 [10:55:51]line НДС 12% : 42.48 [10:55:51]line Наличными: 400.00 [10:55:51]line Безнал.: 0.00 [10:55:51]line Место: АЗС № 85 "Партнер Нефть" [10:55:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:55:51]line СНО: Общий режим [10:55:51]line Чек 96 23.10.2024 10:55 [10:55:51]line Смена: 196 ФФД: 1.0 [10:55:51]line ЗНМ: 0300000167 [10:55:51]line РНМ: 0000000000156251 [10:55:51]line Версия ККМ: v1.0 [10:55:51]line ФМ: 0000000000963346 [10:55:51]line ФД: 70580 [10:55:51]line ФПД: 172775102901513 [10:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70580&fm=172775102901513&tin=02508201610067®Number=0000000000156251&sum=40000 [10:55:52]OFD Sender: Processing packet 70580 [packets to send 18, broken 17] [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00070580 [10:55:52]OFD Sender: To server: pG, [10:55:52]CommunicateWithHost lk.salyk.kg:30040 [10:55:52]ConnectInit lk.salyk.kg [10:55:52]written 0, free lines is 4095 [10:55:52]Connected sock=10 [10:55: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 14 67 07 01 34 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 3A D6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 9D 23 56 A2 6D 09 61 44 2F FC 04 56 6F CD [10:55: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 58 24 47 00 FF 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 B4 13 01 00 F4 03 04 00 D8 7F 18 67 B6 04 01 00 00 9A 1B 0C CD 41 94 8E 52 [10:55:52]CommunicateWithHost err = 0 [10:55:52]CheckOFDResponse [10:55:52]1017 (14) - 77093643461234 [10:55:52]1041 (16) - 0000000000963346 [10:55:52]1040 (4) - 70580 [10:55:52]1012 (4) - 23.10.2024 04:47 [10:55:52]1206 (1) - 0 [10:55:52]OFD Sender: Remove packet 70580 [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00070580 [10:55:52]NVStorageDeleteData [10:55:52]Write to MH i2c: 01 00 00 46 53 99 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 46 53 00 00 00 00 00 E4 0C 90 [10:55:52]RasterBufferAndPrint [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]written 0, free lines is 3306 [10:55:52]MH_Cut [10:55:52]Write to MH i2c: D1 01 00 4D 53 01 72 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 01 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 01 00 4D 53 00 71 [10:55:52]Write to MH i2c: 01 00 00 4E 53 A1 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:53]OFD Sender: No OFD packet to send [10:55:53]*** Cut start [10:55:53]*** Partial cut [10:55:53]*** CUTSNS_PIN = 1 [10:55:53]*** CUTSNS_PIN = 0 [10:55:53]*** Brake cut motor [10:55:54]Read from MH i2c: 01 [10:55:54]MH_I2C_Read... [10:55:54]*** Stop cut motor [10:55:54]*** Cut end [10:55:54]Read from MH i2c: 01 07 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: 01 07 00 4E 53 00 00 00 00 00 FF 0F B6 [10:55:54]process_action close_receipt done [10:55:54]requested_data is exist [10:55:54]produce_requested_data [10:55:54]requested_item fm.sn is exist - process it [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 11 00 00 [10:55:54]Write to MH i2c: E2 08 00 4F 53 80 11 00 00 00 00 00 00 1C [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 4F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [10:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:54]wFMCommunicate OK [10:55:54]requested_item fd.num is exist - process it [10:55:54]SAM_PROTO_GetFieldsCounters [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 00 00 [10:55:54]Write to MH i2c: E2 08 00 50 53 80 13 00 00 00 00 00 00 1F [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 50 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 E6 [10:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 [10:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetFieldsCounters done [10:55:54]requested_item shift.num is exist - process it [10:55:54]requested_item shift.opened is exist - process it [10:55:54]req_shift_opened [10:55:54]FM_GetShiftState [10:55:54]SAM_PROTO_GetShiftState [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 01 00 [10:55:54]Write to MH i2c: E2 08 00 51 53 80 13 01 00 00 00 00 00 21 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:54]Read from MH i2c: E2 0E 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 0E 00 51 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [10:55:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [10:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetShiftState done [10:55:54]FM_GetShiftState done [10:55:54]req_shift_opened done [10:55:54]requested_item shift.open_date is exist - process it [10:55:54]req_shift_open_date [10:55:54]req_shift_open_date done [10:55:54]produce_requested_data done [10:55:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70580,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [10:55:54]process_action_free close_receipt [10:55:54]json_value_free [10:55:54]json_value_free done [10:55:54]process_json_proto returns [10:55:54]Send response to host [10:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70580,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [10:55:54]free response buf [10:55:54]execute_script done [10:55:54]execute_script returns [10:55:54]free content buf [10:55:54]Sock 7.Close socket [10:55:54]Sock 7.Thread stoped [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:46]accept exits with 9 [11:08:46]New connection [11:08:46]New thread 3066699108 created [11:08:46]Thread 3066555748 joined [11:08:46]Waiting for new connection... [11:08:46] Sock 9.Parse request [11:08:46]Sock 9.Check first char [11:08:46]Sock 9.First char is OK [11:08:46]request: POST /json_proto HTTP/1.0 [11:08:46]Method: POST [11:08:46]URL: /json_proto [11:08:46]Method is POST - this is cgi request [11:08:46]url: /json_proto [11:08:46]query_string will be loaded in cgi processing [11:08:46]execute_cgi json_proto POST (null) [11:08:46]execute_cgi path=json_proto method=POST [11:08:46]POST find Content-Length [11:08:46]Host: 172.17.50.3:8080 [11:08:46]Content-Length: 680 [11:08:46]Content-Type: application/json [11:08:46] [11:08:46]POST finish read [11:08:46]Found Content-Length = 680 [11:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886353", "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" ] } } [11:08:46]execute_script... [11:08: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)2886353", "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" ] } } [11:08:46]POST & json_proto [11:08:46]process_json_proto [11:08:46]json parsed OK: [11:08:46]protocol is kg_v1.0 [11:08:46]action value=close_receipt [11:08:46]process_action close_receipt [11:08:46]cmd_close_receipt [11:08:46]MH_GetDate [11:08:46]Write to MH i2c: F0 00 00 52 53 94 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: F0 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: F0 09 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: F0 09 00 52 53 00 43 D9 18 67 6B 98 1E 66 BF [11:08:46]GetLastDocTimeStamp 1729680954 [11:08:46]current date 1729681731 [11:08:46]FM_GetShiftState [11:08:46]SAM_PROTO_GetShiftState [11:08:46]wFMCommunicate request_size=4 [11:08:46]MH_SAM_APDU [11:08:46]CAPDU: 80 13 01 00 [11:08:46]Write to MH i2c: E2 08 00 53 53 80 13 01 00 00 00 00 00 23 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 0E 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 0E 00 53 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B0 [11:08:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:08:47]wFMCommunicate OK [11:08:47]SAM_PROTO_GetShiftState done [11:08:47]FM_GetShiftState done [11:08:47]opened in 1729642435 [11:08:47]opened+sec_in_day 1729728835 [11:08:47]quantity*price = 100050 [11:08:47]sum+1 = 100052 [11:08:47]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 СНО: Общий режим Чек 97 23.10.2024 11:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70581 ФПД: 38447487379784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70581&fm=38447487379784&tin=02508201610067®Number=0000000000156251&sum=100000 [11:08:48]StoreToDocumentArchive [11:08:48]shift 196 fd 70581 [11:08:48]save to /storage/0196/doc_00070581 [11:08:48]save last doc name /storage/0196/doc_00070581 to /storage/kkm_last_doc_name [11:08:48]save OK [11:08:48]Clear old archive folders... [11:08:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:48]tlvbuf is 00CF2200 [11:08:48]SAM_PROTO_ClearQueue [11:08:48]wFMCommunicate request_size=4 [11:08:48]MH_SAM_APDU [11:08:48]CAPDU: 80 09 00 00 [11:08:48]Write to MH i2c: E2 08 00 60 53 80 09 00 00 00 00 00 00 25 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 60 53 00 90 00 27 [11:08:48]RAPDU: 90 00 [11:08:48]wFMCommunicate OK [11:08:48]SAM_PROTO_ClearQueue done [11:08:48]KKMCreateOFDPacket [11:08:48]OFDProtocolAddRootSTLVToBuf [11:08:48]FM_MakeSignedData [11:08:48]FM_MakeSignedData [11:08:48]SAM_PROTO_SignData [11:08:48]wFMCommunicate request_size=4 [11:08:48]MH_SAM_APDU [11:08:48]CAPDU: 80 0D 01 02 [11:08:48]Write to MH i2c: E2 08 00 61 53 80 0D 01 02 00 00 00 00 2D [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 61 53 00 90 00 28 [11:08:48]RAPDU: 90 00 [11:08:48]wFMCommunicate OK [11:08:48]wFMCommunicate request_size=255 [11:08:48]MH_SAM_APDU [11:08:48]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 61 00 00 00 F4 03 04 00 43 D9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 F7 C0 D3 [11:08:48]Write to MH i2c: E2 02 01 62 53 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 61 00 00 00 F4 03 04 00 43 D9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 F7 C0 D3 00 00 E1 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 62 53 00 90 00 29 [11:08:48]RAPDU: 90 00 [11:08:48]wFMCommunicate OK [11:08:48]wFMCommunicate request_size=7 [11:08:48]MH_SAM_APDU [11:08:48]CAPDU: 80 0D 02 02 02 E9 48 [11:08:48]Write to MH i2c: E2 0A 00 63 53 80 0D 02 02 02 00 E9 48 00 00 65 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 03 00 63 53 00 90 00 2A [11:08:48]RAPDU: 90 00 [11:08:48]wFMCommunicate OK [11:08:48]wFMCommunicate request_size=4 [11:08:48]MH_SAM_APDU [11:08:48]CAPDU: 80 0D 03 02 [11:08:48]Write to MH i2c: E2 08 00 64 53 80 0D 03 02 00 00 00 00 32 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 0B 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 0B 00 64 53 00 99 E7 86 FC 52 85 37 78 90 00 BB [11:08:48]RAPDU: 99 E7 86 FC 52 85 37 78 90 00 [11:08:48]wFMCommunicate OK [11:08:48]SAM_PROTO_SignData done [11:08:48]FM_MakeSignedData done [11:08:48]CreateOFDProtocolMessage [11:08:48]wFMCommunicate request_size=4 [11:08:48]MH_SAM_APDU [11:08:48]CAPDU: 80 11 00 00 [11:08:48]Write to MH i2c: E2 08 00 65 53 80 11 00 00 00 00 00 00 32 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 17 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 17 00 65 53 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:08: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:08:48]wFMCommunicate OK [11:08:48]CreateOFDProtocolMessage done [11:08:48]OFDSenderStorePacket 70581 [11:08:48]StoreOFDPacket docnum=70581 [11:08: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 39 98 04 01 DC 16 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 61 00 00 00 F4 03 04 00 43 D9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 F7 C0 D3 E9 48 99 E7 86 FC 52 85 37 78 [11:08:48]CheckFolder [11:08:48]dirname=/storage/ofd_packets [11:08:48]CheckFolder done [11:08:48]ProducePacketName [11:08:48]name=ofd_packets/00070581 [11:08:48]NVStorageSaveData ofd_packets/00070581 [11:08:48]File name is /storage/ofd_packets/00070581 [11:08:48]Write 298 bytes [11:08:48]NVStorageSaveData done [11:08:48]OFDSenderStorePacket done [11:08:48]KKMCreateOFDPacket done [11:08:48]NVStorageSaveData kkm_last_timestamp [11:08:48]File name is /storage/kkm_last_timestamp [11:08:48]Write 4 bytes [11:08:48]NVStorageSaveData done [11:08:48]ExternCall_PrintAddStr [11:08:48]wPrintStart [11:08:48]Write to MH i2c: 01 00 00 66 53 B9 [11:08:48]Write i2c OK [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: 01 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: 01 07 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: 01 07 00 66 53 00 00 00 00 00 FF 0F CE [11:08:48]RasterBufferAndPrint [11:08:48]line Счет N : (1)2886353 [11:08:48]line ИНН: 02508201610067 [11:08:48]line Контрольно-Кассовый Чек [11:08:48]line ПРОДАЖА [11:08:48]line ТРК (МРК, ГНК) : 61 [11:08:48]line Товар: 2710194210 [11:08:48]line ДТ-К-5 [11:08:48]line 13.130 * 76.20 [11:08:48]line = 1000.51 [11:08:48]line НДС 12% НСП 1% [11:08:48]line > о реализуемом товаре [11:08:48]line ОКРУГЛЕНИЕ: -0.51 [11:08:48]line ИТОГО: 1000.00 [11:08:48]line Внесено: 1000.00 [11:08:48]line СДАЧА: 0.00 [11:08:48]line НСП 1% : 8.85 [11:08:48]line НДС 12% : 106.25 [11:08:48]line Наличными: 1000.00 [11:08:48]line Безнал.: 0.00 [11:08:48]line Место: АЗС № 85 "Партнер Нефть" [11:08:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:08:48]line СНО: Общий режим [11:08:48]line Чек 97 23.10.2024 11:08 [11:08:48]line Смена: 196 ФФД: 1.0 [11:08:48]line ЗНМ: 0300000167 [11:08:48]line РНМ: 0000000000156251 [11:08:48]line Версия ККМ: v1.0 [11:08:48]line ФМ: 0000000000963346 [11:08:48]line ФД: 70581 [11:08:48]line ФПД: 38447487379784 [11:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70581&fm=38447487379784&tin=02508201610067®Number=0000000000156251&sum=100000 [11:08:49]OFD Sender: Processing packet 70581 [packets to send 18, broken 17] [11:08:49]ProducePacketName [11:08:49]name=ofd_packets/00070581 [11:08:49]OFD Sender: To server: pG, [11:08:49]CommunicateWithHost lk.salyk.kg:30040 [11:08:49]ConnectInit lk.salyk.kg [11:08:49]written 0, free lines is 4095 [11:08:49]Connected sock=10 [11:08: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 0C 01 00 00 39 98 04 01 DC 16 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 61 00 00 00 F4 03 04 00 43 D9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 22 F7 C0 D3 E9 48 99 E7 86 FC 52 85 37 78 [11:08: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 6F 94 47 00 A3 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 B5 13 01 00 F4 03 04 00 E1 82 18 67 B6 04 01 00 00 42 71 00 AE 02 C1 E4 ED [11:08:49]CommunicateWithHost err = 0 [11:08:49]CheckOFDResponse [11:08:49]1017 (14) - 77093643461234 [11:08:49]1041 (16) - 0000000000963346 [11:08:49]1040 (4) - 70581 [11:08:49]1012 (4) - 23.10.2024 05:00 [11:08:49]1206 (1) - 0 [11:08:49]OFD Sender: Remove packet 70581 [11:08:49]ProducePacketName [11:08:49]name=ofd_packets/00070581 [11:08:49]NVStorageDeleteData [11:08:49]Write to MH i2c: 01 00 00 91 53 E4 [11:08:49]Write i2c OK [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: 01 [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: 01 07 00 [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: 01 07 00 91 53 00 00 00 00 00 10 0D 08 [11:08:49]RasterBufferAndPrint [11:08:49]line [11:08:49]line [11:08:49]line [11:08:49]line [11:08:49]line [11:08:49]written 0, free lines is 3354 [11:08:49]MH_Cut [11:08:49]Write to MH i2c: D1 01 00 98 53 01 BD [11:08:49]Write i2c OK [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: D1 [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: D1 01 00 [11:08:49]MH_I2C_Read... [11:08:49]Read from MH i2c: D1 01 00 98 53 00 BC [11:08:49]Write to MH i2c: 01 00 00 99 53 EC [11:08:49]Write i2c OK [11:08:49]MH_I2C_Read... [11:08:49]OFD Sender: No OFD packet to send [11:08:50]*** Cut start [11:08:50]*** Partial cut [11:08:50]*** CUTSNS_PIN = 1 [11:08:50]*** CUTSNS_PIN = 0 [11:08:50]*** Brake cut motor [11:08:50]Read from MH i2c: 01 [11:08:50]MH_I2C_Read... [11:08:50]*** Stop cut motor [11:08:50]*** Cut end [11:08:50]Read from MH i2c: 01 07 00 [11:08:50]MH_I2C_Read... [11:08:50]Read from MH i2c: 01 07 00 99 53 00 00 00 00 00 FF 0F 01 [11:08:50]process_action close_receipt done [11:08:50]requested_data is exist [11:08:50]produce_requested_data [11:08:50]requested_item fm.sn is exist - process it [11:08:50]wFMCommunicate request_size=4 [11:08:50]MH_SAM_APDU [11:08:50]CAPDU: 80 11 00 00 [11:08:50]Write to MH i2c: E2 08 00 9A 53 80 11 00 00 00 00 00 00 67 [11:08:50]Write i2c OK [11:08:50]MH_I2C_Read... [11:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:50]Read from MH i2c: E2 [11:08:50]MH_I2C_Read... [11:08:50]Read from MH i2c: E2 17 00 [11:08:50]MH_I2C_Read... [11:08:50]Read from MH i2c: E2 17 00 9A 53 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:08:50]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:50]wFMCommunicate OK [11:08:50]requested_item fd.num is exist - process it [11:08:50]SAM_PROTO_GetFieldsCounters [11:08:50]wFMCommunicate request_size=4 [11:08:50]MH_SAM_APDU [11:08:50]CAPDU: 80 13 00 00 [11:08:50]Write to MH i2c: E2 08 00 9B 53 80 13 00 00 00 00 00 00 6A [11:08:50]Write i2c OK [11:08:50]MH_I2C_Read... [11:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:50]Read from MH i2c: E2 [11:08:50]MH_I2C_Read... [11:08:50]Read from MH i2c: E2 62 00 [11:08:50]MH_I2C_Read... [11:08:50]Read from MH i2c: E2 62 00 9B 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 35 [11:08: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 B5 13 01 00 0E 04 04 00 C4 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 [11:08:50]wFMCommunicate OK [11:08:50]SAM_PROTO_GetFieldsCounters done [11:08:50]requested_item shift.num is exist - process it [11:08:50]requested_item shift.opened is exist - process it [11:08:50]req_shift_opened [11:08:50]FM_GetShiftState [11:08:50]SAM_PROTO_GetShiftState [11:08:50]wFMCommunicate request_size=4 [11:08:50]MH_SAM_APDU [11:08:50]CAPDU: 80 13 01 00 [11:08:50]Write to MH i2c: E2 08 00 9C 53 80 13 01 00 00 00 00 00 6C [11:08:50]Write i2c OK [11:08:50]MH_I2C_Read... [11:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:51]Read from MH i2c: E2 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: E2 0E 00 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: E2 0E 00 9C 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [11:08:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:08:51]wFMCommunicate OK [11:08:51]SAM_PROTO_GetShiftState done [11:08:51]FM_GetShiftState done [11:08:51]req_shift_opened done [11:08:51]requested_item shift.open_date is exist - process it [11:08:51]req_shift_open_date [11:08:51]req_shift_open_date done [11:08:51]produce_requested_data done [11:08:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70581,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:08:51]process_action_free close_receipt [11:08:51]json_value_free [11:08:51]json_value_free done [11:08:51]process_json_proto returns [11:08:51]Send response to host [11:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70581,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:08:51]free response buf [11:08:51]execute_script done [11:08:51]execute_script returns [11:08:51]free content buf [11:08:51]Sock 9.Close socket [11:08:51]Sock 9.Thread stoped [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10: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:00]accept exits with 7 [11:12:00]New connection [11:12:00]New thread 3066555748 created [11:12:00]Thread 3066699108 joined [11:12:00]Waiting for new connection... [11:12:00] Sock 7.Parse request [11:12:00]Sock 7.Check first char [11:12:00]Sock 7.First char is OK [11:12:00]request: POST /json_proto HTTP/1.0 [11:12:00]Method: POST [11:12:00]URL: /json_proto [11:12:00]Method is POST - this is cgi request [11:12:00]url: /json_proto [11:12:00]query_string will be loaded in cgi processing [11:12:00]execute_cgi json_proto POST (null) [11:12:00]execute_cgi path=json_proto method=POST [11:12:00]POST find Content-Length [11:12:00]Host: 172.17.50.3:8080 [11:12:00]Content-Length: 804 [11:12:00]Content-Type: application/json [11:12:00] [11:12:00]POST finish read [11:12:00]Found Content-Length = 804 [11:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886354", "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.150, "sum" : 200.34, "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" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:00]execute_script... [11:12: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)2886354", "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.150, "sum" : 200.34, "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" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:00]POST & json_proto [11:12:00]process_json_proto [11:12:00]json parsed OK: [11:12:00]protocol is kg_v1.0 [11:12:00]action value=close_receipt [11:12:00]process_action close_receipt [11:12:00]cmd_close_receipt [11:12:00]MH_GetDate [11:12:00]Write to MH i2c: F0 00 00 9D 53 DF [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: F0 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: F0 09 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: F0 09 00 9D 53 00 05 DA 18 67 6B 98 1E 66 CD [11:12:00]GetLastDocTimeStamp 1729681731 [11:12:00]current date 1729681925 [11:12:00]FM_GetShiftState [11:12:00]SAM_PROTO_GetShiftState [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 13 01 00 [11:12:00]Write to MH i2c: E2 08 00 9E 53 80 13 01 00 00 00 00 00 6E [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0E 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0E 00 9E 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [11:12:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:12:00]wFMCommunicate OK [11:12:00]SAM_PROTO_GetShiftState done [11:12:00]FM_GetShiftState done [11:12:00]opened in 1729642435 [11:12:00]opened+sec_in_day 1729728835 [11:12:00]quantity*price = 20033 [11:12:00]sum+1 = 20035 [11:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 98 23.10.2024 11:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963346 ФД: 70582 ФПД: 164311005781986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70582&fm=164311005781986&tin=02508201610067®Number=0000000000156251&sum=20034 [11:12:01]StoreToDocumentArchive [11:12:01]shift 196 fd 70582 [11:12:01]save to /storage/0196/doc_00070582 [11:12:01]save last doc name /storage/0196/doc_00070582 to /storage/kkm_last_doc_name [11:12:01]save OK [11:12:01]Clear old archive folders... [11:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:12:01]tlvbuf is 00B21CA0 [11:12:01]SAM_PROTO_ClearQueue [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 09 00 00 [11:12:01]Write to MH i2c: E2 08 00 AB 53 80 09 00 00 00 00 00 00 70 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 AB 53 00 90 00 72 [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_ClearQueue done [11:12:01]KKMCreateOFDPacket [11:12:01]OFDProtocolAddRootSTLVToBuf [11:12:01]FM_MakeSignedData [11:12:01]FM_MakeSignedData [11:12:01]SAM_PROTO_SignData [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 0D 01 02 [11:12:01]Write to MH i2c: E2 08 00 AC 53 80 0D 01 02 00 00 00 00 78 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 03 00 AC 53 00 90 00 73 [11:12:01]RAPDU: 90 00 [11:12:01]wFMCommunicate OK [11:12:01]wFMCommunicate request_size=255 [11:12:01]MH_SAM_APDU [11:12: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 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 95 70 [11:12:01]Write to MH i2c: E2 02 01 AD 53 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 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 95 70 00 00 A8 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 AD 53 00 90 00 74 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=9 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 02 02 04 A3 21 DF E2 [11:12:02]Write to MH i2c: E2 0C 00 AE 53 80 0D 02 02 04 00 A3 21 DF E2 00 00 08 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 03 00 AE 53 00 90 00 75 [11:12:02]RAPDU: 90 00 [11:12:02]wFMCommunicate OK [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 0D 03 02 [11:12:02]Write to MH i2c: E2 08 00 AF 53 80 0D 03 02 00 00 00 00 7D [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0B 00 AF 53 00 57 C9 D2 AC DC B6 5E 0E 90 00 1A [11:12:02]RAPDU: 57 C9 D2 AC DC B6 5E 0E 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_SignData done [11:12:02]FM_MakeSignedData done [11:12:02]CreateOFDProtocolMessage [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 11 00 00 [11:12:02]Write to MH i2c: E2 08 00 B0 53 80 11 00 00 00 00 00 00 7D [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 B0 53 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:12: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:12:02]wFMCommunicate OK [11:12:02]CreateOFDProtocolMessage done [11:12:02]OFDSenderStorePacket 70582 [11:12:02]StoreOFDPacket docnum=70582 [11:12: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 02 F7 06 01 A2 D9 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 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 95 70 A3 21 DF E2 57 C9 D2 AC DC B6 5E 0E [11:12:02]CheckFolder [11:12:02]dirname=/storage/ofd_packets [11:12:02]CheckFolder done [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00070582 [11:12:02]NVStorageSaveData ofd_packets/00070582 [11:12:02]File name is /storage/ofd_packets/00070582 [11:12:02]Write 300 bytes [11:12:02]NVStorageSaveData done [11:12:02]OFDSenderStorePacket done [11:12:02]KKMCreateOFDPacket done [11:12:02]NVStorageSaveData kkm_last_timestamp [11:12:02]File name is /storage/kkm_last_timestamp [11:12:02]Write 4 bytes [11:12:02]NVStorageSaveData done [11:12:02]ExternCall_PrintAddStr [11:12:02]wPrintStart [11:12:02]Write to MH i2c: 01 00 00 B1 53 04 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 B1 53 00 00 00 00 00 FF 0F 19 [11:12:02]RasterBufferAndPrint [11:12:02]line Счет N : (1)2886354 [11:12:02]line ИНН: 02508201610067 [11:12:02]line Контрольно-Кассовый Чек [11:12:02]line ПРОДАЖА [11:12:02]line ТРК (МРК, ГНК) : 71 [11:12:02]line Товар: 2711129700 [11:12:02]line ГАЗ-К-3 [11:12:02]line 5.150 * 38.90 [11:12:02]line = 200.34 [11:12:02]line НДС 12% НСП 1% [11:12:02]line > о реализуемом товаре [11:12:02]line ИТОГО: 200.34 [11:12:02]line НСП 1% : 1.77 [11:12:02]line НДС 12% : 21.27 [11:12:02]line Наличными: 0.00 [11:12:02]line Безнал.: 200.34 [11:12:02]line Место: АЗС № 85 "Партнер Нефть" [11:12:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:12:02]line СНО: Общий режим [11:12:02]line Чек 98 23.10.2024 11:12 [11:12:02]line Смена: 196 ФФД: 1.0 [11:12:02]line ЗНМ: 0300000167 [11:12:02]line РНМ: 0000000000156251 [11:12:02]line Версия ККМ: v1.0 [11:12:02]line Платежная система: O! деньги [11:12:02]line ФМ: 0000000000963346 [11:12:02]line ФД: 70582 [11:12:02]line ФПД: 164311005781986 [11:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70582&fm=164311005781986&tin=02508201610067®Number=0000000000156251&sum=20034 [11:12:02]OFD Sender: Processing packet 70582 [packets to send 18, broken 17] [11:12:02]ProducePacketName [11:12:02]name=ofd_packets/00070582 [11:12:02]OFD Sender: To server: pG, [11:12:02]CommunicateWithHost lk.salyk.kg:30040 [11:12:02]ConnectInit lk.salyk.kg [11:12:02]written 0, free lines is 4095 [11:12:02]Connected sock=10 [11:12: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 02 F7 06 01 A2 D9 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 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 95 70 A3 21 DF E2 57 C9 D2 AC DC B6 5E 0E [11:12:03]Write to MH i2c: 01 00 00 DB 53 2E [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 DB 53 00 00 00 00 00 F2 0C 33 [11:12:03]RasterBufferAndPrint [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]line [11:12:03]written 0, free lines is 3320 [11:12:03]MH_Cut [11:12:03]Write to MH i2c: D1 01 00 E2 53 01 07 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 01 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: D1 01 00 E2 53 00 06 [11:12:03]Write to MH i2c: 01 00 00 E3 53 36 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12: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 20 CC 47 00 24 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 B6 13 01 00 F4 03 04 00 A3 83 18 67 B6 04 01 00 00 18 CD BB C9 0B 88 7F 8F [11:12:03]CommunicateWithHost err = 0 [11:12:03]CheckOFDResponse [11:12:03]1017 (14) - 77093643461234 [11:12:03]1041 (16) - 0000000000963346 [11:12:03]1040 (4) - 70582 [11:12:03]1012 (4) - 23.10.2024 05:03 [11:12:03]1206 (1) - 0 [11:12:03]OFD Sender: Remove packet 70582 [11:12:03]ProducePacketName [11:12:03]name=ofd_packets/00070582 [11:12:03]NVStorageDeleteData [11:12:03]OFD Sender: No OFD packet to send [11:12:03]*** Cut start [11:12:03]*** Partial cut [11:12:03]*** CUTSNS_PIN = 1 [11:12:03]*** CUTSNS_PIN = 0 [11:12:04]*** Brake cut motor [11:12:04]Read from MH i2c: 01 [11:12:04]MH_I2C_Read... [11:12:04]*** Stop cut motor [11:12:04]*** Cut end [11:12:04]Read from MH i2c: 01 07 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 E3 53 00 00 00 00 00 FF 0F 4B [11:12:04]process_action close_receipt done [11:12:04]requested_data is exist [11:12:04]produce_requested_data [11:12:04]requested_item fm.sn is exist - process it [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 11 00 00 [11:12:04]Write to MH i2c: E2 08 00 E4 53 80 11 00 00 00 00 00 00 B1 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 E4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [11:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:12:04]wFMCommunicate OK [11:12:04]requested_item fd.num is exist - process it [11:12:04]SAM_PROTO_GetFieldsCounters [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 00 00 [11:12:04]Write to MH i2c: E2 08 00 E5 53 80 13 00 00 00 00 00 00 B4 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 E5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 83 [11:12: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 B6 13 01 00 0E 04 04 00 C4 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 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetFieldsCounters done [11:12:04]requested_item shift.num is exist - process it [11:12:04]requested_item shift.opened is exist - process it [11:12:04]req_shift_opened [11:12:04]FM_GetShiftState [11:12:04]SAM_PROTO_GetShiftState [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 01 00 [11:12:04]Write to MH i2c: E2 08 00 E6 53 80 13 01 00 00 00 00 00 B6 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 E6 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 43 [11:12:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetShiftState done [11:12:04]FM_GetShiftState done [11:12:04]req_shift_opened done [11:12:04]requested_item shift.open_date is exist - process it [11:12:04]req_shift_open_date [11:12:04]req_shift_open_date done [11:12:04]produce_requested_data done [11:12:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70582,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:12:04]process_action_free close_receipt [11:12:04]json_value_free [11:12:04]json_value_free done [11:12:04]process_json_proto returns [11:12:04]Send response to host [11:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70582,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:12:04]free response buf [11:12:04]execute_script done [11:12:04]execute_script returns [11:12:04]free content buf [11:12:04]Sock 7.Close socket [11:12:04]Sock 7.Thread stoped [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:49]accept exits with 9 [11:12:49]New connection [11:12:49]New thread 3066699108 created [11:12:49]Thread 3066555748 joined [11:12:49]Waiting for new connection... [11:12:49] Sock 9.Parse request [11:12:49]Sock 9.Check first char [11:12:49]Sock 9.First char is OK [11:12:49]request: POST /json_proto HTTP/1.0 [11:12:49]Method: POST [11:12:49]URL: /json_proto [11:12:49]Method is POST - this is cgi request [11:12:49]url: /json_proto [11:12:49]query_string will be loaded in cgi processing [11:12:49]execute_cgi json_proto POST (null) [11:12:49]execute_cgi path=json_proto method=POST [11:12:49]POST find Content-Length [11:12:49]Host: 172.17.50.3:8080 [11:12:49]Content-Length: 678 [11:12:49]Content-Type: application/json [11:12:49] [11:12:49]POST finish read [11:12:49]Found Content-Length = 678 [11:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886355", "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" ] } } [11:12:49]execute_script... [11:12: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)2886355", "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" ] } } [11:12:49]POST & json_proto [11:12:49]process_json_proto [11:12:49]json parsed OK: [11:12:49]protocol is kg_v1.0 [11:12:49]action value=close_receipt [11:12:49]process_action close_receipt [11:12:49]cmd_close_receipt [11:12:49]MH_GetDate [11:12:49]Write to MH i2c: F0 00 00 E7 53 29 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 09 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 09 00 E7 53 00 36 DA 18 67 6B 98 1E 66 48 [11:12:49]GetLastDocTimeStamp 1729681925 [11:12:49]current date 1729681974 [11:12:49]FM_GetShiftState [11:12:49]SAM_PROTO_GetShiftState [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 13 01 00 [11:12:49]Write to MH i2c: E2 08 00 E8 53 80 13 01 00 00 00 00 00 B8 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 E8 53 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 45 [11:12:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_GetShiftState done [11:12:49]FM_GetShiftState done [11:12:49]opened in 1729642435 [11:12:49]opened+sec_in_day 1729728835 [11:12:49]quantity*price = 40006 [11:12:49]sum+1 = 40007 [11:12:49]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 СНО: Общий режим Чек 99 23.10.2024 11:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70583 ФПД: 31652282694147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70583&fm=31652282694147&tin=02508201610067®Number=0000000000156251&sum=40000 [11:12:50]StoreToDocumentArchive [11:12:50]shift 196 fd 70583 [11:12:50]save to /storage/0196/doc_00070583 [11:12:50]save last doc name /storage/0196/doc_00070583 to /storage/kkm_last_doc_name [11:12:50]save OK [11:12:50]Clear old archive folders... [11:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:50]tlvbuf is 00E04090 [11:12:50]SAM_PROTO_ClearQueue [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 09 00 00 [11:12:50]Write to MH i2c: E2 08 00 F5 53 80 09 00 00 00 00 00 00 BA [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 F5 53 00 90 00 BC [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_ClearQueue done [11:12:50]KKMCreateOFDPacket [11:12:50]OFDProtocolAddRootSTLVToBuf [11:12:50]FM_MakeSignedData [11:12:50]FM_MakeSignedData [11:12:50]SAM_PROTO_SignData [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 01 02 [11:12:50]Write to MH i2c: E2 08 00 F6 53 80 0D 01 02 00 00 00 00 C2 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 F6 53 00 90 00 BD [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=255 [11:12:50]MH_SAM_APDU [11:12: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 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 63 00 00 00 F4 03 04 00 36 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C [11:12:50]Write to MH i2c: E2 02 01 F7 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 36 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 00 00 B7 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 03 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 03 00 F7 53 00 90 00 BE [11:12:51]RAPDU: 90 00 [11:12:51]wFMCommunicate OK [11:12:51]wFMCommunicate request_size=10 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 0D 02 02 05 C9 9F 10 FA 03 [11:12:51]Write to MH i2c: E2 0D 00 F8 53 80 0D 02 02 05 00 C9 9F 10 FA 03 00 00 44 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 03 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [11:12:51]RAPDU: 90 00 [11:12:51]wFMCommunicate OK [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 0D 03 02 [11:12:51]Write to MH i2c: E2 08 00 F9 53 80 0D 03 02 00 00 00 00 C7 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0B 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0B 00 F9 53 00 D2 92 A6 49 F8 12 C6 22 90 00 0D [11:12:51]RAPDU: D2 92 A6 49 F8 12 C6 22 90 00 [11:12:51]wFMCommunicate OK [11:12:51]SAM_PROTO_SignData done [11:12:51]FM_MakeSignedData done [11:12:51]CreateOFDProtocolMessage [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 11 00 00 [11:12:51]Write to MH i2c: E2 08 00 FA 53 80 11 00 00 00 00 00 00 C7 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 FA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [11:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:12:51]wFMCommunicate OK [11:12:51]CreateOFDProtocolMessage done [11:12:51]OFDSenderStorePacket 70583 [11:12:51]StoreOFDPacket docnum=70583 [11:12: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 53 25 07 01 D1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 36 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C C9 9F 10 FA 03 D2 92 A6 49 F8 12 C6 22 [11:12:51]CheckFolder [11:12:51]dirname=/storage/ofd_packets [11:12:51]CheckFolder done [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00070583 [11:12:51]NVStorageSaveData ofd_packets/00070583 [11:12:51]File name is /storage/ofd_packets/00070583 [11:12:51]Write 301 bytes [11:12:51]NVStorageSaveData done [11:12:51]OFDSenderStorePacket done [11:12:51]KKMCreateOFDPacket done [11:12:51]NVStorageSaveData kkm_last_timestamp [11:12:51]File name is /storage/kkm_last_timestamp [11:12:51]Write 4 bytes [11:12:51]NVStorageSaveData done [11:12:51]ExternCall_PrintAddStr [11:12:51]wPrintStart [11:12:51]Write to MH i2c: 01 00 00 FB 53 4E [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 FB 53 00 00 00 00 00 FF 0F 63 [11:12:51]RasterBufferAndPrint [11:12:51]line Счет N : (1)2886355 [11:12:51]line ИНН: 02508201610067 [11:12:51]line Контрольно-Кассовый Чек [11:12:51]line ПРОДАЖА [11:12:51]line ТРК (МРК, ГНК) : 12 [11:12:51]line Товар: 2710124130 [11:12:51]line Аи-92-К-5 [11:12:51]line 5.980 * 66.90 [11:12:51]line = 400.06 [11:12:51]line НДС 12% НСП 1% [11:12:51]line > о реализуемом товаре [11:12:51]line ОКРУГЛЕНИЕ: -0.06 [11:12:51]line ИТОГО: 400.00 [11:12:51]line Внесено: 400.00 [11:12:51]line СДАЧА: 0.00 [11:12:51]line НСП 1% : 3.54 [11:12:51]line НДС 12% : 42.48 [11:12:51]line Наличными: 400.00 [11:12:51]line Безнал.: 0.00 [11:12:51]line Место: АЗС № 85 "Партнер Нефть" [11:12:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:12:51]line СНО: Общий режим [11:12:51]line Чек 99 23.10.2024 11:12 [11:12:51]line Смена: 196 ФФД: 1.0 [11:12:51]line ЗНМ: 0300000167 [11:12:51]line РНМ: 0000000000156251 [11:12:51]line Версия ККМ: v1.0 [11:12:51]line ФМ: 0000000000963346 [11:12:51]line ФД: 70583 [11:12:51]line ФПД: 31652282694147 [11:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70583&fm=31652282694147&tin=02508201610067®Number=0000000000156251&sum=40000 [11:12:51]OFD Sender: Processing packet 70583 [packets to send 18, broken 17] [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00070583 [11:12:51]OFD Sender: To server: pG, [11:12:51]CommunicateWithHost lk.salyk.kg:30040 [11:12:51]ConnectInit lk.salyk.kg [11:12:51]written 0, free lines is 4095 [11:12:51]Connected sock=10 [11:12: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 53 25 07 01 D1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 36 DA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C C9 9F 10 FA 03 D2 92 A6 49 F8 12 C6 22 [11:12: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 B4 A8 47 00 E2 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 13 01 00 F4 03 04 00 D4 83 18 67 B6 04 01 00 00 42 10 74 CD 55 F3 BD 38 [11:12:51]CommunicateWithHost err = 0 [11:12:51]CheckOFDResponse [11:12:51]1017 (14) - 77093643461234 [11:12:51]1041 (16) - 0000000000963346 [11:12:51]1040 (4) - 70583 [11:12:51]1012 (4) - 23.10.2024 05:04 [11:12:51]1206 (1) - 0 [11:12:51]OFD Sender: Remove packet 70583 [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00070583 [11:12:51]NVStorageDeleteData [11:12:52]Write to MH i2c: 01 00 00 26 54 7A [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: 01 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: 01 07 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: 01 07 00 26 54 00 00 00 00 00 E8 0C 75 [11:12:52]RasterBufferAndPrint [11:12:52]line [11:12:52]line [11:12:52]line [11:12:52]line [11:12:52]line [11:12:52]written 0, free lines is 3314 [11:12:52]MH_Cut [11:12:52]Write to MH i2c: D1 01 00 2D 54 01 53 [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: D1 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: D1 01 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: D1 01 00 2D 54 00 52 [11:12:52]Write to MH i2c: 01 00 00 2E 54 82 [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]OFD Sender: No OFD packet to send [11:12:52]*** Cut start [11:12:52]*** Partial cut [11:12:52]*** CUTSNS_PIN = 1 [11:12:52]*** CUTSNS_PIN = 0 [11:12:53]*** Brake cut motor [11:12:53]Read from MH i2c: 01 [11:12:53]MH_I2C_Read... [11:12:53]*** Stop cut motor [11:12:53]*** Cut end [11:12:53]Read from MH i2c: 01 07 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: 01 07 00 2E 54 00 00 00 00 00 FF 0F 97 [11:12:53]process_action close_receipt done [11:12:53]requested_data is exist [11:12:53]produce_requested_data [11:12:53]requested_item fm.sn is exist - process it [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 11 00 00 [11:12:53]Write to MH i2c: E2 08 00 2F 54 80 11 00 00 00 00 00 00 FD [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 2F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [11:12: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:12:53]wFMCommunicate OK [11:12:53]requested_item fd.num is exist - process it [11:12:53]SAM_PROTO_GetFieldsCounters [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 13 00 00 [11:12:53]Write to MH i2c: E2 08 00 30 54 80 13 00 00 00 00 00 00 00 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 62 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 62 00 30 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 D3 [11:12: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 B7 13 01 00 0E 04 04 00 C4 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 [11:12:53]wFMCommunicate OK [11:12:53]SAM_PROTO_GetFieldsCounters done [11:12:53]requested_item shift.num is exist - process it [11:12:53]requested_item shift.opened is exist - process it [11:12:53]req_shift_opened [11:12:53]FM_GetShiftState [11:12:53]SAM_PROTO_GetShiftState [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 13 01 00 [11:12:53]Write to MH i2c: E2 08 00 31 54 80 13 01 00 00 00 00 00 02 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 0E 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 0E 00 31 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8F [11:12:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:12:53]wFMCommunicate OK [11:12:53]SAM_PROTO_GetShiftState done [11:12:53]FM_GetShiftState done [11:12:53]req_shift_opened done [11:12:53]requested_item shift.open_date is exist - process it [11:12:53]req_shift_open_date [11:12:53]req_shift_open_date done [11:12:53]produce_requested_data done [11:12:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70583,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:12:53]process_action_free close_receipt [11:12:53]json_value_free [11:12:53]json_value_free done [11:12:53]process_json_proto returns [11:12:53]Send response to host [11:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70583,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:12:53]free response buf [11:12:53]execute_script done [11:12:53]execute_script returns [11:12:53]free content buf [11:12:53]Sock 9.Close socket [11:12:53]Sock 9.Thread stoped [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:24]accept exits with 7 [11:16:24]New connection [11:16:24]New thread 3066555748 created [11:16:24]Thread 3066699108 joined [11:16:24]Waiting for new connection... [11:16:24] Sock 7.Parse request [11:16:24]Sock 7.Check first char [11:16:24]Sock 7.First char is OK [11:16:24]request: POST /json_proto HTTP/1.0 [11:16:24]Method: POST [11:16:24]URL: /json_proto [11:16:24]Method is POST - this is cgi request [11:16:24]url: /json_proto [11:16:24]query_string will be loaded in cgi processing [11:16:24]execute_cgi json_proto POST (null) [11:16:24]execute_cgi path=json_proto method=POST [11:16:24]POST find Content-Length [11:16:24]Host: 172.17.50.3:8080 [11:16:24]Content-Length: 679 [11:16:24]Content-Type: application/json [11:16:24] [11:16:24]POST finish read [11:16:24]Found Content-Length = 679 [11:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886356", "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" ] } } [11:16:24]execute_script... [11: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)2886356", "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" ] } } [11:16:24]POST & json_proto [11:16:24]process_json_proto [11:16:24]json parsed OK: [11:16:24]protocol is kg_v1.0 [11:16:24]action value=close_receipt [11:16:24]process_action close_receipt [11:16:24]cmd_close_receipt [11:16:24]MH_GetDate [11:16:24]Write to MH i2c: F0 00 00 32 54 75 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: F0 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: F0 09 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: F0 09 00 32 54 00 0D DB 18 67 6B 98 1E 66 6C [11:16:24]GetLastDocTimeStamp 1729681974 [11:16:24]current date 1729682189 [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 33 54 80 13 01 00 00 00 00 00 04 [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 33 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 91 [11:16:24]RAPDU: 09 00 01 C3 3F 18 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]opened in 1729642435 [11:16:24]opened+sec_in_day 1729728835 [11:16:24]quantity*price = 75016 [11:16:24]sum+1 = 75017 [11:16:24]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 СНО: Общий режим Чек 100 23.10.2024 11:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70584 ФПД: 942113018756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70584&fm=942113018756&tin=02508201610067®Number=0000000000156251&sum=75000 [11:16:25]StoreToDocumentArchive [11:16:25]shift 196 fd 70584 [11:16:25]save to /storage/0196/doc_00070584 [11:16:25]save last doc name /storage/0196/doc_00070584 to /storage/kkm_last_doc_name [11:16:25]save OK [11:16:25]Clear old archive folders... [11:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:25]tlvbuf is 00AE9240 [11:16:25]SAM_PROTO_ClearQueue [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 09 00 00 [11:16:25]Write to MH i2c: E2 08 00 40 54 80 09 00 00 00 00 00 00 06 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 40 54 00 90 00 08 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_ClearQueue done [11:16:25]KKMCreateOFDPacket [11:16:25]OFDProtocolAddRootSTLVToBuf [11:16:25]FM_MakeSignedData [11:16:25]FM_MakeSignedData [11:16:25]SAM_PROTO_SignData [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 01 02 [11:16:25]Write to MH i2c: E2 08 00 41 54 80 0D 01 02 00 00 00 00 0E [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 41 54 00 90 00 09 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=255 [11:16:25]MH_SAM_APDU [11:16: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 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 64 00 00 00 F4 03 04 00 0D DB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 [11:16:25]Write to MH i2c: E2 02 01 42 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 0D DB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 00 00 6D [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 42 54 00 90 00 0A [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=10 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 02 02 05 DB 5A 4F D3 84 [11:16:26]Write to MH i2c: E2 0D 00 43 54 80 0D 02 02 05 00 DB 5A 4F D3 84 00 00 F6 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [11:16:26]RAPDU: 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 0D 03 02 [11:16:26]Write to MH i2c: E2 08 00 44 54 80 0D 03 02 00 00 00 00 13 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0B 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0B 00 44 54 00 F1 DD 95 E6 64 CB E2 6E 90 00 DC [11:16:26]RAPDU: F1 DD 95 E6 64 CB E2 6E 90 00 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_SignData done [11:16:26]FM_MakeSignedData done [11:16:26]CreateOFDProtocolMessage [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 11 00 00 [11:16:26]Write to MH i2c: E2 08 00 45 54 80 11 00 00 00 00 00 00 13 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 45 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [11:16: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:16:26]wFMCommunicate OK [11:16:26]CreateOFDProtocolMessage done [11:16:26]OFDSenderStorePacket 70584 [11:16:26]StoreOFDPacket docnum=70584 [11:16: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 3F 7F 07 01 D4 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 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 64 00 00 00 F4 03 04 00 0D DB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 DB 5A 4F D3 84 F1 DD 95 E6 64 CB E2 6E [11:16:26]CheckFolder [11:16:26]dirname=/storage/ofd_packets [11:16:26]CheckFolder done [11:16:26]ProducePacketName [11:16:26]name=ofd_packets/00070584 [11:16:26]NVStorageSaveData ofd_packets/00070584 [11:16:26]File name is /storage/ofd_packets/00070584 [11:16:26]Write 301 bytes [11:16:26]NVStorageSaveData done [11:16:26]OFDSenderStorePacket done [11:16:26]KKMCreateOFDPacket done [11:16:26]NVStorageSaveData kkm_last_timestamp [11:16:26]File name is /storage/kkm_last_timestamp [11:16:26]Write 4 bytes [11:16:26]NVStorageSaveData done [11:16:26]ExternCall_PrintAddStr [11:16:26]wPrintStart [11:16:26]Write to MH i2c: 01 00 00 46 54 9A [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 46 54 00 00 00 00 00 FF 0F AF [11:16:26]RasterBufferAndPrint [11:16:26]line Счет N : (1)2886356 [11:16:26]line ИНН: 02508201610067 [11:16:26]line Контрольно-Кассовый Чек [11:16:26]line ПРОДАЖА [11:16:26]line ТРК (МРК, ГНК) : 33 [11:16:26]line Товар: 2710124500 [11:16:26]line Аи-95-К-5 [11:16:26]line 10.110 * 74.20 [11:16:26]line = 750.16 [11:16:26]line НДС 12% НСП 1% [11:16:26]line > о реализуемом товаре [11:16:26]line ОКРУГЛЕНИЕ: -0.16 [11:16:26]line ИТОГО: 750.00 [11:16:26]line Внесено: 750.00 [11:16:26]line СДАЧА: 0.00 [11:16:26]line НСП 1% : 6.64 [11:16:26]line НДС 12% : 79.66 [11:16:26]line Наличными: 750.00 [11:16:26]line Безнал.: 0.00 [11:16:26]line Место: АЗС № 85 "Партнер Нефть" [11:16:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:16:26]line СНО: Общий режим [11:16:26]line Чек 100 23.10.2024 11:16 [11:16:26]line Смена: 196 ФФД: 1.0 [11:16:26]line ЗНМ: 0300000167 [11:16:26]line РНМ: 0000000000156251 [11:16:26]line Версия ККМ: v1.0 [11:16:26]line ФМ: 0000000000963346 [11:16:26]line ФД: 70584 [11:16:26]line ФПД: 942113018756 [11:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70584&fm=942113018756&tin=02508201610067®Number=0000000000156251&sum=75000 [11:16:26]OFD Sender: Processing packet 70584 [packets to send 18, broken 17] [11:16:26]ProducePacketName [11:16:26]name=ofd_packets/00070584 [11:16:26]OFD Sender: To server: pG, [11:16:26]CommunicateWithHost lk.salyk.kg:30040 [11:16:26]ConnectInit lk.salyk.kg [11:16:26]written 0, free lines is 4095 [11:16:26]Connected sock=10 [11: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 0F 01 00 00 3F 7F 07 01 D4 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 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 64 00 00 00 F4 03 04 00 0D DB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 DB 5A 4F D3 84 F1 DD 95 E6 64 CB E2 6E [11: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 C8 7B 47 00 1F 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 B8 13 01 00 F4 03 04 00 AB 84 18 67 B6 04 01 00 00 B1 9C A0 03 C5 A0 9F 05 [11:16:26]CommunicateWithHost err = 0 [11:16:26]CheckOFDResponse [11:16:26]1017 (14) - 77093643461234 [11:16:26]1041 (16) - 0000000000963346 [11:16:26]1040 (4) - 70584 [11:16:26]1012 (4) - 23.10.2024 05:07 [11:16:26]1206 (1) - 0 [11:16:26]OFD Sender: Remove packet 70584 [11:16:26]ProducePacketName [11:16:26]name=ofd_packets/00070584 [11:16:26]NVStorageDeleteData [11:16:26]Write to MH i2c: 01 00 00 71 54 C5 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 71 54 00 00 00 00 00 EA 0C C2 [11:16:26]RasterBufferAndPrint [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:27]written 0, free lines is 3312 [11:16:27]MH_Cut [11:16:27]Write to MH i2c: D1 01 00 78 54 01 9E [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 01 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: D1 01 00 78 54 00 9D [11:16:27]Write to MH i2c: 01 00 00 79 54 CD [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]OFD Sender: No OFD packet to send [11:16:27]*** Cut start [11:16:27]*** Partial cut [11:16:27]*** CUTSNS_PIN = 1 [11:16:27]*** CUTSNS_PIN = 0 [11:16:27]*** Brake cut motor [11:16:28]Read from MH i2c: 01 [11:16:28]MH_I2C_Read... [11:16:28]*** Stop cut motor [11:16:28]*** Cut end [11:16:28]Read from MH i2c: 01 07 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: 01 07 00 79 54 00 00 00 00 00 FF 0F E2 [11:16:28]process_action close_receipt done [11:16:28]requested_data is exist [11:16:28]produce_requested_data [11:16:28]requested_item fm.sn is exist - process it [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 11 00 00 [11:16:28]Write to MH i2c: E2 08 00 7A 54 80 11 00 00 00 00 00 00 48 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 17 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 17 00 7A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [11: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 [11:16:28]wFMCommunicate OK [11:16:28]requested_item fd.num is exist - process it [11:16:28]SAM_PROTO_GetFieldsCounters [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 13 00 00 [11:16:28]Write to MH i2c: E2 08 00 7B 54 80 13 00 00 00 00 00 00 4B [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 62 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 62 00 7B 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 22 [11: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 B8 13 01 00 0E 04 04 00 C4 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 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_GetFieldsCounters done [11:16:28]requested_item shift.num is exist - process it [11:16:28]requested_item shift.opened is exist - process it [11:16:28]req_shift_opened [11:16:28]FM_GetShiftState [11:16:28]SAM_PROTO_GetShiftState [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 13 01 00 [11:16:28]Write to MH i2c: E2 08 00 7C 54 80 13 01 00 00 00 00 00 4D [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 0E 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 0E 00 7C 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DA [11:16:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_GetShiftState done [11:16:28]FM_GetShiftState done [11:16:28]req_shift_opened done [11:16:28]requested_item shift.open_date is exist - process it [11:16:28]req_shift_open_date [11:16:28]req_shift_open_date done [11:16:28]produce_requested_data done [11:16:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70584,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:16:28]process_action_free close_receipt [11:16:28]json_value_free [11:16:28]json_value_free done [11:16:28]process_json_proto returns [11:16:28]Send response to host [11:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70584,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:16:28]free response buf [11:16:28]execute_script done [11:16:28]execute_script returns [11:16:28]free content buf [11:16:28]Sock 7.Close socket [11:16:28]Sock 7.Thread stoped [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:16]accept exits with 9 [11:23:16]New connection [11:23:16]New thread 3066699108 created [11:23:16]Thread 3066555748 joined [11:23:16]Waiting for new connection... [11:23:16] Sock 9.Parse request [11:23:16]Sock 9.Check first char [11:23:16]Sock 9.First char is OK [11:23:16]request: POST /json_proto HTTP/1.0 [11:23:16]Method: POST [11:23:16]URL: /json_proto [11:23:16]Method is POST - this is cgi request [11:23:16]url: /json_proto [11:23:16]query_string will be loaded in cgi processing [11:23:16]execute_cgi json_proto POST (null) [11:23:16]execute_cgi path=json_proto method=POST [11:23:16]POST find Content-Length [11:23:16]Host: 172.17.50.3:8080 [11:23:16]Content-Length: 767 [11:23:16]Content-Type: application/json [11:23:16] [11:23:16]POST finish read [11:23:16]Found Content-Length = 767 [11:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886358", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:16]execute_script... [11:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886358", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:16]POST & json_proto [11:23:16]process_json_proto [11:23:16]json parsed OK: [11:23:16]protocol is kg_v1.0 [11:23:16]action value=close_receipt [11:23:16]process_action close_receipt [11:23:16]cmd_close_receipt [11:23:16]MH_GetDate [11:23:16]Write to MH i2c: F0 00 00 7D 54 C0 [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: F0 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: F0 09 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: F0 09 00 7D 54 00 A9 DC 18 67 6B 98 1E 66 54 [11:23:16]GetLastDocTimeStamp 1729682189 [11:23:16]current date 1729682601 [11:23:16]FM_GetShiftState [11:23:16]SAM_PROTO_GetShiftState [11:23:16]wFMCommunicate request_size=4 [11:23:16]MH_SAM_APDU [11:23:16]CAPDU: 80 13 01 00 [11:23:16]Write to MH i2c: E2 08 00 7E 54 80 13 01 00 00 00 00 00 4F [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:16]Read from MH i2c: E2 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 0E 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: E2 0E 00 7E 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DC [11:23:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:23:16]wFMCommunicate OK [11:23:16]SAM_PROTO_GetShiftState done [11:23:16]FM_GetShiftState done [11:23:16]opened in 1729642435 [11:23:16]opened+sec_in_day 1729728835 [11:23:16]quantity*price = 40006 [11:23:16]sum+1 = 40007 [11:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 101 23.10.2024 11:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70585 ФПД: 132626122290133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112321&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70585&fm=132626122290133&tin=02508201610067®Number=0000000000156251&sum=40006 [11:23:18]StoreToDocumentArchive [11:23:18]shift 196 fd 70585 [11:23:18]save to /storage/0196/doc_00070585 [11:23:18]save last doc name /storage/0196/doc_00070585 to /storage/kkm_last_doc_name [11:23:18]save OK [11:23:18]Clear old archive folders... [11:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:18]tlvbuf is B6F171D0 [11:23:18]SAM_PROTO_ClearQueue [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 09 00 00 [11:23:18]Write to MH i2c: E2 08 00 8B 54 80 09 00 00 00 00 00 00 51 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 8B 54 00 90 00 53 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_ClearQueue done [11:23:18]KKMCreateOFDPacket [11:23:18]OFDProtocolAddRootSTLVToBuf [11:23:18]FM_MakeSignedData [11:23:18]FM_MakeSignedData [11:23:18]SAM_PROTO_SignData [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 0D 01 02 [11:23:18]Write to MH i2c: E2 08 00 8C 54 80 0D 01 02 00 00 00 00 59 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 8C 54 00 90 00 54 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=255 [11:23:18]MH_SAM_APDU [11:23: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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A9 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 [11:23:18]Write to MH i2c: E2 02 01 8D 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A9 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 00 00 2F [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 8D 54 00 90 00 55 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=10 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 0D 02 02 05 9F 6C E8 33 D5 [11:23:18]Write to MH i2c: E2 0D 00 8E 54 80 0D 02 02 05 00 9F 6C E8 33 D5 00 00 61 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 03 00 8E 54 00 90 00 56 [11:23:18]RAPDU: 90 00 [11:23:18]wFMCommunicate OK [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 0D 03 02 [11:23:18]Write to MH i2c: E2 08 00 8F 54 80 0D 03 02 00 00 00 00 5E [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0B 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0B 00 8F 54 00 13 41 D1 F7 BB 16 85 EB 90 00 BC [11:23:18]RAPDU: 13 41 D1 F7 BB 16 85 EB 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_SignData done [11:23:18]FM_MakeSignedData done [11:23:18]CreateOFDProtocolMessage [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 11 00 00 [11:23:18]Write to MH i2c: E2 08 00 90 54 80 11 00 00 00 00 00 00 5E [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 90 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [11: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 [11:23:18]wFMCommunicate OK [11:23:18]CreateOFDProtocolMessage done [11:23:18]OFDSenderStorePacket 70585 [11:23:18]StoreOFDPacket docnum=70585 [11:23: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 AB AC 07 01 22 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 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A9 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 9F 6C E8 33 D5 13 41 D1 F7 BB 16 85 EB [11:23:18]CheckFolder [11:23:18]dirname=/storage/ofd_packets [11:23:18]CheckFolder done [11:23:18]ProducePacketName [11:23:18]name=ofd_packets/00070585 [11:23:18]NVStorageSaveData ofd_packets/00070585 [11:23:18]File name is /storage/ofd_packets/00070585 [11:23:18]Write 301 bytes [11:23:18]NVStorageSaveData done [11:23:18]OFDSenderStorePacket done [11:23:18]KKMCreateOFDPacket done [11:23:18]NVStorageSaveData kkm_last_timestamp [11:23:18]File name is /storage/kkm_last_timestamp [11:23:18]Write 4 bytes [11:23:18]NVStorageSaveData done [11:23:18]ExternCall_PrintAddStr [11:23:18]wPrintStart [11:23:18]Write to MH i2c: 01 00 00 91 54 E5 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: 01 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: 01 07 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: 01 07 00 91 54 00 00 00 00 00 FF 0F FA [11:23:18]RasterBufferAndPrint [11:23:18]line Счет N : (1)2886358 [11:23:18]line ИНН: 02508201610067 [11:23:18]line Контрольно-Кассовый Чек [11:23:18]line ПРОДАЖА [11:23:18]line ТРК (МРК, ГНК) : 22 [11:23:18]line Товар: 2710124130 [11:23:18]line Аи-92-К-5 [11:23:18]line 5.980 * 66.90 [11:23:18]line = 400.06 [11:23:18]line НДС 12% НСП 1% [11:23:18]line > о реализуемом товаре [11:23:18]line ИТОГО: 400.06 [11:23:18]line НСП 1% : 3.54 [11:23:18]line НДС 12% : 42.48 [11:23:18]line Наличными: 0.00 [11:23:18]line Безнал.: 400.06 [11:23:18]line Место: АЗС № 85 "Партнер Нефть" [11:23:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:23:18]line СНО: Общий режим [11:23:18]line Чек 101 23.10.2024 11:23 [11:23:18]line Смена: 196 ФФД: 1.0 [11:23:18]line ЗНМ: 0300000167 [11:23:18]line РНМ: 0000000000156251 [11:23:18]line Версия ККМ: v1.0 [11:23:18]line Платежная система: Mbank [11:23:18]line ФМ: 0000000000963346 [11:23:18]line ФД: 70585 [11:23:18]line ФПД: 132626122290133 [11:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112321&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70585&fm=132626122290133&tin=02508201610067®Number=0000000000156251&sum=40006 [11:23:18]OFD Sender: Processing packet 70585 [packets to send 18, broken 17] [11:23:18]ProducePacketName [11:23:18]name=ofd_packets/00070585 [11:23:18]OFD Sender: To server: pG, [11:23:18]CommunicateWithHost lk.salyk.kg:30040 [11:23:18]ConnectInit lk.salyk.kg [11:23:18]written 0, free lines is 4095 [11:23:19]Connected sock=10 [11:23: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 AB AC 07 01 22 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 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A9 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 78 9F 6C E8 33 D5 13 41 D1 F7 BB 16 85 EB [11:23: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 74 0D 47 00 CE 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 B9 13 01 00 F4 03 04 00 47 86 18 67 B6 04 01 00 00 5E C7 D9 BA 99 82 39 DA [11:23:19]CommunicateWithHost err = 0 [11:23:19]CheckOFDResponse [11:23:19]1017 (14) - 77093643461234 [11:23:19]1041 (16) - 0000000000963346 [11:23:19]1040 (4) - 70585 [11:23:19]1012 (4) - 23.10.2024 05:14 [11:23:19]1206 (1) - 0 [11:23:19]OFD Sender: Remove packet 70585 [11:23:19]ProducePacketName [11:23:19]name=ofd_packets/00070585 [11:23:19]NVStorageDeleteData [11:23:19]Write to MH i2c: 01 00 00 BA 54 0E [11:23:19]Write i2c OK [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: 01 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: 01 07 00 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: 01 07 00 BA 54 00 00 00 00 00 2E 0D 50 [11:23:19]RasterBufferAndPrint [11:23:19]line [11:23:19]line [11:23:19]line [11:23:19]line [11:23:19]line [11:23:19]written 0, free lines is 3382 [11:23:19]MH_Cut [11:23:19]Write to MH i2c: D1 01 00 C1 54 01 E7 [11:23:19]Write i2c OK [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: D1 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: D1 01 00 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: D1 01 00 C1 54 00 E6 [11:23:19]Write to MH i2c: 01 00 00 C2 54 16 [11:23:19]Write i2c OK [11:23:19]MH_I2C_Read... [11:23:19]OFD Sender: No OFD packet to send [11:23:20]*** Cut start [11:23:20]*** Partial cut [11:23:20]*** CUTSNS_PIN = 1 [11:23:20]*** CUTSNS_PIN = 0 [11:23:20]*** Brake cut motor [11:23:20]Read from MH i2c: 01 [11:23:20]MH_I2C_Read... [11:23:20]*** Stop cut motor [11:23:20]*** Cut end [11:23:20]Read from MH i2c: 01 07 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: 01 07 00 C2 54 00 00 00 00 00 FF 0F 2B [11:23:20]process_action close_receipt done [11:23:20]requested_data is exist [11:23:20]produce_requested_data [11:23:20]requested_item fm.sn is exist - process it [11:23:20]wFMCommunicate request_size=4 [11:23:20]MH_SAM_APDU [11:23:20]CAPDU: 80 11 00 00 [11:23:20]Write to MH i2c: E2 08 00 C3 54 80 11 00 00 00 00 00 00 91 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:20]Read from MH i2c: E2 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 17 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 17 00 C3 54 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:23: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:23:20]wFMCommunicate OK [11:23:20]requested_item fd.num is exist - process it [11:23:20]SAM_PROTO_GetFieldsCounters [11:23:20]wFMCommunicate request_size=4 [11:23:20]MH_SAM_APDU [11:23:20]CAPDU: 80 13 00 00 [11:23:20]Write to MH i2c: E2 08 00 C4 54 80 13 00 00 00 00 00 00 94 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:20]Read from MH i2c: E2 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 62 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 62 00 C4 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 6F [11:23: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 B9 13 01 00 0E 04 04 00 C4 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 [11:23:20]wFMCommunicate OK [11:23:20]SAM_PROTO_GetFieldsCounters done [11:23:20]requested_item shift.num is exist - process it [11:23:20]requested_item shift.opened is exist - process it [11:23:20]req_shift_opened [11:23:20]FM_GetShiftState [11:23:20]SAM_PROTO_GetShiftState [11:23:20]wFMCommunicate request_size=4 [11:23:20]MH_SAM_APDU [11:23:20]CAPDU: 80 13 01 00 [11:23:20]Write to MH i2c: E2 08 00 C5 54 80 13 01 00 00 00 00 00 96 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:20]Read from MH i2c: E2 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 0E 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 0E 00 C5 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 23 [11:23:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:23:20]wFMCommunicate OK [11:23:20]SAM_PROTO_GetShiftState done [11:23:20]FM_GetShiftState done [11:23:20]req_shift_opened done [11:23:20]requested_item shift.open_date is exist - process it [11:23:20]req_shift_open_date [11:23:20]req_shift_open_date done [11:23:20]produce_requested_data done [11:23:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70585,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:23:20]process_action_free close_receipt [11:23:20]json_value_free [11:23:20]json_value_free done [11:23:20]process_json_proto returns [11:23:20]Send response to host [11:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70585,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:23:20]free response buf [11:23:20]execute_script done [11:23:20]execute_script returns [11:23:20]free content buf [11:23:20]Sock 9.Close socket [11:23:20]Sock 9.Thread stoped [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:17]accept exits with 7 [11:24:17]New connection [11:24:17]New thread 3066555748 created [11:24:17]Thread 3066699108 joined [11:24:17]Waiting for new connection... [11:24:17] Sock 7.Parse request [11:24:17]Sock 7.Check first char [11:24:17]Sock 7.First char is OK [11:24:17]request: POST /json_proto HTTP/1.0 [11:24:17]Method: POST [11:24:17]URL: /json_proto [11:24:17]Method is POST - this is cgi request [11:24:17]url: /json_proto [11:24:17]query_string will be loaded in cgi processing [11:24:17]execute_cgi json_proto POST (null) [11:24:17]execute_cgi path=json_proto method=POST [11:24:17]POST find Content-Length [11:24:17]Host: 172.17.50.3:8080 [11:24:17]Content-Length: 680 [11:24:17]Content-Type: application/json [11:24:17] [11:24:17]POST finish read [11:24:17]Found Content-Length = 680 [11:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886357", "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" : 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" ] } } [11:24:17]execute_script... [11:24: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)2886357", "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" : 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" ] } } [11:24:17]POST & json_proto [11:24:17]process_json_proto [11:24:17]json parsed OK: [11:24:17]protocol is kg_v1.0 [11:24:17]action value=close_receipt [11:24:17]process_action close_receipt [11:24:17]cmd_close_receipt [11:24:17]MH_GetDate [11:24:17]Write to MH i2c: F0 00 00 C6 54 09 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: F0 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: F0 09 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: F0 09 00 C6 54 00 E6 DC 18 67 6B 98 1E 66 DA [11:24:17]GetLastDocTimeStamp 1729682601 [11:24:17]current date 1729682662 [11:24:17]FM_GetShiftState [11:24:17]SAM_PROTO_GetShiftState [11:24:17]wFMCommunicate request_size=4 [11:24:17]MH_SAM_APDU [11:24:17]CAPDU: 80 13 01 00 [11:24:17]Write to MH i2c: E2 08 00 C7 54 80 13 01 00 00 00 00 00 98 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:17]Read from MH i2c: E2 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 0E 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 0E 00 C7 54 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 25 [11:24:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:24:17]wFMCommunicate OK [11:24:17]SAM_PROTO_GetShiftState done [11:24:17]FM_GetShiftState done [11:24:17]opened in 1729642435 [11:24:17]opened+sec_in_day 1729728835 [11:24:17]quantity*price = 200025 [11:24:17]sum+1 = 200026 [11:24:17]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 СНО: Общий режим Чек 102 23.10.2024 11:24 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70586 ФПД: 56984761640955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70586&fm=56984761640955&tin=02508201610067®Number=0000000000156251&sum=200000 [11:24:18]StoreToDocumentArchive [11:24:18]shift 196 fd 70586 [11:24:18]save to /storage/0196/doc_00070586 [11:24:18]save last doc name /storage/0196/doc_00070586 to /storage/kkm_last_doc_name [11:24:18]save OK [11:24:18]Clear old archive folders... [11:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:24:18]tlvbuf is 00CB33F0 [11:24:18]SAM_PROTO_ClearQueue [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 09 00 00 [11:24:18]Write to MH i2c: E2 08 00 D4 54 80 09 00 00 00 00 00 00 9A [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 D4 54 00 90 00 9C [11:24:18]RAPDU: 90 00 [11:24:18]wFMCommunicate OK [11:24:18]SAM_PROTO_ClearQueue done [11:24:18]KKMCreateOFDPacket [11:24:18]OFDProtocolAddRootSTLVToBuf [11:24:18]FM_MakeSignedData [11:24:18]FM_MakeSignedData [11:24:18]SAM_PROTO_SignData [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 0D 01 02 [11:24:18]Write to MH i2c: E2 08 00 D5 54 80 0D 01 02 00 00 00 00 A2 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 D5 54 00 90 00 9D [11:24:18]RAPDU: 90 00 [11:24:18]wFMCommunicate OK [11:24:18]wFMCommunicate request_size=255 [11:24:18]MH_SAM_APDU [11:24: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 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 66 00 00 00 F4 03 04 00 E6 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 D3 CC 79 [11:24:18]Write to MH i2c: E2 02 01 D6 54 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 66 00 00 00 F4 03 04 00 E6 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 D3 CC 79 00 00 93 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 03 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 03 00 D6 54 00 90 00 9E [11:24:19]RAPDU: 90 00 [11:24:19]wFMCommunicate OK [11:24:19]wFMCommunicate request_size=7 [11:24:19]MH_SAM_APDU [11:24:19]CAPDU: 80 0D 02 02 02 A7 FB [11:24:19]Write to MH i2c: E2 0A 00 D7 54 80 0D 02 02 02 00 A7 FB 00 00 4B [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 03 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 03 00 D7 54 00 90 00 9F [11:24:19]RAPDU: 90 00 [11:24:19]wFMCommunicate OK [11:24:19]wFMCommunicate request_size=4 [11:24:19]MH_SAM_APDU [11:24:19]CAPDU: 80 0D 03 02 [11:24:19]Write to MH i2c: E2 08 00 D8 54 80 0D 03 02 00 00 00 00 A7 [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 0B 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 0B 00 D8 54 00 2C 53 58 3B 42 DC 2A 81 90 00 83 [11:24:19]RAPDU: 2C 53 58 3B 42 DC 2A 81 90 00 [11:24:19]wFMCommunicate OK [11:24:19]SAM_PROTO_SignData done [11:24:19]FM_MakeSignedData done [11:24:19]CreateOFDProtocolMessage [11:24:19]wFMCommunicate request_size=4 [11:24:19]MH_SAM_APDU [11:24:19]CAPDU: 80 11 00 00 [11:24:19]Write to MH i2c: E2 08 00 D9 54 80 11 00 00 00 00 00 00 A7 [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 17 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 17 00 D9 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [11:24: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:24:19]wFMCommunicate OK [11:24:19]CreateOFDProtocolMessage done [11:24:19]OFDSenderStorePacket 70586 [11:24:19]StoreOFDPacket docnum=70586 [11:24: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 3C D6 04 01 21 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 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 66 00 00 00 F4 03 04 00 E6 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 D3 CC 79 A7 FB 2C 53 58 3B 42 DC 2A 81 [11:24:19]CheckFolder [11:24:19]dirname=/storage/ofd_packets [11:24:19]CheckFolder done [11:24:19]ProducePacketName [11:24:19]name=ofd_packets/00070586 [11:24:19]NVStorageSaveData ofd_packets/00070586 [11:24:19]File name is /storage/ofd_packets/00070586 [11:24:19]Write 298 bytes [11:24:19]NVStorageSaveData done [11:24:19]OFDSenderStorePacket done [11:24:19]KKMCreateOFDPacket done [11:24:19]NVStorageSaveData kkm_last_timestamp [11:24:19]File name is /storage/kkm_last_timestamp [11:24:19]Write 4 bytes [11:24:19]NVStorageSaveData done [11:24:19]ExternCall_PrintAddStr [11:24:19]wPrintStart [11:24:19]Write to MH i2c: 01 00 00 DA 54 2E [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: 01 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: 01 07 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: 01 07 00 DA 54 00 00 00 00 00 FF 0F 43 [11:24:19]RasterBufferAndPrint [11:24:19]line Счет N : (1)2886357 [11:24:19]line ИНН: 02508201610067 [11:24:19]line Контрольно-Кассовый Чек [11:24:19]line ПРОДАЖА [11:24:19]line ТРК (МРК, ГНК) : 51 [11:24:19]line Товар: 2710194210 [11:24:19]line ДТ-К-5 [11:24:19]line 26.250 * 76.20 [11:24:19]line = 2000.25 [11:24:19]line НДС 12% НСП 1% [11:24:19]line > о реализуемом товаре [11:24:19]line ОКРУГЛЕНИЕ: -0.25 [11:24:19]line ИТОГО: 2000.00 [11:24:19]line Внесено: 2000.00 [11:24:19]line СДАЧА: 0.00 [11:24:19]line НСП 1% : 17.70 [11:24:19]line НДС 12% : 212.42 [11:24:19]line Наличными: 2000.00 [11:24:19]line Безнал.: 0.00 [11:24:19]line Место: АЗС № 85 "Партнер Нефть" [11:24:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:24:19]line СНО: Общий режим [11:24:19]line Чек 102 23.10.2024 11:24 [11:24:19]line Смена: 196 ФФД: 1.0 [11:24:19]line ЗНМ: 0300000167 [11:24:19]line РНМ: 0000000000156251 [11:24:19]line Версия ККМ: v1.0 [11:24:19]line ФМ: 0000000000963346 [11:24:19]line ФД: 70586 [11:24:19]line ФПД: 56984761640955 [11:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70586&fm=56984761640955&tin=02508201610067®Number=0000000000156251&sum=200000 [11:24:19]OFD Sender: Processing packet 70586 [packets to send 18, broken 17] [11:24:19]ProducePacketName [11:24:19]name=ofd_packets/00070586 [11:24:19]OFD Sender: To server: pG, [11:24:19]CommunicateWithHost lk.salyk.kg:30040 [11:24:19]ConnectInit lk.salyk.kg [11:24:19]written 0, free lines is 4095 [11:24:19]Connected sock=10 [11:24: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 3C D6 04 01 21 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 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 66 00 00 00 F4 03 04 00 E6 DC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 33 D3 CC 79 A7 FB 2C 53 58 3B 42 DC 2A 81 [11:24: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 42 E0 47 00 4B F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 84 86 18 67 B6 04 01 00 00 68 F5 11 E7 39 C0 A6 4D [11:24:19]CommunicateWithHost err = 0 [11:24:19]CheckOFDResponse [11:24:19]1017 (14) - 77093643461234 [11:24:19]1041 (16) - 0000000000963346 [11:24:19]1040 (4) - 70586 [11:24:19]1012 (4) - 23.10.2024 05:15 [11:24:19]1206 (1) - 0 [11:24:19]OFD Sender: Remove packet 70586 [11:24:19]ProducePacketName [11:24:19]name=ofd_packets/00070586 [11:24:19]NVStorageDeleteData [11:24:20]Write to MH i2c: 01 00 00 05 55 5A [11:24:20]Write i2c OK [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: 01 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: 01 07 00 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: 01 07 00 05 55 00 00 00 00 00 F6 0C 63 [11:24:20]RasterBufferAndPrint [11:24:20]line [11:24:20]line [11:24:20]line [11:24:20]line [11:24:20]line [11:24:20]written 0, free lines is 3328 [11:24:20]MH_Cut [11:24:20]Write to MH i2c: D1 01 00 0C 55 01 33 [11:24:20]Write i2c OK [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: D1 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: D1 01 00 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: D1 01 00 0C 55 00 32 [11:24:20]Write to MH i2c: 01 00 00 0D 55 62 [11:24:20]Write i2c OK [11:24:20]MH_I2C_Read... [11:24:20]OFD Sender: No OFD packet to send [11:24:20]*** Cut start [11:24:20]*** Partial cut [11:24:20]*** CUTSNS_PIN = 1 [11:24:20]*** CUTSNS_PIN = 0 [11:24:21]*** Brake cut motor [11:24:21]Read from MH i2c: 01 [11:24:21]MH_I2C_Read... [11:24:21]*** Stop cut motor [11:24:21]*** Cut end [11:24:21]Read from MH i2c: 01 07 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: 01 07 00 0D 55 00 00 00 00 00 FF 0F 77 [11:24:21]process_action close_receipt done [11:24:21]requested_data is exist [11:24:21]produce_requested_data [11:24:21]requested_item fm.sn is exist - process it [11:24:21]wFMCommunicate request_size=4 [11:24:21]MH_SAM_APDU [11:24:21]CAPDU: 80 11 00 00 [11:24:21]Write to MH i2c: E2 08 00 0E 55 80 11 00 00 00 00 00 00 DD [11:24:21]Write i2c OK [11:24:21]MH_I2C_Read... [11:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:21]Read from MH i2c: E2 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 17 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 17 00 0E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [11: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 [11:24:21]wFMCommunicate OK [11:24:21]requested_item fd.num is exist - process it [11:24:21]SAM_PROTO_GetFieldsCounters [11:24:21]wFMCommunicate request_size=4 [11:24:21]MH_SAM_APDU [11:24:21]CAPDU: 80 13 00 00 [11:24:21]Write to MH i2c: E2 08 00 0F 55 80 13 00 00 00 00 00 00 E0 [11:24:21]Write i2c OK [11:24:21]MH_I2C_Read... [11:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:21]Read from MH i2c: E2 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 62 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 62 00 0F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 BF [11:24: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 BA 13 01 00 0E 04 04 00 C4 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 [11:24:21]wFMCommunicate OK [11:24:21]SAM_PROTO_GetFieldsCounters done [11:24:21]requested_item shift.num is exist - process it [11:24:21]requested_item shift.opened is exist - process it [11:24:21]req_shift_opened [11:24:21]FM_GetShiftState [11:24:21]SAM_PROTO_GetShiftState [11:24:21]wFMCommunicate request_size=4 [11:24:21]MH_SAM_APDU [11:24:21]CAPDU: 80 13 01 00 [11:24:21]Write to MH i2c: E2 08 00 10 55 80 13 01 00 00 00 00 00 E2 [11:24:21]Write i2c OK [11:24:21]MH_I2C_Read... [11:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:21]Read from MH i2c: E2 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 0E 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 0E 00 10 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6F [11:24:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:24:21]wFMCommunicate OK [11:24:21]SAM_PROTO_GetShiftState done [11:24:21]FM_GetShiftState done [11:24:21]req_shift_opened done [11:24:21]requested_item shift.open_date is exist - process it [11:24:21]req_shift_open_date [11:24:21]req_shift_open_date done [11:24:21]produce_requested_data done [11:24:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70586,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:24:21]process_action_free close_receipt [11:24:21]json_value_free [11:24:21]json_value_free done [11:24:21]process_json_proto returns [11:24:21]Send response to host [11:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70586,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:24:21]free response buf [11:24:21]execute_script done [11:24:21]execute_script returns [11:24:21]free content buf [11:24:21]Sock 7.Close socket [11:24:21]Sock 7.Thread stoped [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:33]accept exits with 9 [11:27:33]New connection [11:27:33]New thread 3066699108 created [11:27:33]Thread 3066555748 joined [11:27:33]Waiting for new connection... [11:27:33] Sock 9.Parse request [11:27:33]Sock 9.Check first char [11:27:33]Sock 9.First char is OK [11:27:33]request: POST /json_proto HTTP/1.0 [11:27:33]Method: POST [11:27:33]URL: /json_proto [11:27:33]Method is POST - this is cgi request [11:27:33]url: /json_proto [11:27:33]query_string will be loaded in cgi processing [11:27:33]execute_cgi json_proto POST (null) [11:27:33]execute_cgi path=json_proto method=POST [11:27:33]POST find Content-Length [11:27:33]Host: 172.17.50.3:8080 [11:27:33]Content-Length: 755 [11:27:33]Content-Type: application/json [11:27:33] [11:27:33]POST finish read [11:27:33]Found Content-Length = 755 [11:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886359", "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\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:33]execute_script... [11:27: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)2886359", "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\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:33]POST & json_proto [11:27:33]process_json_proto [11:27:33]json parsed OK: [11:27:33]protocol is kg_v1.0 [11:27:33]action value=close_receipt [11:27:33]process_action close_receipt [11:27:33]cmd_close_receipt [11:27:33]MH_GetDate [11:27:33]Write to MH i2c: F0 00 00 11 55 55 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 09 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 09 00 11 55 00 A9 DD 18 67 6B 98 1E 66 EA [11:27:33]GetLastDocTimeStamp 1729682662 [11:27:33]current date 1729682857 [11:27:33]FM_GetShiftState [11:27:33]SAM_PROTO_GetShiftState [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 01 00 [11:27:33]Write to MH i2c: E2 08 00 12 55 80 13 01 00 00 00 00 00 E4 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 12 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 71 [11:27:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetShiftState done [11:27:33]FM_GetShiftState done [11:27:33]opened in 1729642435 [11:27:33]opened+sec_in_day 1729728835 [11:27:33]quantity*price = 0 [11:27:33]sum+1 = 1 [11:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 103 23.10.2024 11:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021879 ФМ: 0000000000963346 ФД: 70587 ФПД: 149142658661323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70587&fm=149142658661323&tin=02508201610067®Number=0000000000156251&sum=0 [11:27:34]StoreToDocumentArchive [11:27:34]shift 196 fd 70587 [11:27:34]save to /storage/0196/doc_00070587 [11:27:34]save last doc name /storage/0196/doc_00070587 to /storage/kkm_last_doc_name [11:27:34]save OK [11:27:34]Clear old archive folders... [11:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:34]tlvbuf is 00E15B60 [11:27:34]SAM_PROTO_ClearQueue [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 09 00 00 [11:27:34]Write to MH i2c: E2 08 00 1F 55 80 09 00 00 00 00 00 00 E6 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 1F 55 00 90 00 E8 [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_ClearQueue done [11:27:34]KKMCreateOFDPacket [11:27:34]OFDProtocolAddRootSTLVToBuf [11:27:34]FM_MakeSignedData [11:27:34]FM_MakeSignedData [11:27:34]SAM_PROTO_SignData [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 01 02 [11:27:34]Write to MH i2c: E2 08 00 20 55 80 0D 01 02 00 00 00 00 EE [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 20 55 00 90 00 E9 [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=255 [11:27:34]MH_SAM_APDU [11:27: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 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 67 00 00 00 F4 03 04 00 A9 DD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 87 [11:27:34]Write to MH i2c: E2 02 01 21 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 00 00 00 F4 03 04 00 A9 DD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 87 00 00 E6 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 21 55 00 90 00 EA [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=10 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 02 02 05 A4 FB 30 BB CB [11:27:34]Write to MH i2c: E2 0D 00 22 55 80 0D 02 02 05 00 A4 FB 30 BB CB 00 00 50 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 22 55 00 90 00 EB [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 03 02 [11:27:34]Write to MH i2c: E2 08 00 23 55 80 0D 03 02 00 00 00 00 F3 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 23 55 00 DB 2A 3B D7 CB 8A DC 81 90 00 BD [11:27:34]RAPDU: DB 2A 3B D7 CB 8A DC 81 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_SignData done [11:27:34]FM_MakeSignedData done [11:27:34]CreateOFDProtocolMessage [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 11 00 00 [11:27:34]Write to MH i2c: E2 08 00 24 55 80 11 00 00 00 00 00 00 F3 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 24 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [11:27: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:27:34]wFMCommunicate OK [11:27:34]CreateOFDProtocolMessage done [11:27:34]OFDSenderStorePacket 70587 [11:27:34]StoreOFDPacket docnum=70587 [11:27: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 96 04 07 01 AB 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 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 67 00 00 00 F4 03 04 00 A9 DD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 87 A4 FB 30 BB CB DB 2A 3B D7 CB 8A DC 81 [11:27:34]CheckFolder [11:27:34]dirname=/storage/ofd_packets [11:27:34]CheckFolder done [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00070587 [11:27:34]NVStorageSaveData ofd_packets/00070587 [11:27:34]File name is /storage/ofd_packets/00070587 [11:27:34]Write 301 bytes [11:27:34]NVStorageSaveData done [11:27:34]OFDSenderStorePacket done [11:27:34]KKMCreateOFDPacket done [11:27:34]NVStorageSaveData kkm_last_timestamp [11:27:34]File name is /storage/kkm_last_timestamp [11:27:34]Write 4 bytes [11:27:34]NVStorageSaveData done [11:27:34]ExternCall_PrintAddStr [11:27:34]wPrintStart [11:27:34]Write to MH i2c: 01 00 00 25 55 7A [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 25 55 00 00 00 00 00 FF 0F 8F [11:27:34]RasterBufferAndPrint [11:27:34]line Счет N : (1)2886359 [11:27:34]line ИНН: 02508201610067 [11:27:34]line Контрольно-Кассовый Чек [11:27:34]line ПРОДАЖА [11:27:34]line ТРК (МРК, ГНК) : 42 [11:27:34]line Товар: 2710124130 [11:27:34]line Аи-92-К-5 [11:27:34]line 20.000 * 0.00 [11:27:34]line = 0.00 [11:27:34]line НДС 12% НСП 1% [11:27:34]line > о реализуемом товаре [11:27:34]line ИТОГО: 0.00 [11:27:34]line НСП 1% : 0.00 [11:27:34]line НДС 12% : 0.00 [11:27:34]line Наличными: 0.00 [11:27:34]line Безнал.: 0.00 [11:27:34]line Место: АЗС № 85 "Партнер Нефть" [11:27:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:27:34]line СНО: Общий режим [11:27:34]line Чек 103 23.10.2024 11:27 [11:27:34]line Смена: 196 ФФД: 1.0 [11:27:34]line ЗНМ: 0300000167 [11:27:34]line РНМ: 0000000000156251 [11:27:34]line Версия ККМ: v1.0 [11:27:34]line Талоны: ТК ГПНА Online [11:27:34]line 30021879 [11:27:34]line ФМ: 0000000000963346 [11:27:34]line ФД: 70587 [11:27:34]line ФПД: 149142658661323 [11:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70587&fm=149142658661323&tin=02508201610067®Number=0000000000156251&sum=0 [11:27:35]OFD Sender: Processing packet 70587 [packets to send 18, broken 17] [11:27:35]ProducePacketName [11:27:35]name=ofd_packets/00070587 [11:27:35]OFD Sender: To server: pG, [11:27:35]CommunicateWithHost lk.salyk.kg:30040 [11:27:35]ConnectInit lk.salyk.kg [11:27:35]written 0, free lines is 4095 [11:27:35]Connected sock=10 [11:27: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 96 04 07 01 AB 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 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 67 00 00 00 F4 03 04 00 A9 DD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 87 A4 FB 30 BB CB DB 2A 3B D7 CB 8A DC 81 [11:27: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 0D 12 47 00 11 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 BB 13 01 00 F4 03 04 00 47 87 18 67 B6 04 01 00 00 BD 7C 41 E4 D5 33 57 E5 [11:27:35]CommunicateWithHost err = 0 [11:27:35]CheckOFDResponse [11:27:35]1017 (14) - 77093643461234 [11:27:35]1041 (16) - 0000000000963346 [11:27:35]1040 (4) - 70587 [11:27:35]1012 (4) - 23.10.2024 05:19 [11:27:35]1206 (1) - 0 [11:27:35]OFD Sender: Remove packet 70587 [11:27:35]ProducePacketName [11:27:35]name=ofd_packets/00070587 [11:27:35]NVStorageDeleteData [11:27:35]Write to MH i2c: 01 00 00 4F 55 A4 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 07 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 07 00 4F 55 00 00 00 00 00 0C 0D C4 [11:27:35]RasterBufferAndPrint [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]written 0, free lines is 3349 [11:27:35]MH_Cut [11:27:35]Write to MH i2c: D1 01 00 56 55 01 7D [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 01 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 01 00 56 55 00 7C [11:27:35]Write to MH i2c: 01 00 00 57 55 AC [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]OFD Sender: No OFD packet to send [11:27:36]*** Cut start [11:27:36]*** Partial cut [11:27:36]*** CUTSNS_PIN = 1 [11:27:36]*** CUTSNS_PIN = 0 [11:27:36]*** Brake cut motor [11:27:36]Read from MH i2c: 01 [11:27:36]MH_I2C_Read... [11:27:36]*** Stop cut motor [11:27:36]*** Cut end [11:27:36]Read from MH i2c: 01 07 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: 01 07 00 57 55 00 00 00 00 00 FF 0F C1 [11:27:36]process_action close_receipt done [11:27:36]requested_data is exist [11:27:36]produce_requested_data [11:27:36]requested_item fm.sn is exist - process it [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 11 00 00 [11:27:36]Write to MH i2c: E2 08 00 58 55 80 11 00 00 00 00 00 00 27 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 58 55 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:27: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:27:36]wFMCommunicate OK [11:27:36]requested_item fd.num is exist - process it [11:27:36]SAM_PROTO_GetFieldsCounters [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 13 00 00 [11:27:36]Write to MH i2c: E2 08 00 59 55 80 13 00 00 00 00 00 00 2A [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 62 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 62 00 59 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 0D [11:27: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 BB 13 01 00 0E 04 04 00 C4 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 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_GetFieldsCounters done [11:27:37]requested_item shift.num is exist - process it [11:27:37]requested_item shift.opened is exist - process it [11:27:37]req_shift_opened [11:27:37]FM_GetShiftState [11:27:37]SAM_PROTO_GetShiftState [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 13 01 00 [11:27:37]Write to MH i2c: E2 08 00 5A 55 80 13 01 00 00 00 00 00 2C [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0E 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0E 00 5A 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B9 [11:27:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_GetShiftState done [11:27:37]FM_GetShiftState done [11:27:37]req_shift_opened done [11:27:37]requested_item shift.open_date is exist - process it [11:27:37]req_shift_open_date [11:27:37]req_shift_open_date done [11:27:37]produce_requested_data done [11:27:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70587,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:27:37]process_action_free close_receipt [11:27:37]json_value_free [11:27:37]json_value_free done [11:27:37]process_json_proto returns [11:27:37]Send response to host [11:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70587,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:27:37]free response buf [11:27:37]execute_script done [11:27:37]execute_script returns [11:27:37]free content buf [11:27:37]Sock 9.Close socket [11:27:37]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:11]accept exits with 7 [11:29:11]New connection [11:29:11]New thread 3066555748 created [11:29:11]Thread 3066699108 joined [11:29:11]Waiting for new connection... [11:29:11] Sock 7.Parse request [11:29:11]Sock 7.Check first char [11:29:11]Sock 7.First char is OK [11:29:11]request: POST /json_proto HTTP/1.0 [11:29:11]Method: POST [11:29:11]URL: /json_proto [11:29:11]Method is POST - this is cgi request [11:29:11]url: /json_proto [11:29:11]query_string will be loaded in cgi processing [11:29:11]execute_cgi json_proto POST (null) [11:29:11]execute_cgi path=json_proto method=POST [11:29:11]POST find Content-Length [11:29:11]Host: 172.17.50.3:8080 [11:29:11]Content-Length: 770 [11:29:11]Content-Type: application/json [11:29:11] [11:29:11]POST finish read [11:29:11]Found Content-Length = 770 [11:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886361", "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" : 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" ] } } [11:29:11]execute_script... [11:29: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)2886361", "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" : 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" ] } } [11:29:11]POST & json_proto [11:29:11]process_json_proto [11:29:11]json parsed OK: [11:29:11]protocol is kg_v1.0 [11:29:11]action value=close_receipt [11:29:11]process_action close_receipt [11:29:11]cmd_close_receipt [11:29:11]MH_GetDate [11:29:11]Write to MH i2c: F0 00 00 5B 55 9F [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: F0 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: F0 09 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: F0 09 00 5B 55 00 0C DE 18 67 6B 98 1E 66 98 [11:29:11]GetLastDocTimeStamp 1729682857 [11:29:11]current date 1729682956 [11:29:11]FM_GetShiftState [11:29:11]SAM_PROTO_GetShiftState [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 13 01 00 [11:29:11]Write to MH i2c: E2 08 00 5C 55 80 13 01 00 00 00 00 00 2E [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 5C 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BB [11:29:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:29:11]wFMCommunicate OK [11:29:11]SAM_PROTO_GetShiftState done [11:29:11]FM_GetShiftState done [11:29:11]opened in 1729642435 [11:29:11]opened+sec_in_day 1729728835 [11:29:11]quantity*price = 200043 [11:29:11]sum+1 = 200044 [11:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 104 23.10.2024 11:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70588 ФПД: 276573893471855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112916&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70588&fm=276573893471855&tin=02508201610067®Number=0000000000156251&sum=200043 [11:29:12]StoreToDocumentArchive [11:29:12]shift 196 fd 70588 [11:29:12]save to /storage/0196/doc_00070588 [11:29:12]save last doc name /storage/0196/doc_00070588 to /storage/kkm_last_doc_name [11:29:12]save OK [11:29:12]Clear old archive folders... [11:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:12]tlvbuf is 00B33620 [11:29:12]SAM_PROTO_ClearQueue [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 09 00 00 [11:29:12]Write to MH i2c: E2 08 00 69 55 80 09 00 00 00 00 00 00 30 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 69 55 00 90 00 32 [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]SAM_PROTO_ClearQueue done [11:29:12]KKMCreateOFDPacket [11:29:12]OFDProtocolAddRootSTLVToBuf [11:29:12]FM_MakeSignedData [11:29:12]FM_MakeSignedData [11:29:12]SAM_PROTO_SignData [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 0D 01 02 [11:29:12]Write to MH i2c: E2 08 00 6A 55 80 0D 01 02 00 00 00 00 38 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 6A 55 00 90 00 33 [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]wFMCommunicate request_size=255 [11:29:12]MH_SAM_APDU [11:29: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 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 68 00 00 00 F4 03 04 00 0C DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB [11:29:12]Write to MH i2c: E2 02 01 6B 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 0C DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 00 00 1F [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 6B 55 00 90 00 34 [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=10 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 02 02 05 8A E0 AC AE 6F [11:29:13]Write to MH i2c: E2 0D 00 6C 55 80 0D 02 02 05 00 8A E0 AC AE 6F 00 00 78 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 6C 55 00 90 00 35 [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 03 02 [11:29:13]Write to MH i2c: E2 08 00 6D 55 80 0D 03 02 00 00 00 00 3D [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 0B 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 0B 00 6D 55 00 36 1D AF 3F 6B F0 55 87 90 00 B6 [11:29:13]RAPDU: 36 1D AF 3F 6B F0 55 87 90 00 [11:29:13]wFMCommunicate OK [11:29:13]SAM_PROTO_SignData done [11:29:13]FM_MakeSignedData done [11:29:13]CreateOFDProtocolMessage [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 11 00 00 [11:29:13]Write to MH i2c: E2 08 00 6E 55 80 11 00 00 00 00 00 00 3D [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 17 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 17 00 6E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [11:29: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:29:13]wFMCommunicate OK [11:29:13]CreateOFDProtocolMessage done [11:29:13]OFDSenderStorePacket 70588 [11:29:13]StoreOFDPacket docnum=70588 [11:29: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 D3 66 07 01 23 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 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 68 00 00 00 F4 03 04 00 0C DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 8A E0 AC AE 6F 36 1D AF 3F 6B F0 55 87 [11:29:13]CheckFolder [11:29:13]dirname=/storage/ofd_packets [11:29:13]CheckFolder done [11:29:13]ProducePacketName [11:29:13]name=ofd_packets/00070588 [11:29:13]NVStorageSaveData ofd_packets/00070588 [11:29:13]File name is /storage/ofd_packets/00070588 [11:29:13]Write 301 bytes [11:29:13]NVStorageSaveData done [11:29:13]OFDSenderStorePacket done [11:29:13]KKMCreateOFDPacket done [11:29:13]NVStorageSaveData kkm_last_timestamp [11:29:13]File name is /storage/kkm_last_timestamp [11:29:13]Write 4 bytes [11:29:13]NVStorageSaveData done [11:29:13]ExternCall_PrintAddStr [11:29:13]wPrintStart [11:29:13]Write to MH i2c: 01 00 00 6F 55 C4 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 07 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 07 00 6F 55 00 00 00 00 00 FF 0F D9 [11:29:13]RasterBufferAndPrint [11:29:13]line Счет N : (1)2886361 [11:29:13]line ИНН: 02508201610067 [11:29:13]line Контрольно-Кассовый Чек [11:29:13]line ПРОДАЖА [11:29:13]line ТРК (МРК, ГНК) : 23 [11:29:13]line Товар: 2710124500 [11:29:13]line Аи-95-К-5 [11:29:13]line 26.960 * 74.20 [11:29:13]line = 2000.43 [11:29:13]line НДС 12% НСП 1% [11:29:13]line > о реализуемом товаре [11:29:13]line ИТОГО: 2000.43 [11:29:13]line НСП 1% : 17.70 [11:29:13]line НДС 12% : 212.43 [11:29:13]line Наличными: 0.00 [11:29:13]line Безнал.: 2000.43 [11:29:13]line Место: АЗС № 85 "Партнер Нефть" [11:29:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:29:13]line СНО: Общий режим [11:29:13]line Чек 104 23.10.2024 11:29 [11:29:13]line Смена: 196 ФФД: 1.0 [11:29:13]line ЗНМ: 0300000167 [11:29:13]line РНМ: 0000000000156251 [11:29:13]line Версия ККМ: v1.0 [11:29:13]line Платежная система: Mbank [11:29:13]line ФМ: 0000000000963346 [11:29:13]line ФД: 70588 [11:29:13]line ФПД: 276573893471855 [11:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112916&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70588&fm=276573893471855&tin=02508201610067®Number=0000000000156251&sum=200043 [11:29:13]OFD Sender: Processing packet 70588 [packets to send 18, broken 17] [11:29:13]ProducePacketName [11:29:13]name=ofd_packets/00070588 [11:29:13]OFD Sender: To server: pG, [11:29:13]CommunicateWithHost lk.salyk.kg:30040 [11:29:13]ConnectInit lk.salyk.kg [11:29:13]written 0, free lines is 4095 [11:29:13]Connected sock=11 [11:29: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 D3 66 07 01 23 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 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 68 00 00 00 F4 03 04 00 0C DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 8A E0 AC AE 6F 36 1D AF 3F 6B F0 55 87 [11:29: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 E7 49 47 00 2D 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 BC 13 01 00 F4 03 04 00 AA 87 18 67 B6 04 01 00 00 E2 08 78 74 3D 0F 10 1C [11:29:13]CommunicateWithHost err = 0 [11:29:13]CheckOFDResponse [11:29:13]1017 (14) - 77093643461234 [11:29:13]1041 (16) - 0000000000963346 [11:29:13]1040 (4) - 70588 [11:29:13]1012 (4) - 23.10.2024 05:20 [11:29:13]1206 (1) - 0 [11:29:13]OFD Sender: Remove packet 70588 [11:29:13]ProducePacketName [11:29:13]name=ofd_packets/00070588 [11:29:13]NVStorageDeleteData [11:29:14]Write to MH i2c: 01 00 00 98 55 ED [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 98 55 00 00 00 00 00 25 0D 26 [11:29:14]RasterBufferAndPrint [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]written 0, free lines is 3371 [11:29:14]MH_Cut [11:29:14]Write to MH i2c: D1 01 00 9F 55 01 C6 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 9F 55 00 C5 [11:29:14]Write to MH i2c: 01 00 00 A0 55 F5 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]OFD Sender: No OFD packet to send [11:29:14]*** Cut start [11:29:14]*** Partial cut [11:29:14]*** CUTSNS_PIN = 1 [11:29:14]*** CUTSNS_PIN = 0 [11:29:15]*** Brake cut motor [11:29:15]Read from MH i2c: 01 [11:29:15]MH_I2C_Read... [11:29:15]*** Stop cut motor [11:29:15]*** Cut end [11:29:15]Read from MH i2c: 01 07 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: 01 07 00 A0 55 00 00 00 00 00 FF 0F 0A [11:29:15]process_action close_receipt done [11:29:15]requested_data is exist [11:29:15]produce_requested_data [11:29:15]requested_item fm.sn is exist - process it [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 11 00 00 [11:29:15]Write to MH i2c: E2 08 00 A1 55 80 11 00 00 00 00 00 00 70 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 A1 55 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:29:15]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:15]wFMCommunicate OK [11:29:15]requested_item fd.num is exist - process it [11:29:15]SAM_PROTO_GetFieldsCounters [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 13 00 00 [11:29:15]Write to MH i2c: E2 08 00 A2 55 80 13 00 00 00 00 00 00 73 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 62 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 62 00 A2 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 5A [11:29: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 BC 13 01 00 0E 04 04 00 C4 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 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_GetFieldsCounters done [11:29:15]requested_item shift.num is exist - process it [11:29:15]requested_item shift.opened is exist - process it [11:29:15]req_shift_opened [11:29:15]FM_GetShiftState [11:29:15]SAM_PROTO_GetShiftState [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 13 01 00 [11:29:15]Write to MH i2c: E2 08 00 A3 55 80 13 01 00 00 00 00 00 75 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:15]Read from MH i2c: E2 0E 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 0E 00 A3 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 02 [11:29:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_GetShiftState done [11:29:15]FM_GetShiftState done [11:29:15]req_shift_opened done [11:29:15]requested_item shift.open_date is exist - process it [11:29:15]req_shift_open_date [11:29:15]req_shift_open_date done [11:29:15]produce_requested_data done [11:29:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70588,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:29:15]process_action_free close_receipt [11:29:15]json_value_free [11:29:15]json_value_free done [11:29:15]process_json_proto returns [11:29:15]Send response to host [11:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70588,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:29:15]free response buf [11:29:15]execute_script done [11:29:15]execute_script returns [11:29:15]free content buf [11:29:15]Sock 7.Close socket [11:29:15]Sock 7.Thread stoped [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:40]accept exits with 9 [11:31:40]New connection [11:31:40]New thread 3066699108 created [11:31:40]Thread 3066555748 joined [11:31:40]Waiting for new connection... [11:31:40] Sock 9.Parse request [11:31:40]Sock 9.Check first char [11:31:40]Sock 9.First char is OK [11:31:40]request: POST /json_proto HTTP/1.0 [11:31:40]Method: POST [11:31:40]URL: /json_proto [11:31:40]Method is POST - this is cgi request [11:31:40]url: /json_proto [11:31:40]query_string will be loaded in cgi processing [11:31:40]execute_cgi json_proto POST (null) [11:31:40]execute_cgi path=json_proto method=POST [11:31:40]POST find Content-Length [11:31:40]Host: 172.17.50.3:8080 [11:31:40]Content-Length: 791 [11:31:40]Content-Type: application/json [11:31:40] [11:31:40]POST finish read [11:31:40]Found Content-Length = 791 [11:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886360", "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\u000A00355", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:40]execute_script... [11:31: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)2886360", "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\u000A00355", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:40]POST & json_proto [11:31:40]process_json_proto [11:31:40]json parsed OK: [11:31:40]protocol is kg_v1.0 [11:31:40]action value=close_receipt [11:31:40]process_action close_receipt [11:31:40]cmd_close_receipt [11:31:40]MH_GetDate [11:31:40]Write to MH i2c: F0 00 00 A4 55 E8 [11:31:40]Write i2c OK [11:31:40]MH_I2C_Read... [11:31:40]Read from MH i2c: F0 [11:31:40]MH_I2C_Read... [11:31:40]Read from MH i2c: F0 09 00 [11:31:40]MH_I2C_Read... [11:31:40]Read from MH i2c: F0 09 00 A4 55 00 A0 DE 18 67 6B 98 1E 66 75 [11:31:40]GetLastDocTimeStamp 1729682956 [11:31:40]current date 1729683104 [11:31:40]FM_GetShiftState [11:31:40]SAM_PROTO_GetShiftState [11:31:40]wFMCommunicate request_size=4 [11:31:40]MH_SAM_APDU [11:31:40]CAPDU: 80 13 01 00 [11:31:40]Write to MH i2c: E2 08 00 A5 55 80 13 01 00 00 00 00 00 77 [11:31:40]Write i2c OK [11:31:40]MH_I2C_Read... [11:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:40]Read from MH i2c: E2 [11:31:40]MH_I2C_Read... [11:31:40]Read from MH i2c: E2 0E 00 [11:31:40]MH_I2C_Read... [11:31:40]Read from MH i2c: E2 0E 00 A5 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 04 [11:31:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:31:40]wFMCommunicate OK [11:31:40]SAM_PROTO_GetShiftState done [11:31:40]FM_GetShiftState done [11:31:40]opened in 1729642435 [11:31:40]opened+sec_in_day 1729728835 [11:31:40]quantity*price = 0 [11:31:40]sum+1 = 1 [11:31: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 СНО: Общий режим Чек 105 23.10.2024 11:31 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 00355 ФМ: 0000000000963346 ФД: 70589 ФПД: 280282772340598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113144&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70589&fm=280282772340598&tin=02508201610067®Number=0000000000156251&sum=0 [11:31:41]StoreToDocumentArchive [11:31:41]shift 196 fd 70589 [11:31:41]save to /storage/0196/doc_00070589 [11:31:41]save last doc name /storage/0196/doc_00070589 to /storage/kkm_last_doc_name [11:31:41]save OK [11:31:41]Clear old archive folders... [11:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:31:41]tlvbuf is 00E04210 [11:31:41]SAM_PROTO_ClearQueue [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 09 00 00 [11:31:41]Write to MH i2c: E2 08 00 B2 55 80 09 00 00 00 00 00 00 79 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 B2 55 00 90 00 7B [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]SAM_PROTO_ClearQueue done [11:31:41]KKMCreateOFDPacket [11:31:41]OFDProtocolAddRootSTLVToBuf [11:31:41]FM_MakeSignedData [11:31:41]FM_MakeSignedData [11:31:41]SAM_PROTO_SignData [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 01 02 [11:31:41]Write to MH i2c: E2 08 00 B3 55 80 0D 01 02 00 00 00 00 81 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 B3 55 00 90 00 7C [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=255 [11:31:41]MH_SAM_APDU [11:31: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 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 69 00 00 00 F4 03 04 00 A0 DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE EA 6B 14 [11:31:41]Write to MH i2c: E2 02 01 B4 55 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 69 00 00 00 F4 03 04 00 A0 DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE EA 6B 14 00 00 61 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 B4 55 00 90 00 7D [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=7 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 02 02 02 FF 76 [11:31:41]Write to MH i2c: E2 0A 00 B5 55 80 0D 02 02 02 00 FF 76 00 00 FD [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 03 00 B5 55 00 90 00 7E [11:31:41]RAPDU: 90 00 [11:31:41]wFMCommunicate OK [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 0D 03 02 [11:31:41]Write to MH i2c: E2 08 00 B6 55 80 0D 03 02 00 00 00 00 86 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 0B 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 0B 00 B6 55 00 99 DC E4 CB 87 A1 8E 53 90 00 B4 [11:31:41]RAPDU: 99 DC E4 CB 87 A1 8E 53 90 00 [11:31:41]wFMCommunicate OK [11:31:41]SAM_PROTO_SignData done [11:31:41]FM_MakeSignedData done [11:31:41]CreateOFDProtocolMessage [11:31:41]wFMCommunicate request_size=4 [11:31:41]MH_SAM_APDU [11:31:41]CAPDU: 80 11 00 00 [11:31:41]Write to MH i2c: E2 08 00 B7 55 80 11 00 00 00 00 00 00 86 [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:41]Read from MH i2c: E2 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 17 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: E2 17 00 B7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [11:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:41]wFMCommunicate OK [11:31:41]CreateOFDProtocolMessage done [11:31:41]OFDSenderStorePacket 70589 [11:31:41]StoreOFDPacket docnum=70589 [11:31: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 1B A4 04 01 4A 7B 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 69 00 00 00 F4 03 04 00 A0 DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE EA 6B 14 FF 76 99 DC E4 CB 87 A1 8E 53 [11:31:41]CheckFolder [11:31:41]dirname=/storage/ofd_packets [11:31:41]CheckFolder done [11:31:41]ProducePacketName [11:31:41]name=ofd_packets/00070589 [11:31:41]NVStorageSaveData ofd_packets/00070589 [11:31:41]File name is /storage/ofd_packets/00070589 [11:31:41]Write 298 bytes [11:31:41]NVStorageSaveData done [11:31:41]OFDSenderStorePacket done [11:31:41]KKMCreateOFDPacket done [11:31:41]NVStorageSaveData kkm_last_timestamp [11:31:41]File name is /storage/kkm_last_timestamp [11:31:41]Write 4 bytes [11:31:41]NVStorageSaveData done [11:31:41]ExternCall_PrintAddStr [11:31:41]wPrintStart [11:31:41]Write to MH i2c: 01 00 00 B8 55 0D [11:31:41]Write i2c OK [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 07 00 [11:31:41]MH_I2C_Read... [11:31:41]Read from MH i2c: 01 07 00 B8 55 00 00 00 00 00 FF 0F 22 [11:31:41]RasterBufferAndPrint [11:31:41]line Счет N : (1)2886360 [11:31:41]line ИНН: 02508201610067 [11:31:41]line Контрольно-Кассовый Чек [11:31:41]line ПРОДАЖА [11:31:41]line ТРК (МРК, ГНК) : 51 [11:31:41]line Товар: 2710194210 [11:31:41]line ДТ-К-5 [11:31:41]line 100.000 * 0.00 [11:31:41]line = 0.00 [11:31:41]line НДС 12% НСП 1% [11:31:41]line > о реализуемом товаре [11:31:41]line ИТОГО: 0.00 [11:31:41]line НСП 1% : 0.00 [11:31:41]line НДС 12% : 0.00 [11:31:41]line Наличными: 0.00 [11:31:41]line Безнал.: 0.00 [11:31:41]line Место: АЗС № 85 "Партнер Нефть" [11:31:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:31:41]line СНО: Общий режим [11:31:41]line Чек 105 23.10.2024 11:31 [11:31:41]line Смена: 196 ФФД: 1.0 [11:31:41]line ЗНМ: 0300000167 [11:31:41]line РНМ: 0000000000156251 [11:31:41]line Версия ККМ: v1.0 [11:31:41]line Талоны: Топливная Карта [11:31:41]line 00355 [11:31:41]line ФМ: 0000000000963346 [11:31:41]line ФД: 70589 [11:31:41]line ФПД: 280282772340598 [11:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113144&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70589&fm=280282772340598&tin=02508201610067®Number=0000000000156251&sum=0 [11:31:41]written 0, free lines is 4095 [11:31:41]OFD Sender: Processing packet 70589 [packets to send 18, broken 17] [11:31:41]ProducePacketName [11:31:41]name=ofd_packets/00070589 [11:31:41]OFD Sender: To server: pG, [11:31:41]CommunicateWithHost lk.salyk.kg:30040 [11:31:41]ConnectInit lk.salyk.kg [11:31:41]Connected sock=11 [11:31: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 1B A4 04 01 4A 7B 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 69 00 00 00 F4 03 04 00 A0 DE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FE EA 6B 14 FF 76 99 DC E4 CB 87 A1 8E 53 [11:31: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 13 D2 47 00 23 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 BD 13 01 00 F4 03 04 00 3E 88 18 67 B6 04 01 00 00 0E A1 07 A0 BF 1B 6E E1 [11:31:42]CommunicateWithHost err = 0 [11:31:42]CheckOFDResponse [11:31:42]1017 (14) - 77093643461234 [11:31:42]1041 (16) - 0000000000963346 [11:31:42]1040 (4) - 70589 [11:31:42]1012 (4) - 23.10.2024 05:23 [11:31:42]1206 (1) - 0 [11:31:42]OFD Sender: Remove packet 70589 [11:31:42]ProducePacketName [11:31:42]name=ofd_packets/00070589 [11:31:42]NVStorageDeleteData [11:31:42]Write to MH i2c: 01 00 00 E2 55 37 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 07 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: 01 07 00 E2 55 00 00 00 00 00 FB 0C 45 [11:31:42]RasterBufferAndPrint [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]line [11:31:42]written 0, free lines is 3329 [11:31:42]MH_Cut [11:31:42]Write to MH i2c: D1 01 00 E9 55 01 10 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 01 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: D1 01 00 E9 55 00 0F [11:31:42]Write to MH i2c: 01 00 00 EA 55 3F [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]OFD Sender: No OFD packet to send [11:31:42]*** Cut start [11:31:42]*** Partial cut [11:31:42]*** CUTSNS_PIN = 1 [11:31:42]*** CUTSNS_PIN = 0 [11:31:43]*** Brake cut motor [11:31:43]Read from MH i2c: 01 [11:31:43]MH_I2C_Read... [11:31:43]*** Stop cut motor [11:31:43]*** Cut end [11:31:43]Read from MH i2c: 01 07 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 07 00 EA 55 00 00 00 00 00 FF 0F 54 [11:31:43]process_action close_receipt done [11:31:43]requested_data is exist [11:31:43]produce_requested_data [11:31:43]requested_item fm.sn is exist - process it [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 11 00 00 [11:31:43]Write to MH i2c: E2 08 00 EB 55 80 11 00 00 00 00 00 00 BA [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 EB 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [11:31: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:31:43]wFMCommunicate OK [11:31:43]requested_item fd.num is exist - process it [11:31:43]SAM_PROTO_GetFieldsCounters [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 13 00 00 [11:31:43]Write to MH i2c: E2 08 00 EC 55 80 13 00 00 00 00 00 00 BD [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 62 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 62 00 EC 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 A8 [11:31: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 BD 13 01 00 0E 04 04 00 C4 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 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_GetFieldsCounters done [11:31:43]requested_item shift.num is exist - process it [11:31:43]requested_item shift.opened is exist - process it [11:31:43]req_shift_opened [11:31:43]FM_GetShiftState [11:31:43]SAM_PROTO_GetShiftState [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 13 01 00 [11:31:43]Write to MH i2c: E2 08 00 ED 55 80 13 01 00 00 00 00 00 BF [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0E 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0E 00 ED 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4C [11:31:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_GetShiftState done [11:31:43]FM_GetShiftState done [11:31:43]req_shift_opened done [11:31:43]requested_item shift.open_date is exist - process it [11:31:43]req_shift_open_date [11:31:43]req_shift_open_date done [11:31:43]produce_requested_data done [11:31:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70589,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:31:43]process_action_free close_receipt [11:31:43]json_value_free [11:31:43]json_value_free done [11:31:43]process_json_proto returns [11:31:43]Send response to host [11:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70589,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:31:43]free response buf [11:31:43]execute_script done [11:31:43]execute_script returns [11:31:43]free content buf [11:31:43]Sock 9.Close socket [11:31:43]Sock 9.Thread stoped [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]accept exits with 7 [11:36:42]New connection [11:36:42]New thread 3066555748 created [11:36:42]Thread 3066699108 joined [11:36:42]Waiting for new connection... [11:36:42] Sock 7.Parse request [11:36:42]Sock 7.Check first char [11:36:42]Sock 7.First char is OK [11:36:42]request: POST /json_proto HTTP/1.0 [11:36:42]Method: POST [11:36:42]URL: /json_proto [11:36:42]Method is POST - this is cgi request [11:36:42]url: /json_proto [11:36:42]query_string will be loaded in cgi processing [11:36:42]execute_cgi json_proto POST (null) [11:36:42]execute_cgi path=json_proto method=POST [11:36:42]POST find Content-Length [11:36:42]Host: 172.17.50.3:8080 [11:36:42]Content-Length: 682 [11:36:42]Content-Type: application/json [11:36:42] [11:36:42]POST finish read [11:36:42]Found Content-Length = 682 [11:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886363", "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" ] } } [11:36:42]execute_script... [11:36: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)2886363", "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" ] } } [11:36:42]POST & json_proto [11:36:42]process_json_proto [11:36:42]json parsed OK: [11:36:42]protocol is kg_v1.0 [11:36:42]action value=close_receipt [11:36:42]process_action close_receipt [11:36:42]cmd_close_receipt [11:36:42]MH_GetDate [11:36:42]Write to MH i2c: F0 00 00 EE 55 32 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: F0 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: F0 09 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: F0 09 00 EE 55 00 CE DF 18 67 6B 98 1E 66 EE [11:36:42]GetLastDocTimeStamp 1729683104 [11:36:42]current date 1729683406 [11:36:42]FM_GetShiftState [11:36:42]SAM_PROTO_GetShiftState [11:36:42]wFMCommunicate request_size=4 [11:36:42]MH_SAM_APDU [11:36:42]CAPDU: 80 13 01 00 [11:36:42]Write to MH i2c: E2 08 00 EF 55 80 13 01 00 00 00 00 00 C1 [11:36:42]Write i2c OK [11:36:42]MH_I2C_Read... [11:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:42]Read from MH i2c: E2 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0E 00 [11:36:42]MH_I2C_Read... [11:36:42]Read from MH i2c: E2 0E 00 EF 55 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4E [11:36:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:36:42]wFMCommunicate OK [11:36:42]SAM_PROTO_GetShiftState done [11:36:42]FM_GetShiftState done [11:36:42]opened in 1729642435 [11:36:42]opened+sec_in_day 1729728835 [11:36:42]quantity*price = 50025 [11:36:42]sum+1 = 50026 [11:36:42]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 СНО: Общий режим Чек 106 23.10.2024 11:36 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70590 ФПД: 266290141798919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70590&fm=266290141798919&tin=02508201610067®Number=0000000000156251&sum=50000 [11:36:43]StoreToDocumentArchive [11:36:43]shift 196 fd 70590 [11:36:43]save to /storage/0196/doc_00070590 [11:36:43]save last doc name /storage/0196/doc_00070590 to /storage/kkm_last_doc_name [11:36:43]save OK [11:36:43]Clear old archive folders... [11:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:36:43]tlvbuf is 00B2A950 [11:36:43]SAM_PROTO_ClearQueue [11:36:43]wFMCommunicate request_size=4 [11:36:43]MH_SAM_APDU [11:36:43]CAPDU: 80 09 00 00 [11:36:43]Write to MH i2c: E2 08 00 FC 55 80 09 00 00 00 00 00 00 C3 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 FC 55 00 90 00 C5 [11:36:43]RAPDU: 90 00 [11:36:43]wFMCommunicate OK [11:36:43]SAM_PROTO_ClearQueue done [11:36:43]KKMCreateOFDPacket [11:36:43]OFDProtocolAddRootSTLVToBuf [11:36:43]FM_MakeSignedData [11:36:43]FM_MakeSignedData [11:36:43]SAM_PROTO_SignData [11:36:43]wFMCommunicate request_size=4 [11:36:43]MH_SAM_APDU [11:36:43]CAPDU: 80 0D 01 02 [11:36:43]Write to MH i2c: E2 08 00 FD 55 80 0D 01 02 00 00 00 00 CB [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 FD 55 00 90 00 C6 [11:36:43]RAPDU: 90 00 [11:36:43]wFMCommunicate OK [11:36:43]wFMCommunicate request_size=255 [11:36:43]MH_SAM_APDU [11:36:43]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 6A 00 00 00 F4 03 04 00 CE DF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F2 30 [11:36:43]Write to MH i2c: E2 02 01 FE 55 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 6A 00 00 00 F4 03 04 00 CE DF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F2 30 00 00 5C [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 FE 55 00 90 00 C7 [11:36:43]RAPDU: 90 00 [11:36:43]wFMCommunicate OK [11:36:43]wFMCommunicate request_size=9 [11:36:43]MH_SAM_APDU [11:36:43]CAPDU: 80 0D 02 02 04 81 4F 22 07 [11:36:43]Write to MH i2c: E2 0C 00 FF 55 80 0D 02 02 04 00 81 4F 22 07 00 00 CF [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 03 00 FF 55 00 90 00 C8 [11:36:43]RAPDU: 90 00 [11:36:43]wFMCommunicate OK [11:36:43]wFMCommunicate request_size=4 [11:36:43]MH_SAM_APDU [11:36:43]CAPDU: 80 0D 03 02 [11:36:43]Write to MH i2c: E2 08 00 00 56 80 0D 03 02 00 00 00 00 D1 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 0B 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 0B 00 00 56 00 37 25 A9 2A F9 92 75 AD 90 00 AE [11:36:43]RAPDU: 37 25 A9 2A F9 92 75 AD 90 00 [11:36:43]wFMCommunicate OK [11:36:43]SAM_PROTO_SignData done [11:36:43]FM_MakeSignedData done [11:36:43]CreateOFDProtocolMessage [11:36:43]wFMCommunicate request_size=4 [11:36:43]MH_SAM_APDU [11:36:43]CAPDU: 80 11 00 00 [11:36:43]Write to MH i2c: E2 08 00 01 56 80 11 00 00 00 00 00 00 D1 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:43]Read from MH i2c: E2 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 17 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: E2 17 00 01 56 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:36: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:36:43]wFMCommunicate OK [11:36:43]CreateOFDProtocolMessage done [11:36:43]OFDSenderStorePacket 70590 [11:36:43]StoreOFDPacket docnum=70590 [11:36: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 0E 01 00 00 B9 1A 06 01 E9 EE 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 6A 00 00 00 F4 03 04 00 CE DF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F2 30 81 4F 22 07 37 25 A9 2A F9 92 75 AD [11:36:43]CheckFolder [11:36:43]dirname=/storage/ofd_packets [11:36:43]CheckFolder done [11:36:43]ProducePacketName [11:36:43]name=ofd_packets/00070590 [11:36:43]NVStorageSaveData ofd_packets/00070590 [11:36:43]File name is /storage/ofd_packets/00070590 [11:36:43]Write 300 bytes [11:36:43]NVStorageSaveData done [11:36:43]OFDSenderStorePacket done [11:36:43]KKMCreateOFDPacket done [11:36:43]NVStorageSaveData kkm_last_timestamp [11:36:43]File name is /storage/kkm_last_timestamp [11:36:43]Write 4 bytes [11:36:43]NVStorageSaveData done [11:36:43]ExternCall_PrintAddStr [11:36:43]wPrintStart [11:36:43]Write to MH i2c: 01 00 00 02 56 58 [11:36:43]Write i2c OK [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 [11:36:43]MH_I2C_Read... [11:36:43]Read from MH i2c: 01 07 00 02 56 00 00 00 00 00 FF 0F 6D [11:36:43]RasterBufferAndPrint [11:36:43]line Счет N : (1)2886363 [11:36:43]line ИНН: 02508201610067 [11:36:43]line Контрольно-Кассовый Чек [11:36:43]line ПРОДАЖА [11:36:43]line ТРК (МРК, ГНК) : 71 [11:36:43]line Товар: 2711129700 [11:36:43]line ГАЗ-К-3 [11:36:43]line 12.860 * 38.90 [11:36:43]line = 500.25 [11:36:43]line НДС 12% НСП 1% [11:36:43]line > о реализуемом товаре [11:36:43]line ОКРУГЛЕНИЕ: -0.25 [11:36:43]line ИТОГО: 500.00 [11:36:43]line Внесено: 500.00 [11:36:43]line СДАЧА: 0.00 [11:36:43]line НСП 1% : 4.43 [11:36:43]line НДС 12% : 53.12 [11:36:43]line Наличными: 500.00 [11:36:43]line Безнал.: 0.00 [11:36:43]line Место: АЗС № 85 "Партнер Нефть" [11:36:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:36:43]line СНО: Общий режим [11:36:43]line Чек 106 23.10.2024 11:36 [11:36:43]line Смена: 196 ФФД: 1.0 [11:36:43]line ЗНМ: 0300000167 [11:36:43]line РНМ: 0000000000156251 [11:36:43]line Версия ККМ: v1.0 [11:36:43]line ФМ: 0000000000963346 [11:36:43]line ФД: 70590 [11:36:44]line ФПД: 266290141798919 [11:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70590&fm=266290141798919&tin=02508201610067®Number=0000000000156251&sum=50000 [11:36:44]OFD Sender: Processing packet 70590 [packets to send 18, broken 17] [11:36:44]ProducePacketName [11:36:44]name=ofd_packets/00070590 [11:36:44]OFD Sender: To server: pG, [11:36:44]CommunicateWithHost lk.salyk.kg:30040 [11:36:44]ConnectInit lk.salyk.kg [11:36:44]written 0, free lines is 4095 [11:36:44]Connected sock=10 [11:36: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 B9 1A 06 01 E9 EE 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 6A 00 00 00 F4 03 04 00 CE DF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F2 30 81 4F 22 07 37 25 A9 2A F9 92 75 AD [11:36: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 A4 DE 47 00 01 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 BE 13 01 00 F4 03 04 00 6C 89 18 67 B6 04 01 00 00 B8 5A 01 B3 BD BB 58 F4 [11:36:44]CommunicateWithHost err = 0 [11:36:44]CheckOFDResponse [11:36:44]1017 (14) - 77093643461234 [11:36:44]1041 (16) - 0000000000963346 [11:36:44]1040 (4) - 70590 [11:36:44]1012 (4) - 23.10.2024 05:28 [11:36:44]1206 (1) - 0 [11:36:44]OFD Sender: Remove packet 70590 [11:36:44]ProducePacketName [11:36:44]name=ofd_packets/00070590 [11:36:44]NVStorageDeleteData [11:36:44]Write to MH i2c: 01 00 00 2D 56 83 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: 01 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: 01 07 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: 01 07 00 2D 56 00 00 00 00 00 FA 0C 90 [11:36:44]RasterBufferAndPrint [11:36:44]line [11:36:44]line [11:36:44]line [11:36:44]line [11:36:44]line [11:36:44]written 0, free lines is 3328 [11:36:44]MH_Cut [11:36:44]Write to MH i2c: D1 01 00 34 56 01 5C [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: D1 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: D1 01 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: D1 01 00 34 56 00 5B [11:36:44]Write to MH i2c: 01 00 00 35 56 8B [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:45]OFD Sender: No OFD packet to send [11:36:45]*** Cut start [11:36:45]*** Partial cut [11:36:45]*** CUTSNS_PIN = 1 [11:36:45]*** CUTSNS_PIN = 0 [11:36:45]*** Brake cut motor [11:36:46]Read from MH i2c: 01 [11:36:46]MH_I2C_Read... [11:36:46]*** Stop cut motor [11:36:46]*** Cut end [11:36:46]Read from MH i2c: 01 07 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 07 00 35 56 00 00 00 00 00 FF 0F A0 [11:36:46]process_action close_receipt done [11:36:46]requested_data is exist [11:36:46]produce_requested_data [11:36:46]requested_item fm.sn is exist - process it [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 11 00 00 [11:36:46]Write to MH i2c: E2 08 00 36 56 80 11 00 00 00 00 00 00 06 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 36 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [11: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 [11:36:46]wFMCommunicate OK [11:36:46]requested_item fd.num is exist - process it [11:36:46]SAM_PROTO_GetFieldsCounters [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 13 00 00 [11:36:46]Write to MH i2c: E2 08 00 37 56 80 13 00 00 00 00 00 00 09 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 62 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 62 00 37 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 F8 [11:36: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 BE 13 01 00 0E 04 04 00 C4 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 [11:36:46]wFMCommunicate OK [11:36:46]SAM_PROTO_GetFieldsCounters done [11:36:46]requested_item shift.num is exist - process it [11:36:46]requested_item shift.opened is exist - process it [11:36:46]req_shift_opened [11:36:46]FM_GetShiftState [11:36:46]SAM_PROTO_GetShiftState [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 13 01 00 [11:36:46]Write to MH i2c: E2 08 00 38 56 80 13 01 00 00 00 00 00 0B [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0E 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0E 00 38 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 98 [11:36:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:36:46]wFMCommunicate OK [11:36:46]SAM_PROTO_GetShiftState done [11:36:46]FM_GetShiftState done [11:36:46]req_shift_opened done [11:36:46]requested_item shift.open_date is exist - process it [11:36:46]req_shift_open_date [11:36:46]req_shift_open_date done [11:36:46]produce_requested_data done [11:36:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70590,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:36:46]process_action_free close_receipt [11:36:46]json_value_free [11:36:46]json_value_free done [11:36:46]process_json_proto returns [11:36:46]Send response to host [11:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70590,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:36:46]free response buf [11:36:46]execute_script done [11:36:46]execute_script returns [11:36:46]free content buf [11:36:46]Sock 7.Close socket [11:36:46]Sock 7.Thread stoped [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:49]accept exits with 9 [11:38:49]New connection [11:38:49]New thread 3066699108 created [11:38:49]Thread 3066555748 joined [11:38:49]Waiting for new connection... [11:38:49] Sock 9.Parse request [11:38:49]Sock 9.Check first char [11:38:49]Sock 9.First char is OK [11:38:49]request: POST /json_proto HTTP/1.0 [11:38:49]Method: POST [11:38:49]URL: /json_proto [11:38:49]Method is POST - this is cgi request [11:38:49]url: /json_proto [11:38:49]query_string will be loaded in cgi processing [11:38:49]execute_cgi json_proto POST (null) [11:38:49]execute_cgi path=json_proto method=POST [11:38:49]POST find Content-Length [11:38:49]Host: 172.17.50.3:8080 [11:38:49]Content-Length: 680 [11:38:49]Content-Type: application/json [11:38:49] [11:38:49]POST finish read [11:38:49]Found Content-Length = 680 [11:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886364", "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:38:49]execute_script... [11:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886364", "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:38:49]POST & json_proto [11:38:49]process_json_proto [11:38:49]json parsed OK: [11:38:49]protocol is kg_v1.0 [11:38:49]action value=close_receipt [11:38:49]process_action close_receipt [11:38:49]cmd_close_receipt [11:38:49]MH_GetDate [11:38:49]Write to MH i2c: F0 00 00 39 56 7E [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: F0 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: F0 09 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: F0 09 00 39 56 00 4E E0 18 67 6B 98 1E 66 BB [11:38:49]GetLastDocTimeStamp 1729683406 [11:38:49]current date 1729683534 [11:38:49]FM_GetShiftState [11:38:49]SAM_PROTO_GetShiftState [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 13 01 00 [11:38:49]Write to MH i2c: E2 08 00 3A 56 80 13 01 00 00 00 00 00 0D [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 3A 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9A [11:38:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_GetShiftState done [11:38:49]FM_GetShiftState done [11:38:49]opened in 1729642435 [11:38:49]opened+sec_in_day 1729728835 [11:38:49]quantity*price = 150037 [11:38:49]sum+1 = 150039 [11:38: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 СНО: Общий режим Чек 107 23.10.2024 11:38 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70591 ФПД: 112876059457930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70591&fm=112876059457930&tin=02508201610067®Number=0000000000156251&sum=150000 [11:38:50]StoreToDocumentArchive [11:38:50]shift 196 fd 70591 [11:38:50]save to /storage/0196/doc_00070591 [11:38:50]save last doc name /storage/0196/doc_00070591 to /storage/kkm_last_doc_name [11:38:50]save OK [11:38:50]Clear old archive folders... [11:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:50]tlvbuf is 00AF0450 [11:38:50]SAM_PROTO_ClearQueue [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 09 00 00 [11:38:50]Write to MH i2c: E2 08 00 47 56 80 09 00 00 00 00 00 00 0F [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 47 56 00 90 00 11 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]SAM_PROTO_ClearQueue done [11:38:50]KKMCreateOFDPacket [11:38:50]OFDProtocolAddRootSTLVToBuf [11:38:50]FM_MakeSignedData [11:38:50]FM_MakeSignedData [11:38:50]SAM_PROTO_SignData [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 0D 01 02 [11:38:50]Write to MH i2c: E2 08 00 48 56 80 0D 01 02 00 00 00 00 17 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 48 56 00 90 00 12 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]wFMCommunicate request_size=255 [11:38:50]MH_SAM_APDU [11:38: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 6B 00 00 00 F4 03 04 00 4E E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 66 A9 01 6D [11:38:50]Write to MH i2c: E2 02 01 49 56 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 6B 00 00 00 F4 03 04 00 4E E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 66 A9 01 6D 00 00 39 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 03 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 03 00 49 56 00 90 00 13 [11:38:51]RAPDU: 90 00 [11:38:51]wFMCommunicate OK [11:38:51]wFMCommunicate request_size=7 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 0D 02 02 02 79 8A [11:38:51]Write to MH i2c: E2 0A 00 4A 56 80 0D 02 02 02 00 79 8A 00 00 21 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 03 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 03 00 4A 56 00 90 00 14 [11:38:51]RAPDU: 90 00 [11:38:51]wFMCommunicate OK [11:38:51]wFMCommunicate request_size=4 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 0D 03 02 [11:38:51]Write to MH i2c: E2 08 00 4B 56 80 0D 03 02 00 00 00 00 1C [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 0B 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 0B 00 4B 56 00 33 F9 1C 0E 7F 76 4E A1 90 00 57 [11:38:51]RAPDU: 33 F9 1C 0E 7F 76 4E A1 90 00 [11:38:51]wFMCommunicate OK [11:38:51]SAM_PROTO_SignData done [11:38:51]FM_MakeSignedData done [11:38:51]CreateOFDProtocolMessage [11:38:51]wFMCommunicate request_size=4 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 11 00 00 [11:38:51]Write to MH i2c: E2 08 00 4C 56 80 11 00 00 00 00 00 00 1C [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 17 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 17 00 4C 56 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:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:38:51]wFMCommunicate OK [11:38:51]CreateOFDProtocolMessage done [11:38:51]OFDSenderStorePacket 70591 [11:38:51]StoreOFDPacket docnum=70591 [11:38: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 0C 01 00 00 7A 69 04 01 62 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 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 6B 00 00 00 F4 03 04 00 4E E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 66 A9 01 6D 79 8A 33 F9 1C 0E 7F 76 4E A1 [11:38:51]CheckFolder [11:38:51]dirname=/storage/ofd_packets [11:38:51]CheckFolder done [11:38:51]ProducePacketName [11:38:51]name=ofd_packets/00070591 [11:38:51]NVStorageSaveData ofd_packets/00070591 [11:38:51]File name is /storage/ofd_packets/00070591 [11:38:51]Write 298 bytes [11:38:51]NVStorageSaveData done [11:38:51]OFDSenderStorePacket done [11:38:51]KKMCreateOFDPacket done [11:38:51]NVStorageSaveData kkm_last_timestamp [11:38:51]File name is /storage/kkm_last_timestamp [11:38:51]Write 4 bytes [11:38:51]NVStorageSaveData done [11:38:51]ExternCall_PrintAddStr [11:38:51]wPrintStart [11:38:51]Write to MH i2c: 01 00 00 4D 56 A3 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 4D 56 00 00 00 00 00 FF 0F B8 [11:38:51]RasterBufferAndPrint [11:38:51]line Счет N : (1)2886364 [11:38:51]line ИНН: 02508201610067 [11:38:51]line Контрольно-Кассовый Чек [11:38:51]line ПРОДАЖА [11:38:51]line ТРК (МРК, ГНК) : 51 [11:38:51]line Товар: 2710194210 [11:38:51]line ДТ-К-5 [11:38:51]line 19.690 * 76.20 [11:38:51]line = 1500.38 [11:38:51]line НДС 12% НСП 1% [11:38:51]line > о реализуемом товаре [11:38:51]line ОКРУГЛЕНИЕ: -0.38 [11:38:51]line ИТОГО: 1500.00 [11:38:51]line Внесено: 1500.00 [11:38:51]line СДАЧА: 0.00 [11:38:51]line НСП 1% : 13.28 [11:38:51]line НДС 12% : 159.33 [11:38:51]line Наличными: 1500.00 [11:38:51]line Безнал.: 0.00 [11:38:51]line Место: АЗС № 85 "Партнер Нефть" [11:38:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:38:51]line СНО: Общий режим [11:38:51]line Чек 107 23.10.2024 11:38 [11:38:51]line Смена: 196 ФФД: 1.0 [11:38:51]line ЗНМ: 0300000167 [11:38:51]line РНМ: 0000000000156251 [11:38:51]line Версия ККМ: v1.0 [11:38:51]line ФМ: 0000000000963346 [11:38:51]line ФД: 70591 [11:38:51]line ФПД: 112876059457930 [11:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70591&fm=112876059457930&tin=02508201610067®Number=0000000000156251&sum=150000 [11:38:51]OFD Sender: Processing packet 70591 [packets to send 18, broken 17] [11:38:51]ProducePacketName [11:38:51]name=ofd_packets/00070591 [11:38:51]OFD Sender: To server: pG, [11:38:51]CommunicateWithHost lk.salyk.kg:30040 [11:38:51]ConnectInit lk.salyk.kg [11:38:51]written 0, free lines is 4095 [11:38:51]Connected sock=10 [11:38: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 7A 69 04 01 62 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 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 6B 00 00 00 F4 03 04 00 4E E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 66 A9 01 6D 79 8A 33 F9 1C 0E 7F 76 4E A1 [11:38: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 95 CD 47 00 89 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 BF 13 01 00 F4 03 04 00 EC 89 18 67 B6 04 01 00 00 86 28 E7 EF 71 BA F7 06 [11:38:51]CommunicateWithHost err = 0 [11:38:51]CheckOFDResponse [11:38:51]1017 (14) - 77093643461234 [11:38:51]1041 (16) - 0000000000963346 [11:38:51]1040 (4) - 70591 [11:38:51]1012 (4) - 23.10.2024 05:30 [11:38:51]1206 (1) - 0 [11:38:51]OFD Sender: Remove packet 70591 [11:38:51]ProducePacketName [11:38:51]name=ofd_packets/00070591 [11:38:51]NVStorageDeleteData [11:38:51]Write to MH i2c: 01 00 00 78 56 CE [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 78 56 00 00 00 00 00 F7 0C D8 [11:38:51]RasterBufferAndPrint [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]written 0, free lines is 3326 [11:38:51]MH_Cut [11:38:51]Write to MH i2c: D1 01 00 7F 56 01 A7 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 01 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 01 00 7F 56 00 A6 [11:38:51]Write to MH i2c: 01 00 00 80 56 D6 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:52]OFD Sender: No OFD packet to send [11:38:52]*** Cut start [11:38:52]*** Partial cut [11:38:52]*** CUTSNS_PIN = 1 [11:38:52]*** CUTSNS_PIN = 0 [11:38:52]*** Brake cut motor [11:38:53]Read from MH i2c: 01 [11:38:53]MH_I2C_Read... [11:38:53]*** Stop cut motor [11:38:53]*** Cut end [11:38:53]Read from MH i2c: 01 07 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: 01 07 00 80 56 00 00 00 00 00 FF 0F EB [11:38:53]process_action close_receipt done [11:38:53]requested_data is exist [11:38:53]produce_requested_data [11:38:53]requested_item fm.sn is exist - process it [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 11 00 00 [11:38:53]Write to MH i2c: E2 08 00 81 56 80 11 00 00 00 00 00 00 51 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 17 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 17 00 81 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [11:38: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:38:53]wFMCommunicate OK [11:38:53]requested_item fd.num is exist - process it [11:38:53]SAM_PROTO_GetFieldsCounters [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 13 00 00 [11:38:53]Write to MH i2c: E2 08 00 82 56 80 13 00 00 00 00 00 00 54 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 62 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 62 00 82 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 47 [11:38: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 BF 13 01 00 0E 04 04 00 C4 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 [11:38:53]wFMCommunicate OK [11:38:53]SAM_PROTO_GetFieldsCounters done [11:38:53]requested_item shift.num is exist - process it [11:38:53]requested_item shift.opened is exist - process it [11:38:53]req_shift_opened [11:38:53]FM_GetShiftState [11:38:53]SAM_PROTO_GetShiftState [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 13 01 00 [11:38:53]Write to MH i2c: E2 08 00 83 56 80 13 01 00 00 00 00 00 56 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 0E 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 0E 00 83 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E3 [11:38:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:38:53]wFMCommunicate OK [11:38:53]SAM_PROTO_GetShiftState done [11:38:53]FM_GetShiftState done [11:38:53]req_shift_opened done [11:38:53]requested_item shift.open_date is exist - process it [11:38:53]req_shift_open_date [11:38:53]req_shift_open_date done [11:38:53]produce_requested_data done [11:38:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70591,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:38:53]process_action_free close_receipt [11:38:53]json_value_free [11:38:53]json_value_free done [11:38:53]process_json_proto returns [11:38:53]Send response to host [11:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70591,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:38:53]free response buf [11:38:53]execute_script done [11:38:53]execute_script returns [11:38:53]free content buf [11:38:53]Sock 9.Close socket [11:38:53]Sock 9.Thread stoped [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:04]accept exits with 7 [11:41:04]New connection [11:41:04]New thread 3066555748 created [11:41:04]Thread 3066699108 joined [11:41:04]Waiting for new connection... [11:41:04] Sock 7.Parse request [11:41:04]Sock 7.Check first char [11:41:04]Sock 7.First char is OK [11:41:04]request: POST /json_proto HTTP/1.0 [11:41:04]Method: POST [11:41:04]URL: /json_proto [11:41:04]Method is POST - this is cgi request [11:41:04]url: /json_proto [11:41:04]query_string will be loaded in cgi processing [11:41:04]execute_cgi json_proto POST (null) [11:41:04]execute_cgi path=json_proto method=POST [11:41:04]POST find Content-Length [11:41:04]Host: 172.17.50.3:8080 [11:41:04]Content-Length: 683 [11:41:04]Content-Type: application/json [11:41:04] [11:41:04]POST finish read [11:41:04]Found Content-Length = 683 [11:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886365", "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" : 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" ] } } [11:41:04]execute_script... [11:41: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)2886365", "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" : 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" ] } } [11:41:04]POST & json_proto [11:41:04]process_json_proto [11:41:04]json parsed OK: [11:41:04]protocol is kg_v1.0 [11:41:04]action value=close_receipt [11:41:04]process_action close_receipt [11:41:04]cmd_close_receipt [11:41:04]MH_GetDate [11:41:04]Write to MH i2c: F0 00 00 84 56 C9 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: F0 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: F0 09 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: F0 09 00 84 56 00 D5 E0 18 67 6B 98 1E 66 8D [11:41:04]GetLastDocTimeStamp 1729683534 [11:41:04]current date 1729683669 [11:41:04]FM_GetShiftState [11:41:04]SAM_PROTO_GetShiftState [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 13 01 00 [11:41:04]Write to MH i2c: E2 08 00 85 56 80 13 01 00 00 00 00 00 58 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0E 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0E 00 85 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E5 [11:41:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:41:04]wFMCommunicate OK [11:41:04]SAM_PROTO_GetShiftState done [11:41:04]FM_GetShiftState done [11:41:04]opened in 1729642435 [11:41:04]opened+sec_in_day 1729728835 [11:41:04]quantity*price = 120055 [11:41:04]sum+1 = 120057 [11:41:04]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 СНО: Общий режим Чек 108 23.10.2024 11:41 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70592 ФПД: 186886508181360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70592&fm=186886508181360&tin=02508201610067®Number=0000000000156251&sum=120000 [11:41:05]StoreToDocumentArchive [11:41:05]shift 196 fd 70592 [11:41:05]save to /storage/0196/doc_00070592 [11:41:05]save last doc name /storage/0196/doc_00070592 to /storage/kkm_last_doc_name [11:41:05]save OK [11:41:05]Clear old archive folders... [11:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:05]tlvbuf is 00AF0000 [11:41:05]SAM_PROTO_ClearQueue [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 09 00 00 [11:41:05]Write to MH i2c: E2 08 00 92 56 80 09 00 00 00 00 00 00 5A [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 03 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 03 00 92 56 00 90 00 5C [11:41:05]RAPDU: 90 00 [11:41:05]wFMCommunicate OK [11:41:05]SAM_PROTO_ClearQueue done [11:41:05]KKMCreateOFDPacket [11:41:05]OFDProtocolAddRootSTLVToBuf [11:41:05]FM_MakeSignedData [11:41:05]FM_MakeSignedData [11:41:05]SAM_PROTO_SignData [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 0D 01 02 [11:41:05]Write to MH i2c: E2 08 00 93 56 80 0D 01 02 00 00 00 00 62 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 93 56 00 90 00 5D [11:41:06]RAPDU: 90 00 [11:41:06]wFMCommunicate OK [11:41:06]wFMCommunicate request_size=255 [11:41:06]MH_SAM_APDU [11:41: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 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 6C 00 00 00 F4 03 04 00 D5 E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A9 [11:41:06]Write to MH i2c: E2 02 01 94 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 D5 E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A9 00 00 F5 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 94 56 00 90 00 5E [11:41:06]RAPDU: 90 00 [11:41:06]wFMCommunicate OK [11:41:06]wFMCommunicate request_size=10 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 0D 02 02 05 F8 E7 EE F7 70 [11:41:06]Write to MH i2c: E2 0D 00 95 56 80 0D 02 02 05 00 F8 E7 EE F7 70 00 00 A3 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 03 00 95 56 00 90 00 5F [11:41:06]RAPDU: 90 00 [11:41:06]wFMCommunicate OK [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 0D 03 02 [11:41:06]Write to MH i2c: E2 08 00 96 56 80 0D 03 02 00 00 00 00 67 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0B 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0B 00 96 56 00 61 8C DD 36 6F B3 01 42 90 00 CD [11:41:06]RAPDU: 61 8C DD 36 6F B3 01 42 90 00 [11:41:06]wFMCommunicate OK [11:41:06]SAM_PROTO_SignData done [11:41:06]FM_MakeSignedData done [11:41:06]CreateOFDProtocolMessage [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 11 00 00 [11:41:06]Write to MH i2c: E2 08 00 97 56 80 11 00 00 00 00 00 00 67 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 97 56 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: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 [11:41:06]wFMCommunicate OK [11:41:06]CreateOFDProtocolMessage done [11:41:06]OFDSenderStorePacket 70592 [11:41:06]StoreOFDPacket docnum=70592 [11:41: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 41 32 07 01 C7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 D5 E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A9 F8 E7 EE F7 70 61 8C DD 36 6F B3 01 42 [11:41:06]CheckFolder [11:41:06]dirname=/storage/ofd_packets [11:41:06]CheckFolder done [11:41:06]ProducePacketName [11:41:06]name=ofd_packets/00070592 [11:41:06]NVStorageSaveData ofd_packets/00070592 [11:41:06]File name is /storage/ofd_packets/00070592 [11:41:06]Write 301 bytes [11:41:06]NVStorageSaveData done [11:41:06]OFDSenderStorePacket done [11:41:06]KKMCreateOFDPacket done [11:41:06]NVStorageSaveData kkm_last_timestamp [11:41:06]File name is /storage/kkm_last_timestamp [11:41:06]Write 4 bytes [11:41:06]NVStorageSaveData done [11:41:06]ExternCall_PrintAddStr [11:41:06]wPrintStart [11:41:06]Write to MH i2c: 01 00 00 98 56 EE [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: 01 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: 01 07 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: 01 07 00 98 56 00 00 00 00 00 FF 0F 03 [11:41:06]RasterBufferAndPrint [11:41:06]line Счет N : (1)2886365 [11:41:06]line ИНН: 02508201610067 [11:41:06]line Контрольно-Кассовый Чек [11:41:06]line ПРОДАЖА [11:41:06]line ТРК (МРК, ГНК) : 33 [11:41:06]line Товар: 2710124500 [11:41:06]line Аи-95-К-5 [11:41:06]line 16.180 * 74.20 [11:41:06]line = 1200.56 [11:41:06]line НДС 12% НСП 1% [11:41:06]line > о реализуемом товаре [11:41:06]line ОКРУГЛЕНИЕ: -0.56 [11:41:06]line ИТОГО: 1200.00 [11:41:06]line Внесено: 1200.00 [11:41:06]line СДАЧА: 0.00 [11:41:06]line НСП 1% : 10.62 [11:41:06]line НДС 12% : 127.49 [11:41:06]line Наличными: 1200.00 [11:41:06]line Безнал.: 0.00 [11:41:06]line Место: АЗС № 85 "Партнер Нефть" [11:41:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:41:06]line СНО: Общий режим [11:41:06]line Чек 108 23.10.2024 11:41 [11:41:06]line Смена: 196 ФФД: 1.0 [11:41:06]line ЗНМ: 0300000167 [11:41:06]line РНМ: 0000000000156251 [11:41:06]line Версия ККМ: v1.0 [11:41:06]line ФМ: 0000000000963346 [11:41:06]line ФД: 70592 [11:41:06]line ФПД: 186886508181360 [11:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70592&fm=186886508181360&tin=02508201610067®Number=0000000000156251&sum=120000 [11:41:06]OFD Sender: Processing packet 70592 [packets to send 18, broken 17] [11:41:06]ProducePacketName [11:41:06]name=ofd_packets/00070592 [11:41:06]OFD Sender: To server: pG, [11:41:06]CommunicateWithHost lk.salyk.kg:30040 [11:41:06]ConnectInit lk.salyk.kg [11:41:06]written 0, free lines is 4095 [11:41:06]Connected sock=10 [11:41: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 41 32 07 01 C7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 D5 E0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A9 F8 E7 EE F7 70 61 8C DD 36 6F B3 01 42 [11:41: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 77 61 47 00 8A 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 C0 13 01 00 F4 03 04 00 73 8A 18 67 B6 04 01 00 00 9B D5 FE F7 24 68 F9 39 [11:41:07]CommunicateWithHost err = 0 [11:41:07]CheckOFDResponse [11:41:07]1017 (14) - 77093643461234 [11:41:07]1041 (16) - 0000000000963346 [11:41:07]1040 (4) - 70592 [11:41:07]1012 (4) - 23.10.2024 05:32 [11:41:07]1206 (1) - 0 [11:41:07]OFD Sender: Remove packet 70592 [11:41:07]ProducePacketName [11:41:07]name=ofd_packets/00070592 [11:41:07]NVStorageDeleteData [11:41:07]Write to MH i2c: 01 00 00 C3 56 19 [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: 01 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: 01 07 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: 01 07 00 C3 56 00 00 00 00 00 05 0D 32 [11:41:07]RasterBufferAndPrint [11:41:07]line [11:41:07]line [11:41:07]line [11:41:07]line [11:41:07]line [11:41:07]written 0, free lines is 3340 [11:41:07]MH_Cut [11:41:07]Write to MH i2c: D1 01 00 CA 56 01 F2 [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: D1 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: D1 01 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: D1 01 00 CA 56 00 F1 [11:41:07]Write to MH i2c: 01 00 00 CB 56 21 [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]OFD Sender: No OFD packet to send [11:41:07]*** Cut start [11:41:07]*** Partial cut [11:41:07]*** CUTSNS_PIN = 1 [11:41:08]*** CUTSNS_PIN = 0 [11:41:08]*** Brake cut motor [11:41:08]Read from MH i2c: 01 [11:41:08]MH_I2C_Read... [11:41:08]*** Stop cut motor [11:41:08]*** Cut end [11:41:08]Read from MH i2c: 01 07 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: 01 07 00 CB 56 00 00 00 00 00 FF 0F 36 [11:41:08]process_action close_receipt done [11:41:08]requested_data is exist [11:41:08]produce_requested_data [11:41:08]requested_item fm.sn is exist - process it [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 11 00 00 [11:41:08]Write to MH i2c: E2 08 00 CC 56 80 11 00 00 00 00 00 00 9C [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 17 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 17 00 CC 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [11: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 [11:41:08]wFMCommunicate OK [11:41:08]requested_item fd.num is exist - process it [11:41:08]SAM_PROTO_GetFieldsCounters [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 13 00 00 [11:41:08]Write to MH i2c: E2 08 00 CD 56 80 13 00 00 00 00 00 00 9F [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 62 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 62 00 CD 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 96 [11:41: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 C0 13 01 00 0E 04 04 00 C4 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 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_GetFieldsCounters done [11:41:08]requested_item shift.num is exist - process it [11:41:08]requested_item shift.opened is exist - process it [11:41:08]req_shift_opened [11:41:08]FM_GetShiftState [11:41:08]SAM_PROTO_GetShiftState [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 13 01 00 [11:41:08]Write to MH i2c: E2 08 00 CE 56 80 13 01 00 00 00 00 00 A1 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0E 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0E 00 CE 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2E [11:41:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_GetShiftState done [11:41:08]FM_GetShiftState done [11:41:08]req_shift_opened done [11:41:08]requested_item shift.open_date is exist - process it [11:41:08]req_shift_open_date [11:41:08]req_shift_open_date done [11:41:08]produce_requested_data done [11:41:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70592,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:41:08]process_action_free close_receipt [11:41:08]json_value_free [11:41:08]json_value_free done [11:41:08]process_json_proto returns [11:41:08]Send response to host [11:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70592,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:41:08]free response buf [11:41:08]execute_script done [11:41:08]execute_script returns [11:41:08]free content buf [11:41:08]Sock 7.Close socket [11:41:08]Sock 7.Thread stoped [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:09]accept exits with 9 [11:43:09]New connection [11:43:09]New thread 3066699108 created [11:43:09]Thread 3066555748 joined [11:43:09]Waiting for new connection... [11:43:09] Sock 9.Parse request [11:43:09]Sock 9.Check first char [11:43:09]Sock 9.First char is OK [11:43:09]request: POST /json_proto HTTP/1.0 [11:43:09]Method: POST [11:43:09]URL: /json_proto [11:43:09]Method is POST - this is cgi request [11:43:09]url: /json_proto [11:43:09]query_string will be loaded in cgi processing [11:43:09]execute_cgi json_proto POST (null) [11:43:09]execute_cgi path=json_proto method=POST [11:43:09]POST find Content-Length [11:43:09]Host: 172.17.50.3:8080 [11:43:09]Content-Length: 678 [11:43:09]Content-Type: application/json [11:43:09] [11:43:09]POST finish read [11:43:09]Found Content-Length = 678 [11:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886366", "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" ] } } [11:43:09]execute_script... [11:43: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)2886366", "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" ] } } [11:43:09]POST & json_proto [11:43:09]process_json_proto [11:43:09]json parsed OK: [11:43:09]protocol is kg_v1.0 [11:43:09]action value=close_receipt [11:43:09]process_action close_receipt [11:43:09]cmd_close_receipt [11:43:09]MH_GetDate [11:43:09]Write to MH i2c: F0 00 00 CF 56 14 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 09 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 09 00 CF 56 00 51 E1 18 67 6B 98 1E 66 55 [11:43:09]GetLastDocTimeStamp 1729683669 [11:43:09]current date 1729683793 [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 D0 56 80 13 01 00 00 00 00 00 A3 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 D0 56 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 30 [11:43:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]opened in 1729642435 [11:43:09]opened+sec_in_day 1729728835 [11:43:09]quantity*price = 50041 [11:43:09]sum+1 = 50042 [11:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 109 23.10.2024 11:43 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70593 ФПД: 12099691684267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70593&fm=12099691684267&tin=02508201610067®Number=0000000000156251&sum=50000 [11:43:10]StoreToDocumentArchive [11:43:10]shift 196 fd 70593 [11:43:10]save to /storage/0196/doc_00070593 [11:43:10]save last doc name /storage/0196/doc_00070593 to /storage/kkm_last_doc_name [11:43:10]save OK [11:43:10]Clear old archive folders... [11:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:10]tlvbuf is 00AEE150 [11:43:10]SAM_PROTO_ClearQueue [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 09 00 00 [11:43:10]Write to MH i2c: E2 08 00 DD 56 80 09 00 00 00 00 00 00 A5 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 DD 56 00 90 00 A7 [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]SAM_PROTO_ClearQueue done [11:43:10]KKMCreateOFDPacket [11:43:10]OFDProtocolAddRootSTLVToBuf [11:43:10]FM_MakeSignedData [11:43:10]FM_MakeSignedData [11:43:10]SAM_PROTO_SignData [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 0D 01 02 [11:43:10]Write to MH i2c: E2 08 00 DE 56 80 0D 01 02 00 00 00 00 AD [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 DE 56 00 90 00 A8 [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]wFMCommunicate request_size=255 [11:43:10]MH_SAM_APDU [11:43: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 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 6D 00 00 00 F4 03 04 00 52 E1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B [11:43:10]Write to MH i2c: E2 02 01 DF 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6D 00 00 00 F4 03 04 00 52 E1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 00 00 F9 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 DF 56 00 90 00 A9 [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]wFMCommunicate request_size=10 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 0D 02 02 05 01 2D D3 21 AB [11:43:10]Write to MH i2c: E2 0D 00 E0 56 80 0D 02 02 05 00 01 2D D3 21 AB 00 00 87 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 E0 56 00 90 00 AA [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 0D 03 02 [11:43:10]Write to MH i2c: E2 08 00 E1 56 80 0D 03 02 00 00 00 00 B2 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0B 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0B 00 E1 56 00 A0 2A 86 99 1E 8B AF 1D 90 00 11 [11:43:10]RAPDU: A0 2A 86 99 1E 8B AF 1D 90 00 [11:43:10]wFMCommunicate OK [11:43:10]SAM_PROTO_SignData done [11:43:10]FM_MakeSignedData done [11:43:10]CreateOFDProtocolMessage [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 11 00 00 [11:43:10]Write to MH i2c: E2 08 00 E2 56 80 11 00 00 00 00 00 00 B2 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 17 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 17 00 E2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [11:43: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:43:10]wFMCommunicate OK [11:43:10]CreateOFDProtocolMessage done [11:43:10]OFDSenderStorePacket 70593 [11:43:10]StoreOFDPacket docnum=70593 [11:43: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 9E F9 07 01 7F AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 52 E1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 01 2D D3 21 AB A0 2A 86 99 1E 8B AF 1D [11:43:10]CheckFolder [11:43:10]dirname=/storage/ofd_packets [11:43:10]CheckFolder done [11:43:10]ProducePacketName [11:43:10]name=ofd_packets/00070593 [11:43:10]NVStorageSaveData ofd_packets/00070593 [11:43:10]File name is /storage/ofd_packets/00070593 [11:43:10]Write 301 bytes [11:43:10]NVStorageSaveData done [11:43:10]OFDSenderStorePacket done [11:43:10]KKMCreateOFDPacket done [11:43:10]NVStorageSaveData kkm_last_timestamp [11:43:10]File name is /storage/kkm_last_timestamp [11:43:10]Write 4 bytes [11:43:10]NVStorageSaveData done [11:43:10]ExternCall_PrintAddStr [11:43:10]wPrintStart [11:43:10]Write to MH i2c: 01 00 00 E3 56 39 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 E3 56 00 00 00 00 00 FF 0F 4E [11:43:10]RasterBufferAndPrint [11:43:10]line Счет N : (1)2886366 [11:43:10]line ИНН: 02508201610067 [11:43:10]line Контрольно-Кассовый Чек [11:43:10]line ПРОДАЖА [11:43:10]line ТРК (МРК, ГНК) : 42 [11:43:10]line Товар: 2710124130 [11:43:10]line Аи-92-К-5 [11:43:10]line 7.480 * 66.90 [11:43:10]line = 500.41 [11:43:10]line НДС 12% НСП 1% [11:43:10]line > о реализуемом товаре [11:43:10]line ОКРУГЛЕНИЕ: -0.41 [11:43:10]line ИТОГО: 500.00 [11:43:10]line Внесено: 500.00 [11:43:10]line СДАЧА: 0.00 [11:43:10]line НСП 1% : 4.43 [11:43:10]line НДС 12% : 53.14 [11:43:10]line Наличными: 500.00 [11:43:10]line Безнал.: 0.00 [11:43:10]line Место: АЗС № 85 "Партнер Нефть" [11:43:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:43:10]line СНО: Общий режим [11:43:10]line Чек 109 23.10.2024 11:43 [11:43:10]line Смена: 196 ФФД: 1.0 [11:43:10]line ЗНМ: 0300000167 [11:43:10]line РНМ: 0000000000156251 [11:43:10]line Версия ККМ: v1.0 [11:43:10]line ФМ: 0000000000963346 [11:43:11]line ФД: 70593 [11:43:11]line ФПД: 12099691684267 [11:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70593&fm=12099691684267&tin=02508201610067®Number=0000000000156251&sum=50000 [11:43:11]OFD Sender: Processing packet 70593 [packets to send 18, broken 17] [11:43:11]ProducePacketName [11:43:11]name=ofd_packets/00070593 [11:43:11]OFD Sender: To server: pG, [11:43:11]CommunicateWithHost lk.salyk.kg:30040 [11:43:11]ConnectInit lk.salyk.kg [11:43:11]written 0, free lines is 4095 [11:43:11]Connected sock=10 [11:43: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 9E F9 07 01 7F AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 52 E1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 01 2D D3 21 AB A0 2A 86 99 1E 8B AF 1D [11:43: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 D8 1A 47 00 63 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 13 01 00 F4 03 04 00 EF 8A 18 67 B6 04 01 00 00 35 A9 40 E4 03 3A DE 96 [11:43:11]CommunicateWithHost err = 0 [11:43:11]CheckOFDResponse [11:43:11]1017 (14) - 77093643461234 [11:43:11]1041 (16) - 0000000000963346 [11:43:11]1040 (4) - 70593 [11:43:11]1012 (4) - 23.10.2024 05:34 [11:43:11]1206 (1) - 0 [11:43:11]OFD Sender: Remove packet 70593 [11:43:11]ProducePacketName [11:43:11]name=ofd_packets/00070593 [11:43:11]NVStorageDeleteData [11:43:11]Write to MH i2c: 01 00 00 0E 57 65 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 07 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 07 00 0E 57 00 00 00 00 00 F4 0C 6C [11:43:11]RasterBufferAndPrint [11:43:11]line [11:43:11]line [11:43:11]line [11:43:11]line [11:43:11]line [11:43:11]written 0, free lines is 3322 [11:43:11]MH_Cut [11:43:11]Write to MH i2c: D1 01 00 15 57 01 3E [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: D1 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: D1 01 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: D1 01 00 15 57 00 3D [11:43:11]Write to MH i2c: 01 00 00 16 57 6D [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]OFD Sender: No OFD packet to send [11:43:12]*** Cut start [11:43:12]*** Partial cut [11:43:12]*** CUTSNS_PIN = 1 [11:43:12]*** CUTSNS_PIN = 0 [11:43:12]*** Brake cut motor [11:43:13]Read from MH i2c: 01 [11:43:13]MH_I2C_Read... [11:43:13]*** Stop cut motor [11:43:13]*** Cut end [11:43:13]Read from MH i2c: 01 07 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 16 57 00 00 00 00 00 FF 0F 82 [11:43:13]process_action close_receipt done [11:43:13]requested_data is exist [11:43:13]produce_requested_data [11:43:13]requested_item fm.sn is exist - process it [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 11 00 00 [11:43:13]Write to MH i2c: E2 08 00 17 57 80 11 00 00 00 00 00 00 E8 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 17 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [11:43: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:43:13]wFMCommunicate OK [11:43:13]requested_item fd.num is exist - process it [11:43:13]SAM_PROTO_GetFieldsCounters [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 13 00 00 [11:43:13]Write to MH i2c: E2 08 00 18 57 80 13 00 00 00 00 00 00 EB [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 62 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 62 00 18 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 E6 [11:43: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 C1 13 01 00 0E 04 04 00 C4 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 [11:43:13]wFMCommunicate OK [11:43:13]SAM_PROTO_GetFieldsCounters done [11:43:13]requested_item shift.num is exist - process it [11:43:13]requested_item shift.opened is exist - process it [11:43:13]req_shift_opened [11:43:13]FM_GetShiftState [11:43:13]SAM_PROTO_GetShiftState [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 13 01 00 [11:43:13]Write to MH i2c: E2 08 00 19 57 80 13 01 00 00 00 00 00 ED [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 0E 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 0E 00 19 57 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [11:43:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:43:13]wFMCommunicate OK [11:43:13]SAM_PROTO_GetShiftState done [11:43:13]FM_GetShiftState done [11:43:13]req_shift_opened done [11:43:13]requested_item shift.open_date is exist - process it [11:43:13]req_shift_open_date [11:43:13]req_shift_open_date done [11:43:13]produce_requested_data done [11:43:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70593,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:43:13]process_action_free close_receipt [11:43:13]json_value_free [11:43:13]json_value_free done [11:43:13]process_json_proto returns [11:43:13]Send response to host [11:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70593,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:43:13]free response buf [11:43:13]execute_script done [11:43:13]execute_script returns [11:43:13]free content buf [11:43:13]Sock 9.Close socket [11:43:13]Sock 9.Thread stoped [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:49]accept exits with 7 [11:50:49]New connection [11:50:49]New thread 3066555748 created [11:50:49]Thread 3066699108 joined [11:50:49]Waiting for new connection... [11:50:49] Sock 7.Parse request [11:50:49]Sock 7.Check first char [11:50:49]Sock 7.First char is OK [11:50:49]request: POST /json_proto HTTP/1.0 [11:50:49]Method: POST [11:50:49]URL: /json_proto [11:50:49]Method is POST - this is cgi request [11:50:49]url: /json_proto [11:50:49]query_string will be loaded in cgi processing [11:50:49]execute_cgi json_proto POST (null) [11:50:49]execute_cgi path=json_proto method=POST [11:50:49]POST find Content-Length [11:50:49]Host: 172.17.50.3:8080 [11:50:49]Content-Length: 682 [11:50:49]Content-Type: application/json [11:50:49] [11:50:49]POST finish read [11:50:49]Found Content-Length = 682 [11:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886367", "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" : 13.000, "sum" : 505.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:49]execute_script... [11:50: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)2886367", "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" : 13.000, "sum" : 505.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:49]POST & json_proto [11:50:49]process_json_proto [11:50:49]json parsed OK: [11:50:49]protocol is kg_v1.0 [11:50:49]action value=close_receipt [11:50:49]process_action close_receipt [11:50:49]cmd_close_receipt [11:50:49]MH_GetDate [11:50:49]Write to MH i2c: F0 00 00 1A 57 60 [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: F0 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: F0 09 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: F0 09 00 1A 57 00 1E E3 18 67 6B 98 1E 66 70 [11:50:49]GetLastDocTimeStamp 1729683794 [11:50:49]current date 1729684254 [11:50:49]FM_GetShiftState [11:50:49]SAM_PROTO_GetShiftState [11:50:49]wFMCommunicate request_size=4 [11:50:49]MH_SAM_APDU [11:50:49]CAPDU: 80 13 01 00 [11:50:49]Write to MH i2c: E2 08 00 1B 57 80 13 01 00 00 00 00 00 EF [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 0E 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 0E 00 1B 57 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7C [11:50:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:50:49]wFMCommunicate OK [11:50:49]SAM_PROTO_GetShiftState done [11:50:49]FM_GetShiftState done [11:50:49]opened in 1729642435 [11:50:49]opened+sec_in_day 1729728835 [11:50:49]quantity*price = 50570 [11:50:49]sum+1 = 50571 [11:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 505.00 Внесено: 505.00 СДАЧА: 0.00 НСП 1% : 4.47 НДС 12% : 53.70 Наличными: 505.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 110 23.10.2024 11:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70594 ФПД: 231098992978313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115054&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70594&fm=231098992978313&tin=02508201610067®Number=0000000000156251&sum=50500 [11:50:50]StoreToDocumentArchive [11:50:50]shift 196 fd 70594 [11:50:50]save to /storage/0196/doc_00070594 [11:50:50]save last doc name /storage/0196/doc_00070594 to /storage/kkm_last_doc_name [11:50:50]save OK [11:50:50]Clear old archive folders... [11:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:50:50]tlvbuf is 00B133E0 [11:50:50]SAM_PROTO_ClearQueue [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 09 00 00 [11:50:50]Write to MH i2c: E2 08 00 28 57 80 09 00 00 00 00 00 00 F1 [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 03 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 03 00 28 57 00 90 00 F3 [11:50:50]RAPDU: 90 00 [11:50:50]wFMCommunicate OK [11:50:50]SAM_PROTO_ClearQueue done [11:50:50]KKMCreateOFDPacket [11:50:50]OFDProtocolAddRootSTLVToBuf [11:50:50]FM_MakeSignedData [11:50:50]FM_MakeSignedData [11:50:50]SAM_PROTO_SignData [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 0D 01 02 [11:50:50]Write to MH i2c: E2 08 00 29 57 80 0D 01 02 00 00 00 00 F9 [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 03 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 03 00 29 57 00 90 00 F4 [11:50:50]RAPDU: 90 00 [11:50:50]wFMCommunicate OK [11:50:50]wFMCommunicate request_size=255 [11:50:50]MH_SAM_APDU [11:50:50]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 C8 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 14 00 00 00 00 07 04 06 00 44 C5 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 1E E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D2 2E [11:50:50]Write to MH i2c: E2 02 01 2A 57 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 C8 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 14 00 00 00 00 07 04 06 00 44 C5 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 1E E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D2 2E 00 00 9D [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 03 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 03 00 2A 57 00 90 00 F5 [11:50:51]RAPDU: 90 00 [11:50:51]wFMCommunicate OK [11:50:51]wFMCommunicate request_size=9 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 0D 02 02 04 ED 62 69 89 [11:50:51]Write to MH i2c: E2 0C 00 2B 57 80 0D 02 02 04 00 ED 62 69 89 00 00 45 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 03 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 03 00 2B 57 00 90 00 F6 [11:50:51]RAPDU: 90 00 [11:50:51]wFMCommunicate OK [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 0D 03 02 [11:50:51]Write to MH i2c: E2 08 00 2C 57 80 0D 03 02 00 00 00 00 FE [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0B 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0B 00 2C 57 00 5B 3E B2 A6 7F 6A 5F 67 90 00 9F [11:50:51]RAPDU: 5B 3E B2 A6 7F 6A 5F 67 90 00 [11:50:51]wFMCommunicate OK [11:50:51]SAM_PROTO_SignData done [11:50:51]FM_MakeSignedData done [11:50:51]CreateOFDProtocolMessage [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 11 00 00 [11:50:51]Write to MH i2c: E2 08 00 2D 57 80 11 00 00 00 00 00 00 FE [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 17 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 17 00 2D 57 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:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:50:51]wFMCommunicate OK [11:50:51]CreateOFDProtocolMessage done [11:50:51]OFDSenderStorePacket 70594 [11:50:51]StoreOFDPacket docnum=70594 [11:50: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 78 81 06 01 E1 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 C8 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 14 00 00 00 00 07 04 06 00 44 C5 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 1E E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D2 2E ED 62 69 89 5B 3E B2 A6 7F 6A 5F 67 [11:50:51]CheckFolder [11:50:51]dirname=/storage/ofd_packets [11:50:51]CheckFolder done [11:50:51]ProducePacketName [11:50:51]name=ofd_packets/00070594 [11:50:51]NVStorageSaveData ofd_packets/00070594 [11:50:51]File name is /storage/ofd_packets/00070594 [11:50:51]Write 300 bytes [11:50:51]NVStorageSaveData done [11:50:51]OFDSenderStorePacket done [11:50:51]KKMCreateOFDPacket done [11:50:51]NVStorageSaveData kkm_last_timestamp [11:50:51]File name is /storage/kkm_last_timestamp [11:50:51]Write 4 bytes [11:50:51]NVStorageSaveData done [11:50:51]ExternCall_PrintAddStr [11:50:51]wPrintStart [11:50:51]Write to MH i2c: 01 00 00 2E 57 85 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: 01 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: 01 07 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: 01 07 00 2E 57 00 00 00 00 00 FF 0F 9A [11:50:51]RasterBufferAndPrint [11:50:51]line Счет N : (1)2886367 [11:50:51]line ИНН: 02508201610067 [11:50:51]line Контрольно-Кассовый Чек [11:50:51]line ПРОДАЖА [11:50:51]line ТРК (МРК, ГНК) : 71 [11:50:51]line Товар: 2711129700 [11:50:51]line ГАЗ-К-3 [11:50:51]line 13.000 * 38.90 [11:50:51]line = 505.70 [11:50:51]line НДС 12% НСП 1% [11:50:51]line > о реализуемом товаре [11:50:51]line ОКРУГЛЕНИЕ: -0.70 [11:50:51]line ИТОГО: 505.00 [11:50:51]line Внесено: 505.00 [11:50:51]line СДАЧА: 0.00 [11:50:51]line НСП 1% : 4.47 [11:50:51]line НДС 12% : 53.70 [11:50:51]line Наличными: 505.00 [11:50:51]line Безнал.: 0.00 [11:50:51]line Место: АЗС № 85 "Партнер Нефть" [11:50:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:50:51]line СНО: Общий режим [11:50:51]line Чек 110 23.10.2024 11:50 [11:50:51]line Смена: 196 ФФД: 1.0 [11:50:51]line ЗНМ: 0300000167 [11:50:51]line РНМ: 0000000000156251 [11:50:51]line Версия ККМ: v1.0 [11:50:51]line ФМ: 0000000000963346 [11:50:51]line ФД: 70594 [11:50:51]line ФПД: 231098992978313 [11:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115054&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70594&fm=231098992978313&tin=02508201610067®Number=0000000000156251&sum=50500 [11:50:51]OFD Sender: Processing packet 70594 [packets to send 18, broken 17] [11:50:51]ProducePacketName [11:50:51]name=ofd_packets/00070594 [11:50:51]OFD Sender: To server: pG, [11:50:51]CommunicateWithHost lk.salyk.kg:30040 [11:50:51]ConnectInit lk.salyk.kg [11:50:51]written 0, free lines is 4095 [11:50:51]Connected sock=10 [11:50: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 78 81 06 01 E1 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 C8 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 14 00 00 00 00 07 04 06 00 44 C5 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 1E E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D2 2E ED 62 69 89 5B 3E B2 A6 7F 6A 5F 67 [11:50: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 EC 00 47 00 23 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 C2 13 01 00 F4 03 04 00 BC 8C 18 67 B6 04 01 00 00 EC EC CD 19 96 F1 BC E9 [11:50:51]CommunicateWithHost err = 0 [11:50:51]CheckOFDResponse [11:50:51]1017 (14) - 77093643461234 [11:50:51]1041 (16) - 0000000000963346 [11:50:51]1040 (4) - 70594 [11:50:51]1012 (4) - 23.10.2024 05:42 [11:50:51]1206 (1) - 0 [11:50:51]OFD Sender: Remove packet 70594 [11:50:51]ProducePacketName [11:50:51]name=ofd_packets/00070594 [11:50:51]NVStorageDeleteData [11:50:52]Write to MH i2c: 01 00 00 59 57 B0 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 07 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: 01 07 00 59 57 00 00 00 00 00 F5 0C B8 [11:50:52]RasterBufferAndPrint [11:50:52]line [11:50:52]line [11:50:52]line [11:50:52]line [11:50:52]line [11:50:52]written 0, free lines is 3324 [11:50:52]MH_Cut [11:50:52]Write to MH i2c: D1 01 00 60 57 01 89 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: D1 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: D1 01 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: D1 01 00 60 57 00 88 [11:50:52]Write to MH i2c: 01 00 00 61 57 B8 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]OFD Sender: No OFD packet to send [11:50:52]*** Cut start [11:50:52]*** Partial cut [11:50:52]*** CUTSNS_PIN = 1 [11:50:52]*** CUTSNS_PIN = 0 [11:50:53]*** Brake cut motor [11:50:53]Read from MH i2c: 01 [11:50:53]MH_I2C_Read... [11:50:53]*** Stop cut motor [11:50:53]*** Cut end [11:50:53]Read from MH i2c: 01 07 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 61 57 00 00 00 00 00 FF 0F CD [11:50:53]process_action close_receipt done [11:50:53]requested_data is exist [11:50:53]produce_requested_data [11:50:53]requested_item fm.sn is exist - process it [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 11 00 00 [11:50:53]Write to MH i2c: E2 08 00 62 57 80 11 00 00 00 00 00 00 33 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 62 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [11:50: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:50:53]wFMCommunicate OK [11:50:53]requested_item fd.num is exist - process it [11:50:53]SAM_PROTO_GetFieldsCounters [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 13 00 00 [11:50:53]Write to MH i2c: E2 08 00 63 57 80 13 00 00 00 00 00 00 36 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 62 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 62 00 63 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 35 [11:50: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 C2 13 01 00 0E 04 04 00 C4 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 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_GetFieldsCounters done [11:50:53]requested_item shift.num is exist - process it [11:50:53]requested_item shift.opened is exist - process it [11:50:53]req_shift_opened [11:50:53]FM_GetShiftState [11:50:53]SAM_PROTO_GetShiftState [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 13 01 00 [11:50:53]Write to MH i2c: E2 08 00 64 57 80 13 01 00 00 00 00 00 38 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0E 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0E 00 64 57 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [11:50:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_GetShiftState done [11:50:53]FM_GetShiftState done [11:50:53]req_shift_opened done [11:50:53]requested_item shift.open_date is exist - process it [11:50:53]req_shift_open_date [11:50:53]req_shift_open_date done [11:50:53]produce_requested_data done [11:50:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70594,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:50:53]process_action_free close_receipt [11:50:53]json_value_free [11:50:53]json_value_free done [11:50:53]process_json_proto returns [11:50:53]Send response to host [11:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70594,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:50:53]free response buf [11:50:53]execute_script done [11:50:53]execute_script returns [11:50:53]free content buf [11:50:53]Sock 7.Close socket [11:50:53]Sock 7.Thread stoped [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:06]accept exits with 9 [11:52:06]New connection [11:52:06]New thread 3066699108 created [11:52:06]Thread 3066555748 joined [11:52:06]Waiting for new connection... [11:52:06] Sock 9.Parse request [11:52:06]Sock 9.Check first char [11:52:06]Sock 9.First char is OK [11:52:06]request: POST /json_proto HTTP/1.0 [11:52:06]Method: POST [11:52:06]URL: /json_proto [11:52:06]Method is POST - this is cgi request [11:52:06]url: /json_proto [11:52:06]query_string will be loaded in cgi processing [11:52:06]execute_cgi json_proto POST (null) [11:52:06]execute_cgi path=json_proto method=POST [11:52:06]POST find Content-Length [11:52:06]Host: 172.17.50.3:8080 [11:52:06]Content-Length: 752 [11:52:06]Content-Type: application/json [11:52:06] [11:52:06]POST finish read [11:52:06]Found Content-Length = 752 [11:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886368", "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" : 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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:06]execute_script... [11:52: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)2886368", "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" : 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\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:06]POST & json_proto [11:52:06]process_json_proto [11:52:06]json parsed OK: [11:52:06]protocol is kg_v1.0 [11:52:06]action value=close_receipt [11:52:06]process_action close_receipt [11:52:06]cmd_close_receipt [11:52:06]MH_GetDate [11:52:06]Write to MH i2c: F0 00 00 65 57 AB [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: F0 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: F0 09 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: F0 09 00 65 57 00 6B E3 18 67 6B 98 1E 66 08 [11:52:06]GetLastDocTimeStamp 1729684254 [11:52:06]current date 1729684331 [11:52:06]FM_GetShiftState [11:52:06]SAM_PROTO_GetShiftState [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 01 00 [11:52:06]Write to MH i2c: E2 08 00 66 57 80 13 01 00 00 00 00 00 3A [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 66 57 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C7 [11:52:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetShiftState done [11:52:06]FM_GetShiftState done [11:52:06]opened in 1729642435 [11:52:06]opened+sec_in_day 1729728835 [11:52:06]quantity*price = 0 [11:52:06]sum+1 = 1 [11:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 111 23.10.2024 11:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100988 ФМ: 0000000000963346 ФД: 70595 ФПД: 8791481056287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70595&fm=8791481056287&tin=02508201610067®Number=0000000000156251&sum=0 [11:52:07]StoreToDocumentArchive [11:52:07]shift 196 fd 70595 [11:52:07]save to /storage/0196/doc_00070595 [11:52:07]save last doc name /storage/0196/doc_00070595 to /storage/kkm_last_doc_name [11:52:07]save OK [11:52:07]Clear old archive folders... [11:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:07]tlvbuf is 00ED2770 [11:52:07]SAM_PROTO_ClearQueue [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 09 00 00 [11:52:07]Write to MH i2c: E2 08 00 73 57 80 09 00 00 00 00 00 00 3C [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 73 57 00 90 00 3E [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]SAM_PROTO_ClearQueue done [11:52:07]KKMCreateOFDPacket [11:52:07]OFDProtocolAddRootSTLVToBuf [11:52:07]FM_MakeSignedData [11:52:07]FM_MakeSignedData [11:52:07]SAM_PROTO_SignData [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 01 02 [11:52:07]Write to MH i2c: E2 08 00 74 57 80 0D 01 02 00 00 00 00 44 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 74 57 00 90 00 3F [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=255 [11:52:07]MH_SAM_APDU [11:52:07]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 6F 00 00 00 F4 03 04 00 6B E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 07 FE ED 1A [11:52:07]Write to MH i2c: E2 02 01 75 57 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 6F 00 00 00 F4 03 04 00 6B E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 07 FE ED 1A 00 00 EC [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 75 57 00 90 00 40 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]wFMCommunicate request_size=7 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 02 02 02 FC 1F [11:52:08]Write to MH i2c: E2 0A 00 76 57 80 0D 02 02 02 00 FC 1F 00 00 66 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 76 57 00 90 00 41 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 03 02 [11:52:08]Write to MH i2c: E2 08 00 77 57 80 0D 03 02 00 00 00 00 49 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0B 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0B 00 77 57 00 04 AD 0E CD 92 9F 35 18 90 00 54 [11:52:08]RAPDU: 04 AD 0E CD 92 9F 35 18 90 00 [11:52:08]wFMCommunicate OK [11:52:08]SAM_PROTO_SignData done [11:52:08]FM_MakeSignedData done [11:52:08]CreateOFDProtocolMessage [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 11 00 00 [11:52:08]Write to MH i2c: E2 08 00 78 57 80 11 00 00 00 00 00 00 49 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 17 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 17 00 78 57 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:52: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:52:08]wFMCommunicate OK [11:52:08]CreateOFDProtocolMessage done [11:52:08]OFDSenderStorePacket 70595 [11:52:08]StoreOFDPacket docnum=70595 [11:52: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 0C 01 00 00 E2 8F 04 01 E6 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 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 6F 00 00 00 F4 03 04 00 6B E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 07 FE ED 1A FC 1F 04 AD 0E CD 92 9F 35 18 [11:52:08]CheckFolder [11:52:08]dirname=/storage/ofd_packets [11:52:08]CheckFolder done [11:52:08]ProducePacketName [11:52:08]name=ofd_packets/00070595 [11:52:08]NVStorageSaveData ofd_packets/00070595 [11:52:08]File name is /storage/ofd_packets/00070595 [11:52:08]Write 298 bytes [11:52:08]NVStorageSaveData done [11:52:08]OFDSenderStorePacket done [11:52:08]KKMCreateOFDPacket done [11:52:08]NVStorageSaveData kkm_last_timestamp [11:52:08]File name is /storage/kkm_last_timestamp [11:52:08]Write 4 bytes [11:52:08]NVStorageSaveData done [11:52:08]ExternCall_PrintAddStr [11:52:08]wPrintStart [11:52:08]Write to MH i2c: 01 00 00 79 57 D0 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 07 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 07 00 79 57 00 00 00 00 00 FF 0F E5 [11:52:08]RasterBufferAndPrint [11:52:08]line Счет N : (1)2886368 [11:52:08]line ИНН: 02508201610067 [11:52:08]line Контрольно-Кассовый Чек [11:52:08]line ПРОДАЖА [11:52:08]line ТРК (МРК, ГНК) : 61 [11:52:08]line Товар: 2710194210 [11:52:08]line ДТ-К-5 [11:52:08]line 20.000 * 0.00 [11:52:08]line = 0.00 [11:52:08]line НДС 12% НСП 1% [11:52:08]line > о реализуемом товаре [11:52:08]line ИТОГО: 0.00 [11:52:08]line НСП 1% : 0.00 [11:52:08]line НДС 12% : 0.00 [11:52:08]line Наличными: 0.00 [11:52:08]line Безнал.: 0.00 [11:52:08]line Место: АЗС № 85 "Партнер Нефть" [11:52:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:52:08]line СНО: Общий режим [11:52:08]line Чек 111 23.10.2024 11:52 [11:52:08]line Смена: 196 ФФД: 1.0 [11:52:08]line ЗНМ: 0300000167 [11:52:08]line РНМ: 0000000000156251 [11:52:08]line Версия ККМ: v1.0 [11:52:08]line Талоны: ТК ГПНА Online [11:52:08]line 30100988 [11:52:08]line ФМ: 0000000000963346 [11:52:08]line ФД: 70595 [11:52:08]line ФПД: 8791481056287 [11:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70595&fm=8791481056287&tin=02508201610067®Number=0000000000156251&sum=0 [11:52:08]OFD Sender: Processing packet 70595 [packets to send 18, broken 17] [11:52:08]ProducePacketName [11:52:08]name=ofd_packets/00070595 [11:52:08]OFD Sender: To server: pG, [11:52:08]CommunicateWithHost lk.salyk.kg:30040 [11:52:08]ConnectInit lk.salyk.kg [11:52:08]written 0, free lines is 4095 [11:52:08]Connected sock=10 [11:52: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 0C 01 00 00 E2 8F 04 01 E6 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 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 6F 00 00 00 F4 03 04 00 6B E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 07 FE ED 1A FC 1F 04 AD 0E CD 92 9F 35 18 [11:52: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 CE E8 47 00 E1 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 C3 13 01 00 F4 03 04 00 09 8D 18 67 B6 04 01 00 00 DB 51 0C EF 14 DA 82 33 [11:52:09]CommunicateWithHost err = 0 [11:52:09]CheckOFDResponse [11:52:09]1017 (14) - 77093643461234 [11:52:09]1041 (16) - 0000000000963346 [11:52:09]1040 (4) - 70595 [11:52:09]1012 (4) - 23.10.2024 05:43 [11:52:09]1206 (1) - 0 [11:52:09]OFD Sender: Remove packet 70595 [11:52:09]ProducePacketName [11:52:09]name=ofd_packets/00070595 [11:52:09]NVStorageDeleteData [11:52:09]Write to MH i2c: 01 00 00 A3 57 FA [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 A3 57 00 00 00 00 00 09 0D 17 [11:52:09]RasterBufferAndPrint [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]written 0, free lines is 3346 [11:52:09]MH_Cut [11:52:09]Write to MH i2c: D1 01 00 AA 57 01 D3 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 01 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 01 00 AA 57 00 D2 [11:52:09]Write to MH i2c: 01 00 00 AB 57 02 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]OFD Sender: No OFD packet to send [11:52:09]*** Cut start [11:52:09]*** Partial cut [11:52:09]*** CUTSNS_PIN = 1 [11:52:09]*** CUTSNS_PIN = 0 [11:52:10]*** Brake cut motor [11:52:10]Read from MH i2c: 01 [11:52:10]MH_I2C_Read... [11:52:10]*** Stop cut motor [11:52:10]*** Cut end [11:52:10]Read from MH i2c: 01 07 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 AB 57 00 00 00 00 00 FF 0F 17 [11:52:10]process_action close_receipt done [11:52:10]requested_data is exist [11:52:10]produce_requested_data [11:52:10]requested_item fm.sn is exist - process it [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 11 00 00 [11:52:10]Write to MH i2c: E2 08 00 AC 57 80 11 00 00 00 00 00 00 7D [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 AC 57 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:52: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:52:10]wFMCommunicate OK [11:52:10]requested_item fd.num is exist - process it [11:52:10]SAM_PROTO_GetFieldsCounters [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 13 00 00 [11:52:10]Write to MH i2c: E2 08 00 AD 57 80 13 00 00 00 00 00 00 80 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 62 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 62 00 AD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 83 [11:52: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 C3 13 01 00 0E 04 04 00 C4 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 [11:52:10]wFMCommunicate OK [11:52:10]SAM_PROTO_GetFieldsCounters done [11:52:10]requested_item shift.num is exist - process it [11:52:10]requested_item shift.opened is exist - process it [11:52:10]req_shift_opened [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 AE 57 80 13 01 00 00 00 00 00 82 [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 AE 57 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0F [11:52:10]RAPDU: 09 00 01 C3 3F 18 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]req_shift_opened done [11:52:10]requested_item shift.open_date is exist - process it [11:52:10]req_shift_open_date [11:52:10]req_shift_open_date done [11:52:10]produce_requested_data done [11:52:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70595,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:52:10]process_action_free close_receipt [11:52:10]json_value_free [11:52:10]json_value_free done [11:52:10]process_json_proto returns [11:52:10]Send response to host [11:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70595,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:52:10]free response buf [11:52:10]execute_script done [11:52:10]execute_script returns [11:52:10]free content buf [11:52:10]Sock 9.Close socket [11:52:10]Sock 9.Thread stoped [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 AF 57 06 [11:52:14]*** FLAG_PRN_PAP1 set [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 AF 57 00 01 00 00 00 FF 0F 1C [11:52:14]state=0 [11:52:14]No paper [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B0 57 07 [11:52:14]*** FLAG_PRN_PAP2 set [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B0 57 00 03 00 00 00 FF 0F 1F [11:52:14]state=0 [11:52:14]No paper [11:52:14]Cover opened [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B1 57 08 [11:52:14]*** FLAG_PRN_PAP2 reset [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B1 57 00 01 00 00 00 FF 0F 1E [11:52:14]state=3 [11:52:14]No paper [11:52:14]Cover closed [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B2 57 09 [11:52:14]*** FLAG_PRN_PAP2 set [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B2 57 00 03 00 00 00 FF 0F 21 [11:52:14]state=0 [11:52:14]No paper [11:52:14]Cover opened [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B3 57 0A [11:52:14]*** FLAG_PRN_PAP2 reset [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B3 57 00 01 00 00 00 FF 0F 20 [11:52:14]state=3 [11:52:14]No paper [11:52:14]Cover closed [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B4 57 0B [11:52:14]*** FLAG_PRN_PAP2 set [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B4 57 00 03 00 00 00 FF 0F 23 [11:52:14]state=0 [11:52:14]No paper [11:52:14]Cover opened [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B5 57 0C [11:52:14]*** FLAG_PRN_PAP2 reset [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B5 57 00 01 00 00 00 FF 0F 22 [11:52:14]state=3 [11:52:14]No paper [11:52:14]Cover closed [11:52:14]OFD Sender: No OFD packet to send [11:52:14]int [11:52:14]Write to MH i2c: 01 00 00 B6 57 0D [11:52:14]*** FLAG_PRN_PAP2 set [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [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 B6 57 00 03 00 00 00 FF 0F 25 [11:52:14]state=0 [11:52:14]No paper [11:52:14]Cover opened [11:52:19]int [11:52:19]Write to MH i2c: 01 00 00 B7 57 0E [11:52:19]*** FLAG_PRN_PAP2 reset [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 B7 57 00 01 00 00 00 FF 0F 24 [11:52:19]state=3 [11:52:19]No paper [11:52:19]Cover closed [11:52:19]int [11:52:19]Write to MH i2c: 01 00 00 B8 57 0F [11:52:19]*** FLAG_PRN_PAP1 reset [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 B8 57 00 00 00 00 00 FF 0F 24 [11:52:19]state=0 [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [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:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 16403234+1713281131=1729684365 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 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:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 8D E3 18 67 6B 98 1E 66 75 [11:52:45]Current date/time: 23.10.2024 11:52 [11:52:45]FM_Init [11:52:45]wFMConnect [11:52:45]MH_SAM_On [11:52:45]Write to MH i2c: E0 00 00 08 00 E7 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_init finished! [11:52:45]*** atr: [11:52:45]*** 0F 3B D5 18 FF 81 91 FE [11:52:45]*** 1F C3 80 73 C8 21 10 0A [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]*** 00 00 00 00 00 00 00 00 [11:52:45]Read from MH i2c: E0 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E0 10 00 [11:52:45]MH_I2C_Read... [11:52: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 [11:52:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:52:45]wFMCommunicate request_size=10 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:52:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 11 00 00 [11:52:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 [11:52:45]MH_I2C_Read... [11:52: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 [11: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 [11:52:45]wFMCommunicate OK [11:52:45]Detected FM SN is 0000000000963346 [11:52:45]Stored FM SN is 0000000000963346 [11:52:45]wFMCommunicate request_size=9 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 16 00 00 04 0B 88 00 00 [11:52:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]FM PIN OK [11:52:45]wFMCommunicate request_size=8 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 14 04 00 03 02 00 01 [11:52:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=13 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:52: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 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 11 00 00 [11:52:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 [11:52:45]MH_I2C_Read... [11:52: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 [11: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 [11:52:45]wFMCommunicate OK [11:52:45]DocumentArchiveInit [11:52:45]Start Httpd... [11:52:45]Httpd thread 3067268452 created [11:52:45]Write to MH i2c: 01 00 00 0F 00 0F [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:52:45]MH Int Process started [11:52:45]Allocated Socket 8 [11:52:45]Bind OK [11:52:45]Listen OK [11:52:45]httpd running on port 8080 [11:52:45]Waiting for new connection... [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:51]accept exits with 9 [11:52:51]New connection [11:52:51]New thread 3066981732 created [11:52:51]Waiting for new connection... [11:52:51] Sock 9.Parse request [11:52:51]Sock 9.Check first char [11:52:51]Sock 9.First char is OK [11:52:51]request: POST /json_proto HTTP/1.0 [11:52:51]Method: POST [11:52:51]URL: /json_proto [11:52:51]Method is POST - this is cgi request [11:52:51]url: /json_proto [11:52:51]query_string will be loaded in cgi processing [11:52:51]execute_cgi json_proto POST (null) [11:52:51]execute_cgi path=json_proto method=POST [11:52:51]POST find Content-Length [11:52:51]Host: 172.17.50.3:8080 [11:52:51]Content-Length: 215 [11:52:51]Content-Type: application/json [11:52:51] [11:52:51]POST finish read [11:52:51]Found Content-Length = 215 [11:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:51]execute_script... [11:52:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:51]POST & json_proto [11:52:51]process_json_proto [11:52:51]json parsed OK: [11:52:51]protocol is kg_v1.0 [11:52:51]action value=get_value [11:52:51]process_action get_value [11:52:51]cmd_get_value [11:52:51]process_action get_value done [11:52:51]requested_data is exist [11:52:51]produce_requested_data [11:52:51]requested_item kkm.sn is exist - process it [11:52:51]requested_item kkm.ver is exist - process it [11:52:51]requested_item fm.sn is exist - process it [11:52:51]wFMCommunicate request_size=4 [11:52:51]MH_SAM_APDU [11:52:51]CAPDU: 80 11 00 00 [11:52:51]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:52]Read from MH i2c: E2 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 17 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [11:52:52]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:52]wFMCommunicate OK [11:52:52]requested_item fd.num is exist - process it [11:52:52]SAM_PROTO_GetFieldsCounters [11:52:52]wFMCommunicate request_size=4 [11:52:52]MH_SAM_APDU [11:52:52]CAPDU: 80 13 00 00 [11:52:52]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:52]Read from MH i2c: E2 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 62 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 90 [11:52: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 C3 13 01 00 0E 04 04 00 C4 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 [11:52:52]wFMCommunicate OK [11:52:52]SAM_PROTO_GetFieldsCounters done [11:52:52]requested_item shift.num is exist - process it [11:52:52]requested_item shift.opened is exist - process it [11:52:52]req_shift_opened [11:52:52]FM_GetShiftState [11:52:52]SAM_PROTO_GetShiftState [11:52:52]wFMCommunicate request_size=4 [11:52:52]MH_SAM_APDU [11:52:52]CAPDU: 80 13 01 00 [11:52:52]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:52]Read from MH i2c: E2 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 0E 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1C [11:52:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:52:52]wFMCommunicate OK [11:52:52]SAM_PROTO_GetShiftState done [11:52:52]FM_GetShiftState done [11:52:52]req_shift_opened done [11:52:52]requested_item shift.open_date is exist - process it [11:52:52]req_shift_open_date [11:52:52]req_shift_open_date done [11:52:52]produce_requested_data done [11:52:52]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70595,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:52:52]process_action_free get_value [11:52:52]json_value_free [11:52:52]json_value_free done [11:52:52]process_json_proto returns [11:52:52]Send response to host [11:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70595,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:52:52]free response buf [11:52:52]execute_script done [11:52:52]execute_script returns [11:52:52]free content buf [11:52:52]Sock 9.Close socket [11:52:52]Sock 9.Thread stoped [11:52:52]accept exits with 7 [11:52:52]New connection [11:52:52]New thread 3066838372 created [11:52:52]Thread 3066981732 joined [11:52:52]Waiting for new connection... [11:52:52] Sock 7.Parse request [11:52:52]Sock 7.Check first char [11:52:52]Sock 7.First char is OK [11:52:52]request: POST /json_proto HTTP/1.0 [11:52:52]Method: POST [11:52:52]URL: /json_proto [11:52:52]Method is POST - this is cgi request [11:52:52]url: /json_proto [11:52:52]query_string will be loaded in cgi processing [11:52:52]execute_cgi json_proto POST (null) [11:52:52]execute_cgi path=json_proto method=POST [11:52:52]POST find Content-Length [11:52:52]Host: 172.17.50.3:8080 [11:52:52]Content-Length: 331 [11:52:52]Content-Type: application/json [11:52:52] [11:52:52]POST finish read [11:52:52]Found Content-Length = 331 [11:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:52:52]execute_script... [11:52:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:52:52]POST & json_proto [11:52:52]process_json_proto [11:52:52]json parsed OK: [11:52:52]protocol is kg_v1.0 [11:52:52]action value=get_value [11:52:52]process_action get_value [11:52:52]cmd_get_value [11:52:52]process_action get_value done [11:52:52]requested_data is exist [11:52:52]produce_requested_data [11:52:52]requested_item fm.sale.total is exist - process it [11:52:52]SAM_PROTO_GetFMData [11:52:52]wFMCommunicate request_size=4 [11:52:52]MH_SAM_APDU [11:52:52]CAPDU: 80 13 03 00 [11:52:52]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:52:52]Read from MH i2c: E2 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 FD 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 3B 12 01 00 69 04 A3 00 6F 04 04 00 F6 0E 01 00 B1 04 05 00 DF 6D 04 E9 01 70 04 05 00 BC 9D 65 5D 01 72 04 04 00 23 D0 9E 8B 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 F2 15 F1 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 A7 07 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 49 [11:52:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3B 12 01 00 69 04 A3 00 6F 04 04 00 F6 0E 01 00 B1 04 05 00 DF 6D 04 E9 01 70 04 05 00 BC 9D 65 5D 01 72 04 04 00 23 D0 9E 8B 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 F2 15 F1 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 A7 07 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 [11:52:52]wFMCommunicate OK [11:52:52]wFMCommunicate request_size=4 [11:52:52]MH_SAM_APDU [11:52:52]CAPDU: 80 17 00 00 [11:52:52]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 FD 00 [11:52:53]MH_I2C_Read... [11:52:53]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 DD D2 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 [11:52:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 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 [11:52:53]wFMCommunicate OK [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 17 00 00 [11:52:53]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 FD 00 [11:52:53]MH_I2C_Read... [11:52:53]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 [11:52:53]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 [11:52:53]wFMCommunicate OK [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 17 00 00 [11:52:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 FD 00 [11:52:53]MH_I2C_Read... [11:52:53]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 [11:52:53]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 [11:52:53]wFMCommunicate OK [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 17 00 00 [11:52:53]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:52:53]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 E2 00 [11:52:54]MH_I2C_Read... [11:52:54]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 [11:52:54]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 [11:52:54]wFMCommunicate OK [11:52:54]SAM_PROTO_GetFMData done [11:52:54]requested_item fm.sale_refund.total is exist - process it [11:52:54]requested_item fm.buy.total is exist - process it [11:52:54]requested_item shift.sale.total is exist - process it [11:52:54]SAM_PROTO_GetShiftData [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 13 02 00 [11:52:54]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 FD 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 6F 00 00 00 69 04 9C 00 6F 04 04 00 6F 00 00 00 B1 04 03 00 1F C3 99 70 04 03 00 B0 BA 80 72 04 03 00 6F 08 19 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 16 55 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 5C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 78 [11:52:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6F 00 00 00 69 04 9C 00 6F 04 04 00 6F 00 00 00 B1 04 03 00 1F C3 99 70 04 03 00 B0 BA 80 72 04 03 00 6F 08 19 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 16 55 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 5C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 17 00 00 [11:52:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 FD 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [11:52:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 17 00 00 [11:52:54]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 FD 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [11:52:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [11:52:55]wFMCommunicate OK [11:52:55]wFMCommunicate request_size=4 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 17 00 00 [11:52:55]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 FD 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:52:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:52:55]wFMCommunicate OK [11:52:55]wFMCommunicate request_size=4 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 17 00 00 [11:52:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]OFD Sender: No OFD packet to send [11:52:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 CC 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [11:52:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:52:55]wFMCommunicate OK [11:52:55]SAM_PROTO_GetShiftData done [11:52:55]requested_item shift.sale.total_cash is exist - process it [11:52:55]requested_item shift.sale_refund.total is exist - process it [11:52:55]requested_item shift.sale_refund.total_cash is exist - process it [11:52:55]requested_item shift.buy.total is exist - process it [11:52:55]requested_item shift.buy.total_cash is exist - process it [11:52:55]produce_requested_data done [11:52:55]produce_requested_data return {"fm.sale.total":82043488.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":100769.59,"shift.sale.total_cash":84364.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:52:55]process_action_free get_value [11:52:55]json_value_free [11:52:55]json_value_free done [11:52:55]process_json_proto returns [11:52:55]Send response to host [11:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":82043488.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":100769.59,"shift.sale.total_cash":84364.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:52:55]free response buf [11:52:55]execute_script done [11:52:55]execute_script returns [11:52:55]free content buf [11:52:55]Sock 7.Close socket [11:52:55]Sock 7.Thread stoped [11:52:56]accept exits with 9 [11:52:56]New connection [11:52:56]New thread 3066981732 created [11:52:56]Thread 3066838372 joined [11:52:56]Waiting for new connection... [11:52:56] Sock 9.Parse request [11:52:56]Sock 9.Check first char [11:52:56]Sock 9.First char is OK [11:52:56]request: POST /json_proto HTTP/1.0 [11:52:56]Method: POST [11:52:56]URL: /json_proto [11:52:56]Method is POST - this is cgi request [11:52:56]url: /json_proto [11:52:56]query_string will be loaded in cgi processing [11:52:56]execute_cgi json_proto POST (null) [11:52:56]execute_cgi path=json_proto method=POST [11:52:56]POST find Content-Length [11:52:56]Host: 172.17.50.3:8080 [11:52:56]Content-Length: 678 [11:52:56]Content-Type: application/json [11:52:56] [11:52:56]POST finish read [11:52:56]Found Content-Length = 678 [11:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886369", "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" ] } } [11:52:56]execute_script... [11: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)2886369", "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" ] } } [11:52:56]POST & json_proto [11:52:56]process_json_proto [11:52:56]json parsed OK: [11:52:56]protocol is kg_v1.0 [11:52:56]action value=close_receipt [11:52:56]process_action close_receipt [11:52:56]cmd_close_receipt [11:52:56]MH_GetDate [11:52:56]Write to MH i2c: F0 00 00 1D 00 0C [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 09 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: F0 09 00 1D 00 00 99 E3 18 67 6B 98 1E 66 97 [11:52:56]GetLastDocTimeStamp 1729684331 [11:52:56]current date 1729684377 [11:52:56]FM_GetShiftState [11:52:56]SAM_PROTO_GetShiftState [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 13 01 00 [11:52:56]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 28 [11:52:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_GetShiftState done [11:52:56]FM_GetShiftState done [11:52:56]opened in 1729642435 [11:52:56]opened+sec_in_day 1729728835 [11:52:56]quantity*price = 20003 [11:52:56]sum+1 = 20004 [11:52:56]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 СНО: Общий режим Чек 112 23.10.2024 11:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70596 ФПД: 18866737932399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70596&fm=18866737932399&tin=02508201610067®Number=0000000000156251&sum=20000 [11:52:57]StoreToDocumentArchive [11:52:57]shift 196 fd 70596 [11:52:57]save to /storage/0196/doc_00070596 [11:52:57]save last doc name /storage/0196/doc_00070596 to /storage/kkm_last_doc_name [11:52:57]save OK [11:52:57]Clear old archive folders... [11:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:57]tlvbuf is 008B2020 [11:52:57]SAM_PROTO_ClearQueue [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 09 00 00 [11:52:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_ClearQueue done [11:52:57]KKMCreateOFDPacket [11:52:57]OFDProtocolAddRootSTLVToBuf [11:52:57]FM_MakeSignedData [11:52:57]FM_MakeSignedData [11:52:57]SAM_PROTO_SignData [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 01 02 [11:52:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=255 [11:52:58]MH_SAM_APDU [11:52: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 70 00 00 00 F4 03 04 00 99 E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 [11:52:58]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 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 70 00 00 00 F4 03 04 00 99 E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 00 00 08 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=10 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 02 02 05 28 C1 36 68 6F [11:52:58]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 28 C1 36 68 6F 00 00 A8 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 03 02 [11:52:58]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 0B 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 0B 00 2F 00 00 08 8D 69 B4 09 7C D2 DF 90 00 93 [11:52:58]RAPDU: 08 8D 69 B4 09 7C D2 DF 90 00 [11:52:58]wFMCommunicate OK [11:52:58]SAM_PROTO_SignData done [11:52:58]FM_MakeSignedData done [11:52:58]CreateOFDProtocolMessage [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 11 00 00 [11:52:58]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 17 00 [11:52:58]MH_I2C_Read... [11:52:58]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 [11:52:58]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:58]wFMCommunicate OK [11:52:58]CreateOFDProtocolMessage done [11:52:58]OFDSenderStorePacket 70596 [11:52:58]StoreOFDPacket docnum=70596 [11:52: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 12 51 07 01 05 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 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 70 00 00 00 F4 03 04 00 99 E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 28 C1 36 68 6F 08 8D 69 B4 09 7C D2 DF [11:52:58]CheckFolder [11:52:58]dirname=/storage/ofd_packets [11:52:58]CheckFolder done [11:52:58]ProducePacketName [11:52:58]name=ofd_packets/00070596 [11:52:58]NVStorageSaveData ofd_packets/00070596 [11:52:58]File name is /storage/ofd_packets/00070596 [11:52:58]Write 301 bytes [11:52:58]NVStorageSaveData done [11:52:58]OFDSenderStorePacket done [11:52:58]KKMCreateOFDPacket done [11:52:58]NVStorageSaveData kkm_last_timestamp [11:52:58]File name is /storage/kkm_last_timestamp [11:52:58]Write 4 bytes [11:52:58]NVStorageSaveData done [11:52:58]ExternCall_PrintAddStr [11:52:58]wPrintStart [11:52:58]Write to MH i2c: 01 00 00 31 00 31 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 [11:52:58]MH_I2C_Read... [11:52:58]OFD Sender: Processing packet 70596 [packets to send 18, broken 17] [11:52:58]ProducePacketName [11:52:58]name=ofd_packets/00070596 [11:52:58]OFD Sender: To server: pG, [11:52:58]CommunicateWithHost lk.salyk.kg:30040 [11:52:58]ConnectInit lk.salyk.kg [11:52:58]Read from MH i2c: 01 07 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:52:58]RasterBufferAndPrint [11:52:58]line Счет N : (1)2886369 [11:52:58]line ИНН: 02508201610067 [11:52:58]line Контрольно-Кассовый Чек [11:52:58]line ПРОДАЖА [11:52:58]line ТРК (МРК, ГНК) : 42 [11:52:58]line Товар: 2710124130 [11:52:58]line Аи-92-К-5 [11:52:58]line 2.990 * 66.90 [11:52:58]line = 200.03 [11:52:58]line НДС 12% НСП 1% [11:52:58]line > о реализуемом товаре [11:52:58]line ОКРУГЛЕНИЕ: -0.03 [11:52:58]line ИТОГО: 200.00 [11:52:58]line Внесено: 200.00 [11:52:58]line СДАЧА: 0.00 [11:52:58]line НСП 1% : 1.77 [11:52:58]line НДС 12% : 21.24 [11:52:58]line Наличными: 200.00 [11:52:58]line Безнал.: 0.00 [11:52:58]line Место: АЗС № 85 "Партнер Нефть" [11:52:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:52:58]line СНО: Общий режим [11:52:58]line Чек 112 23.10.2024 11:52 [11:52:58]line Смена: 196 ФФД: 1.0 [11:52:58]line ЗНМ: 0300000167 [11:52:58]line РНМ: 0000000000156251 [11:52:58]line Версия ККМ: v1.0 [11:52:58]line ФМ: 0000000000963346 [11:52:58]line ФД: 70596 [11:52:58]line ФПД: 18866737932399 [11:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70596&fm=18866737932399&tin=02508201610067®Number=0000000000156251&sum=20000 [11:52:58]written 0, free lines is 4095 [11:52:58]Connected sock=10 [11: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 12 51 07 01 05 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 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 70 00 00 00 F4 03 04 00 99 E3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 28 C1 36 68 6F 08 8D 69 B4 09 7C D2 DF [11:52: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 AF 25 47 00 C7 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 C4 13 01 00 F4 03 04 00 37 8D 18 67 B6 04 01 00 00 DA 05 E0 FA 7F 83 84 8C [11:52:59]CommunicateWithHost err = 0 [11:52:59]CheckOFDResponse [11:52:59]1017 (14) - 77093643461234 [11:52:59]1041 (16) - 0000000000963346 [11:52:59]1040 (4) - 70596 [11:52:59]1012 (4) - 23.10.2024 05:44 [11:52:59]1206 (1) - 0 [11:52:59]OFD Sender: Remove packet 70596 [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00070596 [11:52:59]NVStorageDeleteData [11:52:59]Write to MH i2c: 01 00 00 5C 00 5C [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 FE 0C 6D [11:52:59]RasterBufferAndPrint [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]written 0, free lines is 3347 [11:52:59]MH_Cut [11:52:59]Write to MH i2c: D1 01 00 63 00 01 35 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 01 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 01 00 63 00 00 34 [11:52:59]Write to MH i2c: 01 00 00 64 00 64 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]OFD Sender: No OFD packet to send [11:52:59]*** Cut start [11:52:59]*** Partial cut [11:52:59]*** CUTSNS_PIN = 1 [11:52:59]*** CUTSNS_PIN = 0 [11:53:00]*** Brake cut motor [11:53:00]Read from MH i2c: 01 *** Stop cut motor [11:53:00] [11:53:00]*** Cut end [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:53:00]process_action close_receipt done [11:53:00]requested_data is exist [11:53:00]produce_requested_data [11:53:00]requested_item fm.sn is exist - process it [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 11 00 00 [11:53:00]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 17 00 [11:53:00]MH_I2C_Read... [11:53:00]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 [11: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 [11:53:00]wFMCommunicate OK [11:53:00]requested_item fd.num is exist - process it [11:53:00]SAM_PROTO_GetFieldsCounters [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 13 00 00 [11:53:00]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 62 00 [11:53:00]MH_I2C_Read... [11:53:00]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 C4 13 01 00 0E 04 04 00 C4 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 E9 [11: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 C4 13 01 00 0E 04 04 00 C4 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 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetFieldsCounters done [11:53:00]requested_item shift.num is exist - process it [11:53:00]requested_item shift.opened is exist - process it [11:53:00]req_shift_opened [11:53:00]FM_GetShiftState [11:53:00]SAM_PROTO_GetShiftState [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 13 01 00 [11:53:00]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 71 [11:53:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetShiftState done [11:53:00]FM_GetShiftState done [11:53:00]req_shift_opened done [11:53:00]requested_item shift.open_date is exist - process it [11:53:00]req_shift_open_date [11:53:00]req_shift_open_date done [11:53:00]produce_requested_data done [11:53:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70596,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:53:00]process_action_free close_receipt [11:53:00]json_value_free [11:53:00]json_value_free done [11:53:00]process_json_proto returns [11:53:00]Send response to host [11:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70596,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:53:00]free response buf [11:53:00]execute_script done [11:53:00]execute_script returns [11:53:00]free content buf [11:53:00]Sock 9.Close socket [11:53:00]Sock 9.Thread stoped [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:02]accept exits with 7 [11:55:02]New connection [11:55:02]New thread 3066838372 created [11:55:02]Thread 3066981732 joined [11:55:02]Waiting for new connection... [11:55:02] Sock 7.Parse request [11:55:02]Sock 7.Check first char [11:55:02]Sock 7.First char is OK [11:55:02]request: POST /json_proto HTTP/1.0 [11:55:02]Method: POST [11:55:02]URL: /json_proto [11:55:02]Method is POST - this is cgi request [11:55:02]url: /json_proto [11:55:02]query_string will be loaded in cgi processing [11:55:02]execute_cgi json_proto POST (null) [11:55:02]execute_cgi path=json_proto method=POST [11:55:02]POST find Content-Length [11:55:02]Host: 172.17.50.3:8080 [11:55:02]Content-Length: 678 [11:55:02]Content-Type: application/json [11:55:02] [11:55:02]POST finish read [11:55:02]Found Content-Length = 678 [11:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886370", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:02]execute_script... [11: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)2886370", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:02]POST & json_proto [11:55:02]process_json_proto [11:55:02]json parsed OK: [11:55:02]protocol is kg_v1.0 [11:55:02]action value=close_receipt [11:55:02]process_action close_receipt [11:55:02]cmd_close_receipt [11:55:02]MH_GetDate [11:55:02]Write to MH i2c: F0 00 00 68 00 57 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: F0 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: F0 09 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: F0 09 00 68 00 00 17 E4 18 67 6B 98 1E 66 61 [11:55:02]GetLastDocTimeStamp 1729684377 [11:55:02]current date 1729684503 [11:55:02]FM_GetShiftState [11:55:02]SAM_PROTO_GetShiftState [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 13 01 00 [11:55:02]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0E 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 73 [11:55:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:55:02]wFMCommunicate OK [11:55:02]SAM_PROTO_GetShiftState done [11:55:02]FM_GetShiftState done [11:55:02]opened in 1729642435 [11:55:02]opened+sec_in_day 1729728835 [11:55:02]quantity*price = 25020 [11:55:02]sum+1 = 25022 [11:55:02]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 СНО: Общий режим Чек 113 23.10.2024 11:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70597 ФПД: 113898831915155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70597&fm=113898831915155&tin=02508201610067®Number=0000000000156251&sum=25000 [11:55:04]StoreToDocumentArchive [11:55:04]shift 196 fd 70597 [11:55:04]save to /storage/0196/doc_00070597 [11:55:04]save last doc name /storage/0196/doc_00070597 to /storage/kkm_last_doc_name [11:55:04]save OK [11:55:04]Clear old archive folders... [11:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:04]tlvbuf is 008B9BF0 [11:55:04]SAM_PROTO_ClearQueue [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 09 00 00 [11:55:04]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]SAM_PROTO_ClearQueue done [11:55:04]KKMCreateOFDPacket [11:55:04]OFDProtocolAddRootSTLVToBuf [11:55:04]FM_MakeSignedData [11:55:04]FM_MakeSignedData [11:55:04]SAM_PROTO_SignData [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 0D 01 02 [11:55:04]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]wFMCommunicate request_size=255 [11:55:04]MH_SAM_APDU [11:55: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 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 71 00 00 00 F4 03 04 00 17 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 67 [11:55:04]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 17 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 67 00 00 41 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]wFMCommunicate request_size=10 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 0D 02 02 05 97 23 6A A8 93 [11:55:04]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 97 23 6A A8 93 00 00 5C [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 0D 03 02 [11:55:04]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 0B 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 0B 00 7A 00 00 A3 30 75 A3 C5 E1 A6 74 90 00 A1 [11:55:04]RAPDU: A3 30 75 A3 C5 E1 A6 74 90 00 [11:55:04]wFMCommunicate OK [11:55:04]SAM_PROTO_SignData done [11:55:04]FM_MakeSignedData done [11:55:04]CreateOFDProtocolMessage [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 11 00 00 [11:55:04]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 17 00 [11:55:04]MH_I2C_Read... [11:55:04]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 [11: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 [11:55:04]wFMCommunicate OK [11:55:04]CreateOFDProtocolMessage done [11:55:04]OFDSenderStorePacket 70597 [11:55:04]StoreOFDPacket docnum=70597 [11: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 A2 42 07 01 8B 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 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 71 00 00 00 F4 03 04 00 17 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 67 97 23 6A A8 93 A3 30 75 A3 C5 E1 A6 74 [11:55:04]CheckFolder [11:55:04]dirname=/storage/ofd_packets [11:55:04]CheckFolder done [11:55:04]ProducePacketName [11:55:04]name=ofd_packets/00070597 [11:55:04]NVStorageSaveData ofd_packets/00070597 [11:55:04]File name is /storage/ofd_packets/00070597 [11:55:04]Write 301 bytes [11:55:04]NVStorageSaveData done [11:55:04]OFDSenderStorePacket done [11:55:04]KKMCreateOFDPacket done [11:55:04]NVStorageSaveData kkm_last_timestamp [11:55:04]File name is /storage/kkm_last_timestamp [11:55:04]Write 4 bytes [11:55:04]NVStorageSaveData done [11:55:04]ExternCall_PrintAddStr [11:55:04]wPrintStart [11:55:04]Write to MH i2c: 01 00 00 7C 00 7C [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 07 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:55:04]RasterBufferAndPrint [11:55:04]line Счет N : (1)2886370 [11:55:04]line ИНН: 02508201610067 [11:55:04]line Контрольно-Кассовый Чек [11:55:04]line ПРОДАЖА [11:55:04]line ТРК (МРК, ГНК) : 32 [11:55:04]line Товар: 2710124130 [11:55:04]line Аи-92-К-5 [11:55:04]line 3.740 * 66.90 [11:55:04]line = 250.21 [11:55:04]line НДС 12% НСП 1% [11:55:04]line > о реализуемом товаре [11:55:04]line ОКРУГЛЕНИЕ: -0.21 [11:55:04]line ИТОГО: 250.00 [11:55:04]line Внесено: 250.00 [11:55:04]line СДАЧА: 0.00 [11:55:04]line НСП 1% : 2.21 [11:55:04]line НДС 12% : 26.57 [11:55:04]line Наличными: 250.00 [11:55:04]line Безнал.: 0.00 [11:55:04]line Место: АЗС № 85 "Партнер Нефть" [11:55:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:55:04]line СНО: Общий режим [11:55:04]line Чек 113 23.10.2024 11:55 [11:55:04]line Смена: 196 ФФД: 1.0 [11:55:04]line ЗНМ: 0300000167 [11:55:04]line РНМ: 0000000000156251 [11:55:04]line Версия ККМ: v1.0 [11:55:04]line ФМ: 0000000000963346 [11:55:04]line ФД: 70597 [11:55:04]line ФПД: 113898831915155 [11:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70597&fm=113898831915155&tin=02508201610067®Number=0000000000156251&sum=25000 [11:55:04]OFD Sender: Processing packet 70597 [packets to send 18, broken 17] [11:55:04]ProducePacketName [11:55:04]name=ofd_packets/00070597 [11:55:04]OFD Sender: To server: pG, [11:55:04]CommunicateWithHost lk.salyk.kg:30040 [11:55:04]ConnectInit lk.salyk.kg [11:55:04]written 0, free lines is 4095 [11:55:05]Connected sock=10 [11:55: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 A2 42 07 01 8B 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 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 71 00 00 00 F4 03 04 00 17 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 67 97 23 6A A8 93 A3 30 75 A3 C5 E1 A6 74 [11:55: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 39 AD 47 00 06 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 C5 13 01 00 F4 03 04 00 B5 8D 18 67 B6 04 01 00 00 56 27 04 7E 2D C5 EB F4 [11:55:05]CommunicateWithHost err = 0 [11:55:05]CheckOFDResponse [11:55:05]1017 (14) - 77093643461234 [11:55:05]1041 (16) - 0000000000963346 [11:55:05]1040 (4) - 70597 [11:55:05]1012 (4) - 23.10.2024 05:46 [11:55:05]1206 (1) - 0 [11:55:05]OFD Sender: Remove packet 70597 [11:55:05]ProducePacketName [11:55:05]name=ofd_packets/00070597 [11:55:05]NVStorageDeleteData [11:55:05]Write to MH i2c: 01 00 00 A7 00 A7 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F9 0C B3 [11:55:05]RasterBufferAndPrint [11:55:05]line [11:55:05]line [11:55:05]line [11:55:05]line [11:55:05]line [11:55:05]written 0, free lines is 3328 [11:55:05]MH_Cut [11:55:05]Write to MH i2c: D1 01 00 AE 00 01 80 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: D1 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: D1 01 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: D1 01 00 AE 00 00 7F [11:55:05]Write to MH i2c: 01 00 00 AF 00 AF [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]OFD Sender: No OFD packet to send [11:55:06]*** Cut start [11:55:06]*** Partial cut [11:55:06]*** CUTSNS_PIN = 1 [11:55:06]*** CUTSNS_PIN = 0 [11:55:06]*** Brake cut motor [11:55:06]Read from MH i2c: 01 [11:55:06]MH_I2C_Read... [11:55:06]*** Stop cut motor [11:55:06]*** Cut end [11:55:06]Read from MH i2c: 01 07 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [11:55:06]process_action close_receipt done [11:55:06]requested_data is exist [11:55:06]produce_requested_data [11:55:06]requested_item fm.sn is exist - process it [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 11 00 00 [11:55:06]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 17 00 [11:55:06]MH_I2C_Read... [11:55:06]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 [11: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 [11:55:06]wFMCommunicate OK [11:55:06]requested_item fd.num is exist - process it [11:55:06]SAM_PROTO_GetFieldsCounters [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 13 00 00 [11:55:06]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 62 00 [11:55:06]MH_I2C_Read... [11:55:06]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 C5 13 01 00 0E 04 04 00 C4 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 38 [11: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 C5 13 01 00 0E 04 04 00 C4 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 [11:55:06]wFMCommunicate OK [11:55:06]SAM_PROTO_GetFieldsCounters done [11:55:06]requested_item shift.num is exist - process it [11:55:06]requested_item shift.opened is exist - process it [11:55:06]req_shift_opened [11:55:06]FM_GetShiftState [11:55:06]SAM_PROTO_GetShiftState [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 13 01 00 [11:55:06]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BC [11:55:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_GetShiftState done [11:55:07]FM_GetShiftState done [11:55:07]req_shift_opened done [11:55:07]requested_item shift.open_date is exist - process it [11:55:07]req_shift_open_date [11:55:07]req_shift_open_date done [11:55:07]produce_requested_data done [11:55:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70597,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:55:07]process_action_free close_receipt [11:55:07]json_value_free [11:55:07]json_value_free done [11:55:07]process_json_proto returns [11:55:07]Send response to host [11:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70597,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:55:07]free response buf [11:55:07]execute_script done [11:55:07]execute_script returns [11:55:07]free content buf [11:55:07]Sock 7.Close socket [11:55:07]Sock 7.Thread stoped [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:52]accept exits with 9 [11:55:52]New connection [11:55:52]New thread 3066981732 created [11:55:52]Thread 3066838372 joined [11:55:52]Waiting for new connection... [11:55:52] Sock 9.Parse request [11:55:52]Sock 9.Check first char [11:55:52]Sock 9.First char is OK [11:55:52]request: POST /json_proto HTTP/1.0 [11:55:52]Method: POST [11:55:52]URL: /json_proto [11:55:52]Method is POST - this is cgi request [11:55:52]url: /json_proto [11:55:52]query_string will be loaded in cgi processing [11:55:52]execute_cgi json_proto POST (null) [11:55:52]execute_cgi path=json_proto method=POST [11:55:52]POST find Content-Length [11:55:52]Host: 172.17.50.3:8080 [11:55:52]Content-Length: 683 [11:55:52]Content-Type: application/json [11:55:52] [11:55:52]POST finish read [11:55:52]Found Content-Length = 683 [11:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886371", "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" ] } } [11:55:52]execute_script... [11:55:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886371", "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" ] } } [11:55:52]POST & json_proto [11:55:52]process_json_proto [11:55:52]json parsed OK: [11:55:52]protocol is kg_v1.0 [11:55:52]action value=close_receipt [11:55:52]process_action close_receipt [11:55:52]cmd_close_receipt [11:55:52]MH_GetDate [11:55:52]Write to MH i2c: F0 00 00 B3 00 A2 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: F0 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: F0 09 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: F0 09 00 B3 00 00 49 E4 18 67 6B 98 1E 66 DE [11:55:52]GetLastDocTimeStamp 1729684503 [11:55:52]current date 1729684553 [11:55:52]FM_GetShiftState [11:55:52]SAM_PROTO_GetShiftState [11:55:52]wFMCommunicate request_size=4 [11:55:52]MH_SAM_APDU [11:55:52]CAPDU: 80 13 01 00 [11:55:52]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:52]Read from MH i2c: E2 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 0E 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BE [11:55:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:55:52]wFMCommunicate OK [11:55:52]SAM_PROTO_GetShiftState done [11:55:52]FM_GetShiftState done [11:55:52]opened in 1729642435 [11:55:52]opened+sec_in_day 1729728835 [11:55:52]quantity*price = 100015 [11:55:52]sum+1 = 100017 [11:55:52]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 СНО: Общий режим Чек 114 23.10.2024 11:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70598 ФПД: 208030939301626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70598&fm=208030939301626&tin=02508201610067®Number=0000000000156251&sum=100000 [11:55:53]StoreToDocumentArchive [11:55:53]shift 196 fd 70598 [11:55:53]save to /storage/0196/doc_00070598 [11:55:53]save last doc name /storage/0196/doc_00070598 to /storage/kkm_last_doc_name [11:55:53]save OK [11:55:53]Clear old archive folders... [11:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:53]tlvbuf is 008BA7D0 [11:55:53]SAM_PROTO_ClearQueue [11:55:53]wFMCommunicate request_size=4 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 09 00 00 [11:55:53]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:53]Read from MH i2c: E2 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 03 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:55:53]RAPDU: 90 00 [11:55:53]wFMCommunicate OK [11:55:53]SAM_PROTO_ClearQueue done [11:55:53]KKMCreateOFDPacket [11:55:53]OFDProtocolAddRootSTLVToBuf [11:55:53]FM_MakeSignedData [11:55:53]FM_MakeSignedData [11:55:53]SAM_PROTO_SignData [11:55:53]wFMCommunicate request_size=4 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 0D 01 02 [11:55:53]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:53]Read from MH i2c: E2 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 03 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:55:53]RAPDU: 90 00 [11:55:53]wFMCommunicate OK [11:55:53]wFMCommunicate request_size=255 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 49 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BD [11:55:53]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 72 00 00 00 F4 03 04 00 49 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BD 00 00 37 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 03 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:55:54]RAPDU: 90 00 [11:55:54]wFMCommunicate OK [11:55:54]wFMCommunicate request_size=10 [11:55:54]MH_SAM_APDU [11:55:54]CAPDU: 80 0D 02 02 05 33 FA 3D 46 FA [11:55:54]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 33 FA 3D 46 FA 00 00 F2 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 03 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:55:54]RAPDU: 90 00 [11:55:54]wFMCommunicate OK [11:55:54]wFMCommunicate request_size=4 [11:55:54]MH_SAM_APDU [11:55:54]CAPDU: 80 0D 03 02 [11:55:54]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0B 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0B 00 C5 00 00 0C FE E3 89 A1 7C F4 96 90 00 5E [11:55:54]RAPDU: 0C FE E3 89 A1 7C F4 96 90 00 [11:55:54]wFMCommunicate OK [11:55:54]SAM_PROTO_SignData done [11:55:54]FM_MakeSignedData done [11:55:54]CreateOFDProtocolMessage [11:55:54]wFMCommunicate request_size=4 [11:55:54]MH_SAM_APDU [11:55:54]CAPDU: 80 11 00 00 [11:55:54]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 17 00 [11:55:54]MH_I2C_Read... [11:55:54]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 [11:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:54]wFMCommunicate OK [11:55:54]CreateOFDProtocolMessage done [11:55:54]OFDSenderStorePacket 70598 [11:55:54]StoreOFDPacket docnum=70598 [11:55: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 FC 75 07 01 92 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 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 72 00 00 00 F4 03 04 00 49 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BD 33 FA 3D 46 FA 0C FE E3 89 A1 7C F4 96 [11:55:54]CheckFolder [11:55:54]dirname=/storage/ofd_packets [11:55:54]CheckFolder done [11:55:54]ProducePacketName [11:55:54]name=ofd_packets/00070598 [11:55:54]NVStorageSaveData ofd_packets/00070598 [11:55:54]File name is /storage/ofd_packets/00070598 [11:55:54]Write 301 bytes [11:55:54]NVStorageSaveData done [11:55:54]OFDSenderStorePacket done [11:55:54]KKMCreateOFDPacket done [11:55:54]NVStorageSaveData kkm_last_timestamp [11:55:54]File name is /storage/kkm_last_timestamp [11:55:54]Write 4 bytes [11:55:54]NVStorageSaveData done [11:55:54]ExternCall_PrintAddStr [11:55:54]wPrintStart [11:55:54]Write to MH i2c: 01 00 00 C7 00 C7 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: 01 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: 01 07 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [11:55:54]RasterBufferAndPrint [11:55:54]line Счет N : (1)2886371 [11:55:54]line ИНН: 02508201610067 [11:55:54]line Контрольно-Кассовый Чек [11:55:54]line ПРОДАЖА [11:55:54]line ТРК (МРК, ГНК) : 22 [11:55:54]line Товар: 2710124130 [11:55:54]line Аи-92-К-5 [11:55:54]line 14.950 * 66.90 [11:55:54]line = 1000.16 [11:55:54]line НДС 12% НСП 1% [11:55:54]line > о реализуемом товаре [11:55:54]line ОКРУГЛЕНИЕ: -0.16 [11:55:54]line ИТОГО: 1000.00 [11:55:54]line Внесено: 1000.00 [11:55:54]line СДАЧА: 0.00 [11:55:54]line НСП 1% : 8.85 [11:55:54]line НДС 12% : 106.21 [11:55:54]line Наличными: 1000.00 [11:55:54]line Безнал.: 0.00 [11:55:54]line Место: АЗС № 85 "Партнер Нефть" [11:55:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:55:54]line СНО: Общий режим [11:55:54]line Чек 114 23.10.2024 11:55 [11:55:54]line Смена: 196 ФФД: 1.0 [11:55:54]line ЗНМ: 0300000167 [11:55:54]line РНМ: 0000000000156251 [11:55:54]line Версия ККМ: v1.0 [11:55:54]line ФМ: 0000000000963346 [11:55:54]line ФД: 70598 [11:55:54]line ФПД: 208030939301626 [11:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70598&fm=208030939301626&tin=02508201610067®Number=0000000000156251&sum=100000 [11:55:54]OFD Sender: Processing packet 70598 [packets to send 18, broken 17] [11:55:54]ProducePacketName [11:55:54]name=ofd_packets/00070598 [11:55:54]OFD Sender: To server: pG, [11:55:54]CommunicateWithHost lk.salyk.kg:30040 [11:55:54]ConnectInit lk.salyk.kg [11:55:54]written 0, free lines is 4095 [11:55:54]Connected sock=10 [11:55: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 FC 75 07 01 92 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 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 72 00 00 00 F4 03 04 00 49 E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BD 33 FA 3D 46 FA 0C FE E3 89 A1 7C F4 96 [11:55: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 A7 C5 47 00 02 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 C6 13 01 00 F4 03 04 00 E7 8D 18 67 B6 04 01 00 00 12 00 7B 8C 2D BE 8B 9D [11:55:55]CommunicateWithHost err = 0 [11:55:55]CheckOFDResponse [11:55:55]1017 (14) - 77093643461234 [11:55:55]1041 (16) - 0000000000963346 [11:55:55]1040 (4) - 70598 [11:55:55]1012 (4) - 23.10.2024 05:47 [11:55:55]1206 (1) - 0 [11:55:55]OFD Sender: Remove packet 70598 [11:55:55]ProducePacketName [11:55:55]name=ofd_packets/00070598 [11:55:55]NVStorageDeleteData [11:55:55]Write to MH i2c: 01 00 00 F2 00 F2 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 07 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FC 0C 01 [11:55:55]RasterBufferAndPrint [11:55:55]line [11:55:55]line [11:55:55]line [11:55:55]line [11:55:55]line [11:55:55]written 0, free lines is 3331 [11:55:55]MH_Cut [11:55:55]Write to MH i2c: D1 01 00 F9 00 01 CB [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: D1 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: D1 01 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: D1 01 00 F9 00 00 CA [11:55:55]Write to MH i2c: 01 00 00 FA 00 FA [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]OFD Sender: No OFD packet to send [11:55:55]*** Cut start [11:55:55]*** Partial cut [11:55:55]*** CUTSNS_PIN = 1 [11:55:55]*** CUTSNS_PIN = 0 [11:55:56]*** Brake cut motor [11:55:56]Read from MH i2c: 01 [11:55:56]MH_I2C_Read... [11:55:56]*** Stop cut motor [11:55:56]*** Cut end [11:55:56]Read from MH i2c: 01 07 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [11:55:56]process_action close_receipt done [11:55:56]requested_data is exist [11:55:56]produce_requested_data [11:55:56]requested_item fm.sn is exist - process it [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 11 00 00 [11:55:56]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [11:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:55:56]wFMCommunicate OK [11:55:56]requested_item fd.num is exist - process it [11:55:56]SAM_PROTO_GetFieldsCounters [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 13 00 00 [11:55:56]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 62 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 87 [11:55: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 C6 13 01 00 0E 04 04 00 C4 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 [11:55:56]wFMCommunicate OK [11:55:56]SAM_PROTO_GetFieldsCounters done [11:55:56]requested_item shift.num is exist - process it [11:55:56]requested_item shift.opened is exist - process it [11:55:56]req_shift_opened [11:55:56]FM_GetShiftState [11:55:56]SAM_PROTO_GetShiftState [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 13 01 00 [11:55:56]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0E 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 07 [11:55:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:55:56]wFMCommunicate OK [11:55:56]SAM_PROTO_GetShiftState done [11:55:56]FM_GetShiftState done [11:55:56]req_shift_opened done [11:55:56]requested_item shift.open_date is exist - process it [11:55:56]req_shift_open_date [11:55:56]req_shift_open_date done [11:55:56]produce_requested_data done [11:55:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70598,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:55:56]process_action_free close_receipt [11:55:56]json_value_free [11:55:56]json_value_free done [11:55:56]process_json_proto returns [11:55:56]Send response to host [11:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70598,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:55:56]free response buf [11:55:56]execute_script done [11:55:56]execute_script returns [11:55:56]free content buf [11:55:56]Sock 9.Close socket [11:55:56]Sock 9.Thread stoped [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:01]accept exits with 7 [11:57:01]New connection [11:57:01]New thread 3066838372 created [11:57:01]Thread 3066981732 joined [11:57:01]Waiting for new connection... [11:57:01] Sock 7.Parse request [11:57:01]Sock 7.Check first char [11:57:01]Sock 7.First char is OK [11:57:01]request: POST /json_proto HTTP/1.0 [11:57:01]Method: POST [11:57:01]URL: /json_proto [11:57:01]Method is POST - this is cgi request [11:57:01]url: /json_proto [11:57:01]query_string will be loaded in cgi processing [11:57:01]execute_cgi json_proto POST (null) [11:57:01]execute_cgi path=json_proto method=POST [11:57:01]POST find Content-Length [11:57:01]Host: 172.17.50.3:8080 [11:57:01]Content-Length: 675 [11:57:01]Content-Type: application/json [11:57:01] [11:57:01]POST finish read [11:57:01]Found Content-Length = 675 [11:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886372", "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" ] } } [11:57:01]execute_script... [11:57: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)2886372", "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" ] } } [11:57:01]POST & json_proto [11:57:01]process_json_proto [11:57:01]json parsed OK: [11:57:01]protocol is kg_v1.0 [11:57:01]action value=close_receipt [11:57:01]process_action close_receipt [11:57:01]cmd_close_receipt [11:57:01]MH_GetDate [11:57:01]Write to MH i2c: F0 00 00 FE 00 ED [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 09 00 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 09 00 FE 00 00 8E E4 18 67 6B 98 1E 66 6E [11:57:01]GetLastDocTimeStamp 1729684553 [11:57:01]current date 1729684622 [11:57:01]FM_GetShiftState [11:57:01]SAM_PROTO_GetShiftState [11:57:01]wFMCommunicate request_size=4 [11:57:01]MH_SAM_APDU [11:57:01]CAPDU: 80 13 01 00 [11:57:01]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:02]Read from MH i2c: E2 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 0E 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 09 [11:57:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:57:02]wFMCommunicate OK [11:57:02]SAM_PROTO_GetShiftState done [11:57:02]FM_GetShiftState done [11:57:02]opened in 1729642435 [11:57:02]opened+sec_in_day 1729728835 [11:57:02]quantity*price = 50063 [11:57:02]sum+1 = 50064 [11:57:02]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 СНО: Общий режим Чек 115 23.10.2024 11:57 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70599 ФПД: 88169934487686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115702&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70599&fm=88169934487686&tin=02508201610067®Number=0000000000156251&sum=50000 [11:57:03]StoreToDocumentArchive [11:57:03]shift 196 fd 70599 [11:57:03]save to /storage/0196/doc_00070599 [11:57:03]save last doc name /storage/0196/doc_00070599 to /storage/kkm_last_doc_name [11:57:03]save OK [11:57:03]Clear old archive folders... [11:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:03]tlvbuf is B6EAF240 [11:57:03]SAM_PROTO_ClearQueue [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 09 00 00 [11:57:03]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_ClearQueue done [11:57:03]KKMCreateOFDPacket [11:57:03]OFDProtocolAddRootSTLVToBuf [11:57:03]FM_MakeSignedData [11:57:03]FM_MakeSignedData [11:57:03]SAM_PROTO_SignData [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 01 02 [11:57:03]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=255 [11:57:03]MH_SAM_APDU [11:57: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 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 73 00 00 00 F4 03 04 00 8E E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 50 30 A9 A0 [11:57:03]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 73 00 00 00 F4 03 04 00 8E E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 50 30 A9 A0 00 00 5A [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=7 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 02 02 02 00 86 [11:57:03]Write to MH i2c: E2 0A 00 0F 01 80 0D 02 02 02 00 00 86 00 00 14 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 03 02 [11:57:03]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0B 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0B 00 10 01 00 74 16 FF 14 10 F2 03 73 90 00 A2 [11:57:03]RAPDU: 74 16 FF 14 10 F2 03 73 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_SignData done [11:57:03]FM_MakeSignedData done [11:57:03]CreateOFDProtocolMessage [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 11 00 00 [11:57:03]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 17 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 17 00 11 01 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:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:57:03]wFMCommunicate OK [11:57:03]CreateOFDProtocolMessage done [11:57:03]OFDSenderStorePacket 70599 [11:57:03]StoreOFDPacket docnum=70599 [11:57: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 E9 33 04 01 D2 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 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 73 00 00 00 F4 03 04 00 8E E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 50 30 A9 A0 00 86 74 16 FF 14 10 F2 03 73 [11:57:03]CheckFolder [11:57:03]dirname=/storage/ofd_packets [11:57:03]CheckFolder done [11:57:03]ProducePacketName [11:57:03]name=ofd_packets/00070599 [11:57:03]NVStorageSaveData ofd_packets/00070599 [11:57:03]File name is /storage/ofd_packets/00070599 [11:57:03]Write 298 bytes [11:57:03]NVStorageSaveData done [11:57:03]OFDSenderStorePacket done [11:57:03]KKMCreateOFDPacket done [11:57:03]NVStorageSaveData kkm_last_timestamp [11:57:03]File name is /storage/kkm_last_timestamp [11:57:03]Write 4 bytes [11:57:03]NVStorageSaveData done [11:57:03]ExternCall_PrintAddStr [11:57:03]wPrintStart [11:57:03]Write to MH i2c: 01 00 00 12 01 13 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 07 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [11:57:03]RasterBufferAndPrint [11:57:03]line Счет N : (1)2886372 [11:57:03]line ИНН: 02508201610067 [11:57:03]line Контрольно-Кассовый Чек [11:57:03]line ПРОДАЖА [11:57:03]line ТРК (МРК, ГНК) : 61 [11:57:03]line Товар: 2710194210 [11:57:03]line ДТ-К-5 [11:57:03]line 6.570 * 76.20 [11:57:03]line = 500.63 [11:57:03]line НДС 12% НСП 1% [11:57:03]line > о реализуемом товаре [11:57:03]line ОКРУГЛЕНИЕ: -0.63 [11:57:03]line ИТОГО: 500.00 [11:57:03]line Внесено: 500.00 [11:57:03]line СДАЧА: 0.00 [11:57:03]line НСП 1% : 4.43 [11:57:03]line НДС 12% : 53.16 [11:57:03]line Наличными: 500.00 [11:57:03]line Безнал.: 0.00 [11:57:03]line Место: АЗС № 85 "Партнер Нефть" [11:57:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:57:03]line СНО: Общий режим [11:57:03]line Чек 115 23.10.2024 11:57 [11:57:03]line Смена: 196 ФФД: 1.0 [11:57:03]line ЗНМ: 0300000167 [11:57:03]line РНМ: 0000000000156251 [11:57:03]line Версия ККМ: v1.0 [11:57:03]line ФМ: 0000000000963346 [11:57:03]line ФД: 70599 [11:57:03]line ФПД: 88169934487686 [11:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115702&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70599&fm=88169934487686&tin=02508201610067®Number=0000000000156251&sum=50000 [11:57:03]OFD Sender: Processing packet 70599 [packets to send 18, broken 17] [11:57:03]ProducePacketName [11:57:03]name=ofd_packets/00070599 [11:57:03]OFD Sender: To server: pG, [11:57:03]CommunicateWithHost lk.salyk.kg:30040 [11:57:03]ConnectInit lk.salyk.kg [11:57:03]written 0, free lines is 4095 [11:57:04]Connected sock=10 [11:57: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 E9 33 04 01 D2 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 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 73 00 00 00 F4 03 04 00 8E E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 50 30 A9 A0 00 86 74 16 FF 14 10 F2 03 73 [11:57: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 09 A8 47 00 44 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 C7 13 01 00 F4 03 04 00 2C 8E 18 67 B6 04 01 00 00 C1 47 C2 2D 1C 1E A6 81 [11:57:04]CommunicateWithHost err = 0 [11:57:04]CheckOFDResponse [11:57:04]1017 (14) - 77093643461234 [11:57:04]1041 (16) - 0000000000963346 [11:57:04]1040 (4) - 70599 [11:57:04]1012 (4) - 23.10.2024 05:48 [11:57:04]1206 (1) - 0 [11:57:04]OFD Sender: Remove packet 70599 [11:57:04]ProducePacketName [11:57:04]name=ofd_packets/00070599 [11:57:04]NVStorageDeleteData [11:57:04]Write to MH i2c: 01 00 00 3D 01 3E [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FB 0C 4C [11:57:04]RasterBufferAndPrint [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]written 0, free lines is 3329 [11:57:04]MH_Cut [11:57:04]Write to MH i2c: D1 01 00 44 01 01 17 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 01 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 01 00 44 01 00 16 [11:57:04]Write to MH i2c: 01 00 00 45 01 46 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]OFD Sender: No OFD packet to send [11:57:05]*** Cut start [11:57:05]*** Partial cut [11:57:05]*** CUTSNS_PIN = 1 [11:57:05]*** CUTSNS_PIN = 0 [11:57:05]*** Brake cut motor [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]*** Stop cut motor [11:57:05]*** Cut end [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [11:57:05]process_action close_receipt done [11:57:05]requested_data is exist [11:57:05]produce_requested_data [11:57:05]requested_item fm.sn is exist - process it [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 11 00 00 [11:57:05]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [11:57: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:57:05]wFMCommunicate OK [11:57:05]requested_item fd.num is exist - process it [11:57:05]SAM_PROTO_GetFieldsCounters [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 13 00 00 [11:57:05]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 62 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 D7 [11:57: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 C7 13 01 00 0E 04 04 00 C4 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 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_GetFieldsCounters done [11:57:05]requested_item shift.num is exist - process it [11:57:05]requested_item shift.opened is exist - process it [11:57:05]req_shift_opened [11:57:05]FM_GetShiftState [11:57:05]SAM_PROTO_GetShiftState [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 13 01 00 [11:57:05]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0E 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 53 [11:57:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_GetShiftState done [11:57:05]FM_GetShiftState done [11:57:05]req_shift_opened done [11:57:05]requested_item shift.open_date is exist - process it [11:57:05]req_shift_open_date [11:57:05]req_shift_open_date done [11:57:05]produce_requested_data done [11:57:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70599,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:57:05]process_action_free close_receipt [11:57:05]json_value_free [11:57:05]json_value_free done [11:57:05]process_json_proto returns [11:57:05]Send response to host [11:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70599,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:57:05]free response buf [11:57:05]execute_script done [11:57:05]execute_script returns [11:57:05]free content buf [11:57:05]Sock 7.Close socket [11:57:05]Sock 7.Thread stoped [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:53]accept exits with 9 [11:58:53]New connection [11:58:53]New thread 3066981732 created [11:58:53]Thread 3066838372 joined [11:58:53]Waiting for new connection... [11:58:53] Sock 9.Parse request [11:58:53]Sock 9.Check first char [11:58:53]Sock 9.First char is OK [11:58:53]request: POST /json_proto HTTP/1.0 [11:58:53]Method: POST [11:58:53]URL: /json_proto [11:58:53]Method is POST - this is cgi request [11:58:53]url: /json_proto [11:58:53]query_string will be loaded in cgi processing [11:58:53]execute_cgi json_proto POST (null) [11:58:53]execute_cgi path=json_proto method=POST [11:58:53]POST find Content-Length [11:58:53]Host: 172.17.50.3:8080 [11:58:53]Content-Length: 683 [11:58:53]Content-Type: application/json [11:58:53] [11:58:53]POST finish read [11:58:53]Found Content-Length = 683 [11:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886373", "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" ] } } [11:58:53]execute_script... [11:58: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)2886373", "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" ] } } [11:58:53]POST & json_proto [11:58:53]process_json_proto [11:58:53]json parsed OK: [11:58:53]protocol is kg_v1.0 [11:58:53]action value=close_receipt [11:58:53]process_action close_receipt [11:58:53]cmd_close_receipt [11:58:53]MH_GetDate [11:58:53]Write to MH i2c: F0 00 00 49 01 39 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 09 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: F0 09 00 49 01 00 FE E4 18 67 6B 98 1E 66 2A [11:58:53]GetLastDocTimeStamp 1729684622 [11:58:53]current date 1729684734 [11:58:53]FM_GetShiftState [11:58:53]SAM_PROTO_GetShiftState [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 13 01 00 [11:58:53]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0E 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 55 [11:58:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:58:53]wFMCommunicate OK [11:58:53]SAM_PROTO_GetShiftState done [11:58:53]FM_GetShiftState done [11:58:53]opened in 1729642435 [11:58:53]opened+sec_in_day 1729728835 [11:58:53]quantity*price = 100021 [11:58:53]sum+1 = 100023 [11:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 116 23.10.2024 11:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70600 ФПД: 213198979820475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70600&fm=213198979820475&tin=02508201610067®Number=0000000000156251&sum=100000 [11:58:54]StoreToDocumentArchive [11:58:54]shift 196 fd 70600 [11:58:54]save to /storage/0196/doc_00070600 [11:58:54]save last doc name /storage/0196/doc_00070600 to /storage/kkm_last_doc_name [11:58:54]save OK [11:58:54]Clear old archive folders... [11:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:54]tlvbuf is B6F5F960 [11:58:54]SAM_PROTO_ClearQueue [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 09 00 00 [11:58:54]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:58:54]RAPDU: 90 00 [11:58:54]wFMCommunicate OK [11:58:54]SAM_PROTO_ClearQueue done [11:58:54]KKMCreateOFDPacket [11:58:54]OFDProtocolAddRootSTLVToBuf [11:58:54]FM_MakeSignedData [11:58:54]FM_MakeSignedData [11:58:54]SAM_PROTO_SignData [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 0D 01 02 [11:58:54]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [11:58:54]RAPDU: 90 00 [11:58:54]wFMCommunicate OK [11:58:54]wFMCommunicate request_size=255 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FE E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C1 [11:58:54]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 F4 03 04 00 FE E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C1 00 00 AE [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:58:54]RAPDU: 90 00 [11:58:54]wFMCommunicate OK [11:58:54]wFMCommunicate request_size=10 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 0D 02 02 05 E7 41 75 6B BB [11:58:54]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 E7 41 75 6B BB 00 00 A2 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]OFD Sender: No OFD packet to send [11:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [11:58:54]RAPDU: 90 00 [11:58:54]wFMCommunicate OK [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 0D 03 02 [11:58:54]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 0B 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 0B 00 5B 01 00 8A 44 55 E6 5D 8A D7 CF 90 00 6E [11:58:54]RAPDU: 8A 44 55 E6 5D 8A D7 CF 90 00 [11:58:54]wFMCommunicate OK [11:58:54]SAM_PROTO_SignData done [11:58:54]FM_MakeSignedData done [11:58:54]CreateOFDProtocolMessage [11:58:54]wFMCommunicate request_size=4 [11:58:54]MH_SAM_APDU [11:58:54]CAPDU: 80 11 00 00 [11:58:54]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:54]Read from MH i2c: E2 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 17 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [11:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:58:54]wFMCommunicate OK [11:58:54]CreateOFDProtocolMessage done [11:58:54]OFDSenderStorePacket 70600 [11:58:54]StoreOFDPacket docnum=70600 [11:58: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 D1 4A 07 01 9D 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 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 74 00 00 00 F4 03 04 00 FE E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C1 E7 41 75 6B BB 8A 44 55 E6 5D 8A D7 CF [11:58:54]CheckFolder [11:58:54]dirname=/storage/ofd_packets [11:58:54]CheckFolder done [11:58:54]ProducePacketName [11:58:54]name=ofd_packets/00070600 [11:58:54]NVStorageSaveData ofd_packets/00070600 [11:58:54]File name is /storage/ofd_packets/00070600 [11:58:54]Write 301 bytes [11:58:54]NVStorageSaveData done [11:58:54]OFDSenderStorePacket done [11:58:54]KKMCreateOFDPacket done [11:58:54]NVStorageSaveData kkm_last_timestamp [11:58:54]File name is /storage/kkm_last_timestamp [11:58:54]Write 4 bytes [11:58:54]NVStorageSaveData done [11:58:54]ExternCall_PrintAddStr [11:58:54]wPrintStart [11:58:54]Write to MH i2c: 01 00 00 5D 01 5E [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [11:58:54]RasterBufferAndPrint [11:58:54]line Счет N : (1)2886373 [11:58:54]line ИНН: 02508201610067 [11:58:54]line Контрольно-Кассовый Чек [11:58:54]line ПРОДАЖА [11:58:54]line ТРК (МРК, ГНК) : 33 [11:58:54]line Товар: 2710124500 [11:58:54]line Аи-95-К-5 [11:58:54]line 13.480 * 74.20 [11:58:54]line = 1000.22 [11:58:54]line НДС 12% НСП 1% [11:58:54]line > о реализуемом товаре [11:58:54]line ОКРУГЛЕНИЕ: -0.22 [11:58:54]line ИТОГО: 1000.00 [11:58:54]line Внесено: 1000.00 [11:58:54]line СДАЧА: 0.00 [11:58:54]line НСП 1% : 8.85 [11:58:54]line НДС 12% : 106.22 [11:58:54]line Наличными: 1000.00 [11:58:54]line Безнал.: 0.00 [11:58:54]line Место: АЗС № 85 "Партнер Нефть" [11:58:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:58:54]line СНО: Общий режим [11:58:54]line Чек 116 23.10.2024 11:58 [11:58:54]line Смена: 196 ФФД: 1.0 [11:58:54]line ЗНМ: 0300000167 [11:58:54]line РНМ: 0000000000156251 [11:58:55]line Версия ККМ: v1.0 [11:58:55]line ФМ: 0000000000963346 [11:58:55]line ФД: 70600 [11:58:55]line ФПД: 213198979820475 [11:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70600&fm=213198979820475&tin=02508201610067®Number=0000000000156251&sum=100000 [11:58:55]OFD Sender: Processing packet 70600 [packets to send 18, broken 17] [11:58:55]ProducePacketName [11:58:55]name=ofd_packets/00070600 [11:58:55]OFD Sender: To server: pG, [11:58:55]CommunicateWithHost lk.salyk.kg:30040 [11:58:55]ConnectInit lk.salyk.kg [11:58:55]written 0, free lines is 4095 [11:58:55]Connected sock=10 [11:58: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 D1 4A 07 01 9D 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 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 74 00 00 00 F4 03 04 00 FE E4 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C1 E7 41 75 6B BB 8A 44 55 E6 5D 8A D7 CF [11:58:55]Write to MH i2c: 01 00 00 88 01 89 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 F4 0C 90 [11:58:55]RasterBufferAndPrint [11:58:55]line [11:58:55]line [11:58:55]line [11:58:55]line [11:58:55]line [11:58:55]written 0, free lines is 3322 [11:58:55]MH_Cut [11:58:55]Write to MH i2c: D1 01 00 8F 01 01 62 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: D1 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: D1 01 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: D1 01 00 8F 01 00 61 [11:58:55]Write to MH i2c: 01 00 00 90 01 91 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58: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 70 84 47 00 45 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 C8 13 01 00 F4 03 04 00 9C 8E 18 67 B6 04 01 00 00 C0 15 4A 99 31 A9 AE 78 [11:58:55]CommunicateWithHost err = 0 [11:58:55]CheckOFDResponse [11:58:55]1017 (14) - 77093643461234 [11:58:55]1041 (16) - 0000000000963346 [11:58:55]1040 (4) - 70600 [11:58:55]1012 (4) - 23.10.2024 05:50 [11:58:55]1206 (1) - 0 [11:58:55]OFD Sender: Remove packet 70600 [11:58:55]ProducePacketName [11:58:55]name=ofd_packets/00070600 [11:58:55]NVStorageDeleteData [11:58:56]*** Cut start [11:58:56]*** Partial cut [11:58:56]*** CUTSNS_PIN = 1 [11:58:56]OFD Sender: No OFD packet to send [11:58:56]*** CUTSNS_PIN = 0 [11:58:56]*** Brake cut motor [11:58:57]Read from MH i2c: 01 [11:58:57]MH_I2C_Read... [11:58:57]*** Stop cut motor [11:58:57]*** Cut end [11:58:57]Read from MH i2c: 01 07 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [11:58:57]process_action close_receipt done [11:58:57]requested_data is exist [11:58:57]produce_requested_data [11:58:57]requested_item fm.sn is exist - process it [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 11 00 00 [11:58:57]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 17 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [11:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:58:57]wFMCommunicate OK [11:58:57]requested_item fd.num is exist - process it [11:58:57]SAM_PROTO_GetFieldsCounters [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 13 00 00 [11:58:57]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 62 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 26 [11:58: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 C8 13 01 00 0E 04 04 00 C4 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 [11:58:57]wFMCommunicate OK [11:58:57]SAM_PROTO_GetFieldsCounters done [11:58:57]requested_item shift.num is exist - process it [11:58:57]requested_item shift.opened is exist - process it [11:58:57]req_shift_opened [11:58:57]FM_GetShiftState [11:58:57]SAM_PROTO_GetShiftState [11:58:57]wFMCommunicate request_size=4 [11:58:57]MH_SAM_APDU [11:58:57]CAPDU: 80 13 01 00 [11:58:57]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [11:58:57]Write i2c OK [11:58:57]MH_I2C_Read... [11:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:57]Read from MH i2c: E2 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 0E 00 [11:58:57]MH_I2C_Read... [11:58:57]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9E [11:58:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:58:57]wFMCommunicate OK [11:58:57]SAM_PROTO_GetShiftState done [11:58:57]FM_GetShiftState done [11:58:57]req_shift_opened done [11:58:57]requested_item shift.open_date is exist - process it [11:58:57]req_shift_open_date [11:58:57]req_shift_open_date done [11:58:57]produce_requested_data done [11:58:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70600,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:58:57]process_action_free close_receipt [11:58:57]json_value_free [11:58:57]json_value_free done [11:58:57]process_json_proto returns [11:58:57]Send response to host [11:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70600,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:58:57]free response buf [11:58:57]execute_script done [11:58:57]execute_script returns [11:58:57]free content buf [11:58:57]Sock 9.Close socket [11:58:57]Sock 9.Thread stoped [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:31]accept exits with 7 [11:59:31]New connection [11:59:31]New thread 3066838372 created [11:59:31]Thread 3066981732 joined [11:59:31]Waiting for new connection... [11:59:31] Sock 7.Parse request [11:59:31]Sock 7.Check first char [11:59:31]Sock 7.First char is OK [11:59:31]request: POST /json_proto HTTP/1.0 [11:59:31]Method: POST [11:59:31]URL: /json_proto [11:59:31]Method is POST - this is cgi request [11:59:31]url: /json_proto [11:59:31]query_string will be loaded in cgi processing [11:59:31]execute_cgi json_proto POST (null) [11:59:31]execute_cgi path=json_proto method=POST [11:59:31]POST find Content-Length [11:59:31]Host: 172.17.50.3:8080 [11:59:31]Content-Length: 679 [11:59:31]Content-Type: application/json [11:59:31] [11:59:31]POST finish read [11:59:31]Found Content-Length = 679 [11:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886374", "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" ] } } [11:59:31]execute_script... [11:59: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)2886374", "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" ] } } [11:59:31]POST & json_proto [11:59:31]process_json_proto [11:59:31]json parsed OK: [11:59:31]protocol is kg_v1.0 [11:59:31]action value=close_receipt [11:59:31]process_action close_receipt [11:59:31]cmd_close_receipt [11:59:31]MH_GetDate [11:59:31]Write to MH i2c: F0 00 00 94 01 84 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: F0 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: F0 09 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: F0 09 00 94 01 00 24 E5 18 67 6B 98 1E 66 9C [11:59:31]GetLastDocTimeStamp 1729684734 [11:59:31]current date 1729684772 [11:59:31]FM_GetShiftState [11:59:31]SAM_PROTO_GetShiftState [11:59:31]wFMCommunicate request_size=4 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 13 01 00 [11:59:31]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 0E 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A0 [11:59:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:59:31]wFMCommunicate OK [11:59:31]SAM_PROTO_GetShiftState done [11:59:31]FM_GetShiftState done [11:59:31]opened in 1729642435 [11:59:31]opened+sec_in_day 1729728835 [11:59:31]quantity*price = 70044 [11:59:31]sum+1 = 70045 [11:59:31]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 СНО: Общий режим Чек 117 23.10.2024 11:59 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70601 ФПД: 19070369247795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115932&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70601&fm=19070369247795&tin=02508201610067®Number=0000000000156251&sum=70000 [11:59:32]StoreToDocumentArchive [11:59:32]shift 196 fd 70601 [11:59:32]save to /storage/0196/doc_00070601 [11:59:32]save last doc name /storage/0196/doc_00070601 to /storage/kkm_last_doc_name [11:59:32]save OK [11:59:32]Clear old archive folders... [11:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:32]tlvbuf is 008BB8B0 [11:59:32]SAM_PROTO_ClearQueue [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 09 00 00 [11:59:32]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [11:59:33]RAPDU: 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_ClearQueue done [11:59:33]KKMCreateOFDPacket [11:59:33]OFDProtocolAddRootSTLVToBuf [11:59:33]FM_MakeSignedData [11:59:33]FM_MakeSignedData [11:59:33]SAM_PROTO_SignData [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 0D 01 02 [11:59:33]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [11:59:33]RAPDU: 90 00 [11:59:33]wFMCommunicate OK [11:59:33]wFMCommunicate request_size=255 [11:59:33]MH_SAM_APDU [11:59: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 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 75 00 00 00 F4 03 04 00 24 E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 [11:59:33]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 24 E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 00 00 65 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [11:59:33]RAPDU: 90 00 [11:59:33]wFMCommunicate OK [11:59:33]wFMCommunicate request_size=10 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 0D 02 02 05 58 2A 95 B2 33 [11:59:33]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 58 2A 95 B2 33 00 00 26 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [11:59:33]RAPDU: 90 00 [11:59:33]wFMCommunicate OK [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 0D 03 02 [11:59:33]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0B 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0B 00 A6 01 00 FF B0 7E 88 EB F8 53 AB 90 00 B9 [11:59:33]RAPDU: FF B0 7E 88 EB F8 53 AB 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_SignData done [11:59:33]FM_MakeSignedData done [11:59:33]CreateOFDProtocolMessage [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 11 00 00 [11:59:33]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [11:59:33]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:33]wFMCommunicate OK [11:59:33]CreateOFDProtocolMessage done [11:59:33]OFDSenderStorePacket 70601 [11:59:33]StoreOFDPacket docnum=70601 [11:59: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 FA D3 07 01 2C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 F4 03 04 00 24 E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 58 2A 95 B2 33 FF B0 7E 88 EB F8 53 AB [11:59:33]CheckFolder [11:59:33]dirname=/storage/ofd_packets [11:59:33]CheckFolder done [11:59:33]ProducePacketName [11:59:33]name=ofd_packets/00070601 [11:59:33]NVStorageSaveData ofd_packets/00070601 [11:59:33]File name is /storage/ofd_packets/00070601 [11:59:33]Write 301 bytes [11:59:33]NVStorageSaveData done [11:59:33]OFDSenderStorePacket done [11:59:33]KKMCreateOFDPacket done [11:59:33]NVStorageSaveData kkm_last_timestamp [11:59:33]File name is /storage/kkm_last_timestamp [11:59:33]Write 4 bytes [11:59:33]NVStorageSaveData done [11:59:33]ExternCall_PrintAddStr [11:59:33]wPrintStart [11:59:33]Write to MH i2c: 01 00 00 A8 01 A9 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 07 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [11:59:33]RasterBufferAndPrint [11:59:33]line Счет N : (1)2886374 [11:59:33]line ИНН: 02508201610067 [11:59:33]line Контрольно-Кассовый Чек [11:59:33]line ПРОДАЖА [11:59:33]line ТРК (МРК, ГНК) : 12 [11:59:33]line Товар: 2710124130 [11:59:33]line Аи-92-К-5 [11:59:33]line 10.470 * 66.90 [11:59:33]line = 700.44 [11:59:33]line НДС 12% НСП 1% [11:59:33]line > о реализуемом товаре [11:59:33]line ОКРУГЛЕНИЕ: -0.44 [11:59:33]line ИТОГО: 700.00 [11:59:33]line Внесено: 700.00 [11:59:33]line СДАЧА: 0.00 [11:59:33]line НСП 1% : 6.20 [11:59:33]line НДС 12% : 74.38 [11:59:33]line Наличными: 700.00 [11:59:33]line Безнал.: 0.00 [11:59:33]line Место: АЗС № 85 "Партнер Нефть" [11:59:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:59:33]line СНО: Общий режим [11:59:33]line Чек 117 23.10.2024 11:59 [11:59:33]line Смена: 196 ФФД: 1.0 [11:59:33]line ЗНМ: 0300000167 [11:59:33]line РНМ: 0000000000156251 [11:59:33]line Версия ККМ: v1.0 [11:59:33]line ФМ: 0000000000963346 [11:59:33]line ФД: 70601 [11:59:33]line ФПД: 19070369247795 [11:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115932&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70601&fm=19070369247795&tin=02508201610067®Number=0000000000156251&sum=70000 [11:59:33]OFD Sender: Processing packet 70601 [packets to send 18, broken 17] [11:59:33]ProducePacketName [11:59:33]name=ofd_packets/00070601 [11:59:33]OFD Sender: To server: pG, [11:59:33]CommunicateWithHost lk.salyk.kg:30040 [11:59:33]ConnectInit lk.salyk.kg [11:59:33]written 0, free lines is 4095 [11:59:33]Connected sock=10 [11:59: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 FA D3 07 01 2C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 F4 03 04 00 24 E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 11 58 2A 95 B2 33 FF B0 7E 88 EB F8 53 AB [11:59: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 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 C9 13 01 00 F4 03 04 00 C2 8E 18 67 B6 04 01 00 00 04 65 43 D1 2C FC ED 25 [11:59:34]CommunicateWithHost err = 0 [11:59:34]CheckOFDResponse [11:59:34]1017 (14) - 77093643461234 [11:59:34]1041 (16) - 0000000000963346 [11:59:34]1040 (4) - 70601 [11:59:34]1012 (4) - 23.10.2024 05:50 [11:59:34]1206 (1) - 0 [11:59:34]OFD Sender: Remove packet 70601 [11:59:34]ProducePacketName [11:59:34]name=ofd_packets/00070601 [11:59:34]NVStorageDeleteData [11:59:34]Write to MH i2c: 01 00 00 D3 01 D4 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 07 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 EB 0C D2 [11:59:34]RasterBufferAndPrint [11:59:34]line [11:59:34]line [11:59:34]line [11:59:34]line [11:59:34]line [11:59:34]written 0, free lines is 3316 [11:59:34]MH_Cut [11:59:34]Write to MH i2c: D1 01 00 DA 01 01 AD [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: D1 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: D1 01 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: D1 01 00 DA 01 00 AC [11:59:34]Write to MH i2c: 01 00 00 DB 01 DC [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]OFD Sender: No OFD packet to send [11:59:35]*** Cut start [11:59:35]*** Partial cut [11:59:35]*** CUTSNS_PIN = 1 [11:59:35]*** CUTSNS_PIN = 0 [11:59:35]*** Brake cut motor [11:59:35]Read from MH i2c: 01 [11:59:35]MH_I2C_Read... [11:59:35]*** Stop cut motor [11:59:35]*** Cut end [11:59:35]Read from MH i2c: 01 07 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [11:59:35]process_action close_receipt done [11:59:35]requested_data is exist [11:59:35]produce_requested_data [11:59:35]requested_item fm.sn is exist - process it [11:59:35]wFMCommunicate request_size=4 [11:59:35]MH_SAM_APDU [11:59:35]CAPDU: 80 11 00 00 [11:59:35]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:35]Read from MH i2c: E2 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 17 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 17 00 DC 01 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:59: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:59:35]wFMCommunicate OK [11:59:35]requested_item fd.num is exist - process it [11:59:35]SAM_PROTO_GetFieldsCounters [11:59:35]wFMCommunicate request_size=4 [11:59:35]MH_SAM_APDU [11:59:35]CAPDU: 80 13 00 00 [11:59:35]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:35]Read from MH i2c: E2 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 62 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 75 [11:59: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 C9 13 01 00 0E 04 04 00 C4 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 [11:59:35]wFMCommunicate OK [11:59:35]SAM_PROTO_GetFieldsCounters done [11:59:35]requested_item shift.num is exist - process it [11:59:35]requested_item shift.opened is exist - process it [11:59:35]req_shift_opened [11:59:35]FM_GetShiftState [11:59:35]SAM_PROTO_GetShiftState [11:59:35]wFMCommunicate request_size=4 [11:59:35]MH_SAM_APDU [11:59:35]CAPDU: 80 13 01 00 [11:59:35]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:35]Read from MH i2c: E2 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 0E 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E9 [11:59:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [11:59:35]wFMCommunicate OK [11:59:35]SAM_PROTO_GetShiftState done [11:59:35]FM_GetShiftState done [11:59:35]req_shift_opened done [11:59:35]requested_item shift.open_date is exist - process it [11:59:35]req_shift_open_date [11:59:35]req_shift_open_date done [11:59:35]produce_requested_data done [11:59:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70601,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [11:59:35]process_action_free close_receipt [11:59:35]json_value_free [11:59:35]json_value_free done [11:59:35]process_json_proto returns [11:59:35]Send response to host [11:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70601,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [11:59:35]free response buf [11:59:35]execute_script done [11:59:35]execute_script returns [11:59:35]free content buf [11:59:35]Sock 7.Close socket [11:59:35]Sock 7.Thread stoped [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:37]accept exits with 9 [12:02:37]New connection [12:02:37]New thread 3066981732 created [12:02:37]Thread 3066838372 joined [12:02:37]Waiting for new connection... [12:02:37] Sock 9.Parse request [12:02:37]Sock 9.Check first char [12:02:37]Sock 9.First char is OK [12:02:37]request: POST /json_proto HTTP/1.0 [12:02:37]Method: POST [12:02:37]URL: /json_proto [12:02:37]Method is POST - this is cgi request [12:02:37]url: /json_proto [12:02:37]query_string will be loaded in cgi processing [12:02:37]execute_cgi json_proto POST (null) [12:02:37]execute_cgi path=json_proto method=POST [12:02:37]POST find Content-Length [12:02:37]Host: 172.17.50.3:8080 [12:02:37]Content-Length: 683 [12:02:37]Content-Type: application/json [12:02:37] [12:02:37]POST finish read [12:02:37]Found Content-Length = 683 [12:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886375", "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" : 18.870, "sum" : 1400.15, "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" ] } } [12:02:37]execute_script... [12:02: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)2886375", "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" : 18.870, "sum" : 1400.15, "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" ] } } [12:02:37]POST & json_proto [12:02:37]process_json_proto [12:02:37]json parsed OK: [12:02:37]protocol is kg_v1.0 [12:02:37]action value=close_receipt [12:02:37]process_action close_receipt [12:02:37]cmd_close_receipt [12:02:37]MH_GetDate [12:02:37]Write to MH i2c: F0 00 00 DF 01 CF [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: F0 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: F0 09 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: F0 09 00 DF 01 00 DE E5 18 67 6B 98 1E 66 A1 [12:02:37]GetLastDocTimeStamp 1729684772 [12:02:37]current date 1729684958 [12:02:37]FM_GetShiftState [12:02:37]SAM_PROTO_GetShiftState [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 13 01 00 [12:02:37]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0E 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EB [12:02:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_GetShiftState done [12:02:37]FM_GetShiftState done [12:02:37]opened in 1729642435 [12:02:37]opened+sec_in_day 1729728835 [12:02:37]quantity*price = 140015 [12:02:37]sum+1 = 140016 [12:02:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 118 23.10.2024 12:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70602 ФПД: 59880783350155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120238&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70602&fm=59880783350155&tin=02508201610067®Number=0000000000156251&sum=140000 [12:02:38]StoreToDocumentArchive [12:02:38]shift 196 fd 70602 [12:02:38]save to /storage/0196/doc_00070602 [12:02:38]save last doc name /storage/0196/doc_00070602 to /storage/kkm_last_doc_name [12:02:38]save OK [12:02:38]Clear old archive folders... [12:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:38]tlvbuf is 008BD1E0 [12:02:38]SAM_PROTO_ClearQueue [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 09 00 00 [12:02:38]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 03 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:02:38]RAPDU: 90 00 [12:02:38]wFMCommunicate OK [12:02:38]SAM_PROTO_ClearQueue done [12:02:38]KKMCreateOFDPacket [12:02:38]OFDProtocolAddRootSTLVToBuf [12:02:38]FM_MakeSignedData [12:02:38]FM_MakeSignedData [12:02:38]SAM_PROTO_SignData [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 0D 01 02 [12:02:38]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 03 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [12:02:38]RAPDU: 90 00 [12:02:38]wFMCommunicate OK [12:02:38]wFMCommunicate request_size=255 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 76 00 00 00 F4 03 04 00 DE E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 [12:02:38]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 76 00 00 00 F4 03 04 00 DE E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 00 00 5C [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]wFMCommunicate request_size=10 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 0D 02 02 05 76 14 D2 09 8B [12:02:39]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 76 14 D2 09 8B 00 00 65 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 0D 03 02 [12:02:39]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0B 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0B 00 F1 01 00 F1 10 96 FE 2F 82 03 28 90 00 DF [12:02:39]RAPDU: F1 10 96 FE 2F 82 03 28 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_SignData done [12:02:39]FM_MakeSignedData done [12:02:39]CreateOFDProtocolMessage [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 11 00 00 [12:02:39]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [12:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:39]wFMCommunicate OK [12:02:39]CreateOFDProtocolMessage done [12:02:39]OFDSenderStorePacket 70602 [12:02:39]StoreOFDPacket docnum=70602 [12:02: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 5F CB 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 76 00 00 00 F4 03 04 00 DE E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 76 14 D2 09 8B F1 10 96 FE 2F 82 03 28 [12:02:39]CheckFolder [12:02:39]dirname=/storage/ofd_packets [12:02:39]CheckFolder done [12:02:39]ProducePacketName [12:02:39]name=ofd_packets/00070602 [12:02:39]NVStorageSaveData ofd_packets/00070602 [12:02:39]File name is /storage/ofd_packets/00070602 [12:02:39]Write 301 bytes [12:02:39]NVStorageSaveData done [12:02:39]OFDSenderStorePacket done [12:02:39]KKMCreateOFDPacket done [12:02:39]NVStorageSaveData kkm_last_timestamp [12:02:39]File name is /storage/kkm_last_timestamp [12:02:39]Write 4 bytes [12:02:39]NVStorageSaveData done [12:02:39]ExternCall_PrintAddStr [12:02:39]wPrintStart [12:02:39]Write to MH i2c: 01 00 00 F3 01 F4 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [12:02:39]RasterBufferAndPrint [12:02:39]line Счет N : (1)2886375 [12:02:39]line ИНН: 02508201610067 [12:02:39]line Контрольно-Кассовый Чек [12:02:39]line ПРОДАЖА [12:02:39]line ТРК (МРК, ГНК) : 13 [12:02:39]line Товар: 2710124500 [12:02:39]line Аи-95-К-5 [12:02:39]line 18.870 * 74.20 [12:02:39]line = 1400.15 [12:02:39]line НДС 12% НСП 1% [12:02:39]line > о реализуемом товаре [12:02:39]line ОКРУГЛЕНИЕ: -0.15 [12:02:39]line ИТОГО: 1400.00 [12:02:39]line Внесено: 1400.00 [12:02:39]line СДАЧА: 0.00 [12:02:39]line НСП 1% : 12.39 [12:02:39]line НДС 12% : 148.69 [12:02:39]line Наличными: 1400.00 [12:02:39]line Безнал.: 0.00 [12:02:39]line Место: АЗС № 85 "Партнер Нефть" [12:02:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:02:39]line СНО: Общий режим [12:02:39]line Чек 118 23.10.2024 12:02 [12:02:39]line Смена: 196 ФФД: 1.0 [12:02:39]line ЗНМ: 0300000167 [12:02:39]line РНМ: 0000000000156251 [12:02:39]line Версия ККМ: v1.0 [12:02:39]line ФМ: 0000000000963346 [12:02:39]line ФД: 70602 [12:02:39]line ФПД: 59880783350155 [12:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120238&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70602&fm=59880783350155&tin=02508201610067®Number=0000000000156251&sum=140000 [12:02:39]OFD Sender: Processing packet 70602 [packets to send 18, broken 17] [12:02:39]ProducePacketName [12:02:39]name=ofd_packets/00070602 [12:02:39]OFD Sender: To server: pG, [12:02:39]CommunicateWithHost lk.salyk.kg:30040 [12:02:39]ConnectInit lk.salyk.kg [12:02:39]written 0, free lines is 4095 [12:02:39]Connected sock=10 [12:02: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 5F CB 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 76 00 00 00 F4 03 04 00 DE E5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 36 76 14 D2 09 8B F1 10 96 FE 2F 82 03 28 [12:02:39]int [12:02:39]Write to MH i2c: 01 00 00 08 02 0A [12:02:39]*** FLAG_PRN_PAP2 set [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: DD [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: DD [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: DD 01 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: DD 01 00 [12:02:39]answer for other command [DD] [12:02:39]MH Int Process stopped [12:02:39]Read from MH i2c: DD 01 00 08 02 05 EC [12:02:39]answer with wrong packet_num 0208 - expected 0209 [12:02:39]process_action_free close_receipt [12:02:39]json_value_free [12:02:39]json_value_free done [12:02:39]process_json_proto returns [12:02:39]Send response to host [12:02:39]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [12:02:39]free response buf [12:02:39]execute_script done [12:02:39]execute_script returns [12:02:39]free content buf [12:02:39]Sock 9.Close socket [12:02:39]Sock 9.Thread stoped [12:02: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 FB 35 47 00 EA 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 CA 13 01 00 F4 03 04 00 7C 8F 18 67 B6 04 01 00 00 6B E2 9A B1 49 0B 07 4D [12:02:39]CommunicateWithHost err = 0 [12:02:39]CheckOFDResponse [12:02:39]1017 (14) - 77093643461234 [12:02:39]1041 (16) - 0000000000963346 [12:02:39]1040 (4) - 70602 [12:02:39]1012 (4) - 23.10.2024 05:54 [12:02:39]1206 (1) - 0 [12:02:39]OFD Sender: Remove packet 70602 [12:02:39]ProducePacketName [12:02:39]name=ofd_packets/00070602 [12:02:39]NVStorageDeleteData [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]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:26]accept exits with 7 [12:07:26]New connection [12:07:26]New thread 3066838372 created [12:07:26]Thread 3066981732 joined [12:07:26]Waiting for new connection... [12:07:26] Sock 7.Parse request [12:07:26]Sock 7.Check first char [12:07:26]Sock 7.First char is OK [12:07:26]request: POST /json_proto HTTP/1.0 [12:07:26]Method: POST [12:07:26]URL: /json_proto [12:07:26]Method is POST - this is cgi request [12:07:26]url: /json_proto [12:07:26]query_string will be loaded in cgi processing [12:07:26]execute_cgi json_proto POST (null) [12:07:26]execute_cgi path=json_proto method=POST [12:07:26]POST find Content-Length [12:07:26]Host: 172.17.50.3:8080 [12:07:26]Content-Length: 215 [12:07:26]Content-Type: application/json [12:07:26] [12:07:26]POST finish read [12:07:26]Found Content-Length = 215 [12:07: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" ] } } [12:07:26]execute_script... [12:07: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" ] } } [12:07:26]POST & json_proto [12:07:26]process_json_proto [12:07:26]json parsed OK: [12:07:26]protocol is kg_v1.0 [12:07:26]action value=get_value [12:07:26]process_action get_value [12:07:26]cmd_get_value [12:07:26]process_action get_value done [12:07:26]requested_data is exist [12:07:26]produce_requested_data [12:07:26]requested_item kkm.sn is exist - process it [12:07:26]requested_item kkm.ver is exist - process it [12:07:26]requested_item fm.sn is exist - process it [12:07:26]wFMCommunicate request_size=4 [12:07:26]MH_SAM_APDU [12:07:26]CAPDU: 80 11 00 00 [12:07:26]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [12:07:26]Write i2c OK [12:07:26]MH_I2C_Read... [12:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:26]Read from MH i2c: E2 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 17 00 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [12: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 [12:07:26]wFMCommunicate OK [12:07:26]requested_item fd.num is exist - process it [12:07:26]SAM_PROTO_GetFieldsCounters [12:07:26]wFMCommunicate request_size=4 [12:07:26]MH_SAM_APDU [12:07:26]CAPDU: 80 13 00 00 [12:07:26]Write to MH i2c: E2 08 00 0B 02 80 13 00 00 00 00 00 00 89 [12:07:26]Write i2c OK [12:07:26]MH_I2C_Read... [12:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:26]Read from MH i2c: E2 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 62 00 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 62 00 0B 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 CA 13 01 00 0E 04 04 00 C4 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 A8 [12: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 CA 13 01 00 0E 04 04 00 C4 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 [12:07:26]wFMCommunicate OK [12:07:26]SAM_PROTO_GetFieldsCounters done [12:07:26]requested_item shift.num is exist - process it [12:07:26]requested_item shift.opened is exist - process it [12:07:26]req_shift_opened [12:07:26]FM_GetShiftState [12:07:26]SAM_PROTO_GetShiftState [12:07:26]wFMCommunicate request_size=4 [12:07:26]MH_SAM_APDU [12:07:26]CAPDU: 80 13 01 00 [12:07:26]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [12:07:26]Write i2c OK [12:07:26]MH_I2C_Read... [12:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:26]Read from MH i2c: E2 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 0E 00 [12:07:26]MH_I2C_Read... [12:07:26]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 18 [12:07:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:07:26]wFMCommunicate OK [12:07:26]SAM_PROTO_GetShiftState done [12:07:26]FM_GetShiftState done [12:07:26]req_shift_opened done [12:07:26]requested_item shift.open_date is exist - process it [12:07:26]req_shift_open_date [12:07:26]req_shift_open_date done [12:07:26]produce_requested_data done [12:07:26]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70602,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:07:26]process_action_free get_value [12:07:26]json_value_free [12:07:26]json_value_free done [12:07:26]process_json_proto returns [12:07:26]Send response to host [12:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70602,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:07:26]free response buf [12:07:26]execute_script done [12:07:26]execute_script returns [12:07:26]free content buf [12:07:26]Sock 7.Close socket [12:07:26]Sock 7.Thread stoped [12:07:26]accept exits with 5 [12:07:26]New connection [12:07:26]New thread 3066981732 created [12:07:26]Thread 3066838372 joined [12:07:26]Waiting for new connection... [12:07:26] Sock 5.Parse request [12:07:26]Sock 5.Check first char [12:07:26]Sock 5.First char is OK [12:07:26]request: POST /json_proto HTTP/1.0 [12:07:26]Method: POST [12:07:26]URL: /json_proto [12:07:26]Method is POST - this is cgi request [12:07:26]url: /json_proto [12:07:26]query_string will be loaded in cgi processing [12:07:26]execute_cgi json_proto POST (null) [12:07:26]execute_cgi path=json_proto method=POST [12:07:26]POST find Content-Length [12:07:26]Host: 172.17.50.3:8080 [12:07:26]Content-Length: 331 [12:07:26]Content-Type: application/json [12:07:26] [12:07:26]POST finish read [12:07:26]Found Content-Length = 331 [12:07: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" ] } } [12:07:26]execute_script... [12:07: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" ] } } [12:07:26]POST & json_proto [12:07:26]process_json_proto [12:07:26]json parsed OK: [12:07:26]protocol is kg_v1.0 [12:07:26]action value=get_value [12:07:26]process_action get_value [12:07:26]cmd_get_value [12:07:26]process_action get_value done [12:07:26]requested_data is exist [12:07:26]produce_requested_data [12:07:26]requested_item fm.sale.total is exist - process it [12:07:26]SAM_PROTO_GetFMData [12:07:26]wFMCommunicate request_size=4 [12:07:26]MH_SAM_APDU [12:07:26]CAPDU: 80 13 03 00 [12:07:26]Write to MH i2c: E2 08 00 0D 02 80 13 03 00 00 00 00 00 8E [12:07:26]Write i2c OK [12:07:26]MH_I2C_Read... [12:07:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:07:27]Read from MH i2c: E2 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 0D 02 00 C5 04 85 04 C1 04 6E 04 04 00 42 12 01 00 69 04 A3 00 6F 04 04 00 FD 0E 01 00 B1 04 05 00 87 22 0C E9 01 70 04 05 00 64 52 6D 5D 01 72 04 04 00 23 D0 9E 8B 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 81 E7 F1 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 1D 19 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 06 [12:07:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 42 12 01 00 69 04 A3 00 6F 04 04 00 FD 0E 01 00 B1 04 05 00 87 22 0C E9 01 70 04 05 00 64 52 6D 5D 01 72 04 04 00 23 D0 9E 8B 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 81 E7 F1 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 1D 19 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 [12:07:27]wFMCommunicate OK [12:07:27]wFMCommunicate request_size=4 [12:07:27]MH_SAM_APDU [12:07:27]CAPDU: 80 17 00 00 [12:07:27]Write to MH i2c: E2 08 00 0E 02 80 17 00 00 00 00 00 00 90 [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:27]Read from MH i2c: E2 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 0E 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 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 1D [12:07: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 DD D2 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 [12:07:27]wFMCommunicate OK [12:07:27]wFMCommunicate request_size=4 [12:07:27]MH_SAM_APDU [12:07:27]CAPDU: 80 17 00 00 [12:07:27]Write to MH i2c: E2 08 00 0F 02 80 17 00 00 00 00 00 00 91 [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:27]Read from MH i2c: E2 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 FD 00 0F 02 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 A3 [12:07: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 [12:07:27]wFMCommunicate OK [12:07:27]wFMCommunicate request_size=4 [12:07:27]MH_SAM_APDU [12:07:27]CAPDU: 80 17 00 00 [12:07:27]Write to MH i2c: E2 08 00 10 02 80 17 00 00 00 00 00 00 92 [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:28]Read from MH i2c: E2 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 FD 00 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 FD 00 10 02 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 1E [12:07: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 [12:07:28]wFMCommunicate OK [12:07:28]wFMCommunicate request_size=4 [12:07:28]MH_SAM_APDU [12:07:28]CAPDU: 80 17 00 00 [12:07:28]Write to MH i2c: E2 08 00 11 02 80 17 00 00 00 00 00 00 93 [12:07:28]Write i2c OK [12:07:28]MH_I2C_Read... [12:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:07:28]Read from MH i2c: E2 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 E2 00 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 E2 00 11 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [12:07: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 [12:07:28]wFMCommunicate OK [12:07:28]SAM_PROTO_GetFMData done [12:07:28]requested_item fm.sale_refund.total is exist - process it [12:07:28]requested_item fm.buy.total is exist - process it [12:07:28]requested_item shift.sale.total is exist - process it [12:07:28]SAM_PROTO_GetShiftData [12:07:28]wFMCommunicate request_size=4 [12:07:28]MH_SAM_APDU [12:07:28]CAPDU: 80 13 02 00 [12:07:28]Write to MH i2c: E2 08 00 12 02 80 13 02 00 00 00 00 00 92 [12:07:28]Write i2c OK [12:07:28]MH_I2C_Read... [12:07:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:07:28]Read from MH i2c: E2 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 FD 00 [12:07:28]MH_I2C_Read... [12:07:28]Read from MH i2c: E2 FD 00 12 02 00 AF 04 AA 04 AB 04 6E 04 04 00 76 00 00 00 69 04 9C 00 6F 04 04 00 76 00 00 00 B1 04 03 00 C7 77 A1 70 04 03 00 58 6F 88 72 04 03 00 6F 08 19 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 A5 26 11 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 DD 6D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 33 [12:07:28]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 76 00 00 00 69 04 9C 00 6F 04 04 00 76 00 00 00 B1 04 03 00 C7 77 A1 70 04 03 00 58 6F 88 72 04 03 00 6F 08 19 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 A5 26 11 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 DD 6D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:07:28]wFMCommunicate OK [12:07:28]wFMCommunicate request_size=4 [12:07:28]MH_SAM_APDU [12:07:28]CAPDU: 80 17 00 00 [12:07:28]Write to MH i2c: E2 08 00 13 02 80 17 00 00 00 00 00 00 95 [12:07:28]Write i2c OK [12:07:28]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 13 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 AE [12:07:29]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 17 00 00 [12:07:29]Write to MH i2c: E2 08 00 14 02 80 17 00 00 00 00 00 00 96 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 14 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4A [12:07:29]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 17 00 00 [12:07:29]Write to MH i2c: E2 08 00 15 02 80 17 00 00 00 00 00 00 97 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 FD 00 15 02 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 15 [12:07:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 17 00 00 [12:07:29]Write to MH i2c: E2 08 00 16 02 80 17 00 00 00 00 00 00 98 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 CC 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 CC 00 16 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [12:07:30]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:07:30]wFMCommunicate OK [12:07:30]SAM_PROTO_GetShiftData done [12:07:30]requested_item shift.sale.total_cash is exist - process it [12:07:30]requested_item shift.sale_refund.total is exist - process it [12:07:30]requested_item shift.sale_refund.total_cash is exist - process it [12:07:30]requested_item shift.buy.total is exist - process it [12:07:30]requested_item shift.buy.total_cash is exist - process it [12:07:30]produce_requested_data done [12:07:30]produce_requested_data return {"fm.sale.total":82048538.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":105819.59,"shift.sale.total_cash":89414.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:07:30]process_action_free get_value [12:07:30]json_value_free [12:07:30]json_value_free done [12:07:30]process_json_proto returns [12:07:30]Send response to host [12:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":82048538.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":105819.59,"shift.sale.total_cash":89414.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:07:30]free response buf [12:07:30]execute_script done [12:07:30]execute_script returns [12:07:30]free content buf [12:07:30]Sock 5.Close socket [12:07:30]Sock 5.Thread stoped [12:07:30]accept exits with 6 [12:07:30]New connection [12:07:30]New thread 3066838372 created [12:07:30]Thread 3066981732 joined [12:07:30]Waiting for new connection... [12:07:30] Sock 6.Parse request [12:07:30]Sock 6.Check first char [12:07:30]Sock 6.First char is OK [12:07:30]request: POST /json_proto HTTP/1.0 [12:07:30]Method: POST [12:07:30]URL: /json_proto [12:07:30]Method is POST - this is cgi request [12:07:30]url: /json_proto [12:07:30]query_string will be loaded in cgi processing [12:07:30]execute_cgi json_proto POST (null) [12:07:30]execute_cgi path=json_proto method=POST [12:07:30]POST find Content-Length [12:07:30]Host: 172.17.50.3:8080 [12:07:30]Content-Length: 144 [12:07:30]Content-Type: application/json [12:07:30] [12:07:30]POST finish read [12:07:30]Found Content-Length = 144 [12:07:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:07:30]execute_script... [12:07:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:07:30]POST & json_proto [12:07:30]process_json_proto [12:07:30]json parsed OK: [12:07:30]protocol is kg_v1.0 [12:07:30]action value=print_doc [12:07:30]process_action print_doc [12:07:30]ExternCall_PrintAddStr [12:07:30]wPrintStart [12:07:30]Write to MH i2c: 01 00 00 17 02 19 [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 17 02 00 02 00 00 00 FF 0F 30 [12:07:30]RasterBufferAndPrint [12:07:30]line Счет N : (1)2886375 [12:07:30]line ИНН: 02508201610067 [12:07:30]line Контрольно-Кассовый Чек [12:07:30]line ПРОДАЖА [12:07:30]line ТРК (МРК, ГНК) : 13 [12:07:30]line Товар: 2710124500 [12:07:30]line Аи-95-К-5 [12:07:30]line 18.870 * 74.20 [12:07:30]line = 1400.15 [12:07:30]line НДС 12% НСП 1% [12:07:30]line > о реализуемом товаре [12:07:30]line ОКРУГЛЕНИЕ: -0.15 [12:07:30]line ИТОГО: 1400.00 [12:07:30]line Внесено: 1400.00 [12:07:30]line СДАЧА: 0.00 [12:07:30]line НСП 1% : 12.39 [12:07:30]line НДС 12% : 148.69 [12:07:30]line Наличными: 1400.00 [12:07:30]line Безнал.: 0.00 [12:07:30]line Место: АЗС № 85 "Партнер Нефть" [12:07:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:07:30]line СНО: Общий режим [12:07:30]line Чек 118 23.10.2024 12:02 [12:07:30]line Смена: 196 ФФД: 1.0 [12:07:30]line ЗНМ: 0300000167 [12:07:30]line РНМ: 0000000000156251 [12:07:30]line Версия ККМ: v1.0 [12:07:30]line ФМ: 0000000000963346 [12:07:30]line ФД: 70602 [12:07:30]line ФПД: 59880783350155 [12:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120238&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70602&fm=59880783350155&tin=02508201610067®Number=0000000000156251&sum=140000 [12:07:30]written 0, free lines is 4095 [12:07:30]Error from MH - 05 [12:07:30]process_action_free print_doc [12:07:30]json_value_free [12:07:30]json_value_free done [12:07:30]process_json_proto returns [12:07:30]Send response to host [12:07:30]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [12:07:30]free response buf [12:07:30]execute_script done [12:07:30]execute_script returns [12:07:30]free content buf [12:07:30]Sock 6.Close socket [12:07:30]Sock 6.Thread stoped [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:32]accept exits with 5 [12:09:32]New connection [12:09:32]New thread 3066981732 created [12:09:32]Thread 3066838372 joined [12:09:32]Waiting for new connection... [12:09:32] Sock 5.Parse request [12:09:32]Sock 5.Check first char [12:09:32]Sock 5.First char is OK [12:09:32]request: POST /json_proto HTTP/1.0 [12:09:32]Method: POST [12:09:32]URL: /json_proto [12:09:32]Method is POST - this is cgi request [12:09:32]url: /json_proto [12:09:32]query_string will be loaded in cgi processing [12:09:32]execute_cgi json_proto POST (null) [12:09:32]execute_cgi path=json_proto method=POST [12:09:32]POST find Content-Length [12:09:32]Host: 172.17.50.3:8080 [12:09:32]Content-Length: 215 [12:09:32]Content-Type: application/json [12:09:32] [12:09:32]POST finish read [12:09:32]Found Content-Length = 215 [12:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:32]execute_script... [12:09:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:32]POST & json_proto [12:09:32]process_json_proto [12:09:32]json parsed OK: [12:09:32]protocol is kg_v1.0 [12:09:32]action value=get_value [12:09:32]process_action get_value [12:09:32]cmd_get_value [12:09:32]process_action get_value done [12:09:32]requested_data is exist [12:09:32]produce_requested_data [12:09:32]requested_item kkm.sn is exist - process it [12:09:32]requested_item kkm.ver is exist - process it [12:09:32]requested_item fm.sn is exist - process it [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 11 00 00 [12:09:32]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 17 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [12:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:32]wFMCommunicate OK [12:09:32]requested_item fd.num is exist - process it [12:09:32]SAM_PROTO_GetFieldsCounters [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 13 00 00 [12:09:32]Write to MH i2c: E2 08 00 1B 02 80 13 00 00 00 00 00 00 99 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 62 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 62 00 1B 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 CA 13 01 00 0E 04 04 00 C4 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 B8 [12:09: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 CA 13 01 00 0E 04 04 00 C4 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 [12:09:32]wFMCommunicate OK [12:09:32]SAM_PROTO_GetFieldsCounters done [12:09:32]requested_item shift.num is exist - process it [12:09:32]requested_item shift.opened is exist - process it [12:09:32]req_shift_opened [12:09:32]FM_GetShiftState [12:09:32]SAM_PROTO_GetShiftState [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 13 01 00 [12:09:32]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 28 [12:09:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:09:33]wFMCommunicate OK [12:09:33]SAM_PROTO_GetShiftState done [12:09:33]FM_GetShiftState done [12:09:33]req_shift_opened done [12:09:33]requested_item shift.open_date is exist - process it [12:09:33]req_shift_open_date [12:09:33]req_shift_open_date done [12:09:33]produce_requested_data done [12:09:33]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70602,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:09:33]process_action_free get_value [12:09:33]json_value_free [12:09:33]json_value_free done [12:09:33]process_json_proto returns [12:09:33]Send response to host [12:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70602,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:09:33]free response buf [12:09:33]execute_script done [12:09:33]execute_script returns [12:09:33]free content buf [12:09:33]Sock 5.Close socket [12:09:33]Sock 5.Thread stoped [12:09:33]accept exits with 6 [12:09:33]New connection [12:09:33]New thread 3066838372 created [12:09:33]Thread 3066981732 joined [12:09:33]Waiting for new connection... [12:09:33] Sock 6.Parse request [12:09:33]Sock 6.Check first char [12:09:33]Sock 6.First char is OK [12:09:33]request: POST /json_proto HTTP/1.0 [12:09:33]Method: POST [12:09:33]URL: /json_proto [12:09:33]Method is POST - this is cgi request [12:09:33]url: /json_proto [12:09:33]query_string will be loaded in cgi processing [12:09:33]execute_cgi json_proto POST (null) [12:09:33]execute_cgi path=json_proto method=POST [12:09:33]POST find Content-Length [12:09:33]Host: 172.17.50.3:8080 [12:09:33]Content-Length: 331 [12:09:33]Content-Type: application/json [12:09:33] [12:09:33]POST finish read [12:09:33]Found Content-Length = 331 [12:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:33]execute_script... [12:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:33]POST & json_proto [12:09:33]process_json_proto [12:09:33]json parsed OK: [12:09:33]protocol is kg_v1.0 [12:09:33]action value=get_value [12:09:33]process_action get_value [12:09:33]cmd_get_value [12:09:33]process_action get_value done [12:09:33]requested_data is exist [12:09:33]produce_requested_data [12:09:33]requested_item fm.sale.total is exist - process it [12:09:33]SAM_PROTO_GetFMData [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 13 03 00 [12:09:33]Write to MH i2c: E2 08 00 1D 02 80 13 03 00 00 00 00 00 9E [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 FD 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 FD 00 1D 02 00 C5 04 85 04 C1 04 6E 04 04 00 42 12 01 00 69 04 A3 00 6F 04 04 00 FD 0E 01 00 B1 04 05 00 87 22 0C E9 01 70 04 05 00 64 52 6D 5D 01 72 04 04 00 23 D0 9E 8B 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 81 E7 F1 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 1D 19 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 16 [12:09:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 42 12 01 00 69 04 A3 00 6F 04 04 00 FD 0E 01 00 B1 04 05 00 87 22 0C E9 01 70 04 05 00 64 52 6D 5D 01 72 04 04 00 23 D0 9E 8B 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 81 E7 F1 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 1D 19 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 [12:09:33]wFMCommunicate OK [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 17 00 00 [12:09:33]Write to MH i2c: E2 08 00 1E 02 80 17 00 00 00 00 00 00 A0 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 1E 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 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 2D [12:09:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DD D2 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 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 17 00 00 [12:09:34]Write to MH i2c: E2 08 00 1F 02 80 17 00 00 00 00 00 00 A1 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 1F 02 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 B3 [12:09: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 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 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 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 17 00 00 [12:09:34]Write to MH i2c: E2 08 00 20 02 80 17 00 00 00 00 00 00 A2 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 FD 00 20 02 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 2E [12:09:34]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 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 17 00 00 [12:09:34]Write to MH i2c: E2 08 00 21 02 80 17 00 00 00 00 00 00 A3 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 E2 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 E2 00 21 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [12:09:34]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 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_GetFMData done [12:09:34]requested_item fm.sale_refund.total is exist - process it [12:09:34]requested_item fm.buy.total is exist - process it [12:09:34]requested_item shift.sale.total is exist - process it [12:09:34]SAM_PROTO_GetShiftData [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 13 02 00 [12:09:34]Write to MH i2c: E2 08 00 22 02 80 13 02 00 00 00 00 00 A2 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 22 02 00 AF 04 AA 04 AB 04 6E 04 04 00 76 00 00 00 69 04 9C 00 6F 04 04 00 76 00 00 00 B1 04 03 00 C7 77 A1 70 04 03 00 58 6F 88 72 04 03 00 6F 08 19 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 A5 26 11 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 DD 6D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 43 [12:09:35]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 76 00 00 00 69 04 9C 00 6F 04 04 00 76 00 00 00 B1 04 03 00 C7 77 A1 70 04 03 00 58 6F 88 72 04 03 00 6F 08 19 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 A5 26 11 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 DD 6D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:09:35]wFMCommunicate OK [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 17 00 00 [12:09:35]Write to MH i2c: E2 08 00 23 02 80 17 00 00 00 00 00 00 A5 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 23 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 BE [12:09: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:09:35]wFMCommunicate OK [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 17 00 00 [12:09:35]Write to MH i2c: E2 08 00 24 02 80 17 00 00 00 00 00 00 A6 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 FD 00 24 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 5A [12:09:35]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:09:35]wFMCommunicate OK [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 17 00 00 [12:09:35]Write to MH i2c: E2 08 00 25 02 80 17 00 00 00 00 00 00 A7 [12:09:35]OFD Sender: No OFD packet to send [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 FD 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 FD 00 25 02 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 25 [12:09:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:09:36]wFMCommunicate OK [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 17 00 00 [12:09:36]Write to MH i2c: E2 08 00 26 02 80 17 00 00 00 00 00 00 A8 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 CC 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 CC 00 26 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [12:09:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetShiftData done [12:09:36]requested_item shift.sale.total_cash is exist - process it [12:09:36]requested_item shift.sale_refund.total is exist - process it [12:09:36]requested_item shift.sale_refund.total_cash is exist - process it [12:09:36]requested_item shift.buy.total is exist - process it [12:09:36]requested_item shift.buy.total_cash is exist - process it [12:09:36]produce_requested_data done [12:09:36]produce_requested_data return {"fm.sale.total":82048538.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":105819.59,"shift.sale.total_cash":89414.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:09:36]process_action_free get_value [12:09:36]json_value_free [12:09:36]json_value_free done [12:09:36]process_json_proto returns [12:09:36]Send response to host [12:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":82048538.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":105819.59,"shift.sale.total_cash":89414.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:09:36]free response buf [12:09:36]execute_script done [12:09:36]execute_script returns [12:09:36]free content buf [12:09:36]Sock 6.Close socket [12:09:36]Sock 6.Thread stoped [12:09:36]accept exits with 5 [12:09:36]New connection [12:09:36]New thread 3066981732 created [12:09:36]Thread 3066838372 joined [12:09:36]Waiting for new connection... [12:09:36] Sock 5.Parse request [12:09:36]Sock 5.Check first char [12:09:36]Sock 5.First char is OK [12:09:36]request: POST /json_proto HTTP/1.0 [12:09:36]Method: POST [12:09:36]URL: /json_proto [12:09:36]Method is POST - this is cgi request [12:09:36]url: /json_proto [12:09:36]query_string will be loaded in cgi processing [12:09:36]execute_cgi json_proto POST (null) [12:09:36]execute_cgi path=json_proto method=POST [12:09:36]POST find Content-Length [12:09:36]Host: 172.17.50.3:8080 [12:09:36]Content-Length: 678 [12:09:36]Content-Type: application/json [12:09:36] [12:09:36]POST finish read [12:09:36]Found Content-Length = 678 [12:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886376", "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" ] } } [12:09:36]execute_script... [12: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)2886376", "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" ] } } [12:09:36]POST & json_proto [12:09:36]process_json_proto [12:09:36]json parsed OK: [12:09:36]protocol is kg_v1.0 [12:09:36]action value=close_receipt [12:09:36]process_action close_receipt [12:09:36]cmd_close_receipt [12:09:36]MH_GetDate [12:09:36]Write to MH i2c: F0 00 00 27 02 18 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: F0 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: F0 09 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: F0 09 00 27 02 00 81 E7 18 67 6B 98 1E 66 8F [12:09:36]GetLastDocTimeStamp 1729684958 [12:09:36]current date 1729685377 [12:09:36]FM_GetShiftState [12:09:36]SAM_PROTO_GetShiftState [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 13 01 00 [12:09:36]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 34 [12:09:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetShiftState done [12:09:36]FM_GetShiftState done [12:09:36]opened in 1729642435 [12:09:36]opened+sec_in_day 1729728835 [12:09:36]quantity*price = 50041 [12:09:36]sum+1 = 50042 [12:09:36]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 СНО: Общий режим Чек 119 23.10.2024 12:09 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70603 ФПД: 36831355152690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70603&fm=36831355152690&tin=02508201610067®Number=0000000000156251&sum=50000 [12:09:38]StoreToDocumentArchive [12:09:38]shift 196 fd 70603 [12:09:38]save to /storage/0196/doc_00070603 [12:09:38]save last doc name /storage/0196/doc_00070603 to /storage/kkm_last_doc_name [12:09:38]save OK [12:09:38]Clear old archive folders... [12:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:38]tlvbuf is 00883CD0 [12:09:38]SAM_PROTO_ClearQueue [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 09 00 00 [12:09:38]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [12:09:38]RAPDU: 90 00 [12:09:38]wFMCommunicate OK [12:09:38]SAM_PROTO_ClearQueue done [12:09:38]KKMCreateOFDPacket [12:09:38]OFDProtocolAddRootSTLVToBuf [12:09:38]FM_MakeSignedData [12:09:38]FM_MakeSignedData [12:09:38]SAM_PROTO_SignData [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 0D 01 02 [12:09:38]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [12:09:38]RAPDU: 90 00 [12:09:38]wFMCommunicate OK [12:09:38]wFMCommunicate request_size=255 [12:09:38]MH_SAM_APDU [12:09: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 77 00 00 00 F4 03 04 00 81 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 [12:09:38]Write to MH i2c: E2 02 01 37 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 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 77 00 00 00 F4 03 04 00 81 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 00 00 5C [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [12:09:38]RAPDU: 90 00 [12:09:38]wFMCommunicate OK [12:09:38]wFMCommunicate request_size=10 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 0D 02 02 05 7F 77 D7 29 32 [12:09:38]Write to MH i2c: E2 0D 00 38 02 80 0D 02 02 05 00 7F 77 D7 29 32 00 00 E6 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:09:38]RAPDU: 90 00 [12:09:38]wFMCommunicate OK [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 0D 03 02 [12:09:38]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0B 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0B 00 39 02 00 B0 93 46 83 B1 D9 D4 4C 90 00 6D [12:09:38]RAPDU: B0 93 46 83 B1 D9 D4 4C 90 00 [12:09:38]wFMCommunicate OK [12:09:38]SAM_PROTO_SignData done [12:09:38]FM_MakeSignedData done [12:09:38]CreateOFDProtocolMessage [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 11 00 00 [12:09:38]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 17 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [12:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:38]wFMCommunicate OK [12:09:38]CreateOFDProtocolMessage done [12:09:38]OFDSenderStorePacket 70603 [12:09:38]StoreOFDPacket docnum=70603 [12:09: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 0D 4D 07 01 38 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 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 77 00 00 00 F4 03 04 00 81 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 7F 77 D7 29 32 B0 93 46 83 B1 D9 D4 4C [12:09:38]CheckFolder [12:09:38]dirname=/storage/ofd_packets [12:09:38]CheckFolder done [12:09:38]ProducePacketName [12:09:38]name=ofd_packets/00070603 [12:09:38]NVStorageSaveData ofd_packets/00070603 [12:09:38]File name is /storage/ofd_packets/00070603 [12:09:38]Write 301 bytes [12:09:38]NVStorageSaveData done [12:09:38]OFDSenderStorePacket done [12:09:38]KKMCreateOFDPacket done [12:09:38]NVStorageSaveData kkm_last_timestamp [12:09:38]File name is /storage/kkm_last_timestamp [12:09:38]Write 4 bytes [12:09:38]NVStorageSaveData done [12:09:38]ExternCall_PrintAddStr [12:09:38]wPrintStart [12:09:38]Write to MH i2c: 01 00 00 3B 02 3D [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 07 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: 01 07 00 3B 02 00 02 00 00 00 FF 0F 54 [12:09:38]RasterBufferAndPrint [12:09:38]line Счет N : (1)2886376 [12:09:38]line ИНН: 02508201610067 [12:09:38]line Контрольно-Кассовый Чек [12:09:38]line ПРОДАЖА [12:09:38]line ТРК (МРК, ГНК) : 42 [12:09:38]line Товар: 2710124130 [12:09:38]line Аи-92-К-5 [12:09:38]line 7.480 * 66.90 [12:09:38]line = 500.41 [12:09:38]line НДС 12% НСП 1% [12:09:38]line > о реализуемом товаре [12:09:38]line ОКРУГЛЕНИЕ: -0.41 [12:09:38]line ИТОГО: 500.00 [12:09:38]line Внесено: 500.00 [12:09:38]line СДАЧА: 0.00 [12:09:38]line НСП 1% : 4.43 [12:09:38]line НДС 12% : 53.14 [12:09:38]line Наличными: 500.00 [12:09:38]line Безнал.: 0.00 [12:09:38]line Место: АЗС № 85 "Партнер Нефть" [12:09:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:09:39]line СНО: Общий режим [12:09:39]line Чек 119 23.10.2024 12:09 [12:09:39]line Смена: 196 ФФД: 1.0 [12:09:39]line ЗНМ: 0300000167 [12:09:39]line РНМ: 0000000000156251 [12:09:39]line Версия ККМ: v1.0 [12:09:39]line ФМ: 0000000000963346 [12:09:39]line ФД: 70603 [12:09:39]line ФПД: 36831355152690 [12:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70603&fm=36831355152690&tin=02508201610067®Number=0000000000156251&sum=50000 [12:09:39]OFD Sender: Processing packet 70603 [packets to send 18, broken 17] [12:09:39]ProducePacketName [12:09:39]name=ofd_packets/00070603 [12:09:39]OFD Sender: To server: pG, [12:09:39]CommunicateWithHost lk.salyk.kg:30040 [12:09:39]ConnectInit lk.salyk.kg [12:09:39]written 0, free lines is 4095 [12:09:39]Error from MH - 05 [12:09:39]process_action_free close_receipt [12:09:39]json_value_free [12:09:39]json_value_free done [12:09:39]process_json_proto returns [12:09:39]Send response to host [12:09:39]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [12:09:39]free response buf [12:09:39]execute_script done [12:09:39]execute_script returns [12:09:39]free content buf [12:09:39]Sock 5.Close socket [12:09:39]Sock 5.Thread stoped [12:09:39]Connected sock=7 [12:09: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 0D 4D 07 01 38 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 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 77 00 00 00 F4 03 04 00 81 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 7F 77 D7 29 32 B0 93 46 83 B1 D9 D4 4C [12:09: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 6F F4 47 00 58 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 CB 13 01 00 F4 03 04 00 20 91 18 67 B6 04 01 00 00 DA D2 7F FB 53 66 F3 2B [12:09:39]CommunicateWithHost err = 0 [12:09:39]CheckOFDResponse [12:09:39]1017 (14) - 77093643461234 [12:09:39]1041 (16) - 0000000000963346 [12:09:39]1040 (4) - 70603 [12:09:39]1012 (4) - 23.10.2024 06:01 [12:09:39]1206 (1) - 0 [12:09:39]OFD Sender: Remove packet 70603 [12:09:39]ProducePacketName [12:09:39]name=ofd_packets/00070603 [12:09:39]NVStorageDeleteData [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:49]accept exits with 6 [12:09:49]New connection [12:09:49]New thread 3066838372 created [12:09:49]Thread 3066981732 joined [12:09:49]Waiting for new connection... [12:09:49] Sock 6.Parse request [12:09:49]Sock 6.Check first char [12:09:49]Sock 6.First char is OK [12:09:49]request: POST /json_proto HTTP/1.0 [12:09:49]Method: POST [12:09:49]URL: /json_proto [12:09:49]Method is POST - this is cgi request [12:09:49]url: /json_proto [12:09:49]query_string will be loaded in cgi processing [12:09:49]execute_cgi json_proto POST (null) [12:09:49]execute_cgi path=json_proto method=POST [12:09:49]POST find Content-Length [12:09:49]Host: 172.17.50.3:8080 [12:09:49]Content-Length: 215 [12:09:49]Content-Type: application/json [12:09:49] [12:09:49]POST finish read [12:09:49]Found Content-Length = 215 [12:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:49]execute_script... [12:09:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:49]POST & json_proto [12:09:49]process_json_proto [12:09:49]json parsed OK: [12:09:49]protocol is kg_v1.0 [12:09:49]action value=get_value [12:09:49]process_action get_value [12:09:49]cmd_get_value [12:09:49]process_action get_value done [12:09:49]requested_data is exist [12:09:49]produce_requested_data [12:09:49]requested_item kkm.sn is exist - process it [12:09:49]requested_item kkm.ver is exist - process it [12:09:49]requested_item fm.sn is exist - process it [12:09:49]wFMCommunicate request_size=4 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 11 00 00 [12:09:49]Write to MH i2c: E2 08 00 3E 02 80 11 00 00 00 00 00 00 BA [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 17 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 17 00 3E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [12:09: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:09:49]wFMCommunicate OK [12:09:49]requested_item fd.num is exist - process it [12:09:49]SAM_PROTO_GetFieldsCounters [12:09:49]wFMCommunicate request_size=4 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 13 00 00 [12:09:49]Write to MH i2c: E2 08 00 3F 02 80 13 00 00 00 00 00 00 BD [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 62 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 62 00 3F 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 CB 13 01 00 0E 04 04 00 C4 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 E0 [12:09: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 CB 13 01 00 0E 04 04 00 C4 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 [12:09:49]wFMCommunicate OK [12:09:49]SAM_PROTO_GetFieldsCounters done [12:09:49]requested_item shift.num is exist - process it [12:09:49]requested_item shift.opened is exist - process it [12:09:49]req_shift_opened [12:09:49]FM_GetShiftState [12:09:49]SAM_PROTO_GetShiftState [12:09:49]wFMCommunicate request_size=4 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 13 01 00 [12:09:49]Write to MH i2c: E2 08 00 40 02 80 13 01 00 00 00 00 00 BF [12:09:50]Write i2c OK [12:09:50]MH_I2C_Read... [12:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:50]Read from MH i2c: E2 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: E2 0E 00 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: E2 0E 00 40 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4C [12:09:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:09:50]wFMCommunicate OK [12:09:50]SAM_PROTO_GetShiftState done [12:09:50]FM_GetShiftState done [12:09:50]req_shift_opened done [12:09:50]requested_item shift.open_date is exist - process it [12:09:50]req_shift_open_date [12:09:50]req_shift_open_date done [12:09:50]produce_requested_data done [12:09:50]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70603,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:09:50]process_action_free get_value [12:09:50]json_value_free [12:09:50]json_value_free done [12:09:50]process_json_proto returns [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [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:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00: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: 16404289+1713281131=1729685420 [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:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 AC E7 18 67 6B 98 1E 66 98 [12:10:20]Current date/time: 23.10.2024 12:10 [12:10:20]FM_Init [12:10:20]wFMConnect [12:10:20]MH_SAM_On [12:10:20]Write to MH i2c: E0 00 00 08 00 E7 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_init finished! [12:10:20]*** atr: [12:10:20]*** 0F 3B D5 18 FF 81 91 FE [12:10:20]*** 1F C3 80 73 C8 21 10 0A [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]*** 00 00 00 00 00 00 00 00 [12:10:20]Read from MH i2c: E0 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E0 10 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:10:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:10:20]wFMCommunicate request_size=10 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:10:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 11 00 00 [12:10:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 [12:10:20]MH_I2C_Read... [12:10:20]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 [12:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:10:20]wFMCommunicate OK [12:10:20]Detected FM SN is 0000000000963346 [12:10:20]Stored FM SN is 0000000000963346 [12:10:20]wFMCommunicate request_size=9 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 16 00 00 04 0B 88 00 00 [12:10:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]FM PIN OK [12:10:20]wFMCommunicate request_size=8 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 14 04 00 03 02 00 01 [12:10:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]wFMCommunicate request_size=13 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:10:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:10:20]RAPDU: 90 00 [12:10:20]wFMCommunicate OK [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 11 00 00 [12:10:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 [12:10:20]MH_I2C_Read... [12:10:20]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 [12:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:10:20]wFMCommunicate OK [12:10:20]DocumentArchiveInit [12:10:20]Start Httpd... [12:10:20]Httpd thread 3067321700 created [12:10:20]Write to MH i2c: 01 00 00 0F 00 0F [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:10:20]MH Int Process started [12:10:20]Allocated Socket 8 [12:10:20]Bind OK [12:10:20]Listen OK [12:10:20]httpd running on port 8080 [12:10:20]Waiting for new connection... [12:10:20]OFD Sender: No OFD packet to send [12:10:21]accept exits with 9 [12:10:21]New connection [12:10:21]New thread 3067034980 created [12:10:21]Waiting for new connection... [12:10:21] Sock 9.Parse request [12:10:21]Sock 9.Check first char [12:10:21]Sock 9.First char is OK [12:10:21]request: POST /json_proto HTTP/1.0 [12:10:21]Method: POST [12:10:21]URL: /json_proto [12:10:21]Method is POST - this is cgi request [12:10:21]url: /json_proto [12:10:21]query_string will be loaded in cgi processing [12:10:21]execute_cgi json_proto POST (null) [12:10:21]execute_cgi path=json_proto method=POST [12:10:21]POST find Content-Length [12:10:21]Host: 172.17.50.3:8080 [12:10:21]Content-Length: 215 [12:10:21]Content-Type: application/json [12:10:21] [12:10:21]POST finish read [12:10:21]Found Content-Length = 215 [12:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:21]execute_script... [12:10:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:21]POST & json_proto [12:10:21]process_json_proto [12:10:21]json parsed OK: [12:10:21]protocol is kg_v1.0 [12:10:21]action value=get_value [12:10:21]process_action get_value [12:10:21]cmd_get_value [12:10:21]process_action get_value done [12:10:21]requested_data is exist [12:10:21]produce_requested_data [12:10:21]requested_item kkm.sn is exist - process it [12:10:21]requested_item kkm.ver is exist - process it [12:10:21]requested_item fm.sn is exist - process it [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 11 00 00 [12:10:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 17 00 [12:10:21]MH_I2C_Read... [12:10:21]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 [12:10: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:10:21]wFMCommunicate OK [12:10:21]requested_item fd.num is exist - process it [12:10:21]SAM_PROTO_GetFieldsCounters [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 13 00 00 [12:10:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 62 00 [12:10:21]MH_I2C_Read... [12:10:21]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 CB 13 01 00 0E 04 04 00 C4 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 B0 [12:10: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 CB 13 01 00 0E 04 04 00 C4 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 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_GetFieldsCounters done [12:10:21]requested_item shift.num is exist - process it [12:10:21]requested_item shift.opened is exist - process it [12:10:21]req_shift_opened [12:10:21]FM_GetShiftState [12:10:21]SAM_PROTO_GetShiftState [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 13 01 00 [12:10:21]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 0E 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1C [12:10:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_GetShiftState done [12:10:21]FM_GetShiftState done [12:10:21]req_shift_opened done [12:10:21]requested_item shift.open_date is exist - process it [12:10:21]req_shift_open_date [12:10:21]req_shift_open_date done [12:10:21]produce_requested_data done [12:10:21]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70603,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:10:21]process_action_free get_value [12:10:21]json_value_free [12:10:21]json_value_free done [12:10:21]process_json_proto returns [12:10:21]Send response to host [12:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70603,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:10:21]free response buf [12:10:21]execute_script done [12:10:21]execute_script returns [12:10:21]free content buf [12:10:21]Sock 9.Close socket [12:10:21]Sock 9.Thread stoped [12:10:21]accept exits with 6 [12:10:21]New connection [12:10:21]New thread 3066891620 created [12:10:21]Thread 3067034980 joined [12:10:21]Waiting for new connection... [12:10:21] Sock 6.Parse request [12:10:21]Sock 6.Check first char [12:10:21]Sock 6.First char is OK [12:10:21]request: POST /json_proto HTTP/1.0 [12:10:21]Method: POST [12:10:21]URL: /json_proto [12:10:21]Method is POST - this is cgi request [12:10:21]url: /json_proto [12:10:21]query_string will be loaded in cgi processing [12:10:21]execute_cgi json_proto POST (null) [12:10:21]execute_cgi path=json_proto method=POST [12:10:21]POST find Content-Length [12:10:21]Host: 172.17.50.3:8080 [12:10:21]Content-Length: 331 [12:10:21]Content-Type: application/json [12:10:21] [12:10:21]POST finish read [12:10:21]Found Content-Length = 331 [12:10: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" ] } } [12:10:21]execute_script... [12:10: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" ] } } [12:10:21]POST & json_proto [12:10:21]process_json_proto [12:10:21]json parsed OK: [12:10:21]protocol is kg_v1.0 [12:10:21]action value=get_value [12:10:21]process_action get_value [12:10:22]cmd_get_value [12:10:22]process_action get_value done [12:10:22]requested_data is exist [12:10:22]produce_requested_data [12:10:22]requested_item fm.sale.total is exist - process it [12:10:22]SAM_PROTO_GetFMData [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 13 03 00 [12:10:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 FD 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 43 12 01 00 69 04 A3 00 6F 04 04 00 FE 0E 01 00 B1 04 05 00 D7 E5 0C E9 01 70 04 05 00 B4 15 6E 5D 01 72 04 04 00 23 D0 9E 8B 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 43 FC F1 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 D8 1A 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 C6 [12:10:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 43 12 01 00 69 04 A3 00 6F 04 04 00 FE 0E 01 00 B1 04 05 00 D7 E5 0C E9 01 70 04 05 00 B4 15 6E 5D 01 72 04 04 00 23 D0 9E 8B 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 43 FC F1 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 D8 1A 54 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 45 03 00 00 B1 04 04 00 5C C4 04 12 70 04 04 00 5C C4 04 12 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 1A E5 E9 01 EF 03 09 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 17 00 00 [12:10:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 FD 00 [12:10:22]MH_I2C_Read... [12:10:22]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 DD D2 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 [12:10: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 DD D2 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 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 17 00 00 [12:10:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 FD 00 [12:10:22]MH_I2C_Read... [12:10:22]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 [12:10:22]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 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 17 00 00 [12:10:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 FD 00 [12:10:23]MH_I2C_Read... [12:10:23]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 [12:10: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 [12:10:23]wFMCommunicate OK [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 17 00 00 [12:10:23]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 E2 00 [12:10:23]MH_I2C_Read... [12:10:23]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 [12:10:23]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 [12:10:23]wFMCommunicate OK [12:10:23]SAM_PROTO_GetFMData done [12:10:23]requested_item fm.sale_refund.total is exist - process it [12:10:23]requested_item fm.buy.total is exist - process it [12:10:23]requested_item shift.sale.total is exist - process it [12:10:23]SAM_PROTO_GetShiftData [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 13 02 00 [12:10:23]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 FD 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 77 00 00 00 69 04 9C 00 6F 04 04 00 77 00 00 00 B1 04 03 00 17 3B A2 70 04 03 00 A8 32 89 72 04 03 00 6F 08 19 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 67 3B 11 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 98 6F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 F6 [12:10:24]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 77 00 00 00 69 04 9C 00 6F 04 04 00 77 00 00 00 B1 04 03 00 17 3B A2 70 04 03 00 A8 32 89 72 04 03 00 6F 08 19 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 67 3B 11 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 98 6F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 17 00 00 [12:10:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [12:10:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 17 00 00 [12:10:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [12:10:24]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 17 00 00 [12:10:24]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [12:10:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 17 00 00 [12:10:24]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 CC 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [12:10:25]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_GetShiftData done [12:10:25]requested_item shift.sale.total_cash is exist - process it [12:10:25]requested_item shift.sale_refund.total is exist - process it [12:10:25]requested_item shift.sale_refund.total_cash is exist - process it [12:10:25]requested_item shift.buy.total is exist - process it [12:10:25]requested_item shift.buy.total_cash is exist - process it [12:10:25]produce_requested_data done [12:10:25]produce_requested_data return {"fm.sale.total":82049038.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":106319.59,"shift.sale.total_cash":89914.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:10:25]process_action_free get_value [12:10:25]json_value_free [12:10:25]json_value_free done [12:10:25]process_json_proto returns [12:10:25]Send response to host [12:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":82049038.95,"fm.sale_refund.total":3023023.00,"fm.buy.total":0.00,"shift.sale.total":106319.59,"shift.sale.total_cash":89914.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:10:25]free response buf [12:10:25]execute_script done [12:10:25]execute_script returns [12:10:25]free content buf [12:10:25]Sock 6.Close socket [12:10:25]Sock 6.Thread stoped [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:41]accept exits with 9 [12:10:41]New connection [12:10:41]New thread 3067034980 created [12:10:41]Thread 3066891620 joined [12:10:41]Waiting for new connection... [12:10:41] Sock 9.Parse request [12:10:41]Sock 9.Check first char [12:10:41]Sock 9.First char is OK [12:10:41]request: POST /json_proto HTTP/1.0 [12:10:41]Method: POST [12:10:41]URL: /json_proto [12:10:41]Method is POST - this is cgi request [12:10:41]url: /json_proto [12:10:41]query_string will be loaded in cgi processing [12:10:41]execute_cgi json_proto POST (null) [12:10:41]execute_cgi path=json_proto method=POST [12:10:41]POST find Content-Length [12:10:41]Host: 172.17.50.3:8080 [12:10:41]Content-Length: 683 [12:10:41]Content-Type: application/json [12:10:41] [12:10:41]POST finish read [12:10:41]Found Content-Length = 683 [12:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886377", "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" ] } } [12:10:41]execute_script... [12:10: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)2886377", "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" ] } } [12:10:41]POST & json_proto [12:10:41]process_json_proto [12:10:41]json parsed OK: [12:10:41]protocol is kg_v1.0 [12:10:41]action value=close_receipt [12:10:41]process_action close_receipt [12:10:41]cmd_close_receipt [12:10:41]MH_GetDate [12:10:41]Write to MH i2c: F0 00 00 1D 00 0C [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: F0 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: F0 09 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: F0 09 00 1D 00 00 C2 E7 18 67 6B 98 1E 66 C4 [12:10:41]GetLastDocTimeStamp 97 [12:10:41]current date 1729685442 [12:10:41]FM_GetShiftState [12:10:41]SAM_PROTO_GetShiftState [12:10:41]wFMCommunicate request_size=4 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 13 01 00 [12:10:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 0E 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 28 [12:10:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:10:41]wFMCommunicate OK [12:10:41]SAM_PROTO_GetShiftState done [12:10:41]FM_GetShiftState done [12:10:41]opened in 1729642435 [12:10:41]opened+sec_in_day 1729728835 [12:10:41]quantity*price = 120055 [12:10:41]sum+1 = 120057 [12:10:41]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 СНО: Общий режим Чек 120 23.10.2024 12:10 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70604 ФПД: 31131524871290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70604&fm=31131524871290&tin=02508201610067®Number=0000000000156251&sum=120000 [12:10:43]StoreToDocumentArchive [12:10:43]shift 196 fd 70604 [12:10:43]save to /storage/0196/doc_00070604 [12:10:43]save last doc name /storage/0196/doc_00070604 to /storage/kkm_last_doc_name [12:10:43]save OK [12:10:43]Clear old archive folders... [12:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:43]tlvbuf is 001617B0 [12:10:43]SAM_PROTO_ClearQueue [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 09 00 00 [12:10:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_ClearQueue done [12:10:43]KKMCreateOFDPacket [12:10:43]OFDProtocolAddRootSTLVToBuf [12:10:43]FM_MakeSignedData [12:10:43]FM_MakeSignedData [12:10:43]SAM_PROTO_SignData [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 0D 01 02 [12:10:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]wFMCommunicate request_size=255 [12:10:43]MH_SAM_APDU [12:10: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 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 78 00 00 00 F4 03 04 00 C2 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C [12:10:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 C2 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 00 00 B7 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]wFMCommunicate request_size=10 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 0D 02 02 05 50 5F 7B 34 7A [12:10:43]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 50 5F 7B 34 7A 00 00 8A [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 0D 03 02 [12:10:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0B 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0B 00 2F 00 00 CB 1B E2 DC D3 F0 7F CF 90 00 60 [12:10:43]RAPDU: CB 1B E2 DC D3 F0 7F CF 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_SignData done [12:10:43]FM_MakeSignedData done [12:10:43]CreateOFDProtocolMessage [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 11 00 00 [12:10:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 17 00 [12:10:43]MH_I2C_Read... [12:10:43]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 [12:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:10:43]wFMCommunicate OK [12:10:43]CreateOFDProtocolMessage done [12:10:43]OFDSenderStorePacket 70604 [12:10:43]StoreOFDPacket docnum=70604 [12:10: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 F9 49 07 01 30 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 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 78 00 00 00 F4 03 04 00 C2 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 50 5F 7B 34 7A CB 1B E2 DC D3 F0 7F CF [12:10:43]CheckFolder [12:10:43]dirname=/storage/ofd_packets [12:10:43]CheckFolder done [12:10:43]ProducePacketName [12:10:43]name=ofd_packets/00070604 [12:10:43]NVStorageSaveData ofd_packets/00070604 [12:10:43]File name is /storage/ofd_packets/00070604 [12:10:43]Write 301 bytes [12:10:43]NVStorageSaveData done [12:10:43]OFDSenderStorePacket done [12:10:43]KKMCreateOFDPacket done [12:10:43]NVStorageSaveData kkm_last_timestamp [12:10:43]File name is /storage/kkm_last_timestamp [12:10:43]Write 4 bytes [12:10:43]NVStorageSaveData done [12:10:43]ExternCall_PrintAddStr [12:10:43]wPrintStart [12:10:43]Write to MH i2c: 01 00 00 31 00 31 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: 01 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: 01 07 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:10:43]RasterBufferAndPrint [12:10:43]line Счет N : (1)2886377 [12:10:43]OFD Sender: Processing packet 70604 [packets to send 18, broken 17] [12:10:43]ProducePacketName [12:10:43]name=ofd_packets/00070604 [12:10:43]OFD Sender: To server: pG, [12:10:43]CommunicateWithHost lk.salyk.kg:30040 [12:10:43]ConnectInit lk.salyk.kg [12:10:43]line ИНН: 02508201610067 [12:10:43]line Контрольно-Кассовый Чек [12:10:43]line ПРОДАЖА [12:10:43]line ТРК (МРК, ГНК) : 13 [12:10:43]line Товар: 2710124500 [12:10:43]line Аи-95-К-5 [12:10:43]line 16.180 * 74.20 [12:10:43]line = 1200.56 [12:10:43]line НДС 12% НСП 1% [12:10:43]line > о реализуемом товаре [12:10:43]line ОКРУГЛЕНИЕ: -0.56 [12:10:43]line ИТОГО: 1200.00 [12:10:43]line Внесено: 1200.00 [12:10:43]line СДАЧА: 0.00 [12:10:43]line НСП 1% : 10.62 [12:10:43]line НДС 12% : 127.49 [12:10:43]line Наличными: 1200.00 [12:10:43]line Безнал.: 0.00 [12:10:43]line Место: АЗС № 85 "Партнер Нефть" [12:10:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:10:43]line СНО: Общий режим [12:10:43]line Чек 120 23.10.2024 12:10 [12:10:43]line Смена: 196 ФФД: 1.0 [12:10:43]line ЗНМ: 0300000167 [12:10:43]line РНМ: 0000000000156251 [12:10:43]line Версия ККМ: v1.0 [12:10:43]line ФМ: 0000000000963346 [12:10:43]line ФД: 70604 [12:10:43]line ФПД: 31131524871290 [12:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70604&fm=31131524871290&tin=02508201610067®Number=0000000000156251&sum=120000 [12:10:43]written 0, free lines is 4095 [12:10:43]Connected sock=10 [12:10: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 F9 49 07 01 30 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 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 78 00 00 00 F4 03 04 00 C2 E7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 50 5F 7B 34 7A CB 1B E2 DC D3 F0 7F CF [12:10: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 4F E7 47 00 21 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 60 91 18 67 B6 04 01 00 00 8C A9 02 CA 9D 03 53 A9 [12:10:43]CommunicateWithHost err = 0 [12:10:43]CheckOFDResponse [12:10:43]1017 (14) - 77093643461234 [12:10:43]1041 (16) - 0000000000963346 [12:10:43]1040 (4) - 70604 [12:10:43]1012 (4) - 23.10.2024 06:02 [12:10:43]1206 (1) - 0 [12:10:43]OFD Sender: Remove packet 70604 [12:10:43]ProducePacketName [12:10:43]name=ofd_packets/00070604 [12:10:43]NVStorageDeleteData [12:10:44]Write to MH i2c: 01 00 00 5C 00 5C [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 07 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 FD 0C 6C [12:10:44]RasterBufferAndPrint [12:10:44]line [12:10:44]line [12:10:44]line [12:10:44]line [12:10:44]line [12:10:44]written 0, free lines is 3334 [12:10:44]MH_Cut [12:10:44]Write to MH i2c: D1 01 00 63 00 01 35 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: D1 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: D1 01 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: D1 01 00 63 00 00 34 [12:10:44]Write to MH i2c: 01 00 00 64 00 64 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]OFD Sender: No OFD packet to send [12:10:44]*** Cut start [12:10:44]*** Partial cut [12:10:44]*** CUTSNS_PIN = 1 [12:10:44]*** CUTSNS_PIN = 0 [12:10:45]*** Brake cut motor [12:10:45]Read from MH i2c: 01 [12:10:45]MH_I2C_Read... [12:10:45]*** Stop cut motor [12:10:45]*** Cut end [12:10:45]Read from MH i2c: 01 07 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [12:10:45]process_action close_receipt done [12:10:45]requested_data is exist [12:10:45]produce_requested_data [12:10:45]requested_item fm.sn is exist - process it [12:10:45]wFMCommunicate request_size=4 [12:10:45]MH_SAM_APDU [12:10:45]CAPDU: 80 11 00 00 [12:10:45]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:45]Read from MH i2c: E2 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 17 00 [12:10:45]MH_I2C_Read... [12:10:45]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 [12:10: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:10:45]wFMCommunicate OK [12:10:45]requested_item fd.num is exist - process it [12:10:45]SAM_PROTO_GetFieldsCounters [12:10:45]wFMCommunicate request_size=4 [12:10:45]MH_SAM_APDU [12:10:45]CAPDU: 80 13 00 00 [12:10:45]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:45]Read from MH i2c: E2 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 62 00 [12:10:45]MH_I2C_Read... [12:10:45]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 CC 13 01 00 0E 04 04 00 C4 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 [12:10: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 CC 13 01 00 0E 04 04 00 C4 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 [12:10:45]wFMCommunicate OK [12:10:45]SAM_PROTO_GetFieldsCounters done [12:10:45]requested_item shift.num is exist - process it [12:10:45]requested_item shift.opened is exist - process it [12:10:45]req_shift_opened [12:10:45]FM_GetShiftState [12:10:45]SAM_PROTO_GetShiftState [12:10:45]wFMCommunicate request_size=4 [12:10:45]MH_SAM_APDU [12:10:45]CAPDU: 80 13 01 00 [12:10:45]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:45]Read from MH i2c: E2 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 0E 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 71 [12:10:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:10:45]wFMCommunicate OK [12:10:45]SAM_PROTO_GetShiftState done [12:10:45]FM_GetShiftState done [12:10:45]req_shift_opened done [12:10:45]requested_item shift.open_date is exist - process it [12:10:45]req_shift_open_date [12:10:45]req_shift_open_date done [12:10:45]produce_requested_data done [12:10:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70604,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:10:45]process_action_free close_receipt [12:10:45]json_value_free [12:10:45]json_value_free done [12:10:45]process_json_proto returns [12:10:45]Send response to host [12:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70604,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:10:45]free response buf [12:10:45]execute_script done [12:10:45]execute_script returns [12:10:45]free content buf [12:10:45]Sock 9.Close socket [12:10:45]Sock 9.Thread stoped [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:46]accept exits with 7 [12:11:46]New connection [12:11:46]New thread 3066891620 created [12:11:46]Thread 3067034980 joined [12:11:46]Waiting for new connection... [12:11:46] Sock 7.Parse request [12:11:46]Sock 7.Check first char [12:11:46]Sock 7.First char is OK [12:11:46]request: POST /json_proto HTTP/1.0 [12:11:46]Method: POST [12:11:46]URL: /json_proto [12:11:46]Method is POST - this is cgi request [12:11:46]url: /json_proto [12:11:46]query_string will be loaded in cgi processing [12:11:46]execute_cgi json_proto POST (null) [12:11:46]execute_cgi path=json_proto method=POST [12:11:46]POST find Content-Length [12:11:46]Host: 172.17.50.3:8080 [12:11:46]Content-Length: 689 [12:11:46]Content-Type: application/json [12:11:46] [12:11:46]POST finish read [12:11:46]Found Content-Length = 689 [12:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886378", "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" ] } } [12:11:46]execute_script... [12:11: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)2886378", "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" ] } } [12:11:46]POST & json_proto [12:11:46]process_json_proto [12:11:46]json parsed OK: [12:11:46]protocol is kg_v1.0 [12:11:46]action value=close_receipt [12:11:46]process_action close_receipt [12:11:46]cmd_close_receipt [12:11:46]MH_GetDate [12:11:46]Write to MH i2c: F0 00 00 68 00 57 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 68 00 00 03 E8 18 67 6B 98 1E 66 51 [12:11:46]GetLastDocTimeStamp 1729685442 [12:11:46]current date 1729685507 [12:11:46]FM_GetShiftState [12:11:46]SAM_PROTO_GetShiftState [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 01 00 [12:11:46]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 73 [12:11:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetShiftState done [12:11:46]FM_GetShiftState done [12:11:46]opened in 1729642435 [12:11:46]opened+sec_in_day 1729728835 [12:11:46]quantity*price = 100051 [12:11:46]sum+1 = 100052 [12:11:46]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 СНО: Общий режим Чек 121 23.10.2024 12:11 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70605 ФПД: 233654539031297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70605&fm=233654539031297&tin=02508201610067®Number=0000000000156251&sum=100000 [12:11:47]StoreToDocumentArchive [12:11:47]shift 196 fd 70605 [12:11:47]save to /storage/0196/doc_00070605 [12:11:47]save last doc name /storage/0196/doc_00070605 to /storage/kkm_last_doc_name [12:11:47]save OK [12:11:47]Clear old archive folders... [12:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:11:47]tlvbuf is 0012DE00 [12:11:47]SAM_PROTO_ClearQueue [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 09 00 00 [12:11:47]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_ClearQueue done [12:11:47]KKMCreateOFDPacket [12:11:47]OFDProtocolAddRootSTLVToBuf [12:11:47]FM_MakeSignedData [12:11:47]FM_MakeSignedData [12:11:47]SAM_PROTO_SignData [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 0D 01 02 [12:11:47]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]wFMCommunicate request_size=255 [12:11:47]MH_SAM_APDU [12:11:47]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 79 00 00 00 F4 03 04 00 03 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [12:11:47]Write to MH i2c: E2 02 01 78 00 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 79 00 00 00 F4 03 04 00 03 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 CA [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=16 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D4 81 EF CC 93 01 [12:11:48]Write to MH i2c: E2 13 00 79 00 80 0D 02 02 0B 00 00 35 04 06 00 D4 81 EF CC 93 01 00 00 EC [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 03 02 [12:11:48]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0B 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0B 00 7A 00 00 B3 AD 89 CF CB D6 13 E9 90 00 4B [12:11:48]RAPDU: B3 AD 89 CF CB D6 13 E9 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_SignData done [12:11:48]FM_MakeSignedData done [12:11:48]CreateOFDProtocolMessage [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 11 00 00 [12:11:48]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 [12:11:48]MH_I2C_Read... [12:11:48]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 [12:11: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:11:48]wFMCommunicate OK [12:11:48]CreateOFDProtocolMessage done [12:11:48]OFDSenderStorePacket 70605 [12:11:48]StoreOFDPacket docnum=70605 [12:11: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 15 01 00 00 E9 86 0D 01 08 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 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 79 00 00 00 F4 03 04 00 03 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D4 81 EF CC 93 01 B3 AD 89 CF CB D6 13 E9 [12:11:48]CheckFolder [12:11:48]dirname=/storage/ofd_packets [12:11:48]CheckFolder done [12:11:48]ProducePacketName [12:11:48]name=ofd_packets/00070605 [12:11:48]NVStorageSaveData ofd_packets/00070605 [12:11:48]File name is /storage/ofd_packets/00070605 [12:11:48]Write 307 bytes [12:11:48]NVStorageSaveData done [12:11:48]OFDSenderStorePacket done [12:11:48]KKMCreateOFDPacket done [12:11:48]NVStorageSaveData kkm_last_timestamp [12:11:48]File name is /storage/kkm_last_timestamp [12:11:48]Write 4 bytes [12:11:48]NVStorageSaveData done [12:11:48]ExternCall_PrintAddStr [12:11:48]wPrintStart [12:11:48]Write to MH i2c: 01 00 00 7C 00 7C [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [12:11:48]RasterBufferAndPrint [12:11:48]line Счет N : (1)2886378 [12:11:48]line ИНН: 02508201610067 [12:11:48]line Контрольно-Кассовый Чек [12:11:48]line ПРОДАЖА [12:11:48]line ТРК (МРК, ГНК) : 31 [12:11:48]line Товар: 2710194240 [12:11:48]line D-ENERGY Дт-К-2 [12:11:48]line 12.960 * 77.20 [12:11:48]line = 1000.51 [12:11:48]line НДС 12% НСП 1% [12:11:48]line > о реализуемом товаре [12:11:48]line ОКРУГЛЕНИЕ: -0.51 [12:11:48]line ИТОГО: 1000.00 [12:11:48]line Внесено: 1000.00 [12:11:48]line СДАЧА: 0.00 [12:11:48]line НСП 1% : 8.85 [12:11:48]line НДС 12% : 106.25 [12:11:48]line Наличными: 1000.00 [12:11:48]line Безнал.: 0.00 [12:11:48]line Место: АЗС № 85 "Партнер Нефть" [12:11:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:11:48]line СНО: Общий режим [12:11:48]line Чек 121 23.10.2024 12:11 [12:11:48]line Смена: 196 ФФД: 1.0 [12:11:48]line ЗНМ: 0300000167 [12:11:48]line РНМ: 0000000000156251 [12:11:48]line Версия ККМ: v1.0 [12:11:48]line ФМ: 0000000000963346 [12:11:48]line ФД: 70605 [12:11:48]line ФПД: 233654539031297 [12:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70605&fm=233654539031297&tin=02508201610067®Number=0000000000156251&sum=100000 [12:11:48]OFD Sender: Processing packet 70605 [packets to send 18, broken 17] [12:11:48]ProducePacketName [12:11:48]name=ofd_packets/00070605 [12:11:48]OFD Sender: To server: pG, [12:11:48]CommunicateWithHost lk.salyk.kg:30040 [12:11:48]ConnectInit lk.salyk.kg [12:11:48]written 0, free lines is 4095 [12:11:48]Write to MH i2c: 01 00 00 A7 00 A7 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F6 0C B0 [12:11:48]RasterBufferAndPrint [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]written 0, free lines is 3324 [12:11:48]MH_Cut [12:11:48]Write to MH i2c: D1 01 00 AE 00 01 80 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 01 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 01 00 AE 00 00 7F [12:11:48]Write to MH i2c: 01 00 00 AF 00 AF [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** Cut start [12:11:49]*** Partial cut [12:11:49]*** CUTSNS_PIN = 1 [12:11:49]*** CUTSNS_PIN = 0 [12:11:49]*** Brake cut motor [12:11:50]Read from MH i2c: 01 [12:11:50]MH_I2C_Read... [12:11:50]*** Stop cut motor [12:11:50]Read from MH i2c: 01 07 00 [12:11:50]MH_I2C_Read... [12:11:50]*** Cut end [12:11:50]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [12:11:50]process_action close_receipt done [12:11:50]requested_data is exist [12:11:50]produce_requested_data [12:11:50]requested_item fm.sn is exist - process it [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 11 00 00 [12:11:50]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 17 00 [12:11:50]MH_I2C_Read... [12:11:50]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 [12:11: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:11:50]wFMCommunicate OK [12:11:50]requested_item fd.num is exist - process it [12:11:50]SAM_PROTO_GetFieldsCounters [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 00 00 [12:11:50]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 62 00 [12:11:50]MH_I2C_Read... [12:11:50]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 CD 13 01 00 0E 04 04 00 C4 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 58 [12:11: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 CD 13 01 00 0E 04 04 00 C4 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 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetFieldsCounters done [12:11:50]requested_item shift.num is exist - process it [12:11:50]requested_item shift.opened is exist - process it [12:11:50]req_shift_opened [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BC [12:11:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]req_shift_opened done [12:11:50]requested_item shift.open_date is exist - process it [12:11:50]req_shift_open_date [12:11:50]req_shift_open_date done [12:11:50]produce_requested_data done [12:11:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70605,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:11:50]process_action_free close_receipt [12:11:50]json_value_free [12:11:50]json_value_free done [12:11:50]process_json_proto returns [12:11:50]Send response to host [12:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70605,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:11:50]free response buf [12:11:50]execute_script done [12:11:50]execute_script returns [12:11:50]free content buf [12:11:50]Sock 7.Close socket [12:11:50]Sock 7.Thread stoped [12:12:16]accept exits with 9 [12:12:16]New connection [12:12:16]New thread 3067034980 created [12:12:16]Thread 3066891620 joined [12:12:16]Waiting for new connection... [12:12:16] Sock 9.Parse request [12:12:16]Sock 9.Check first char [12:12:16]Sock 9.First char is OK [12:12:16]request: POST /json_proto HTTP/1.0 [12:12:16]Method: POST [12:12:16]URL: /json_proto [12:12:16]Method is POST - this is cgi request [12:12:16]url: /json_proto [12:12:16]query_string will be loaded in cgi processing [12:12:16]execute_cgi json_proto POST (null) [12:12:16]execute_cgi path=json_proto method=POST [12:12:16]POST find Content-Length [12:12:16]Host: 172.17.50.3:8080 [12:12:16]Content-Length: 680 [12:12:16]Content-Type: application/json [12:12:16] [12:12:16]POST finish read [12:12:16]Found Content-Length = 680 [12:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886379", "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" ] } } [12:12:16]execute_script... [12:12: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)2886379", "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" ] } } [12:12:16]POST & json_proto [12:12:16]process_json_proto [12:12:16]json parsed OK: [12:12:16]protocol is kg_v1.0 [12:12:16]action value=close_receipt [12:12:16]process_action close_receipt [12:12:16]cmd_close_receipt [12:12:16]MH_GetDate [12:12:16]Write to MH i2c: F0 00 00 B3 00 A2 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 09 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 09 00 B3 00 00 21 E8 18 67 6B 98 1E 66 BA [12:12:16]GetLastDocTimeStamp 1729685507 [12:12:16]current date 1729685537 [12:12:16]FM_GetShiftState [12:12:16]SAM_PROTO_GetShiftState [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 13 01 00 [12:12:16]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BE [12:12:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_GetShiftState done [12:12:16]FM_GetShiftState done [12:12:16]opened in 1729642435 [12:12:16]opened+sec_in_day 1729728835 [12:12:16]quantity*price = 100050 [12:12:16]sum+1 = 100052 [12:12:16]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 23.10.2024 12:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70606 ФПД: 160789304532293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70606&fm=160789304532293&tin=02508201610067®Number=0000000000156251&sum=100000 [12:12:18]StoreToDocumentArchive [12:12:18]shift 196 fd 70606 [12:12:18]save to /storage/0196/doc_00070606 [12:12:18]save last doc name /storage/0196/doc_00070606 to /storage/kkm_last_doc_name [12:12:18]save OK [12:12:18]Clear old archive folders... [12:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:12:18]tlvbuf is 00123D90 [12:12:18]SAM_PROTO_ClearQueue [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 09 00 00 [12:12:18]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_ClearQueue done [12:12:18]KKMCreateOFDPacket [12:12:18]OFDProtocolAddRootSTLVToBuf [12:12:18]FM_MakeSignedData [12:12:18]FM_MakeSignedData [12:12:18]SAM_PROTO_SignData [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 01 02 [12:12:18]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=255 [12:12:18]MH_SAM_APDU [12:12: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 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 21 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 3C AD 61 [12:12:18]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 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 21 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 3C AD 61 00 00 3E [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=7 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 02 02 02 5D 45 [12:12:18]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 5D 45 00 00 E4 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 03 02 [12:12:18]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0B 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0B 00 C5 00 00 00 8B B7 4A CA DA F4 35 90 00 9A [12:12:18]RAPDU: 00 8B B7 4A CA DA F4 35 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_SignData done [12:12:18]FM_MakeSignedData done [12:12:18]CreateOFDProtocolMessage [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 11 00 00 [12:12:18]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [12:12:18]Write i2c OK [12:12:18]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 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 [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]CreateOFDProtocolMessage done [12:12:18]OFDSenderStorePacket 70606 [12:12:18]StoreOFDPacket docnum=70606 [12:12: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 CA 34 04 01 2F 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 7A 00 00 00 F4 03 04 00 21 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 3C AD 61 5D 45 00 8B B7 4A CA DA F4 35 [12:12:18]CheckFolder [12:12:18]dirname=/storage/ofd_packets [12:12:18]CheckFolder done [12:12:18]ProducePacketName [12:12:18]name=ofd_packets/00070606 [12:12:18]NVStorageSaveData ofd_packets/00070606 [12:12:18]File name is /storage/ofd_packets/00070606 [12:12:18]Write 298 bytes [12:12:18]NVStorageSaveData done [12:12:18]OFDSenderStorePacket done [12:12:18]KKMCreateOFDPacket done [12:12:18]NVStorageSaveData kkm_last_timestamp [12:12:18]File name is /storage/kkm_last_timestamp [12:12:18]Write 4 bytes [12:12:18]NVStorageSaveData done [12:12:18]ExternCall_PrintAddStr [12:12:18]wPrintStart [12:12:18]Write to MH i2c: 01 00 00 C7 00 C7 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 07 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [12:12:18]RasterBufferAndPrint [12:12:18]line Счет N : (1)2886379 [12:12:18]line ИНН: 02508201610067 [12:12:18]line Контрольно-Кассовый Чек [12:12:18]line ПРОДАЖА [12:12:18]line ТРК (МРК, ГНК) : 51 [12:12:18]line Товар: 2710194210 [12:12:18]line ДТ-К-5 [12:12:18]line 13.130 * 76.20 [12:12:18]line = 1000.51 [12:12:18]line НДС 12% НСП 1% [12:12:18]line > о реализуемом товаре [12:12:18]line ОКРУГЛЕНИЕ: -0.51 [12:12:18]line ИТОГО: 1000.00 [12:12:18]line Внесено: 1000.00 [12:12:18]line СДАЧА: 0.00 [12:12:18]line НСП 1% : 8.85 [12:12:18]line НДС 12% : 106.25 [12:12:18]line Наличными: 1000.00 [12:12:18]line Безнал.: 0.00 [12:12:18]line Место: АЗС № 85 "Партнер Нефть" [12:12:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:12:18]line СНО: Общий режим [12:12:18]line Чек 122 23.10.2024 12:12 [12:12:18]line Смена: 196 ФФД: 1.0 [12:12:18]line ЗНМ: 0300000167 [12:12:18]line РНМ: 0000000000156251 [12:12:18]line Версия ККМ: v1.0 [12:12:18]line ФМ: 0000000000963346 [12:12:18]line ФД: 70606 [12:12:18]line ФПД: 160789304532293 [12:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70606&fm=160789304532293&tin=02508201610067®Number=0000000000156251&sum=100000 [12:12:18]written 0, free lines is 4095 [12:12:19]Write to MH i2c: 01 00 00 F2 00 F2 [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 07 00 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 E6 0C EB [12:12:19]RasterBufferAndPrint [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]written 0, free lines is 3308 [12:12:19]MH_Cut [12:12:19]Write to MH i2c: D1 01 00 F9 00 01 CB [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 01 00 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 01 00 F9 00 00 CA [12:12:19]Write to MH i2c: 01 00 00 FA 00 FA [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]*** Cut start [12:12:19]*** Partial cut [12:12:19]*** CUTSNS_PIN = 1 [12:12:19]*** CUTSNS_PIN = 0 [12:12:20]*** Brake cut motor [12:12:20]Read from MH i2c: 01 [12:12:20]MH_I2C_Read... [12:12:20]*** Stop cut motor [12:12:20]*** Cut end [12:12:20]Read from MH i2c: 01 07 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [12:12:20]process_action close_receipt done [12:12:20]requested_data is exist [12:12:20]produce_requested_data [12:12:20]requested_item fm.sn is exist - process it [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 11 00 00 [12:12:20]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:20]Read from MH i2c: E2 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 17 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [12:12:20]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:20]wFMCommunicate OK [12:12:20]requested_item fd.num is exist - process it [12:12:20]SAM_PROTO_GetFieldsCounters [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 13 00 00 [12:12:20]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:20]Read from MH i2c: E2 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 62 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 A7 [12:12: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 CE 13 01 00 0E 04 04 00 C4 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 [12:12:20]wFMCommunicate OK [12:12:20]SAM_PROTO_GetFieldsCounters done [12:12:20]requested_item shift.num is exist - process it [12:12:20]requested_item shift.opened is exist - process it [12:12:20]req_shift_opened [12:12:20]FM_GetShiftState [12:12:20]SAM_PROTO_GetShiftState [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 13 01 00 [12:12:20]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:20]Read from MH i2c: E2 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 0E 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 07 [12:12:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:12:20]wFMCommunicate OK [12:12:20]SAM_PROTO_GetShiftState done [12:12:20]FM_GetShiftState done [12:12:20]req_shift_opened done [12:12:20]requested_item shift.open_date is exist - process it [12:12:20]req_shift_open_date [12:12:20]req_shift_open_date done [12:12:20]produce_requested_data done [12:12:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70606,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:12:20]process_action_free close_receipt [12:12:20]json_value_free [12:12:20]json_value_free done [12:12:20]process_json_proto returns [12:12:20]Send response to host [12:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70606,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:12:20]free response buf [12:12:20]execute_script done [12:12:20]execute_script returns [12:12:20]free content buf [12:12:20]Sock 9.Close socket [12:12:20]Sock 9.Thread stoped [12:13:59]ConnectInit Can't connect to host [12:13:59]CommunicateWithHost connect error [12:13:59]CommunicateWithHost err = -1 [12:13:59]OFD Sender: Server communicate error [12:13:59]OFD Sender: Processing packet 70605 [packets to send 19, broken 17] [12:13:59]ProducePacketName [12:13:59]name=ofd_packets/00070605 [12:13:59]OFD Sender: To server: pG, [12:13:59]CommunicateWithHost lk.salyk.kg:30040 [12:13:59]ConnectInit lk.salyk.kg [12:14:00]Connected sock=9 [12: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 15 01 00 00 E9 86 0D 01 08 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 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 79 00 00 00 F4 03 04 00 03 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D4 81 EF CC 93 01 B3 AD 89 CF CB D6 13 E9 [12: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 C6 0B 47 00 96 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 CD 13 01 00 F4 03 04 00 24 92 18 67 B6 04 01 00 00 A9 FB FB D2 FE 3C 3D 9C [12:14:00]CommunicateWithHost err = 0 [12:14:00]CheckOFDResponse [12:14:00]1017 (14) - 77093643461234 [12:14:00]1041 (16) - 0000000000963346 [12:14:00]1040 (4) - 70605 [12:14:00]1012 (4) - 23.10.2024 06:05 [12:14:00]1206 (1) - 0 [12:14:00]OFD Sender: Remove packet 70605 [12:14:00]ProducePacketName [12:14:00]name=ofd_packets/00070605 [12:14:00]NVStorageDeleteData [12:14:00]OFD Sender: Processing packet 70606 [packets to send 18, broken 17] [12:14:00]ProducePacketName [12:14:00]name=ofd_packets/00070606 [12:14:00]OFD Sender: To server: pG, [12:14:00]CommunicateWithHost lk.salyk.kg:30040 [12:14:00]ConnectInit lk.salyk.kg [12:14:00]Connected sock=9 [12: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 0C 01 00 00 CA 34 04 01 2F 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 7A 00 00 00 F4 03 04 00 21 E8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 3C AD 61 5D 45 00 8B B7 4A CA DA F4 35 [12:14: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 CA A8 47 00 DD 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 CE 13 01 00 F4 03 04 00 25 92 18 67 B6 04 01 00 00 25 61 87 CA FA 63 B5 2F [12:14:01]CommunicateWithHost err = 0 [12:14:01]CheckOFDResponse [12:14:01]1017 (14) - 77093643461234 [12:14:01]1041 (16) - 0000000000963346 [12:14:01]1040 (4) - 70606 [12:14:01]1012 (4) - 23.10.2024 06:05 [12:14:01]1206 (1) - 0 [12:14:01]OFD Sender: Remove packet 70606 [12:14:01]ProducePacketName [12:14:01]name=ofd_packets/00070606 [12:14:01]NVStorageDeleteData [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:50]accept exits with 7 [12:16:50]New connection [12:16:50]New thread 3066891620 created [12:16:50]Thread 3067034980 joined [12:16:50]Waiting for new connection... [12:16:50] Sock 7.Parse request [12:16:50]Sock 7.Check first char [12:16:50]Sock 7.First char is OK [12:16:50]request: POST /json_proto HTTP/1.0 [12:16:50]Method: POST [12:16:50]URL: /json_proto [12:16:50]Method is POST - this is cgi request [12:16:50]url: /json_proto [12:16:50]query_string will be loaded in cgi processing [12:16:50]execute_cgi json_proto POST (null) [12:16:50]execute_cgi path=json_proto method=POST [12:16:50]POST find Content-Length [12:16:50]Host: 172.17.50.3:8080 [12:16:50]Content-Length: 683 [12:16:50]Content-Type: application/json [12:16:50] [12:16:50]POST finish read [12:16:50]Found Content-Length = 683 [12:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886380", "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:16:50]execute_script... [12:16: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)2886380", "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:16:50]POST & json_proto [12:16:50]process_json_proto [12:16:50]json parsed OK: [12:16:50]protocol is kg_v1.0 [12:16:50]action value=close_receipt [12:16:50]process_action close_receipt [12:16:50]cmd_close_receipt [12:16:50]MH_GetDate [12:16:50]Write to MH i2c: F0 00 00 FE 00 ED [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 09 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 09 00 FE 00 00 33 E9 18 67 6B 98 1E 66 18 [12:16:50]GetLastDocTimeStamp 1729685537 [12:16:50]current date 1729685811 [12:16:50]FM_GetShiftState [12:16:50]SAM_PROTO_GetShiftState [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 13 01 00 [12:16:50]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0E 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 09 [12:16:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:16:50]wFMCommunicate OK [12:16:50]SAM_PROTO_GetShiftState done [12:16:50]FM_GetShiftState done [12:16:50]opened in 1729642435 [12:16:50]opened+sec_in_day 1729728835 [12:16:50]quantity*price = 100015 [12:16:50]sum+1 = 100017 [12:16:50]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 СНО: Общий режим Чек 123 23.10.2024 12:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70607 ФПД: 29154114205830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70607&fm=29154114205830&tin=02508201610067®Number=0000000000156251&sum=100000 [12:16:51]StoreToDocumentArchive [12:16:51]shift 196 fd 70607 [12:16:51]save to /storage/0196/doc_00070607 [12:16:51]save last doc name /storage/0196/doc_00070607 to /storage/kkm_last_doc_name [12:16:51]save OK [12:16:51]Clear old archive folders... [12:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:51]tlvbuf is 001256D0 [12:16:51]SAM_PROTO_ClearQueue [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 09 00 00 [12:16:51]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_ClearQueue done [12:16:51]KKMCreateOFDPacket [12:16:51]OFDProtocolAddRootSTLVToBuf [12:16:51]FM_MakeSignedData [12:16:51]FM_MakeSignedData [12:16:51]SAM_PROTO_SignData [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 01 02 [12:16:51]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=255 [12:16:51]MH_SAM_APDU [12:16: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 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 7B 00 00 00 F4 03 04 00 33 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1A [12:16:51]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 33 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1A 00 00 E1 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]OFD Sender: No OFD packet to send [12:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=10 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 02 02 05 83 F8 9E F8 86 [12:16:51]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 83 F8 9E F8 86 00 00 2B [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 03 02 [12:16:51]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0B 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0B 00 10 01 00 80 E5 87 B5 7D 47 D0 14 90 00 D6 [12:16:51]RAPDU: 80 E5 87 B5 7D 47 D0 14 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_SignData done [12:16:51]FM_MakeSignedData done [12:16:51]CreateOFDProtocolMessage [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 11 00 00 [12:16:51]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:52]Read from MH i2c: E2 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [12:16: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:16:52]wFMCommunicate OK [12:16:52]CreateOFDProtocolMessage done [12:16:52]OFDSenderStorePacket 70607 [12:16:52]StoreOFDPacket docnum=70607 [12:16: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 A7 F6 07 01 0E 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 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 7B 00 00 00 F4 03 04 00 33 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1A 83 F8 9E F8 86 80 E5 87 B5 7D 47 D0 14 [12:16:52]CheckFolder [12:16:52]dirname=/storage/ofd_packets [12:16:52]CheckFolder done [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00070607 [12:16:52]NVStorageSaveData ofd_packets/00070607 [12:16:52]File name is /storage/ofd_packets/00070607 [12:16:52]Write 301 bytes [12:16:52]NVStorageSaveData done [12:16:52]OFDSenderStorePacket done [12:16:52]KKMCreateOFDPacket done [12:16:52]NVStorageSaveData kkm_last_timestamp [12:16:52]File name is /storage/kkm_last_timestamp [12:16:52]Write 4 bytes [12:16:52]NVStorageSaveData done [12:16:52]ExternCall_PrintAddStr [12:16:52]wPrintStart [12:16:52]Write to MH i2c: 01 00 00 12 01 13 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [12:16:52]RasterBufferAndPrint [12:16:52]line Счет N : (1)2886380 [12:16:52]line ИНН: 02508201610067 [12:16:52]line Контрольно-Кассовый Чек [12:16:52]line ПРОДАЖА [12:16:52]line ТРК (МРК, ГНК) : 12 [12:16:52]line Товар: 2710124130 [12:16:52]line Аи-92-К-5 [12:16:52]line 14.950 * 66.90 [12:16:52]line = 1000.16 [12:16:52]line НДС 12% НСП 1% [12:16:52]line > о реализуемом товаре [12:16:52]line ОКРУГЛЕНИЕ: -0.16 [12:16:52]line ИТОГО: 1000.00 [12:16:52]line Внесено: 1000.00 [12:16:52]line СДАЧА: 0.00 [12:16:52]line НСП 1% : 8.85 [12:16:52]line НДС 12% : 106.21 [12:16:52]line Наличными: 1000.00 [12:16:52]line Безнал.: 0.00 [12:16:52]line Место: АЗС № 85 "Партнер Нефть" [12:16:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:16:52]line СНО: Общий режим [12:16:52]line Чек 123 23.10.2024 12:16 [12:16:52]line Смена: 196 ФФД: 1.0 [12:16:52]line ЗНМ: 0300000167 [12:16:52]line РНМ: 0000000000156251 [12:16:52]line Версия ККМ: v1.0 [12:16:52]line ФМ: 0000000000963346 [12:16:52]line ФД: 70607 [12:16:52]line ФПД: 29154114205830 [12:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70607&fm=29154114205830&tin=02508201610067®Number=0000000000156251&sum=100000 [12:16:52]OFD Sender: Processing packet 70607 [packets to send 18, broken 17] [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00070607 [12:16:52]OFD Sender: To server: pG, [12:16:52]CommunicateWithHost lk.salyk.kg:30040 [12:16:52]ConnectInit lk.salyk.kg [12:16:52]written 0, free lines is 4095 [12:16:52]Connected sock=10 [12:16: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 A7 F6 07 01 0E 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 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 7B 00 00 00 F4 03 04 00 33 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1A 83 F8 9E F8 86 80 E5 87 B5 7D 47 D0 14 [12:16: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 0A 47 00 73 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 CF 13 01 00 F4 03 04 00 D1 92 18 67 B6 04 01 00 00 08 EC B2 F3 72 01 08 76 [12:16:52]CommunicateWithHost err = 0 [12:16:52]CheckOFDResponse [12:16:52]1017 (14) - 77093643461234 [12:16:52]1041 (16) - 0000000000963346 [12:16:52]1040 (4) - 70607 [12:16:52]1012 (4) - 23.10.2024 06:08 [12:16:52]1206 (1) - 0 [12:16:52]OFD Sender: Remove packet 70607 [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00070607 [12:16:52]NVStorageDeleteData [12:16:52]Write to MH i2c: 01 00 00 3D 01 3E [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FC 0C 4D [12:16:52]RasterBufferAndPrint [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]written 0, free lines is 3330 [12:16:52]MH_Cut [12:16:52]Write to MH i2c: D1 01 00 44 01 01 17 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 01 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 01 00 44 01 00 16 [12:16:52]Write to MH i2c: 01 00 00 45 01 46 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:53]OFD Sender: No OFD packet to send [12:16:53]*** Cut start [12:16:53]*** Partial cut [12:16:53]*** CUTSNS_PIN = 1 [12:16:53]*** CUTSNS_PIN = 0 [12:16:53]*** Brake cut motor [12:16:54]Read from MH i2c: 01 [12:16:54]MH_I2C_Read... [12:16:54]*** Stop cut motor [12:16:54]*** Cut end [12:16:54]Read from MH i2c: 01 07 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [12:16:54]process_action close_receipt done [12:16:54]requested_data is exist [12:16:54]produce_requested_data [12:16:54]requested_item fm.sn is exist - process it [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 11 00 00 [12:16:54]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [12:16:54]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:54]wFMCommunicate OK [12:16:54]requested_item fd.num is exist - process it [12:16:54]SAM_PROTO_GetFieldsCounters [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 00 00 [12:16:54]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 F7 [12:16: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 CF 13 01 00 0E 04 04 00 C4 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 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetFieldsCounters done [12:16:54]requested_item shift.num is exist - process it [12:16:54]requested_item shift.opened is exist - process it [12:16:54]req_shift_opened [12:16:54]FM_GetShiftState [12:16:54]SAM_PROTO_GetShiftState [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 01 00 [12:16:54]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 53 [12:16:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetShiftState done [12:16:54]FM_GetShiftState done [12:16:54]req_shift_opened done [12:16:54]requested_item shift.open_date is exist - process it [12:16:54]req_shift_open_date [12:16:54]req_shift_open_date done [12:16:54]produce_requested_data done [12:16:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70607,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:16:54]process_action_free close_receipt [12:16:54]json_value_free [12:16:54]json_value_free done [12:16:54]process_json_proto returns [12:16:54]Send response to host [12:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70607,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:16:54]free response buf [12:16:54]execute_script done [12:16:54]execute_script returns [12:16:54]free content buf [12:16:54]Sock 7.Close socket [12:16:54]Sock 7.Thread stoped [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:17:58]accept exits with 9 [12:17:58]New connection [12:17:58]New thread 3067034980 created [12:17:58]Thread 3066891620 joined [12:17:58]Waiting for new connection... [12:17:58] Sock 9.Parse request [12:17:58]Sock 9.Check first char [12:17:58]Sock 9.First char is OK [12:17:58]request: POST /json_proto HTTP/1.0 [12:17:58]Method: POST [12:17:58]URL: /json_proto [12:17:58]Method is POST - this is cgi request [12:17:58]url: /json_proto [12:17:58]query_string will be loaded in cgi processing [12:17:58]execute_cgi json_proto POST (null) [12:17:58]execute_cgi path=json_proto method=POST [12:17:58]POST find Content-Length [12:17:58]Host: 172.17.50.3:8080 [12:17:58]Content-Length: 684 [12:17:58]Content-Type: application/json [12:17:58] [12:17:58]POST finish read [12:17:58]Found Content-Length = 684 [12:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886381", "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" ] } } [12:17:58]execute_script... [12:17: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)2886381", "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" ] } } [12:17:58]POST & json_proto [12:17:58]process_json_proto [12:17:58]json parsed OK: [12:17:58]protocol is kg_v1.0 [12:17:58]action value=close_receipt [12:17:58]process_action close_receipt [12:17:58]cmd_close_receipt [12:17:58]MH_GetDate [12:17:58]Write to MH i2c: F0 00 00 49 01 39 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 09 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 09 00 49 01 00 77 E9 18 67 6B 98 1E 66 A8 [12:17:58]GetLastDocTimeStamp 1729685811 [12:17:58]current date 1729685879 [12:17:58]FM_GetShiftState [12:17:58]SAM_PROTO_GetShiftState [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 01 00 [12:17:58]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 55 [12:17:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetShiftState done [12:17:58]FM_GetShiftState done [12:17:58]opened in 1729642435 [12:17:58]opened+sec_in_day 1729728835 [12:17:58]quantity*price = 60061 [12:17:58]sum+1 = 60063 [12:17:58]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 СНО: Общий режим Чек 124 23.10.2024 12:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70608 ФПД: 201648230058266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70608&fm=201648230058266&tin=02508201610067®Number=0000000000156251&sum=60000 [12:17:59]StoreToDocumentArchive [12:17:59]shift 196 fd 70608 [12:17:59]save to /storage/0196/doc_00070608 [12:17:59]save last doc name /storage/0196/doc_00070608 to /storage/kkm_last_doc_name [12:17:59]save OK [12:17:59]Clear old archive folders... [12:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:17:59]tlvbuf is 00134380 [12:17:59]SAM_PROTO_ClearQueue [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 09 00 00 [12:17:59]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_ClearQueue done [12:17:59]KKMCreateOFDPacket [12:17:59]OFDProtocolAddRootSTLVToBuf [12:17:59]FM_MakeSignedData [12:17:59]FM_MakeSignedData [12:17:59]SAM_PROTO_SignData [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 0D 01 02 [12:17:59]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=255 [12:17:59]MH_SAM_APDU [12:17:59]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 7C 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [12:17:59]Write to MH i2c: E2 02 01 59 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 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 7C 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 40 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:18:00]RAPDU: 90 00 [12:18:00]wFMCommunicate OK [12:18:00]wFMCommunicate request_size=16 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B7 65 E3 1F 49 1A [12:18:00]Write to MH i2c: E2 13 00 5A 01 80 0D 02 02 0B 00 00 35 04 06 00 B7 65 E3 1F 49 1A 00 00 AB [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [12:18:00]RAPDU: 90 00 [12:18:00]wFMCommunicate OK [12:18:00]wFMCommunicate request_size=4 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 0D 03 02 [12:18:00]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 0B 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 0B 00 5B 01 00 44 B6 1B CB C3 F1 7B 3C 90 00 23 [12:18:00]RAPDU: 44 B6 1B CB C3 F1 7B 3C 90 00 [12:18:00]wFMCommunicate OK [12:18:00]SAM_PROTO_SignData done [12:18:00]FM_MakeSignedData done [12:18:00]CreateOFDProtocolMessage [12:18:00]wFMCommunicate request_size=4 [12:18:00]MH_SAM_APDU [12:18:00]CAPDU: 80 11 00 00 [12:18:00]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:00]Read from MH i2c: E2 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 17 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [12:18: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:18:00]wFMCommunicate OK [12:18:00]CreateOFDProtocolMessage done [12:18:00]OFDSenderStorePacket 70608 [12:18:00]StoreOFDPacket docnum=70608 [12:18: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 9D 34 0D 01 80 5C 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 7C 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 65 E3 1F 49 1A 44 B6 1B CB C3 F1 7B 3C [12:18:00]CheckFolder [12:18:00]dirname=/storage/ofd_packets [12:18:00]CheckFolder done [12:18:00]ProducePacketName [12:18:00]name=ofd_packets/00070608 [12:18:00]NVStorageSaveData ofd_packets/00070608 [12:18:00]File name is /storage/ofd_packets/00070608 [12:18:00]Write 307 bytes [12:18:00]NVStorageSaveData done [12:18:00]OFDSenderStorePacket done [12:18:00]KKMCreateOFDPacket done [12:18:00]NVStorageSaveData kkm_last_timestamp [12:18:00]File name is /storage/kkm_last_timestamp [12:18:00]Write 4 bytes [12:18:00]NVStorageSaveData done [12:18:00]ExternCall_PrintAddStr [12:18:00]wPrintStart [12:18:00]Write to MH i2c: 01 00 00 5D 01 5E [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [12:18:00]RasterBufferAndPrint [12:18:00]line Счет N : (1)2886381 [12:18:00]line ИНН: 02508201610067 [12:18:00]line Контрольно-Кассовый Чек [12:18:00]line ПРОДАЖА [12:18:00]line ТРК (МРК, ГНК) : 41 [12:18:00]line Товар: 2710194240 [12:18:00]line D-ENERGY Дт-К-2 [12:18:00]line 7.780 * 77.20 [12:18:00]line = 600.62 [12:18:00]line НДС 12% НСП 1% [12:18:00]line > о реализуемом товаре [12:18:00]line ОКРУГЛЕНИЕ: -0.62 [12:18:00]line ИТОГО: 600.00 [12:18:00]line Внесено: 600.00 [12:18:00]line СДАЧА: 0.00 [12:18:00]line НСП 1% : 5.31 [12:18:00]line НДС 12% : 63.78 [12:18:00]line Наличными: 600.00 [12:18:00]line Безнал.: 0.00 [12:18:00]line Место: АЗС № 85 "Партнер Нефть" [12:18:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:18:00]line СНО: Общий режим [12:18:00]line Чек 124 23.10.2024 12:17 [12:18:00]line Смена: 196 ФФД: 1.0 [12:18:00]line ЗНМ: 0300000167 [12:18:00]line РНМ: 0000000000156251 [12:18:00]line Версия ККМ: v1.0 [12:18:00]line ФМ: 0000000000963346 [12:18:00]line ФД: 70608 [12:18:00]line ФПД: 201648230058266 [12:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70608&fm=201648230058266&tin=02508201610067®Number=0000000000156251&sum=60000 [12:18:00]OFD Sender: Processing packet 70608 [packets to send 18, broken 17] [12:18:00]ProducePacketName [12:18:00]name=ofd_packets/00070608 [12:18:00]OFD Sender: To server: pG, [12:18:00]CommunicateWithHost lk.salyk.kg:30040 [12:18:00]ConnectInit lk.salyk.kg [12:18:00]written 0, free lines is 4095 [12:18:00]Connected sock=10 [12:18: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 9D 34 0D 01 80 5C 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 7C 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B7 65 E3 1F 49 1A 44 B6 1B CB C3 F1 7B 3C [12:18: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 D4 43 47 00 24 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 D0 13 01 00 F4 03 04 00 15 93 18 67 B6 04 01 00 00 3F EA 15 16 19 7C 6A EC [12:18:00]CommunicateWithHost err = 0 [12:18:00]CheckOFDResponse [12:18:00]1017 (14) - 77093643461234 [12:18:00]1041 (16) - 0000000000963346 [12:18:00]1040 (4) - 70608 [12:18:00]1012 (4) - 23.10.2024 06:09 [12:18:00]1206 (1) - 0 [12:18:00]OFD Sender: Remove packet 70608 [12:18:00]ProducePacketName [12:18:00]name=ofd_packets/00070608 [12:18:00]NVStorageDeleteData [12:18:01]Write to MH i2c: 01 00 00 88 01 89 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 F6 0C 92 [12:18:01]RasterBufferAndPrint [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]line [12:18:01]written 0, free lines is 3324 [12:18:01]MH_Cut [12:18:01]Write to MH i2c: D1 01 00 8F 01 01 62 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: D1 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: D1 01 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: D1 01 00 8F 01 00 61 [12:18:01]Write to MH i2c: 01 00 00 90 01 91 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]OFD Sender: No OFD packet to send [12:18:01]*** Cut start [12:18:01]*** Partial cut [12:18:01]*** CUTSNS_PIN = 1 [12:18:01]*** CUTSNS_PIN = 0 [12:18:02]*** Brake cut motor [12:18:02]Read from MH i2c: 01 [12:18:02]MH_I2C_Read... [12:18:02]*** Stop cut motor [12:18:02]*** Cut end [12:18:02]Read from MH i2c: 01 07 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [12:18:02]process_action close_receipt done [12:18:02]requested_data is exist [12:18:02]produce_requested_data [12:18:02]requested_item fm.sn is exist - process it [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 11 00 00 [12:18:02]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 17 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [12:18:02]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:02]wFMCommunicate OK [12:18:02]requested_item fd.num is exist - process it [12:18:02]SAM_PROTO_GetFieldsCounters [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 13 00 00 [12:18:02]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 62 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 46 [12:18: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 D0 13 01 00 0E 04 04 00 C4 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 [12:18:02]wFMCommunicate OK [12:18:02]SAM_PROTO_GetFieldsCounters done [12:18:02]requested_item shift.num is exist - process it [12:18:02]requested_item shift.opened is exist - process it [12:18:02]req_shift_opened [12:18:02]FM_GetShiftState [12:18:02]SAM_PROTO_GetShiftState [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 13 01 00 [12:18:02]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9E [12:18:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:18:02]wFMCommunicate OK [12:18:02]SAM_PROTO_GetShiftState done [12:18:02]FM_GetShiftState done [12:18:02]req_shift_opened done [12:18:02]requested_item shift.open_date is exist - process it [12:18:02]req_shift_open_date [12:18:02]req_shift_open_date done [12:18:02]produce_requested_data done [12:18:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70608,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:18:02]process_action_free close_receipt [12:18:02]json_value_free [12:18:02]json_value_free done [12:18:02]process_json_proto returns [12:18:02]Send response to host [12:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70608,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:18:02]free response buf [12:18:02]execute_script done [12:18:02]execute_script returns [12:18:02]free content buf [12:18:02]Sock 9.Close socket [12:18:02]Sock 9.Thread stoped [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:24]accept exits with 7 [12:18:24]New connection [12:18:24]New thread 3066891620 created [12:18:24]Thread 3067034980 joined [12:18:24]Waiting for new connection... [12:18:24] Sock 7.Parse request [12:18:24]Sock 7.Check first char [12:18:24]Sock 7.First char is OK [12:18:24]request: POST /json_proto HTTP/1.0 [12:18:24]Method: POST [12:18:24]URL: /json_proto [12:18:24]Method is POST - this is cgi request [12:18:24]url: /json_proto [12:18:24]query_string will be loaded in cgi processing [12:18:24]execute_cgi json_proto POST (null) [12:18:24]execute_cgi path=json_proto method=POST [12:18:24]POST find Content-Length [12:18:24]Host: 172.17.50.3:8080 [12:18:24]Content-Length: 680 [12:18:24]Content-Type: application/json [12:18:24] [12:18:24]POST finish read [12:18:24]Found Content-Length = 680 [12:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886382", "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" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:24]execute_script... [12:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886382", "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" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:24]POST & json_proto [12:18:24]process_json_proto [12:18:24]json parsed OK: [12:18:24]protocol is kg_v1.0 [12:18:24]action value=close_receipt [12:18:24]process_action close_receipt [12:18:24]cmd_close_receipt [12:18:24]MH_GetDate [12:18:24]Write to MH i2c: F0 00 00 94 01 84 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: F0 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: F0 09 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: F0 09 00 94 01 00 91 E9 18 67 6B 98 1E 66 0D [12:18:24]GetLastDocTimeStamp 1729685879 [12:18:24]current date 1729685905 [12:18:24]FM_GetShiftState [12:18:24]SAM_PROTO_GetShiftState [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 13 01 00 [12:18:24]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A0 [12:18:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_GetShiftState done [12:18:24]FM_GetShiftState done [12:18:24]opened in 1729642435 [12:18:24]opened+sec_in_day 1729728835 [12:18:24]quantity*price = 260070 [12:18:24]sum+1 = 260072 [12:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 125 23.10.2024 12:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70609 ФПД: 235821498996997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70609&fm=235821498996997&tin=02508201610067®Number=0000000000156251&sum=260000 [12:18:25]StoreToDocumentArchive [12:18:25]shift 196 fd 70609 [12:18:25]save to /storage/0196/doc_00070609 [12:18:25]save last doc name /storage/0196/doc_00070609 to /storage/kkm_last_doc_name [12:18:25]save OK [12:18:25]Clear old archive folders... [12:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:25]tlvbuf is B6EEE860 [12:18:25]SAM_PROTO_ClearQueue [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 09 00 00 [12:18:25]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_ClearQueue done [12:18:25]KKMCreateOFDPacket [12:18:25]OFDProtocolAddRootSTLVToBuf [12:18:25]FM_MakeSignedData [12:18:25]FM_MakeSignedData [12:18:25]SAM_PROTO_SignData [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 01 02 [12:18:25]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=255 [12:18:25]MH_SAM_APDU [12:18: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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 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 A0 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 A0 F7 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 91 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D6 7A 78 AD [12:18:25]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 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 A0 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 A0 F7 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 91 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D6 7A 78 AD 00 00 27 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=7 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 02 02 02 99 05 [12:18:25]Write to MH i2c: E2 0A 00 A5 01 80 0D 02 02 02 00 99 05 00 00 C2 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 03 02 [12:18:25]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 A6 01 00 81 63 E1 00 1F CC 89 7F 90 00 DB [12:18:25]RAPDU: 81 63 E1 00 1F CC 89 7F 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_SignData done [12:18:25]FM_MakeSignedData done [12:18:25]CreateOFDProtocolMessage [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 11 00 00 [12:18:25]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [12:18:26]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:26]wFMCommunicate OK [12:18:26]CreateOFDProtocolMessage done [12:18:26]OFDSenderStorePacket 70609 [12:18:26]StoreOFDPacket docnum=70609 [12:18: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 0C 01 00 00 EC 87 04 01 39 6E 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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 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 A0 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 A0 F7 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 91 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D6 7A 78 AD 99 05 81 63 E1 00 1F CC 89 7F [12:18:26]CheckFolder [12:18:26]dirname=/storage/ofd_packets [12:18:26]CheckFolder done [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00070609 [12:18:26]NVStorageSaveData ofd_packets/00070609 [12:18:26]File name is /storage/ofd_packets/00070609 [12:18:26]Write 298 bytes [12:18:26]NVStorageSaveData done [12:18:26]OFDSenderStorePacket done [12:18:26]KKMCreateOFDPacket done [12:18:26]NVStorageSaveData kkm_last_timestamp [12:18:26]File name is /storage/kkm_last_timestamp [12:18:26]Write 4 bytes [12:18:26]NVStorageSaveData done [12:18:26]ExternCall_PrintAddStr [12:18:26]wPrintStart [12:18:26]Write to MH i2c: 01 00 00 A8 01 A9 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [12:18:26]RasterBufferAndPrint [12:18:26]line Счет N : (1)2886382 [12:18:26]line ИНН: 02508201610067 [12:18:26]line Контрольно-Кассовый Чек [12:18:26]line ПРОДАЖА [12:18:26]line ТРК (МРК, ГНК) : 61 [12:18:26]line Товар: 2710194210 [12:18:26]line ДТ-К-5 [12:18:26]line 34.130 * 76.20 [12:18:26]line = 2600.71 [12:18:26]line НДС 12% НСП 1% [12:18:26]line > о реализуемом товаре [12:18:26]line ОКРУГЛЕНИЕ: -0.71 [12:18:26]line ИТОГО: 2600.00 [12:18:26]line Внесено: 2600.00 [12:18:26]line СДАЧА: 0.00 [12:18:26]line НСП 1% : 23.01 [12:18:26]line НДС 12% : 276.18 [12:18:26]line Наличными: 2600.00 [12:18:26]line Безнал.: 0.00 [12:18:26]line Место: АЗС № 85 "Партнер Нефть" [12:18:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:18:26]line СНО: Общий режим [12:18:26]line Чек 125 23.10.2024 12:18 [12:18:26]line Смена: 196 ФФД: 1.0 [12:18:26]line ЗНМ: 0300000167 [12:18:26]line РНМ: 0000000000156251 [12:18:26]line Версия ККМ: v1.0 [12:18:26]line ФМ: 0000000000963346 [12:18:26]line ФД: 70609 [12:18:26]line ФПД: 235821498996997 [12:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70609&fm=235821498996997&tin=02508201610067®Number=0000000000156251&sum=260000 [12:18:26]OFD Sender: Processing packet 70609 [packets to send 18, broken 17] [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00070609 [12:18:26]OFD Sender: To server: pG, [12:18:26]CommunicateWithHost lk.salyk.kg:30040 [12:18:26]ConnectInit lk.salyk.kg [12:18:26]written 0, free lines is 4095 [12:18:26]Connected sock=10 [12:18: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 EC 87 04 01 39 6E 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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 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 A0 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 A0 F7 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 91 E9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 D6 7A 78 AD 99 05 81 63 E1 00 1F CC 89 7F [12:18: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 BE 45 47 00 A8 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 D1 13 01 00 F4 03 04 00 2F 93 18 67 B6 04 01 00 00 7E E2 0C 9B 27 99 C6 86 [12:18:26]CommunicateWithHost err = 0 [12:18:26]CheckOFDResponse [12:18:26]1017 (14) - 77093643461234 [12:18:26]1041 (16) - 0000000000963346 [12:18:26]1040 (4) - 70609 [12:18:26]1012 (4) - 23.10.2024 06:09 [12:18:26]1206 (1) - 0 [12:18:26]OFD Sender: Remove packet 70609 [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00070609 [12:18:26]NVStorageDeleteData [12:18:26]Write to MH i2c: 01 00 00 D3 01 D4 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FC 0C E3 [12:18:26]RasterBufferAndPrint [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]written 0, free lines is 3332 [12:18:26]MH_Cut [12:18:26]Write to MH i2c: D1 01 00 DA 01 01 AD [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 01 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 01 00 DA 01 00 AC [12:18:26]Write to MH i2c: 01 00 00 DB 01 DC [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:27]OFD Sender: No OFD packet to send [12:18:27]*** Cut start [12:18:27]*** Partial cut [12:18:27]*** CUTSNS_PIN = 1 [12:18:27]*** CUTSNS_PIN = 0 [12:18:27]*** Brake cut motor [12:18:28]Read from MH i2c: 01 [12:18:28]MH_I2C_Read... [12:18:28]*** Stop cut motor [12:18:28]*** Cut end [12:18:28]Read from MH i2c: 01 07 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [12:18:28]process_action close_receipt done [12:18:28]requested_data is exist [12:18:28]produce_requested_data [12:18:28]requested_item fm.sn is exist - process it [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 11 00 00 [12:18:28]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [12:18: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:18:28]wFMCommunicate OK [12:18:28]requested_item fd.num is exist - process it [12:18:28]SAM_PROTO_GetFieldsCounters [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 13 00 00 [12:18:28]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 62 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 95 [12:18: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 D1 13 01 00 0E 04 04 00 C4 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 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_GetFieldsCounters done [12:18:28]requested_item shift.num is exist - process it [12:18:28]requested_item shift.opened is exist - process it [12:18:28]req_shift_opened [12:18:28]FM_GetShiftState [12:18:28]SAM_PROTO_GetShiftState [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 13 01 00 [12:18:28]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0E 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E9 [12:18:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_GetShiftState done [12:18:28]FM_GetShiftState done [12:18:28]req_shift_opened done [12:18:28]requested_item shift.open_date is exist - process it [12:18:28]req_shift_open_date [12:18:28]req_shift_open_date done [12:18:28]produce_requested_data done [12:18:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70609,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:18:28]process_action_free close_receipt [12:18:28]json_value_free [12:18:28]json_value_free done [12:18:28]process_json_proto returns [12:18:28]Send response to host [12:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70609,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:18:28]free response buf [12:18:28]execute_script done [12:18:28]execute_script returns [12:18:28]free content buf [12:18:28]Sock 7.Close socket [12:18:28]Sock 7.Thread stoped [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:16]accept exits with 9 [12:20:16]New connection [12:20:16]New thread 3067034980 created [12:20:16]Thread 3066891620 joined [12:20:16]Waiting for new connection... [12:20:16] Sock 9.Parse request [12:20:16]Sock 9.Check first char [12:20:16]Sock 9.First char is OK [12:20:16]request: POST /json_proto HTTP/1.0 [12:20:16]Method: POST [12:20:16]URL: /json_proto [12:20:16]Method is POST - this is cgi request [12:20:16]url: /json_proto [12:20:16]query_string will be loaded in cgi processing [12:20:16]execute_cgi json_proto POST (null) [12:20:16]execute_cgi path=json_proto method=POST [12:20:16]POST find Content-Length [12:20:16]Host: 172.17.50.3:8080 [12:20:16]Content-Length: 678 [12:20:16]Content-Type: application/json [12:20:16] [12:20:16]POST finish read [12:20:16]Found Content-Length = 678 [12:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886383", "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" ] } } [12:20:16]execute_script... [12:20: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)2886383", "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" ] } } [12:20:16]POST & json_proto [12:20:16]process_json_proto [12:20:16]json parsed OK: [12:20:16]protocol is kg_v1.0 [12:20:16]action value=close_receipt [12:20:16]process_action close_receipt [12:20:16]cmd_close_receipt [12:20:16]MH_GetDate [12:20:16]Write to MH i2c: F0 00 00 DF 01 CF [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 DF 01 00 01 EA 18 67 6B 98 1E 66 C9 [12:20:16]GetLastDocTimeStamp 1729685905 [12:20:16]current date 1729686017 [12:20:16]FM_GetShiftState [12:20:16]SAM_PROTO_GetShiftState [12:20:16]wFMCommunicate request_size=4 [12:20:16]MH_SAM_APDU [12:20:16]CAPDU: 80 13 01 00 [12:20:16]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:16]Read from MH i2c: E2 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EB [12:20:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:20:16]wFMCommunicate OK [12:20:16]SAM_PROTO_GetShiftState done [12:20:16]FM_GetShiftState done [12:20:16]opened in 1729642435 [12:20:16]opened+sec_in_day 1729728835 [12:20:16]quantity*price = 50010 [12:20:16]sum+1 = 50012 [12:20:16]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 СНО: Общий режим Чек 126 23.10.2024 12:20 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70610 ФПД: 26021573344405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122017&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70610&fm=26021573344405&tin=02508201610067®Number=0000000000156251&sum=50000 [12:20:17]StoreToDocumentArchive [12:20:17]shift 196 fd 70610 [12:20:17]save to /storage/0196/doc_00070610 [12:20:17]save last doc name /storage/0196/doc_00070610 to /storage/kkm_last_doc_name [12:20:17]save OK [12:20:17]Clear old archive folders... [12:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:17]tlvbuf is B6F6C880 [12:20:17]SAM_PROTO_ClearQueue [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 09 00 00 [12:20:17]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]SAM_PROTO_ClearQueue done [12:20:17]KKMCreateOFDPacket [12:20:17]OFDProtocolAddRootSTLVToBuf [12:20:17]FM_MakeSignedData [12:20:17]FM_MakeSignedData [12:20:17]SAM_PROTO_SignData [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 01 02 [12:20:17]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=255 [12:20:17]MH_SAM_APDU [12:20: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 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 7E 00 00 00 F4 03 04 00 01 EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 [12:20:17]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 01 EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 00 00 72 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=10 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 02 02 05 AA 9E A2 BC 95 [12:20:17]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 AA 9E A2 BC 95 00 00 B0 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 03 02 [12:20:17]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 0B 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 0B 00 F1 01 00 DB 54 5E 0D D5 97 FA 99 90 00 07 [12:20:17]RAPDU: DB 54 5E 0D D5 97 FA 99 90 00 [12:20:17]wFMCommunicate OK [12:20:17]SAM_PROTO_SignData done [12:20:17]FM_MakeSignedData done [12:20:17]CreateOFDProtocolMessage [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 11 00 00 [12:20:17]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:18]Read from MH i2c: E2 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 17 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [12: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 [12:20:18]wFMCommunicate OK [12:20:18]CreateOFDProtocolMessage done [12:20:18]OFDSenderStorePacket 70610 [12:20:18]StoreOFDPacket docnum=70610 [12: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 0F 01 00 00 CF 37 07 01 D5 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 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 7E 00 00 00 F4 03 04 00 01 EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 AA 9E A2 BC 95 DB 54 5E 0D D5 97 FA 99 [12:20:18]CheckFolder [12:20:18]dirname=/storage/ofd_packets [12:20:18]CheckFolder done [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070610 [12:20:18]NVStorageSaveData ofd_packets/00070610 [12:20:18]File name is /storage/ofd_packets/00070610 [12:20:18]Write 301 bytes [12:20:18]NVStorageSaveData done [12:20:18]OFDSenderStorePacket done [12:20:18]KKMCreateOFDPacket done [12:20:18]NVStorageSaveData kkm_last_timestamp [12:20:18]File name is /storage/kkm_last_timestamp [12:20:18]Write 4 bytes [12:20:18]NVStorageSaveData done [12:20:18]OFD Sender: Processing packet 70610 [packets to send 18, broken 17] [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070610 [12:20:18]OFD Sender: To server: pG, [12:20:18]CommunicateWithHost lk.salyk.kg:30040 [12:20:18]ConnectInit lk.salyk.kg [12:20:18]ExternCall_PrintAddStr [12:20:18]wPrintStart [12:20:18]Write to MH i2c: 01 00 00 F3 01 F4 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [12:20:18]RasterBufferAndPrint [12:20:18]line Счет N : (1)2886383 [12:20:18]line ИНН: 02508201610067 [12:20:18]line Контрольно-Кассовый Чек [12:20:18]line ПРОДАЖА [12:20:18]line ТРК (МРК, ГНК) : 33 [12:20:18]line Товар: 2710124500 [12:20:18]line Аи-95-К-5 [12:20:18]line 6.740 * 74.20 [12:20:18]line = 500.11 [12:20:18]line НДС 12% НСП 1% [12:20:18]line > о реализуемом товаре [12:20:18]line ОКРУГЛЕНИЕ: -0.11 [12:20:18]line ИТОГО: 500.00 [12:20:18]line Внесено: 500.00 [12:20:18]line СДАЧА: 0.00 [12:20:18]line НСП 1% : 4.43 [12:20:18]line НДС 12% : 53.11 [12:20:18]line Наличными: 500.00 [12:20:18]line Безнал.: 0.00 [12:20:18]line Место: АЗС № 85 "Партнер Нефть" [12:20:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:20:18]line СНО: Общий режим [12:20:18]line Чек 126 23.10.2024 12:20 [12:20:18]line Смена: 196 ФФД: 1.0 [12:20:18]line ЗНМ: 0300000167 [12:20:18]line РНМ: 0000000000156251 [12:20:18]line Версия ККМ: v1.0 [12:20:18]line ФМ: 0000000000963346 [12:20:18]line ФД: 70610 [12:20:18]line ФПД: 26021573344405 [12:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122017&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70610&fm=26021573344405&tin=02508201610067®Number=0000000000156251&sum=50000 [12:20:18]Connected sock=11 [12:20: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 CF 37 07 01 D5 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 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 7E 00 00 00 F4 03 04 00 01 EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 AA 9E A2 BC 95 DB 54 5E 0D D5 97 FA 99 [12:20:18]written 0, free lines is 4095 [12:20: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 58 1B 47 00 5F 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 D2 13 01 00 F4 03 04 00 9F 93 18 67 B6 04 01 00 00 FF 39 BE 99 E6 9B CD 91 [12:20:18]CommunicateWithHost err = 0 [12:20:18]CheckOFDResponse [12:20:18]1017 (14) - 77093643461234 [12:20:18]1041 (16) - 0000000000963346 [12:20:18]1040 (4) - 70610 [12:20:18]1012 (4) - 23.10.2024 06:11 [12:20:18]1206 (1) - 0 [12:20:18]OFD Sender: Remove packet 70610 [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070610 [12:20:18]NVStorageDeleteData [12:20:18]Write to MH i2c: 01 00 00 1E 02 20 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 E4 0C 17 [12:20:18]RasterBufferAndPrint [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]written 0, free lines is 3306 [12:20:18]MH_Cut [12:20:18]Write to MH i2c: D1 01 00 25 02 01 F9 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 25 02 00 F8 [12:20:18]Write to MH i2c: 01 00 00 26 02 28 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:19]OFD Sender: No OFD packet to send [12:20:19]*** Cut start [12:20:19]*** Partial cut [12:20:19]*** CUTSNS_PIN = 1 [12:20:19]*** CUTSNS_PIN = 0 [12:20:19]*** Brake cut motor [12:20:20]Read from MH i2c: 01 [12:20:20]MH_I2C_Read... [12:20:20]*** Stop cut motor [12:20:20]*** Cut end [12:20:20]Read from MH i2c: 01 07 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [12:20:20]process_action close_receipt done [12:20:20]requested_data is exist [12:20:20]produce_requested_data [12:20:20]requested_item fm.sn is exist - process it [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 11 00 00 [12:20:20]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 17 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [12: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 [12:20:20]wFMCommunicate OK [12:20:20]requested_item fd.num is exist - process it [12:20:20]SAM_PROTO_GetFieldsCounters [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 13 00 00 [12:20:20]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 62 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 E5 [12:20: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 D2 13 01 00 0E 04 04 00 C4 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 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_GetFieldsCounters done [12:20:20]requested_item shift.num is exist - process it [12:20:20]requested_item shift.opened is exist - process it [12:20:20]req_shift_opened [12:20:20]FM_GetShiftState [12:20:20]SAM_PROTO_GetShiftState [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 13 01 00 [12:20:20]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:20]Read from MH i2c: E2 0E 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 35 [12:20:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_GetShiftState done [12:20:20]FM_GetShiftState done [12:20:20]req_shift_opened done [12:20:20]requested_item shift.open_date is exist - process it [12:20:20]req_shift_open_date [12:20:20]req_shift_open_date done [12:20:20]produce_requested_data done [12:20:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70610,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:20:20]process_action_free close_receipt [12:20:20]json_value_free [12:20:20]json_value_free done [12:20:20]process_json_proto returns [12:20:20]Send response to host [12:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70610,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:20:20]free response buf [12:20:20]execute_script done [12:20:20]execute_script returns [12:20:20]free content buf [12:20:20]Sock 9.Close socket [12:20:20]Sock 9.Thread stoped [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:49]accept exits with 7 [12:21:49]New connection [12:21:49]New thread 3066891620 created [12:21:49]Thread 3067034980 joined [12:21:49]Waiting for new connection... [12:21:49] Sock 7.Parse request [12:21:49]Sock 7.Check first char [12:21:49]Sock 7.First char is OK [12:21:49]request: POST /json_proto HTTP/1.0 [12:21:49]Method: POST [12:21:49]URL: /json_proto [12:21:49]Method is POST - this is cgi request [12:21:49]url: /json_proto [12:21:49]query_string will be loaded in cgi processing [12:21:49]execute_cgi json_proto POST (null) [12:21:49]execute_cgi path=json_proto method=POST [12:21:49]POST find Content-Length [12:21:49]Host: 172.17.50.3:8080 [12:21:49]Content-Length: 679 [12:21:49]Content-Type: application/json [12:21:49] [12:21:49]POST finish read [12:21:49]Found Content-Length = 679 [12:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886384", "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" ] } } [12:21:49]execute_script... [12:21: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)2886384", "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" ] } } [12:21:49]POST & json_proto [12:21:49]process_json_proto [12:21:49]json parsed OK: [12:21:49]protocol is kg_v1.0 [12:21:49]action value=close_receipt [12:21:49]process_action close_receipt [12:21:49]cmd_close_receipt [12:21:49]MH_GetDate [12:21:49]Write to MH i2c: F0 00 00 2A 02 1B [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 09 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 09 00 2A 02 00 5E EA 18 67 6B 98 1E 66 72 [12:21:49]GetLastDocTimeStamp 1729686017 [12:21:49]current date 1729686110 [12:21:49]FM_GetShiftState [12:21:49]SAM_PROTO_GetShiftState [12:21:49]wFMCommunicate request_size=4 [12:21:49]MH_SAM_APDU [12:21:49]CAPDU: 80 13 01 00 [12:21:49]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0E 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 37 [12:21:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:21:49]wFMCommunicate OK [12:21:49]SAM_PROTO_GetShiftState done [12:21:49]FM_GetShiftState done [12:21:49]opened in 1729642435 [12:21:49]opened+sec_in_day 1729728835 [12:21:49]quantity*price = 80061 [12:21:49]sum+1 = 80063 [12:21:49]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 СНО: Общий режим Чек 127 23.10.2024 12:21 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70611 ФПД: 255485812400444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70611&fm=255485812400444&tin=02508201610067®Number=0000000000156251&sum=80000 [12:21:50]StoreToDocumentArchive [12:21:50]shift 196 fd 70611 [12:21:50]save to /storage/0196/doc_00070611 [12:21:50]save last doc name /storage/0196/doc_00070611 to /storage/kkm_last_doc_name [12:21:50]save OK [12:21:50]Clear old archive folders... [12:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:50]tlvbuf is 0012E4A0 [12:21:50]SAM_PROTO_ClearQueue [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 09 00 00 [12:21:50]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]SAM_PROTO_ClearQueue done [12:21:50]KKMCreateOFDPacket [12:21:50]OFDProtocolAddRootSTLVToBuf [12:21:50]FM_MakeSignedData [12:21:50]FM_MakeSignedData [12:21:50]SAM_PROTO_SignData [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 0D 01 02 [12:21:50]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=255 [12:21:50]MH_SAM_APDU [12:21: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 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 7F 00 00 00 F4 03 04 00 5E EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E8 [12:21:50]Write to MH i2c: E2 02 01 3A 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 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 7F 00 00 00 F4 03 04 00 5E EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E8 00 00 83 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [12:21:51]RAPDU: 90 00 [12:21:51]wFMCommunicate OK [12:21:51]wFMCommunicate request_size=10 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 0D 02 02 05 5C ED 17 E1 3C [12:21:51]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 5C ED 17 E1 3C 00 00 3E [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [12:21:51]RAPDU: 90 00 [12:21:51]wFMCommunicate OK [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 0D 03 02 [12:21:51]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 3C 02 00 AE 39 3A 2C 90 7B 7A B9 90 00 45 [12:21:51]RAPDU: AE 39 3A 2C 90 7B 7A B9 90 00 [12:21:51]wFMCommunicate OK [12:21:51]SAM_PROTO_SignData done [12:21:51]FM_MakeSignedData done [12:21:51]CreateOFDProtocolMessage [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 11 00 00 [12:21:51]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [12:21: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:21:51]wFMCommunicate OK [12:21:51]CreateOFDProtocolMessage done [12:21:51]OFDSenderStorePacket 70611 [12:21:51]StoreOFDPacket docnum=70611 [12:21: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 30 0B 07 01 62 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 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 7F 00 00 00 F4 03 04 00 5E EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E8 5C ED 17 E1 3C AE 39 3A 2C 90 7B 7A B9 [12:21:51]CheckFolder [12:21:51]dirname=/storage/ofd_packets [12:21:51]CheckFolder done [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00070611 [12:21:51]NVStorageSaveData ofd_packets/00070611 [12:21:51]File name is /storage/ofd_packets/00070611 [12:21:51]Write 301 bytes [12:21:51]NVStorageSaveData done [12:21:51]OFDSenderStorePacket done [12:21:51]KKMCreateOFDPacket done [12:21:51]NVStorageSaveData kkm_last_timestamp [12:21:51]File name is /storage/kkm_last_timestamp [12:21:51]Write 4 bytes [12:21:51]NVStorageSaveData done [12:21:51]ExternCall_PrintAddStr [12:21:51]wPrintStart [12:21:51]Write to MH i2c: 01 00 00 3E 02 40 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [12:21:51]RasterBufferAndPrint [12:21:51]line Счет N : (1)2886384 [12:21:51]line ИНН: 02508201610067 [12:21:51]line Контрольно-Кассовый Чек [12:21:51]line ПРОДАЖА [12:21:51]line ТРК (МРК, ГНК) : 13 [12:21:51]line Товар: 2710124500 [12:21:51]line Аи-95-К-5 [12:21:51]line 10.790 * 74.20 [12:21:51]line = 800.62 [12:21:51]line НДС 12% НСП 1% [12:21:51]line > о реализуемом товаре [12:21:51]line ОКРУГЛЕНИЕ: -0.62 [12:21:51]line ИТОГО: 800.00 [12:21:51]line Внесено: 800.00 [12:21:51]line СДАЧА: 0.00 [12:21:51]line НСП 1% : 7.08 [12:21:51]line НДС 12% : 85.02 [12:21:51]line Наличными: 800.00 [12:21:51]line Безнал.: 0.00 [12:21:51]line Место: АЗС № 85 "Партнер Нефть" [12:21:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:21:51]line СНО: Общий режим [12:21:51]line Чек 127 23.10.2024 12:21 [12:21:51]line Смена: 196 ФФД: 1.0 [12:21:51]line ЗНМ: 0300000167 [12:21:51]line РНМ: 0000000000156251 [12:21:51]line Версия ККМ: v1.0 [12:21:51]line ФМ: 0000000000963346 [12:21:51]line ФД: 70611 [12:21:51]line ФПД: 255485812400444 [12:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122150&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70611&fm=255485812400444&tin=02508201610067®Number=0000000000156251&sum=80000 [12:21:51]OFD Sender: Processing packet 70611 [packets to send 18, broken 17] [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00070611 [12:21:51]OFD Sender: To server: pG, [12:21:51]CommunicateWithHost lk.salyk.kg:30040 [12:21:51]ConnectInit lk.salyk.kg [12:21:51]written 0, free lines is 4095 [12:21:52]Write to MH i2c: 01 00 00 69 02 6B [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 07 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 E2 0C 60 [12:21:52]RasterBufferAndPrint [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]written 0, free lines is 3302 [12:21:52]MH_Cut [12:21:52]Write to MH i2c: D1 01 00 70 02 01 44 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: D1 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: D1 01 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: D1 01 00 70 02 00 43 [12:21:52]Write to MH i2c: 01 00 00 71 02 73 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]*** Cut start [12:21:52]*** Partial cut [12:21:52]*** CUTSNS_PIN = 1 [12:21:52]*** CUTSNS_PIN = 0 [12:21:53]*** Brake cut motor [12:21:53]Read from MH i2c: 01 [12:21:53]MH_I2C_Read... [12:21:53]*** Stop cut motor [12:21:53]*** Cut end [12:21:53]Read from MH i2c: 01 07 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [12:21:53]process_action close_receipt done [12:21:53]requested_data is exist [12:21:53]produce_requested_data [12:21:53]requested_item fm.sn is exist - process it [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 11 00 00 [12:21:53]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [12:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:21:53]wFMCommunicate OK [12:21:53]requested_item fd.num is exist - process it [12:21:53]SAM_PROTO_GetFieldsCounters [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 00 00 [12:21:53]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 34 [12:21: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 D3 13 01 00 0E 04 04 00 C4 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 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetFieldsCounters done [12:21:53]requested_item shift.num is exist - process it [12:21:53]requested_item shift.opened is exist - process it [12:21:53]req_shift_opened [12:21:53]FM_GetShiftState [12:21:53]SAM_PROTO_GetShiftState [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 01 00 [12:21:53]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 80 [12:21:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetShiftState done [12:21:53]FM_GetShiftState done [12:21:53]req_shift_opened done [12:21:53]requested_item shift.open_date is exist - process it [12:21:53]req_shift_open_date [12:21:53]req_shift_open_date done [12:21:53]produce_requested_data done [12:21:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70611,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:21:53]process_action_free close_receipt [12:21:53]json_value_free [12:21:53]json_value_free done [12:21:53]process_json_proto returns [12:21:53]Send response to host [12:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70611,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:21:53]free response buf [12:21:53]execute_script done [12:21:53]execute_script returns [12:21:53]free content buf [12:21:53]Sock 7.Close socket [12:21:53]Sock 7.Thread stoped [12:24:04]ConnectInit Can't connect to host [12:24:04]CommunicateWithHost connect error [12:24:04]CommunicateWithHost err = -1 [12:24:04]OFD Sender: Server communicate error [12:24:09]OFD Sender: Processing packet 70611 [packets to send 18, broken 17] [12:24:09]ProducePacketName [12:24:09]name=ofd_packets/00070611 [12:24:09]OFD Sender: To server: pG, [12:24:09]CommunicateWithHost lk.salyk.kg:30040 [12:24:09]ConnectInit lk.salyk.kg [12:24:09]Connected sock=7 [12:24: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 30 0B 07 01 62 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 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 7F 00 00 00 F4 03 04 00 5E EA 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E8 5C ED 17 E1 3C AE 39 3A 2C 90 7B 7A B9 [12:24: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 1D 67 47 00 40 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 D3 13 01 00 F4 03 04 00 85 94 18 67 B6 04 01 00 00 9A F5 1D 0B 64 C4 07 FF [12:24:09]CommunicateWithHost err = 0 [12:24:09]CheckOFDResponse [12:24:09]1017 (14) - 77093643461234 [12:24:09]1041 (16) - 0000000000963346 [12:24:09]1040 (4) - 70611 [12:24:09]1012 (4) - 23.10.2024 06:15 [12:24:09]1206 (1) - 0 [12:24:09]OFD Sender: Remove packet 70611 [12:24:09]ProducePacketName [12:24:09]name=ofd_packets/00070611 [12:24:09]NVStorageDeleteData [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:14]accept exits with 9 [12:28:14]New connection [12:28:14]New thread 3067034980 created [12:28:14]Thread 3066891620 joined [12:28:14]Waiting for new connection... [12:28:14] Sock 9.Parse request [12:28:14]Sock 9.Check first char [12:28:14]Sock 9.First char is OK [12:28:14]request: POST /json_proto HTTP/1.0 [12:28:14]Method: POST [12:28:14]URL: /json_proto [12:28:14]Method is POST - this is cgi request [12:28:14]url: /json_proto [12:28:14]query_string will be loaded in cgi processing [12:28:14]execute_cgi json_proto POST (null) [12:28:14]execute_cgi path=json_proto method=POST [12:28:14]POST find Content-Length [12:28:14]Host: 172.17.50.3:8080 [12:28:14]Content-Length: 689 [12:28:14]Content-Type: application/json [12:28:14] [12:28:14]POST finish read [12:28:14]Found Content-Length = 689 [12:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886385", "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:28:14]execute_script... [12: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)2886385", "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:28:14]POST & json_proto [12:28:14]process_json_proto [12:28:14]json parsed OK: [12:28:14]protocol is kg_v1.0 [12:28:14]action value=close_receipt [12:28:14]process_action close_receipt [12:28:14]cmd_close_receipt [12:28:14]MH_GetDate [12:28:14]Write to MH i2c: F0 00 00 75 02 66 [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: F0 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: F0 09 00 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: F0 09 00 75 02 00 DF EB 18 67 6B 98 1E 66 3F [12:28:14]GetLastDocTimeStamp 1729686110 [12:28:14]current date 1729686495 [12:28:14]FM_GetShiftState [12:28:14]SAM_PROTO_GetShiftState [12:28:14]wFMCommunicate request_size=4 [12:28:14]MH_SAM_APDU [12:28:14]CAPDU: 80 13 01 00 [12:28:14]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:14]Read from MH i2c: E2 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 0E 00 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 82 [12:28:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:28:14]wFMCommunicate OK [12:28:14]SAM_PROTO_GetShiftState done [12:28:14]FM_GetShiftState done [12:28:14]opened in 1729642435 [12:28:14]opened+sec_in_day 1729728835 [12:28:14]quantity*price = 100051 [12:28:14]sum+1 = 100052 [12:28: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 СНО: Общий режим Чек 128 23.10.2024 12:28 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70612 ФПД: 93592391077440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70612&fm=93592391077440&tin=02508201610067®Number=0000000000156251&sum=100000 [12:28:15]StoreToDocumentArchive [12:28:15]shift 196 fd 70612 [12:28:15]save to /storage/0196/doc_00070612 [12:28:15]save last doc name /storage/0196/doc_00070612 to /storage/kkm_last_doc_name [12:28:15]save OK [12:28:15]Clear old archive folders... [12:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:28:15]tlvbuf is 0012FDE0 [12:28:15]SAM_PROTO_ClearQueue [12:28:15]wFMCommunicate request_size=4 [12:28:15]MH_SAM_APDU [12:28:15]CAPDU: 80 09 00 00 [12:28:15]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [12:28:15]RAPDU: 90 00 [12:28:15]wFMCommunicate OK [12:28:15]SAM_PROTO_ClearQueue done [12:28:15]KKMCreateOFDPacket [12:28:15]OFDProtocolAddRootSTLVToBuf [12:28:15]FM_MakeSignedData [12:28:15]FM_MakeSignedData [12:28:15]SAM_PROTO_SignData [12:28:15]wFMCommunicate request_size=4 [12:28:15]MH_SAM_APDU [12:28:15]CAPDU: 80 0D 01 02 [12:28:15]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [12:28:15]RAPDU: 90 00 [12:28:15]wFMCommunicate OK [12:28:15]wFMCommunicate request_size=255 [12:28:15]MH_SAM_APDU [12:28: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 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 80 00 00 00 F4 03 04 00 DF EB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [12:28:15]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 80 00 00 00 F4 03 04 00 DF EB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 C6 [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [12:28:15]RAPDU: 90 00 [12:28:15]wFMCommunicate OK [12:28:15]wFMCommunicate request_size=16 [12:28:15]MH_SAM_APDU [12:28:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 55 1F 2D 39 4E 40 [12:28:15]Write to MH i2c: E2 13 00 86 02 80 0D 02 02 0B 00 00 35 04 06 00 55 1F 2D 39 4E 40 00 00 BF [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:16]Read from MH i2c: E2 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 03 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [12:28:16]RAPDU: 90 00 [12:28:16]wFMCommunicate OK [12:28:16]wFMCommunicate request_size=4 [12:28:16]MH_SAM_APDU [12:28:16]CAPDU: 80 0D 03 02 [12:28:16]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:16]Read from MH i2c: E2 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 0B 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 0B 00 87 02 00 70 68 11 8D 30 8D E8 70 90 00 90 [12:28:16]RAPDU: 70 68 11 8D 30 8D E8 70 90 00 [12:28:16]wFMCommunicate OK [12:28:16]SAM_PROTO_SignData done [12:28:16]FM_MakeSignedData done [12:28:16]CreateOFDProtocolMessage [12:28:16]wFMCommunicate request_size=4 [12:28:16]MH_SAM_APDU [12:28:16]CAPDU: 80 11 00 00 [12:28:16]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:16]Read from MH i2c: E2 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 17 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [12:28: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:28:16]wFMCommunicate OK [12:28:16]CreateOFDProtocolMessage done [12:28:16]OFDSenderStorePacket 70612 [12:28:16]StoreOFDPacket docnum=70612 [12:28: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 B3 0B 0D 01 55 33 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 80 00 00 00 F4 03 04 00 DF EB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 55 1F 2D 39 4E 40 70 68 11 8D 30 8D E8 70 [12:28:16]CheckFolder [12:28:16]dirname=/storage/ofd_packets [12:28:16]CheckFolder done [12:28:16]ProducePacketName [12:28:16]name=ofd_packets/00070612 [12:28:16]NVStorageSaveData ofd_packets/00070612 [12:28:16]File name is /storage/ofd_packets/00070612 [12:28:16]Write 307 bytes [12:28:16]NVStorageSaveData done [12:28:16]OFDSenderStorePacket done [12:28:16]KKMCreateOFDPacket done [12:28:16]NVStorageSaveData kkm_last_timestamp [12:28:16]File name is /storage/kkm_last_timestamp [12:28:16]Write 4 bytes [12:28:16]NVStorageSaveData done [12:28:16]ExternCall_PrintAddStr [12:28:16]wPrintStart [12:28:16]Write to MH i2c: 01 00 00 89 02 8B [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 07 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [12:28:16]RasterBufferAndPrint [12:28:16]line Счет N : (1)2886385 [12:28:16]line ИНН: 02508201610067 [12:28:16]line Контрольно-Кассовый Чек [12:28:16]line ПРОДАЖА [12:28:16]line ТРК (МРК, ГНК) : 11 [12:28:16]line Товар: 2710194240 [12:28:16]line D-ENERGY Дт-К-2 [12:28:16]line 12.960 * 77.20 [12:28:16]line = 1000.51 [12:28:16]line НДС 12% НСП 1% [12:28:16]line > о реализуемом товаре [12:28:16]line ОКРУГЛЕНИЕ: -0.51 [12:28:16]line ИТОГО: 1000.00 [12:28:16]line Внесено: 1000.00 [12:28:16]line СДАЧА: 0.00 [12:28:16]line НСП 1% : 8.85 [12:28:16]line НДС 12% : 106.25 [12:28:16]line Наличными: 1000.00 [12:28:16]line Безнал.: 0.00 [12:28:16]line Место: АЗС № 85 "Партнер Нефть" [12:28:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:28:16]line СНО: Общий режим [12:28:16]line Чек 128 23.10.2024 12:28 [12:28:16]line Смена: 196 ФФД: 1.0 [12:28:16]line ЗНМ: 0300000167 [12:28:16]line РНМ: 0000000000156251 [12:28:16]line Версия ККМ: v1.0 [12:28:16]line ФМ: 0000000000963346 [12:28:16]line ФД: 70612 [12:28:16]line ФПД: 93592391077440 [12:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70612&fm=93592391077440&tin=02508201610067®Number=0000000000156251&sum=100000 [12:28:16]OFD Sender: Processing packet 70612 [packets to send 18, broken 17] [12:28:16]ProducePacketName [12:28:16]name=ofd_packets/00070612 [12:28:16]OFD Sender: To server: pG, [12:28:16]CommunicateWithHost lk.salyk.kg:30040 [12:28:16]ConnectInit lk.salyk.kg [12:28:16]written 0, free lines is 4095 [12:28:16]Connected sock=11 [12: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 15 01 00 00 B3 0B 0D 01 55 33 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 80 00 00 00 F4 03 04 00 DF EB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 55 1F 2D 39 4E 40 70 68 11 8D 30 8D E8 70 [12: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 13 EE 47 00 77 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 D4 13 01 00 F4 03 04 00 7D 95 18 67 B6 04 01 00 00 41 96 42 26 ED 96 F9 D8 [12:28:16]CommunicateWithHost err = 0 [12:28:16]CheckOFDResponse [12:28:16]1017 (14) - 77093643461234 [12:28:16]1041 (16) - 0000000000963346 [12:28:16]1040 (4) - 70612 [12:28:16]1012 (4) - 23.10.2024 06:19 [12:28:16]1206 (1) - 0 [12:28:16]OFD Sender: Remove packet 70612 [12:28:16]ProducePacketName [12:28:16]name=ofd_packets/00070612 [12:28:16]NVStorageDeleteData [12:28:16]Write to MH i2c: 01 00 00 B4 02 B6 [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 07 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 EF 0C B8 [12:28:16]RasterBufferAndPrint [12:28:16]line [12:28:16]line [12:28:16]line [12:28:16]line [12:28:16]line [12:28:16]written 0, free lines is 3317 [12:28:16]MH_Cut [12:28:16]Write to MH i2c: D1 01 00 BB 02 01 8F [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: D1 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: D1 01 00 [12:28:16]MH_I2C_Read... [12:28:16]Read from MH i2c: D1 01 00 BB 02 00 8E [12:28:16]Write to MH i2c: 01 00 00 BC 02 BE [12:28:16]Write i2c OK [12:28:16]MH_I2C_Read... [12:28:17]OFD Sender: No OFD packet to send [12:28:17]*** Cut start [12:28:17]*** Partial cut [12:28:17]*** CUTSNS_PIN = 1 [12:28:17]*** CUTSNS_PIN = 0 [12:28:17]*** Brake cut motor [12:28:18]Read from MH i2c: 01 [12:28:18]MH_I2C_Read... [12:28:18]*** Stop cut motor [12:28:18]*** Cut end [12:28:18]Read from MH i2c: 01 07 00 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [12:28:18]process_action close_receipt done [12:28:18]requested_data is exist [12:28:18]produce_requested_data [12:28:18]requested_item fm.sn is exist - process it [12:28:18]wFMCommunicate request_size=4 [12:28:18]MH_SAM_APDU [12:28:18]CAPDU: 80 11 00 00 [12:28:18]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [12:28:18]Write i2c OK [12:28:18]MH_I2C_Read... [12:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:18]Read from MH i2c: E2 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 17 00 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [12:28: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:28:18]wFMCommunicate OK [12:28:18]requested_item fd.num is exist - process it [12:28:18]SAM_PROTO_GetFieldsCounters [12:28:18]wFMCommunicate request_size=4 [12:28:18]MH_SAM_APDU [12:28:18]CAPDU: 80 13 00 00 [12:28:18]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [12:28:18]Write i2c OK [12:28:18]MH_I2C_Read... [12:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:18]Read from MH i2c: E2 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 62 00 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 83 [12: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 D4 13 01 00 0E 04 04 00 C4 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 [12:28:18]wFMCommunicate OK [12:28:18]SAM_PROTO_GetFieldsCounters done [12:28:18]requested_item shift.num is exist - process it [12:28:18]requested_item shift.opened is exist - process it [12:28:18]req_shift_opened [12:28:18]FM_GetShiftState [12:28:18]SAM_PROTO_GetShiftState [12:28:18]wFMCommunicate request_size=4 [12:28:18]MH_SAM_APDU [12:28:18]CAPDU: 80 13 01 00 [12:28:18]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [12:28:18]Write i2c OK [12:28:18]MH_I2C_Read... [12:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:18]Read from MH i2c: E2 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 0E 00 [12:28:18]MH_I2C_Read... [12:28:18]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CB [12:28:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:28:18]wFMCommunicate OK [12:28:18]SAM_PROTO_GetShiftState done [12:28:18]FM_GetShiftState done [12:28:18]req_shift_opened done [12:28:18]requested_item shift.open_date is exist - process it [12:28:18]req_shift_open_date [12:28:18]req_shift_open_date done [12:28:18]produce_requested_data done [12:28:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70612,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:28:18]process_action_free close_receipt [12:28:18]json_value_free [12:28:18]json_value_free done [12:28:18]process_json_proto returns [12:28:18]Send response to host [12:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70612,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:28:18]free response buf [12:28:18]execute_script done [12:28:18]execute_script returns [12:28:18]free content buf [12:28:18]Sock 9.Close socket [12:28:18]Sock 9.Thread stoped [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:23]accept exits with 7 [12:29:23]New connection [12:29:23]New thread 3066891620 created [12:29:23]Thread 3067034980 joined [12:29:23]Waiting for new connection... [12:29:23] Sock 7.Parse request [12:29:23]Sock 7.Check first char [12:29:23]Sock 7.First char is OK [12:29:23]request: POST /json_proto HTTP/1.0 [12:29:23]Method: POST [12:29:23]URL: /json_proto [12:29:23]Method is POST - this is cgi request [12:29:23]url: /json_proto [12:29:23]query_string will be loaded in cgi processing [12:29:23]execute_cgi json_proto POST (null) [12:29:23]execute_cgi path=json_proto method=POST [12:29:23]POST find Content-Length [12:29:23]Host: 172.17.50.3:8080 [12:29:23]Content-Length: 755 [12:29:23]Content-Type: application/json [12:29:23] [12:29:23]POST finish read [12:29:23]Found Content-Length = 755 [12:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886386", "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\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" ] } } [12:29:23]execute_script... [12:29: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)2886386", "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\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" ] } } [12:29:23]POST & json_proto [12:29:23]process_json_proto [12:29:23]json parsed OK: [12:29:23]protocol is kg_v1.0 [12:29:23]action value=close_receipt [12:29:23]process_action close_receipt [12:29:23]cmd_close_receipt [12:29:23]MH_GetDate [12:29:23]Write to MH i2c: F0 00 00 C0 02 B1 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 09 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 09 00 C0 02 00 24 EC 18 67 6B 98 1E 66 D0 [12:29:23]GetLastDocTimeStamp 1729686495 [12:29:23]current date 1729686564 [12:29:23]FM_GetShiftState [12:29:23]SAM_PROTO_GetShiftState [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 13 01 00 [12:29:23]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CD [12:29:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetShiftState done [12:29:23]FM_GetShiftState done [12:29:23]opened in 1729642435 [12:29:23]opened+sec_in_day 1729728835 [12:29:23]quantity*price = 0 [12:29:23]sum+1 = 1 [12:29: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 СНО: Общий режим Чек 129 23.10.2024 12:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70613 ФПД: 273232888774036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70613&fm=273232888774036&tin=02508201610067®Number=0000000000156251&sum=0 [12:29:24]StoreToDocumentArchive [12:29:24]shift 196 fd 70613 [12:29:24]save to /storage/0196/doc_00070613 [12:29:24]save last doc name /storage/0196/doc_00070613 to /storage/kkm_last_doc_name [12:29:24]save OK [12:29:24]Clear old archive folders... [12:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:24]tlvbuf is 0012DFC0 [12:29:24]SAM_PROTO_ClearQueue [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 09 00 00 [12:29:24]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_ClearQueue done [12:29:24]KKMCreateOFDPacket [12:29:24]OFDProtocolAddRootSTLVToBuf [12:29:24]FM_MakeSignedData [12:29:24]FM_MakeSignedData [12:29:24]SAM_PROTO_SignData [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 01 02 [12:29:24]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=255 [12:29:24]MH_SAM_APDU [12:29: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 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 81 00 00 00 F4 03 04 00 24 EC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 [12:29:24]Write to MH i2c: E2 02 01 D0 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 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 81 00 00 00 F4 03 04 00 24 EC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 00 00 3A [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=10 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 02 02 05 80 FD 46 BD 94 [12:29:24]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 80 FD 46 BD 94 00 00 6B [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 03 02 [12:29:24]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0B 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0B 00 D2 02 00 AD 0D 74 C5 3E 52 05 3B 90 00 13 [12:29:24]RAPDU: AD 0D 74 C5 3E 52 05 3B 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_SignData done [12:29:24]FM_MakeSignedData done [12:29:24]CreateOFDProtocolMessage [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 11 00 00 [12:29:24]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [12:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:29:24]wFMCommunicate OK [12:29:24]CreateOFDProtocolMessage done [12:29:24]OFDSenderStorePacket 70613 [12:29:24]StoreOFDPacket docnum=70613 [12:29: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 81 46 07 01 A1 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 81 00 00 00 F4 03 04 00 24 EC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 80 FD 46 BD 94 AD 0D 74 C5 3E 52 05 3B [12:29:24]CheckFolder [12:29:24]dirname=/storage/ofd_packets [12:29:24]CheckFolder done [12:29:24]ProducePacketName [12:29:24]name=ofd_packets/00070613 [12:29:24]NVStorageSaveData ofd_packets/00070613 [12:29:24]File name is /storage/ofd_packets/00070613 [12:29:24]Write 301 bytes [12:29:24]NVStorageSaveData done [12:29:24]OFDSenderStorePacket done [12:29:24]KKMCreateOFDPacket done [12:29:24]NVStorageSaveData kkm_last_timestamp [12:29:24]File name is /storage/kkm_last_timestamp [12:29:24]Write 4 bytes [12:29:24]NVStorageSaveData done [12:29:24]ExternCall_PrintAddStr [12:29:24]wPrintStart [12:29:24]Write to MH i2c: 01 00 00 D4 02 D6 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [12:29:24]RasterBufferAndPrint [12:29:24]line Счет N : (1)2886386 [12:29:24]line ИНН: 02508201610067 [12:29:24]line Контрольно-Кассовый Чек [12:29:24]line ПРОДАЖА [12:29:24]line ТРК (МРК, ГНК) : 42 [12:29:24]line Товар: 2710124130 [12:29:24]line Аи-92-К-5 [12:29:24]line 10.000 * 0.00 [12:29:24]line = 0.00 [12:29:24]line НДС 12% НСП 1% [12:29:24]line > о реализуемом товаре [12:29:24]line ИТОГО: 0.00 [12:29:24]line НСП 1% : 0.00 [12:29:24]line НДС 12% : 0.00 [12:29:24]line Наличными: 0.00 [12:29:24]line Безнал.: 0.00 [12:29:24]line Место: АЗС № 85 "Партнер Нефть" [12:29:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:29:24]line СНО: Общий режим [12:29:24]line Чек 129 23.10.2024 12:29 [12:29:24]line Смена: 196 ФФД: 1.0 [12:29:24]line ЗНМ: 0300000167 [12:29:24]line РНМ: 0000000000156251 [12:29:24]line Версия ККМ: v1.0 [12:29:24]line Талоны: ТК ГПНА Online [12:29:24]line 30100970 [12:29:24]line ФМ: 0000000000963346 [12:29:24]line ФД: 70613 [12:29:24]line ФПД: 273232888774036 [12:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70613&fm=273232888774036&tin=02508201610067®Number=0000000000156251&sum=0 [12:29:25]OFD Sender: Processing packet 70613 [packets to send 18, broken 17] [12:29:25]ProducePacketName [12:29:25]name=ofd_packets/00070613 [12:29:25]OFD Sender: To server: pG, [12:29:25]CommunicateWithHost lk.salyk.kg:30040 [12:29:25]ConnectInit lk.salyk.kg [12:29:25]written 0, free lines is 4095 [12:29:25]Connected sock=11 [12:29: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 81 46 07 01 A1 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 81 00 00 00 F4 03 04 00 24 EC 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 80 FD 46 BD 94 AD 0D 74 C5 3E 52 05 3B [12:29: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 96 43 47 00 92 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 C1 95 18 67 B6 04 01 00 00 5C 0A 14 8E A9 F6 4F F0 [12:29:25]CommunicateWithHost err = 0 [12:29:25]CheckOFDResponse [12:29:25]1017 (14) - 77093643461234 [12:29:25]1041 (16) - 0000000000963346 [12:29:25]1040 (4) - 70613 [12:29:25]1012 (4) - 23.10.2024 06:20 [12:29:25]1206 (1) - 0 [12:29:25]OFD Sender: Remove packet 70613 [12:29:25]ProducePacketName [12:29:25]name=ofd_packets/00070613 [12:29:25]NVStorageDeleteData [12:29:25]Write to MH i2c: 01 00 00 FE 02 00 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 07 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FC 0C 0F [12:29:25]RasterBufferAndPrint [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]written 0, free lines is 3330 [12:29:25]MH_Cut [12:29:25]Write to MH i2c: D1 01 00 05 03 01 DA [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 01 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 01 00 05 03 00 D9 [12:29:25]Write to MH i2c: 01 00 00 06 03 09 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]OFD Sender: No OFD packet to send [12:29:26]*** Cut start [12:29:26]*** Partial cut [12:29:26]*** CUTSNS_PIN = 1 [12:29:26]*** CUTSNS_PIN = 0 [12:29:26]*** Brake cut motor [12:29:26]Read from MH i2c: 01 [12:29:26]MH_I2C_Read... [12:29:26]*** Stop cut motor [12:29:26]*** Cut end [12:29:26]Read from MH i2c: 01 07 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [12:29:26]process_action close_receipt done [12:29:26]requested_data is exist [12:29:26]produce_requested_data [12:29:26]requested_item fm.sn is exist - process it [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 11 00 00 [12:29:26]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [12:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:29:26]wFMCommunicate OK [12:29:26]requested_item fd.num is exist - process it [12:29:26]SAM_PROTO_GetFieldsCounters [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 13 00 00 [12:29:26]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 62 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 D2 [12:29: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 D5 13 01 00 0E 04 04 00 C4 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 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetFieldsCounters done [12:29:27]requested_item shift.num is exist - process it [12:29:27]requested_item shift.opened is exist - process it [12:29:27]req_shift_opened [12:29:27]FM_GetShiftState [12:29:27]SAM_PROTO_GetShiftState [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 13 01 00 [12:29:27]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 16 [12:29:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetShiftState done [12:29:27]FM_GetShiftState done [12:29:27]req_shift_opened done [12:29:27]requested_item shift.open_date is exist - process it [12:29:27]req_shift_open_date [12:29:27]req_shift_open_date done [12:29:27]produce_requested_data done [12:29:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70613,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:29:27]process_action_free close_receipt [12:29:27]json_value_free [12:29:27]json_value_free done [12:29:27]process_json_proto returns [12:29:27]Send response to host [12:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70613,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:29:27]free response buf [12:29:27]execute_script done [12:29:27]execute_script returns [12:29:27]free content buf [12:29:27]Sock 7.Close socket [12:29:27]Sock 7.Thread stoped [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]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:56]OFD Sender: No OFD packet to send [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:22]accept exits with 9 [12:37:22]New connection [12:37:22]New thread 3067034980 created [12:37:22]Thread 3066891620 joined [12:37:22]Waiting for new connection... [12:37:22] Sock 9.Parse request [12:37:22]Sock 9.Check first char [12:37:22]Sock 9.First char is OK [12:37:22]request: POST /json_proto HTTP/1.0 [12:37:22]Method: POST [12:37:22]URL: /json_proto [12:37:22]Method is POST - this is cgi request [12:37:22]url: /json_proto [12:37:22]query_string will be loaded in cgi processing [12:37:22]execute_cgi json_proto POST (null) [12:37:22]execute_cgi path=json_proto method=POST [12:37:22]POST find Content-Length [12:37:22]Host: 172.17.50.3:8080 [12:37:22]Content-Length: 675 [12:37:22]Content-Type: application/json [12:37:22] [12:37:22]POST finish read [12:37:22]Found Content-Length = 675 [12:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886387", "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" ] } } [12:37:22]execute_script... [12:37: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)2886387", "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" ] } } [12:37:22]POST & json_proto [12:37:22]process_json_proto [12:37:22]json parsed OK: [12:37:22]protocol is kg_v1.0 [12:37:22]action value=close_receipt [12:37:22]process_action close_receipt [12:37:22]cmd_close_receipt [12:37:22]MH_GetDate [12:37:22]Write to MH i2c: F0 00 00 0A 03 FC [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: F0 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: F0 09 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: F0 09 00 0A 03 00 03 EE 18 67 6B 98 1E 66 FC [12:37:22]GetLastDocTimeStamp 1729686564 [12:37:22]current date 1729687043 [12:37:22]FM_GetShiftState [12:37:22]SAM_PROTO_GetShiftState [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 13 01 00 [12:37:22]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0E 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 18 [12:37:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_GetShiftState done [12:37:22]FM_GetShiftState done [12:37:22]opened in 1729642435 [12:37:22]opened+sec_in_day 1729728835 [12:37:22]quantity*price = 50063 [12:37:22]sum+1 = 50064 [12:37:22]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 СНО: Общий режим Чек 130 23.10.2024 12:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70614 ФПД: 221295465008368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70614&fm=221295465008368&tin=02508201610067®Number=0000000000156251&sum=50000 [12:37:23]StoreToDocumentArchive [12:37:23]shift 196 fd 70614 [12:37:23]save to /storage/0196/doc_00070614 [12:37:23]save last doc name /storage/0196/doc_00070614 to /storage/kkm_last_doc_name [12:37:23]save OK [12:37:23]Clear old archive folders... [12:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:23]tlvbuf is 001409A0 [12:37:23]SAM_PROTO_ClearQueue [12:37:23]wFMCommunicate request_size=4 [12:37:23]MH_SAM_APDU [12:37:23]CAPDU: 80 09 00 00 [12:37:23]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:23]Read from MH i2c: E2 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [12:37:23]RAPDU: 90 00 [12:37:23]wFMCommunicate OK [12:37:23]SAM_PROTO_ClearQueue done [12:37:23]KKMCreateOFDPacket [12:37:23]OFDProtocolAddRootSTLVToBuf [12:37:23]FM_MakeSignedData [12:37:23]FM_MakeSignedData [12:37:23]SAM_PROTO_SignData [12:37:23]wFMCommunicate request_size=4 [12:37:23]MH_SAM_APDU [12:37:23]CAPDU: 80 0D 01 02 [12:37:23]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:23]Read from MH i2c: E2 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [12:37:23]RAPDU: 90 00 [12:37:23]wFMCommunicate OK [12:37:23]wFMCommunicate request_size=255 [12:37:23]MH_SAM_APDU [12:37: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 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 82 00 00 00 F4 03 04 00 03 EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 44 5D 95 [12:37:23]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 82 00 00 00 F4 03 04 00 03 EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 44 5D 95 00 00 3B [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:23]Read from MH i2c: E2 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [12:37:23]RAPDU: 90 00 [12:37:23]wFMCommunicate OK [12:37:23]wFMCommunicate request_size=7 [12:37:23]MH_SAM_APDU [12:37:23]CAPDU: 80 0D 02 02 02 0C F0 [12:37:23]Write to MH i2c: E2 0A 00 1B 03 80 0D 02 02 02 00 0C F0 00 00 98 [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:23]Read from MH i2c: E2 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [12:37:23]RAPDU: 90 00 [12:37:23]wFMCommunicate OK [12:37:23]wFMCommunicate request_size=4 [12:37:23]MH_SAM_APDU [12:37:23]CAPDU: 80 0D 03 02 [12:37:23]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:23]Read from MH i2c: E2 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 0B 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: E2 0B 00 1C 03 00 9C E7 6B BA 88 F0 7B B6 90 00 EC [12:37:23]RAPDU: 9C E7 6B BA 88 F0 7B B6 90 00 [12:37:23]wFMCommunicate OK [12:37:23]SAM_PROTO_SignData done [12:37:23]FM_MakeSignedData done [12:37:23]CreateOFDProtocolMessage [12:37:23]wFMCommunicate request_size=4 [12:37:23]MH_SAM_APDU [12:37:23]CAPDU: 80 11 00 00 [12:37:23]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [12:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:37:24]wFMCommunicate OK [12:37:24]CreateOFDProtocolMessage done [12:37:24]OFDSenderStorePacket 70614 [12:37:24]StoreOFDPacket docnum=70614 [12:37: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 41 58 04 01 CF 33 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 82 00 00 00 F4 03 04 00 03 EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 44 5D 95 0C F0 9C E7 6B BA 88 F0 7B B6 [12:37:24]CheckFolder [12:37:24]dirname=/storage/ofd_packets [12:37:24]CheckFolder done [12:37:24]ProducePacketName [12:37:24]name=ofd_packets/00070614 [12:37:24]NVStorageSaveData ofd_packets/00070614 [12:37:24]File name is /storage/ofd_packets/00070614 [12:37:24]Write 298 bytes [12:37:24]NVStorageSaveData done [12:37:24]OFDSenderStorePacket done [12:37:24]KKMCreateOFDPacket done [12:37:24]NVStorageSaveData kkm_last_timestamp [12:37:24]File name is /storage/kkm_last_timestamp [12:37:24]Write 4 bytes [12:37:24]NVStorageSaveData done [12:37:24]ExternCall_PrintAddStr [12:37:24]wPrintStart [12:37:24]Write to MH i2c: 01 00 00 1E 03 21 [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [12:37:24]RasterBufferAndPrint [12:37:24]line Счет N : (1)2886387 [12:37:24]line ИНН: 02508201610067 [12:37:24]line Контрольно-Кассовый Чек [12:37:24]line ПРОДАЖА [12:37:24]line ТРК (МРК, ГНК) : 61 [12:37:24]line Товар: 2710194210 [12:37:24]line ДТ-К-5 [12:37:24]line 6.570 * 76.20 [12:37:24]line = 500.63 [12:37:24]line НДС 12% НСП 1% [12:37:24]line > о реализуемом товаре [12:37:24]line ОКРУГЛЕНИЕ: -0.63 [12:37:24]line ИТОГО: 500.00 [12:37:24]line Внесено: 500.00 [12:37:24]line СДАЧА: 0.00 [12:37:24]line НСП 1% : 4.43 [12:37:24]line НДС 12% : 53.16 [12:37:24]line Наличными: 500.00 [12:37:24]line Безнал.: 0.00 [12:37:24]line Место: АЗС № 85 "Партнер Нефть" [12:37:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:37:24]line СНО: Общий режим [12:37:24]line Чек 130 23.10.2024 12:37 [12:37:24]line Смена: 196 ФФД: 1.0 [12:37:24]line ЗНМ: 0300000167 [12:37:24]line РНМ: 0000000000156251 [12:37:24]line Версия ККМ: v1.0 [12:37:24]line ФМ: 0000000000963346 [12:37:24]line ФД: 70614 [12:37:24]line ФПД: 221295465008368 [12:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70614&fm=221295465008368&tin=02508201610067®Number=0000000000156251&sum=50000 [12:37:24]OFD Sender: Processing packet 70614 [packets to send 18, broken 17] [12:37:24]ProducePacketName [12:37:24]name=ofd_packets/00070614 [12:37:24]OFD Sender: To server: pG, [12:37:24]CommunicateWithHost lk.salyk.kg:30040 [12:37:24]ConnectInit lk.salyk.kg [12:37:24]written 0, free lines is 4095 [12:37:24]Connected sock=10 [12:37: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 41 58 04 01 CF 33 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 82 00 00 00 F4 03 04 00 03 EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 C9 44 5D 95 0C F0 9C E7 6B BA 88 F0 7B B6 [12:37: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 54 1E 47 00 94 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 D6 13 01 00 F4 03 04 00 A1 97 18 67 B6 04 01 00 00 0B 70 15 14 8A AA 36 AB [12:37:24]CommunicateWithHost err = 0 [12:37:24]CheckOFDResponse [12:37:24]1017 (14) - 77093643461234 [12:37:24]1041 (16) - 0000000000963346 [12:37:24]1040 (4) - 70614 [12:37:24]1012 (4) - 23.10.2024 06:28 [12:37:24]1206 (1) - 0 [12:37:24]OFD Sender: Remove packet 70614 [12:37:24]ProducePacketName [12:37:24]name=ofd_packets/00070614 [12:37:24]NVStorageDeleteData [12:37:24]Write to MH i2c: 01 00 00 49 03 4C [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 E8 0C 47 [12:37:24]RasterBufferAndPrint [12:37:24]line [12:37:24]line [12:37:24]line [12:37:24]line [12:37:24]line [12:37:24]written 0, free lines is 3311 [12:37:24]MH_Cut [12:37:24]Write to MH i2c: D1 01 00 50 03 01 25 [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: D1 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: D1 01 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: D1 01 00 50 03 00 24 [12:37:24]Write to MH i2c: 01 00 00 51 03 54 [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:25]OFD Sender: No OFD packet to send [12:37:25]*** Cut start [12:37:25]*** Partial cut [12:37:25]*** CUTSNS_PIN = 1 [12:37:25]*** CUTSNS_PIN = 0 [12:37:25]*** Brake cut motor [12:37:26]Read from MH i2c: 01 [12:37:26]MH_I2C_Read... [12:37:26]*** Stop cut motor [12:37:26]*** Cut end [12:37:26]Read from MH i2c: 01 07 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [12:37:26]process_action close_receipt done [12:37:26]requested_data is exist [12:37:26]produce_requested_data [12:37:26]requested_item fm.sn is exist - process it [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 11 00 00 [12:37:26]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 17 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [12: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 [12:37:26]wFMCommunicate OK [12:37:26]requested_item fd.num is exist - process it [12:37:26]SAM_PROTO_GetFieldsCounters [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 13 00 00 [12:37:26]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 62 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 21 [12:37: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 D6 13 01 00 0E 04 04 00 C4 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 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_GetFieldsCounters done [12:37:26]requested_item shift.num is exist - process it [12:37:26]requested_item shift.opened is exist - process it [12:37:26]req_shift_opened [12:37:26]FM_GetShiftState [12:37:26]SAM_PROTO_GetShiftState [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 13 01 00 [12:37:26]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 0E 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 61 [12:37:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_GetShiftState done [12:37:26]FM_GetShiftState done [12:37:26]req_shift_opened done [12:37:26]requested_item shift.open_date is exist - process it [12:37:26]req_shift_open_date [12:37:26]req_shift_open_date done [12:37:26]produce_requested_data done [12:37:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70614,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:37:26]process_action_free close_receipt [12:37:26]json_value_free [12:37:26]json_value_free done [12:37:26]process_json_proto returns [12:37:26]Send response to host [12:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70614,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:37:26]free response buf [12:37:26]execute_script done [12:37:26]execute_script returns [12:37:26]free content buf [12:37:26]Sock 9.Close socket [12:37:26]Sock 9.Thread stoped [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:29]accept exits with 7 [12:40:29]New connection [12:40:29]New thread 3066891620 created [12:40:29]Thread 3067034980 joined [12:40:29]Waiting for new connection... [12:40:29] Sock 7.Parse request [12:40:29]Sock 7.Check first char [12:40:29]Sock 7.First char is OK [12:40:29]request: POST /json_proto HTTP/1.0 [12:40:29]Method: POST [12:40:29]URL: /json_proto [12:40:29]Method is POST - this is cgi request [12:40:29]url: /json_proto [12:40:29]query_string will be loaded in cgi processing [12:40:29]execute_cgi json_proto POST (null) [12:40:29]execute_cgi path=json_proto method=POST [12:40:29]POST find Content-Length [12:40:29]Host: 172.17.50.3:8080 [12:40:29]Content-Length: 678 [12:40:29]Content-Type: application/json [12:40:29] [12:40:29]POST finish read [12:40:29]Found Content-Length = 678 [12:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886388", "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" ] } } [12:40:29]execute_script... [12:40: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)2886388", "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" ] } } [12:40:29]POST & json_proto [12:40:29]process_json_proto [12:40:29]json parsed OK: [12:40:29]protocol is kg_v1.0 [12:40:29]action value=close_receipt [12:40:29]process_action close_receipt [12:40:29]cmd_close_receipt [12:40:29]MH_GetDate [12:40:29]Write to MH i2c: F0 00 00 55 03 47 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 09 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 09 00 55 03 00 BE EE 18 67 6B 98 1E 66 02 [12:40:29]GetLastDocTimeStamp 1729687043 [12:40:29]current date 1729687230 [12:40:29]FM_GetShiftState [12:40:29]SAM_PROTO_GetShiftState [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 13 01 00 [12:40:29]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0E 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 63 [12:40:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:40:29]wFMCommunicate OK [12:40:29]SAM_PROTO_GetShiftState done [12:40:29]FM_GetShiftState done [12:40:29]opened in 1729642435 [12:40:29]opened+sec_in_day 1729728835 [12:40:29]quantity*price = 50041 [12:40:29]sum+1 = 50042 [12:40:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 131 23.10.2024 12:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70615 ФПД: 78885752395683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70615&fm=78885752395683&tin=02508201610067®Number=0000000000156251&sum=50000 [12:40:30]StoreToDocumentArchive [12:40:30]shift 196 fd 70615 [12:40:30]save to /storage/0196/doc_00070615 [12:40:30]save last doc name /storage/0196/doc_00070615 to /storage/kkm_last_doc_name [12:40:30]save OK [12:40:30]Clear old archive folders... [12:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:30]tlvbuf is 0013BCC0 [12:40:30]SAM_PROTO_ClearQueue [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 09 00 00 [12:40:30]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]SAM_PROTO_ClearQueue done [12:40:30]KKMCreateOFDPacket [12:40:30]OFDProtocolAddRootSTLVToBuf [12:40:30]FM_MakeSignedData [12:40:30]FM_MakeSignedData [12:40:30]SAM_PROTO_SignData [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 01 02 [12:40:30]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=255 [12:40:30]MH_SAM_APDU [12:40: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 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 83 00 00 00 F4 03 04 00 BE EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 47 [12:40:30]Write to MH i2c: E2 02 01 65 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 83 00 00 00 F4 03 04 00 BE EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 47 00 00 0D [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=10 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 02 02 05 BF 05 3F D7 A3 [12:40:30]Write to MH i2c: E2 0D 00 66 03 80 0D 02 02 05 00 BF 05 3F D7 A3 00 00 6A [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 03 02 [12:40:30]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0B 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 0B 00 67 03 00 8F EE 13 94 52 C8 5E FF 90 00 81 [12:40:30]RAPDU: 8F EE 13 94 52 C8 5E FF 90 00 [12:40:30]wFMCommunicate OK [12:40:30]SAM_PROTO_SignData done [12:40:30]FM_MakeSignedData done [12:40:30]CreateOFDProtocolMessage [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 11 00 00 [12:40:30]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 17 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [12:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:40:30]wFMCommunicate OK [12:40:30]CreateOFDProtocolMessage done [12:40:30]OFDSenderStorePacket 70615 [12:40:30]StoreOFDPacket docnum=70615 [12:40: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 AD F5 07 01 16 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 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 83 00 00 00 F4 03 04 00 BE EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 47 BF 05 3F D7 A3 8F EE 13 94 52 C8 5E FF [12:40:30]CheckFolder [12:40:30]dirname=/storage/ofd_packets [12:40:30]CheckFolder done [12:40:30]ProducePacketName [12:40:30]name=ofd_packets/00070615 [12:40:30]NVStorageSaveData ofd_packets/00070615 [12:40:30]File name is /storage/ofd_packets/00070615 [12:40:30]Write 301 bytes [12:40:30]NVStorageSaveData done [12:40:30]OFDSenderStorePacket done [12:40:30]KKMCreateOFDPacket done [12:40:30]NVStorageSaveData kkm_last_timestamp [12:40:30]File name is /storage/kkm_last_timestamp [12:40:30]Write 4 bytes [12:40:30]NVStorageSaveData done [12:40:30]ExternCall_PrintAddStr [12:40:30]wPrintStart [12:40:30]Write to MH i2c: 01 00 00 69 03 6C [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 07 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [12:40:30]RasterBufferAndPrint [12:40:30]line Счет N : (1)2886388 [12:40:30]line ИНН: 02508201610067 [12:40:30]line Контрольно-Кассовый Чек [12:40:30]line ПРОДАЖА [12:40:30]line ТРК (МРК, ГНК) : 12 [12:40:30]line Товар: 2710124130 [12:40:30]line Аи-92-К-5 [12:40:30]line 7.480 * 66.90 [12:40:30]line = 500.41 [12:40:30]line НДС 12% НСП 1% [12:40:30]line > о реализуемом товаре [12:40:30]line ОКРУГЛЕНИЕ: -0.41 [12:40:30]line ИТОГО: 500.00 [12:40:30]line Внесено: 500.00 [12:40:30]line СДАЧА: 0.00 [12:40:30]line НСП 1% : 4.43 [12:40:30]line НДС 12% : 53.14 [12:40:30]line Наличными: 500.00 [12:40:30]line Безнал.: 0.00 [12:40:30]line Место: АЗС № 85 "Партнер Нефть" [12:40:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:40:30]line СНО: Общий режим [12:40:30]line Чек 131 23.10.2024 12:40 [12:40:30]line Смена: 196 ФФД: 1.0 [12:40:30]line ЗНМ: 0300000167 [12:40:30]line РНМ: 0000000000156251 [12:40:30]line Версия ККМ: v1.0 [12:40:30]line ФМ: 0000000000963346 [12:40:30]line ФД: 70615 [12:40:30]line ФПД: 78885752395683 [12:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70615&fm=78885752395683&tin=02508201610067®Number=0000000000156251&sum=50000 [12:40:31]OFD Sender: Processing packet 70615 [packets to send 18, broken 17] [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00070615 [12:40:31]OFD Sender: To server: pG, [12:40:31]CommunicateWithHost lk.salyk.kg:30040 [12:40:31]ConnectInit lk.salyk.kg [12:40:31]written 0, free lines is 4095 [12:40:31]Connected sock=10 [12: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 0F 01 00 00 AD F5 07 01 16 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 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 83 00 00 00 F4 03 04 00 BE EE 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 47 BF 05 3F D7 A3 8F EE 13 94 52 C8 5E FF [12: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 27 97 47 00 38 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 5C 98 18 67 B6 04 01 00 00 AF C5 11 A6 76 FC CA 00 [12:40:31]CommunicateWithHost err = 0 [12:40:31]CheckOFDResponse [12:40:31]1017 (14) - 77093643461234 [12:40:31]1041 (16) - 0000000000963346 [12:40:31]1040 (4) - 70615 [12:40:31]1012 (4) - 23.10.2024 06:31 [12:40:31]1206 (1) - 0 [12:40:31]OFD Sender: Remove packet 70615 [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00070615 [12:40:31]NVStorageDeleteData [12:40:31]Write to MH i2c: 01 00 00 94 03 97 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 EC 0C 96 [12:40:31]RasterBufferAndPrint [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]written 0, free lines is 3314 [12:40:31]MH_Cut [12:40:31]Write to MH i2c: D1 01 00 9B 03 01 70 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 9B 03 00 6F [12:40:31]Write to MH i2c: 01 00 00 9C 03 9F [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:32]OFD Sender: No OFD packet to send [12:40:32]*** Cut start [12:40:32]*** Partial cut [12:40:32]*** CUTSNS_PIN = 1 [12:40:32]*** CUTSNS_PIN = 0 [12:40:32]*** Brake cut motor [12:40:33]Read from MH i2c: 01 [12:40:33]MH_I2C_Read... [12:40:33]*** Stop cut motor [12:40:33]*** Cut end [12:40:33]Read from MH i2c: 01 07 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [12:40:33]process_action close_receipt done [12:40:33]requested_data is exist [12:40:33]produce_requested_data [12:40:33]requested_item fm.sn is exist - process it [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 11 00 00 [12:40:33]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 17 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [12: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 [12:40:33]wFMCommunicate OK [12:40:33]requested_item fd.num is exist - process it [12:40:33]SAM_PROTO_GetFieldsCounters [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 13 00 00 [12:40:33]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 62 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 62 00 9E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 70 [12: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 D7 13 01 00 0E 04 04 00 C4 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 [12:40:33]wFMCommunicate OK [12:40:33]SAM_PROTO_GetFieldsCounters done [12:40:33]requested_item shift.num is exist - process it [12:40:33]requested_item shift.opened is exist - process it [12:40:33]req_shift_opened [12:40:33]FM_GetShiftState [12:40:33]SAM_PROTO_GetShiftState [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 13 01 00 [12:40:33]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AC [12:40:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:40:33]wFMCommunicate OK [12:40:33]SAM_PROTO_GetShiftState done [12:40:33]FM_GetShiftState done [12:40:33]req_shift_opened done [12:40:33]requested_item shift.open_date is exist - process it [12:40:33]req_shift_open_date [12:40:33]req_shift_open_date done [12:40:33]produce_requested_data done [12:40:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70615,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:40:33]process_action_free close_receipt [12:40:33]json_value_free [12:40:33]json_value_free done [12:40:33]process_json_proto returns [12:40:33]Send response to host [12:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70615,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:40:33]free response buf [12:40:33]execute_script done [12:40:33]execute_script returns [12:40:33]free content buf [12:40:33]Sock 7.Close socket [12:40:33]Sock 7.Thread stoped [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:23]accept exits with 9 [12:42:23]New connection [12:42:23]New thread 3067034980 created [12:42:23]Thread 3066891620 joined [12:42:23]Waiting for new connection... [12:42:23] Sock 9.Parse request [12:42:23]Sock 9.Check first char [12:42:23]Sock 9.First char is OK [12:42:23]request: POST /json_proto HTTP/1.0 [12:42:23]Method: POST [12:42:23]URL: /json_proto [12:42:23]Method is POST - this is cgi request [12:42:23]url: /json_proto [12:42:23]query_string will be loaded in cgi processing [12:42:23]execute_cgi json_proto POST (null) [12:42:23]execute_cgi path=json_proto method=POST [12:42:23]POST find Content-Length [12:42:23]Host: 172.17.50.3:8080 [12:42:23]Content-Length: 678 [12:42:23]Content-Type: application/json [12:42:23] [12:42:23]POST finish read [12:42:23]Found Content-Length = 678 [12:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886389", "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" ] } } [12:42:23]execute_script... [12:42: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)2886389", "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" ] } } [12:42:23]POST & json_proto [12:42:23]process_json_proto [12:42:23]json parsed OK: [12:42:23]protocol is kg_v1.0 [12:42:23]action value=close_receipt [12:42:23]process_action close_receipt [12:42:23]cmd_close_receipt [12:42:23]MH_GetDate [12:42:23]Write to MH i2c: F0 00 00 A0 03 92 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 09 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 09 00 A0 03 00 31 EF 18 67 6B 98 1E 66 C1 [12:42:23]GetLastDocTimeStamp 1729687230 [12:42:23]current date 1729687345 [12:42:23]FM_GetShiftState [12:42:23]SAM_PROTO_GetShiftState [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 13 01 00 [12:42:23]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [12:42:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_GetShiftState done [12:42:23]FM_GetShiftState done [12:42:23]opened in 1729642435 [12:42:23]opened+sec_in_day 1729728835 [12:42:23]quantity*price = 30038 [12:42:23]sum+1 = 30039 [12:42:23]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 СНО: Общий режим Чек 132 23.10.2024 12:42 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70616 ФПД: 138897490797623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124225&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70616&fm=138897490797623&tin=02508201610067®Number=0000000000156251&sum=30000 [12:42:25]StoreToDocumentArchive [12:42:25]shift 196 fd 70616 [12:42:25]save to /storage/0196/doc_00070616 [12:42:25]save last doc name /storage/0196/doc_00070616 to /storage/kkm_last_doc_name [12:42:25]save OK [12:42:25]Clear old archive folders... [12:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:25]tlvbuf is 0013EE70 [12:42:25]SAM_PROTO_ClearQueue [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 09 00 00 [12:42:25]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_ClearQueue done [12:42:25]KKMCreateOFDPacket [12:42:25]OFDProtocolAddRootSTLVToBuf [12:42:25]FM_MakeSignedData [12:42:25]FM_MakeSignedData [12:42:25]SAM_PROTO_SignData [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 01 02 [12:42:25]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=255 [12:42:25]MH_SAM_APDU [12:42: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 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 84 00 00 00 F4 03 04 00 31 EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 7E [12:42:25]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 00 00 00 F4 03 04 00 31 EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 7E 00 00 F9 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=10 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 02 02 05 53 97 99 64 37 [12:42:25]Write to MH i2c: E2 0D 00 B1 03 80 0D 02 02 05 00 53 97 99 64 37 00 00 56 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 03 02 [12:42:25]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0B 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0B 00 B2 03 00 3A 76 9B B4 A3 D1 EE 2B 90 00 BD [12:42:25]RAPDU: 3A 76 9B B4 A3 D1 EE 2B 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_SignData done [12:42:25]FM_MakeSignedData done [12:42:25]CreateOFDProtocolMessage [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 11 00 00 [12:42:25]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [12:42: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:42:25]wFMCommunicate OK [12:42:25]CreateOFDProtocolMessage done [12:42:25]OFDSenderStorePacket 70616 [12:42:25]StoreOFDPacket docnum=70616 [12:42: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 BE 6B 07 01 9A 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 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 84 00 00 00 F4 03 04 00 31 EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 7E 53 97 99 64 37 3A 76 9B B4 A3 D1 EE 2B [12:42:25]CheckFolder [12:42:25]dirname=/storage/ofd_packets [12:42:25]CheckFolder done [12:42:25]ProducePacketName [12:42:25]name=ofd_packets/00070616 [12:42:25]NVStorageSaveData ofd_packets/00070616 [12:42:25]File name is /storage/ofd_packets/00070616 [12:42:25]Write 301 bytes [12:42:25]NVStorageSaveData done [12:42:25]OFDSenderStorePacket done [12:42:25]KKMCreateOFDPacket done [12:42:25]NVStorageSaveData kkm_last_timestamp [12:42:25]File name is /storage/kkm_last_timestamp [12:42:25]Write 4 bytes [12:42:25]NVStorageSaveData done [12:42:25]ExternCall_PrintAddStr [12:42:25]wPrintStart [12:42:25]Write to MH i2c: 01 00 00 B4 03 B7 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [12:42:25]RasterBufferAndPrint [12:42:25]line Счет N : (1)2886389 [12:42:25]line ИНН: 02508201610067 [12:42:25]line Контрольно-Кассовый Чек [12:42:25]line ПРОДАЖА [12:42:25]line ТРК (МРК, ГНК) : 42 [12:42:25]line Товар: 2710124130 [12:42:25]line Аи-92-К-5 [12:42:25]line 4.490 * 66.90 [12:42:25]line = 300.38 [12:42:25]line НДС 12% НСП 1% [12:42:25]line > о реализуемом товаре [12:42:25]line ОКРУГЛЕНИЕ: -0.38 [12:42:25]line ИТОГО: 300.00 [12:42:25]line Внесено: 300.00 [12:42:25]line СДАЧА: 0.00 [12:42:25]line НСП 1% : 2.66 [12:42:25]line НДС 12% : 31.90 [12:42:25]line Наличными: 300.00 [12:42:25]line Безнал.: 0.00 [12:42:25]line Место: АЗС № 85 "Партнер Нефть" [12:42:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:42:25]line СНО: Общий режим [12:42:25]line Чек 132 23.10.2024 12:42 [12:42:25]line Смена: 196 ФФД: 1.0 [12:42:25]line ЗНМ: 0300000167 [12:42:25]line РНМ: 0000000000156251 [12:42:25]line Версия ККМ: v1.0 [12:42:25]line ФМ: 0000000000963346 [12:42:25]line ФД: 70616 [12:42:25]line ФПД: 138897490797623 [12:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124225&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70616&fm=138897490797623&tin=02508201610067®Number=0000000000156251&sum=30000 [12:42:25]OFD Sender: Processing packet 70616 [packets to send 18, broken 17] [12:42:25]ProducePacketName [12:42:25]name=ofd_packets/00070616 [12:42:25]OFD Sender: To server: pG, [12:42:25]CommunicateWithHost lk.salyk.kg:30040 [12:42:25]ConnectInit lk.salyk.kg [12:42:25]written 0, free lines is 4095 [12:42:26]Connected sock=7 [12:42: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 BE 6B 07 01 9A 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 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 84 00 00 00 F4 03 04 00 31 EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 7E 53 97 99 64 37 3A 76 9B B4 A3 D1 EE 2B [12:42: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 01 28 47 00 7A 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 D8 13 01 00 F4 03 04 00 CE 98 18 67 B6 04 01 00 00 3D 89 1E 9C DF 01 E1 2B [12:42:26]CommunicateWithHost err = 0 [12:42:26]CheckOFDResponse [12:42:26]1017 (14) - 77093643461234 [12:42:26]1041 (16) - 0000000000963346 [12:42:26]1040 (4) - 70616 [12:42:26]1012 (4) - 23.10.2024 06:33 [12:42:26]1206 (1) - 0 [12:42:26]OFD Sender: Remove packet 70616 [12:42:26]ProducePacketName [12:42:26]name=ofd_packets/00070616 [12:42:26]NVStorageDeleteData [12:42:26]Write to MH i2c: 01 00 00 DF 03 E2 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 07 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 F0 0C E5 [12:42:26]RasterBufferAndPrint [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]written 0, free lines is 3318 [12:42:26]MH_Cut [12:42:26]Write to MH i2c: D1 01 00 E6 03 01 BB [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 01 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 01 00 E6 03 00 BA [12:42:26]Write to MH i2c: 01 00 00 E7 03 EA [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]OFD Sender: No OFD packet to send [12:42:27]*** Cut start [12:42:27]*** Partial cut [12:42:27]*** CUTSNS_PIN = 1 [12:42:27]*** CUTSNS_PIN = 0 [12:42:27]*** Brake cut motor [12:42:27]Read from MH i2c: 01 [12:42:27]MH_I2C_Read... [12:42:27]*** Stop cut motor [12:42:27]*** Cut end [12:42:27]Read from MH i2c: 01 07 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [12:42:27]process_action close_receipt done [12:42:27]requested_data is exist [12:42:27]produce_requested_data [12:42:27]requested_item fm.sn is exist - process it [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 11 00 00 [12:42:27]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [12:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:42:27]wFMCommunicate OK [12:42:27]requested_item fd.num is exist - process it [12:42:27]SAM_PROTO_GetFieldsCounters [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 13 00 00 [12:42:27]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 62 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 62 00 E9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 BF [12:42: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 D8 13 01 00 0E 04 04 00 C4 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 [12:42:27]wFMCommunicate OK [12:42:27]SAM_PROTO_GetFieldsCounters done [12:42:27]requested_item shift.num is exist - process it [12:42:27]requested_item shift.opened is exist - process it [12:42:27]req_shift_opened [12:42:27]FM_GetShiftState [12:42:27]SAM_PROTO_GetShiftState [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 13 01 00 [12:42:27]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:28]Read from MH i2c: E2 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: E2 0E 00 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F7 [12:42:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:42:28]wFMCommunicate OK [12:42:28]SAM_PROTO_GetShiftState done [12:42:28]FM_GetShiftState done [12:42:28]req_shift_opened done [12:42:28]requested_item shift.open_date is exist - process it [12:42:28]req_shift_open_date [12:42:28]req_shift_open_date done [12:42:28]produce_requested_data done [12:42:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70616,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:42:28]process_action_free close_receipt [12:42:28]json_value_free [12:42:28]json_value_free done [12:42:28]process_json_proto returns [12:42:28]Send response to host [12:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70616,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:42:28]free response buf [12:42:28]execute_script done [12:42:28]execute_script returns [12:42:28]free content buf [12:42:28]Sock 9.Close socket [12:42:28]Sock 9.Thread stoped [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:02]accept exits with 10 [12:45:02]New connection [12:45:02]New thread 3066891620 created [12:45:02]Thread 3067034980 joined [12:45:02]Waiting for new connection... [12:45:02] Sock 10.Parse request [12:45:02]Sock 10.Check first char [12:45:02]Sock 10.First char is OK [12:45:02]request: POST /json_proto HTTP/1.0 [12:45:02]Method: POST [12:45:02]URL: /json_proto [12:45:02]Method is POST - this is cgi request [12:45:02]url: /json_proto [12:45:02]query_string will be loaded in cgi processing [12:45:02]execute_cgi json_proto POST (null) [12:45:02]execute_cgi path=json_proto method=POST [12:45:02]POST find Content-Length [12:45:02]Host: 172.17.50.3:8080 [12:45:02]Content-Length: 764 [12:45:02]Content-Type: application/json [12:45:02] [12:45:02]POST finish read [12:45:02]Found Content-Length = 764 [12:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886393", "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" : 9.190, "sum" : 700.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" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:02]execute_script... [12:45: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)2886393", "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" : 9.190, "sum" : 700.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" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:02]POST & json_proto [12:45:02]process_json_proto [12:45:02]json parsed OK: [12:45:02]protocol is kg_v1.0 [12:45:02]action value=close_receipt [12:45:02]process_action close_receipt [12:45:02]cmd_close_receipt [12:45:02]MH_GetDate [12:45:02]Write to MH i2c: F0 00 00 EB 03 DD [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 09 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 09 00 EB 03 00 CF EF 18 67 6B 98 1E 66 AA [12:45:02]GetLastDocTimeStamp 1729687345 [12:45:02]current date 1729687503 [12:45:02]FM_GetShiftState [12:45:02]SAM_PROTO_GetShiftState [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 01 00 [12:45:02]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [12:45:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]opened in 1729642435 [12:45:02]opened+sec_in_day 1729728835 [12:45:02]quantity*price = 70027 [12:45:02]sum+1 = 70029 [12:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 133 23.10.2024 12:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70617 ФПД: 273596599626502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70617&fm=273596599626502&tin=02508201610067®Number=0000000000156251&sum=70028 [12:45:03]StoreToDocumentArchive [12:45:03]shift 196 fd 70617 [12:45:03]save to /storage/0196/doc_00070617 [12:45:03]save last doc name /storage/0196/doc_00070617 to /storage/kkm_last_doc_name [12:45:03]save OK [12:45:03]Clear old archive folders... [12:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:45:03]tlvbuf is 0014C540 [12:45:03]SAM_PROTO_ClearQueue [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 09 00 00 [12:45:03]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_ClearQueue done [12:45:03]KKMCreateOFDPacket [12:45:03]OFDProtocolAddRootSTLVToBuf [12:45:03]FM_MakeSignedData [12:45:03]FM_MakeSignedData [12:45:03]SAM_PROTO_SignData [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 01 02 [12:45:03]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=255 [12:45:03]MH_SAM_APDU [12:45: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 D5 AC 21 [12:45:03]Write to MH i2c: E2 02 01 FB 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 D5 AC 21 00 00 36 [12:45:03]Write i2c OK [12:45:03]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 FB 03 00 90 00 72 [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=7 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 02 02 02 EB 06 [12:45:04]Write to MH i2c: E2 0A 00 FC 03 80 0D 02 02 02 00 EB 06 00 00 6E [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 FC 03 00 90 00 73 [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 FD 03 80 0D 03 02 00 00 00 00 7B [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 FD 03 00 57 A2 60 FB DF AF F2 65 90 00 B5 [12:45:04]RAPDU: 57 A2 60 FB DF AF F2 65 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 FE 03 80 11 00 00 00 00 00 00 7B [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 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [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 70617 [12:45:04]StoreOFDPacket docnum=70617 [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 0C 01 00 00 CF AE 04 01 F8 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 D5 AC 21 EB 06 57 A2 60 FB DF AF F2 65 [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/00070617 [12:45:04]NVStorageSaveData ofd_packets/00070617 [12:45:04]File name is /storage/ofd_packets/00070617 [12:45:04]Write 298 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 FF 03 02 [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 FF 03 00 00 00 00 00 FF 0F 17 [12:45:04]RasterBufferAndPrint [12:45:04]line Счет N : (1)2886393 [12:45:04]line ИНН: 02508201610067 [12:45:04]line Контрольно-Кассовый Чек [12:45:04]line ПРОДАЖА [12:45:04]line ТРК (МРК, ГНК) : 51 [12:45:04]line Товар: 2710194210 [12:45:04]line ДТ-К-5 [12:45:04]line 9.190 * 76.20 [12:45:04]line = 700.28 [12:45:04]line НДС 12% НСП 1% [12:45:04]line > о реализуемом товаре [12:45:04]line ИТОГО: 700.28 [12:45:04]line НСП 1% : 6.20 [12:45:04]line НДС 12% : 74.37 [12:45:04]line Наличными: 0.00 [12:45:04]line Безнал.: 700.28 [12:45:04]line Место: АЗС № 85 "Партнер Нефть" [12:45:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:45:04]line СНО: Общий режим [12:45:04]line Чек 133 23.10.2024 12:45 [12:45:04]line Смена: 196 ФФД: 1.0 [12:45:04]line ЗНМ: 0300000167 [12:45:04]line РНМ: 0000000000156251 [12:45:04]line Версия ККМ: v1.0 [12:45:04]line Платежная система: Mbank [12:45:04]line ФМ: 0000000000963346 [12:45:04]line ФД: 70617 [12:45:04]line ФПД: 273596599626502 [12:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70617&fm=273596599626502&tin=02508201610067®Number=0000000000156251&sum=70028 [12:45:04]OFD Sender: Processing packet 70617 [packets to send 18, broken 17] [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00070617 [12:45:04]OFD Sender: To server: pG, [12:45:04]CommunicateWithHost lk.salyk.kg:30040 [12:45:04]ConnectInit lk.salyk.kg [12:45:04]written 0, free lines is 4095 [12:45:04]Connected sock=7 [12:45: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 CF AE 04 01 F8 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 F8 D5 AC 21 EB 06 57 A2 60 FB DF AF F2 65 [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 8B 80 47 00 F0 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 D9 13 01 00 F4 03 04 00 6D 99 18 67 B6 04 01 00 00 16 0B 5D 75 4B C6 7C 59 [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) - 70617 [12:45:05]1012 (4) - 23.10.2024 06:36 [12:45:05]1206 (1) - 0 [12:45:05]OFD Sender: Remove packet 70617 [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00070617 [12:45:05]NVStorageDeleteData [12:45:05]Write to MH i2c: 01 00 00 28 04 2C [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 28 04 00 00 00 00 00 10 0D 50 [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 3350 [12:45:05]MH_Cut [12:45:05]Write to MH i2c: D1 01 00 2F 04 01 05 [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 2F 04 00 04 [12:45:05]Write to MH i2c: 01 00 00 30 04 34 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]OFD Sender: No OFD packet to send [12:45:05]*** Cut start [12:45:05]*** Partial cut [12:45:05]*** CUTSNS_PIN = 1 [12:45:05]*** 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]Read from MH i2c: 01 07 00 [12:45:06]MH_I2C_Read... [12:45:06]*** Cut end [12:45:06]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [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 31 04 80 11 00 00 00 00 00 00 AF [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 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [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 32 04 80 13 00 00 00 00 00 00 B2 [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:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 0D [12:45: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 D9 13 01 00 0E 04 04 00 C4 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 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetFieldsCounters done [12:45:06]requested_item shift.num is exist - process it [12:45:06]requested_item shift.opened is exist - process it [12:45:06]req_shift_opened [12:45:06]FM_GetShiftState [12:45:06]SAM_PROTO_GetShiftState [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 13 01 00 [12:45:06]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 41 [12:45:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetShiftState done [12:45:06]FM_GetShiftState done [12:45:06]req_shift_opened done [12:45:06]requested_item shift.open_date is exist - process it [12:45:06]req_shift_open_date [12:45:06]req_shift_open_date done [12:45:06]produce_requested_data done [12:45:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70617,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:45:06]process_action_free close_receipt [12:45:06]json_value_free [12:45:06]json_value_free done [12:45:06]process_json_proto returns [12:45:06]Send response to host [12:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70617,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:45:06]free response buf [12:45:06]execute_script done [12:45:06]execute_script returns [12:45:06]free content buf [12:45:06]Sock 10.Close socket [12:45:06]Sock 10.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:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:15]accept exits with 9 [12:49:15]New connection [12:49:15]New thread 3067034980 created [12:49:15]Thread 3066891620 joined [12:49:15]Waiting for new connection... [12:49:15] Sock 9.Parse request [12:49:15]Sock 9.Check first char [12:49:15]Sock 9.First char is OK [12:49:15]request: POST /json_proto HTTP/1.0 [12:49:15]Method: POST [12:49:15]URL: /json_proto [12:49:15]Method is POST - this is cgi request [12:49:15]url: /json_proto [12:49:15]query_string will be loaded in cgi processing [12:49:15]execute_cgi json_proto POST (null) [12:49:15]execute_cgi path=json_proto method=POST [12:49:15]POST find Content-Length [12:49:15]Host: 172.17.50.3:8080 [12:49:15]Content-Length: 680 [12:49:15]Content-Type: application/json [12:49:15] [12:49:15]POST finish read [12:49:15]Found Content-Length = 680 [12:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886394", "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" ] } } [12:49:15]execute_script... [12:49: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)2886394", "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" ] } } [12:49:15]POST & json_proto [12:49:15]process_json_proto [12:49:15]json parsed OK: [12:49:15]protocol is kg_v1.0 [12:49:15]action value=close_receipt [12:49:15]process_action close_receipt [12:49:15]cmd_close_receipt [12:49:15]MH_GetDate [12:49:15]Write to MH i2c: F0 00 00 34 04 27 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 34 04 00 CD F0 18 67 6B 98 1E 66 F3 [12:49:15]GetLastDocTimeStamp 1729687503 [12:49:15]current date 1729687757 [12:49:15]FM_GetShiftState [12:49:15]SAM_PROTO_GetShiftState [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 13 01 00 [12:49:15]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 43 [12:49:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_GetShiftState done [12:49:15]FM_GetShiftState done [12:49:15]opened in 1729642435 [12:49:15]opened+sec_in_day 1729728835 [12:49:15]quantity*price = 100050 [12:49:15]sum+1 = 100052 [12:49: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 СНО: Общий режим Чек 134 23.10.2024 12:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70618 ФПД: 95345558677427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124917&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70618&fm=95345558677427&tin=02508201610067®Number=0000000000156251&sum=100000 [12:49:17]StoreToDocumentArchive [12:49:17]shift 196 fd 70618 [12:49:17]save to /storage/0196/doc_00070618 [12:49:17]save last doc name /storage/0196/doc_00070618 to /storage/kkm_last_doc_name [12:49:17]save OK [12:49:17]Clear old archive folders... [12:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:49:17]tlvbuf is B6ED5590 [12:49:17]SAM_PROTO_ClearQueue [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 09 00 00 [12:49:17]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_ClearQueue done [12:49:17]KKMCreateOFDPacket [12:49:17]OFDProtocolAddRootSTLVToBuf [12:49:17]FM_MakeSignedData [12:49:17]FM_MakeSignedData [12:49:17]SAM_PROTO_SignData [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 01 02 [12:49:17]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=255 [12:49:17]MH_SAM_APDU [12:49:17]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 86 00 00 00 F4 03 04 00 CD F0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 56 B7 5E 27 [12:49:17]Write to MH i2c: E2 02 01 44 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 86 00 00 00 F4 03 04 00 CD F0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 56 B7 5E 27 00 00 45 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=7 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 02 02 02 E7 B3 [12:49:17]Write to MH i2c: E2 0A 00 45 04 80 0D 02 02 02 00 E7 B3 00 00 61 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [12:49:17]RAPDU: 90 00 [12:49:17]wFMCommunicate OK [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 0D 03 02 [12:49:17]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0B 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0B 00 46 04 00 5D FA CA 39 C5 0D 86 B6 90 00 2E [12:49:17]RAPDU: 5D FA CA 39 C5 0D 86 B6 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_SignData done [12:49:17]FM_MakeSignedData done [12:49:17]CreateOFDProtocolMessage [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 11 00 00 [12:49:17]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 17 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 17 00 47 04 00 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:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:17]wFMCommunicate OK [12:49:17]CreateOFDProtocolMessage done [12:49:17]OFDSenderStorePacket 70618 [12:49:17]StoreOFDPacket docnum=70618 [12:49: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 0C 01 00 00 34 35 04 01 F1 54 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 86 00 00 00 F4 03 04 00 CD F0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 56 B7 5E 27 E7 B3 5D FA CA 39 C5 0D 86 B6 [12:49:17]CheckFolder [12:49:17]dirname=/storage/ofd_packets [12:49:17]CheckFolder done [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00070618 [12:49:17]NVStorageSaveData ofd_packets/00070618 [12:49:17]File name is /storage/ofd_packets/00070618 [12:49:17]Write 298 bytes [12:49:17]NVStorageSaveData done [12:49:17]OFDSenderStorePacket done [12:49:17]KKMCreateOFDPacket done [12:49:17]NVStorageSaveData kkm_last_timestamp [12:49:17]File name is /storage/kkm_last_timestamp [12:49:17]Write 4 bytes [12:49:17]NVStorageSaveData done [12:49:17]ExternCall_PrintAddStr [12:49:17]wPrintStart [12:49:17]Write to MH i2c: 01 00 00 48 04 4C [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [12:49:17]RasterBufferAndPrint [12:49:17]line Счет N : (1)2886394 [12:49:17]line ИНН: 02508201610067 [12:49:17]line Контрольно-Кассовый Чек [12:49:17]line ПРОДАЖА [12:49:17]line ТРК (МРК, ГНК) : 51 [12:49:17]line Товар: 2710194210 [12:49:17]line ДТ-К-5 [12:49:17]line 13.130 * 76.20 [12:49:17]line = 1000.51 [12:49:17]line НДС 12% НСП 1% [12:49:17]line > о реализуемом товаре [12:49:17]line ОКРУГЛЕНИЕ: -0.51 [12:49:17]line ИТОГО: 1000.00 [12:49:17]line Внесено: 1000.00 [12:49:17]line СДАЧА: 0.00 [12:49:17]line НСП 1% : 8.85 [12:49:17]line НДС 12% : 106.25 [12:49:17]line Наличными: 1000.00 [12:49:17]line Безнал.: 0.00 [12:49:17]line Место: АЗС № 85 "Партнер Нефть" [12:49:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:49:17]line СНО: Общий режим [12:49:17]line Чек 134 23.10.2024 12:49 [12:49:17]line Смена: 196 ФФД: 1.0 [12:49:17]line ЗНМ: 0300000167 [12:49:17]line РНМ: 0000000000156251 [12:49:17]line Версия ККМ: v1.0 [12:49:17]line ФМ: 0000000000963346 [12:49:17]line ФД: 70618 [12:49:17]line ФПД: 95345558677427 [12:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124917&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70618&fm=95345558677427&tin=02508201610067®Number=0000000000156251&sum=100000 [12:49:17]OFD Sender: Processing packet 70618 [packets to send 18, broken 17] [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00070618 [12:49:17]OFD Sender: To server: pG, [12:49:17]CommunicateWithHost lk.salyk.kg:30040 [12:49:17]ConnectInit lk.salyk.kg [12:49:17]written 0, free lines is 4095 [12:49:17]Connected sock=10 [12:49: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 34 35 04 01 F1 54 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 86 00 00 00 F4 03 04 00 CD F0 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 56 B7 5E 27 E7 B3 5D FA CA 39 C5 0D 86 B6 [12:49: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 F1 C3 47 00 07 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 6A 9A 18 67 B6 04 01 00 00 3D 05 51 B3 63 C9 E7 2A [12:49:18]CommunicateWithHost err = 0 [12:49:18]CheckOFDResponse [12:49:18]1017 (14) - 77093643461234 [12:49:18]1041 (16) - 0000000000963346 [12:49:18]1040 (4) - 70618 [12:49:18]1012 (4) - 23.10.2024 06:40 [12:49:18]1206 (1) - 0 [12:49:18]OFD Sender: Remove packet 70618 [12:49:18]ProducePacketName [12:49:18]name=ofd_packets/00070618 [12:49:18]NVStorageDeleteData [12:49:18]Write to MH i2c: 01 00 00 73 04 77 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 DF 0C 69 [12:49:18]RasterBufferAndPrint [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]line [12:49:18]written 0, free lines is 3302 [12:49:18]MH_Cut [12:49:18]Write to MH i2c: D1 01 00 7A 04 01 50 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 01 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: D1 01 00 7A 04 00 4F [12:49:18]Write to MH i2c: 01 00 00 7B 04 7F [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]OFD Sender: No OFD packet to send [12:49:19]*** Cut start [12:49:19]*** Partial cut [12:49:19]*** CUTSNS_PIN = 1 [12:49:19]*** CUTSNS_PIN = 0 [12:49:19]*** Brake cut motor [12:49:19]Read from MH i2c: 01 [12:49:19]MH_I2C_Read... [12:49:19]*** Stop cut motor [12:49:19]*** Cut end [12:49:19]Read from MH i2c: 01 07 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [12:49:19]process_action close_receipt done [12:49:19]requested_data is exist [12:49:19]produce_requested_data [12:49:19]requested_item fm.sn is exist - process it [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 11 00 00 [12:49:19]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [12: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 [12:49:19]wFMCommunicate OK [12:49:19]requested_item fd.num is exist - process it [12:49:19]SAM_PROTO_GetFieldsCounters [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 00 00 [12:49:19]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 62 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 62 00 7D 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 DA 13 01 00 0E 04 04 00 C4 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 5C [12:49: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 DA 13 01 00 0E 04 04 00 C4 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 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetFieldsCounters done [12:49:19]requested_item shift.num is exist - process it [12:49:19]requested_item shift.opened is exist - process it [12:49:19]req_shift_opened [12:49:19]FM_GetShiftState [12:49:19]SAM_PROTO_GetShiftState [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 01 00 [12:49:19]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8C [12:49:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetShiftState done [12:49:19]FM_GetShiftState done [12:49:19]req_shift_opened done [12:49:19]requested_item shift.open_date is exist - process it [12:49:19]req_shift_open_date [12:49:19]req_shift_open_date done [12:49:19]produce_requested_data done [12:49:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70618,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:49:19]process_action_free close_receipt [12:49:19]json_value_free [12:49:19]json_value_free done [12:49:19]process_json_proto returns [12:49:19]Send response to host [12:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70618,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:49:19]free response buf [12:49:19]execute_script done [12:49:19]execute_script returns [12:49:19]free content buf [12:49:19]Sock 9.Close socket [12:49:19]Sock 9.Thread stoped [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:11]accept exits with 7 [12:52:11]New connection [12:52:11]New thread 3066891620 created [12:52:11]Thread 3067034980 joined [12:52:11]Waiting for new connection... [12:52:11] Sock 7.Parse request [12:52:11]Sock 7.Check first char [12:52:11]Sock 7.First char is OK [12:52:11]request: POST /json_proto HTTP/1.0 [12:52:11]Method: POST [12:52:11]URL: /json_proto [12:52:11]Method is POST - this is cgi request [12:52:11]url: /json_proto [12:52:11]query_string will be loaded in cgi processing [12:52:11]execute_cgi json_proto POST (null) [12:52:11]execute_cgi path=json_proto method=POST [12:52:11]POST find Content-Length [12:52:11]Host: 172.17.50.3:8080 [12:52:11]Content-Length: 684 [12:52:11]Content-Type: application/json [12:52:11] [12:52:11]POST finish read [12:52:11]Found Content-Length = 684 [12:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886395", "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" ] } } [12:52:11]execute_script... [12: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)2886395", "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" ] } } [12:52:11]POST & json_proto [12:52:11]process_json_proto [12:52:11]json parsed OK: [12:52:11]protocol is kg_v1.0 [12:52:11]action value=close_receipt [12:52:11]process_action close_receipt [12:52:11]cmd_close_receipt [12:52:11]MH_GetDate [12:52:11]Write to MH i2c: F0 00 00 7F 04 72 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 09 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 09 00 7F 04 00 7C F1 18 67 6B 98 1E 66 EE [12:52:11]GetLastDocTimeStamp 1729687757 [12:52:11]current date 1729687932 [12:52:11]FM_GetShiftState [12:52:11]SAM_PROTO_GetShiftState [12:52:11]wFMCommunicate request_size=4 [12:52:11]MH_SAM_APDU [12:52:11]CAPDU: 80 13 01 00 [12:52:11]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:11]Read from MH i2c: E2 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8E [12:52:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:52:11]wFMCommunicate OK [12:52:11]SAM_PROTO_GetShiftState done [12:52:11]FM_GetShiftState done [12:52:11]opened in 1729642435 [12:52:11]opened+sec_in_day 1729728835 [12:52:11]quantity*price = 60061 [12:52:11]sum+1 = 60063 [12:52:11]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 СНО: Общий режим Чек 135 23.10.2024 12:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70619 ФПД: 160105698071845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70619&fm=160105698071845&tin=02508201610067®Number=0000000000156251&sum=60000 [12:52:12]StoreToDocumentArchive [12:52:12]shift 196 fd 70619 [12:52:12]save to /storage/0196/doc_00070619 [12:52:12]save last doc name /storage/0196/doc_00070619 to /storage/kkm_last_doc_name [12:52:12]save OK [12:52:12]Clear old archive folders... [12:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:52:12]tlvbuf is 00137AF0 [12:52:12]SAM_PROTO_ClearQueue [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 09 00 00 [12:52:12]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_ClearQueue done [12:52:12]KKMCreateOFDPacket [12:52:12]OFDProtocolAddRootSTLVToBuf [12:52:12]FM_MakeSignedData [12:52:12]FM_MakeSignedData [12:52:12]SAM_PROTO_SignData [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 01 02 [12:52:12]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=255 [12:52:12]MH_SAM_APDU [12:52:12]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 87 00 00 00 F4 03 04 00 7C F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [12:52:12]Write to MH i2c: E2 02 01 8F 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 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 87 00 00 00 F4 03 04 00 7C F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 9C [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=16 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 91 9D 83 42 95 25 [12:52:12]Write to MH i2c: E2 13 00 90 04 80 0D 02 02 0B 00 00 35 04 06 00 91 9D 83 42 95 25 00 00 10 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 03 02 [12:52:12]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0B 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0B 00 91 04 00 39 04 F7 16 AE A3 C0 27 90 00 93 [12:52:12]RAPDU: 39 04 F7 16 AE A3 C0 27 90 00 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_SignData done [12:52:12]FM_MakeSignedData done [12:52:12]CreateOFDProtocolMessage [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 11 00 00 [12:52:12]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [12: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 [12:52:12]wFMCommunicate OK [12:52:12]CreateOFDProtocolMessage done [12:52:12]OFDSenderStorePacket 70619 [12:52:12]StoreOFDPacket docnum=70619 [12: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 15 01 00 00 F1 37 0D 01 B6 65 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 87 00 00 00 F4 03 04 00 7C F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 9D 83 42 95 25 39 04 F7 16 AE A3 C0 27 [12:52:12]CheckFolder [12:52:12]dirname=/storage/ofd_packets [12:52:12]CheckFolder done [12:52:12]ProducePacketName [12:52:12]name=ofd_packets/00070619 [12:52:12]NVStorageSaveData ofd_packets/00070619 [12:52:12]File name is /storage/ofd_packets/00070619 [12:52:12]Write 307 bytes [12:52:12]NVStorageSaveData done [12:52:12]OFDSenderStorePacket done [12:52:12]KKMCreateOFDPacket done [12:52:12]NVStorageSaveData kkm_last_timestamp [12:52:12]File name is /storage/kkm_last_timestamp [12:52:12]Write 4 bytes [12:52:12]NVStorageSaveData done [12:52:12]ExternCall_PrintAddStr [12:52:12]wPrintStart [12:52:12]Write to MH i2c: 01 00 00 93 04 97 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [12:52:12]RasterBufferAndPrint [12:52:12]line Счет N : (1)2886395 [12:52:12]line ИНН: 02508201610067 [12:52:12]line Контрольно-Кассовый Чек [12:52:12]line ПРОДАЖА [12:52:12]line ТРК (МРК, ГНК) : 41 [12:52:12]line Товар: 2710194240 [12:52:12]line D-ENERGY Дт-К-2 [12:52:12]line 7.780 * 77.20 [12:52:12]line = 600.62 [12:52:12]line НДС 12% НСП 1% [12:52:12]line > о реализуемом товаре [12:52:12]line ОКРУГЛЕНИЕ: -0.62 [12:52:12]line ИТОГО: 600.00 [12:52:12]line Внесено: 600.00 [12:52:12]line СДАЧА: 0.00 [12:52:12]line НСП 1% : 5.31 [12:52:12]line НДС 12% : 63.78 [12:52:12]line Наличными: 600.00 [12:52:12]line Безнал.: 0.00 [12:52:12]line Место: АЗС № 85 "Партнер Нефть" [12:52:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:52:12]line СНО: Общий режим [12:52:13]line Чек 135 23.10.2024 12:52 [12:52:13]line Смена: 196 ФФД: 1.0 [12:52:13]line ЗНМ: 0300000167 [12:52:13]line РНМ: 0000000000156251 [12:52:13]line Версия ККМ: v1.0 [12:52:13]line ФМ: 0000000000963346 [12:52:13]line ФД: 70619 [12:52:13]line ФПД: 160105698071845 [12:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70619&fm=160105698071845&tin=02508201610067®Number=0000000000156251&sum=60000 [12:52:13]OFD Sender: Processing packet 70619 [packets to send 18, broken 17] [12:52:13]ProducePacketName [12:52:13]name=ofd_packets/00070619 [12:52:13]OFD Sender: To server: pG, [12:52:13]CommunicateWithHost lk.salyk.kg:30040 [12:52:13]ConnectInit lk.salyk.kg [12:52:13]written 0, free lines is 4095 [12:52:13]Connected sock=10 [12: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 15 01 00 00 F1 37 0D 01 B6 65 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 87 00 00 00 F4 03 04 00 7C F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 9D 83 42 95 25 39 04 F7 16 AE A3 C0 27 [12:52: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 82 4A 47 00 ED 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 DB 13 01 00 F4 03 04 00 19 9B 18 67 B6 04 01 00 00 D3 89 30 70 57 6C 9A 28 [12:52:13]CommunicateWithHost err = 0 [12:52:13]CheckOFDResponse [12:52:13]1017 (14) - 77093643461234 [12:52:13]1041 (16) - 0000000000963346 [12:52:13]1040 (4) - 70619 [12:52:13]1012 (4) - 23.10.2024 06:43 [12:52:13]1206 (1) - 0 [12:52:13]OFD Sender: Remove packet 70619 [12:52:13]ProducePacketName [12:52:13]name=ofd_packets/00070619 [12:52:13]NVStorageDeleteData [12:52:13]Write to MH i2c: 01 00 00 BE 04 C2 [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 07 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 F3 0C C8 [12:52:13]RasterBufferAndPrint [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]written 0, free lines is 3321 [12:52:13]MH_Cut [12:52:13]Write to MH i2c: D1 01 00 C5 04 01 9B [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 01 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 01 00 C5 04 00 9A [12:52:13]Write to MH i2c: 01 00 00 C6 04 CA [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]OFD Sender: No OFD packet to send [12:52:14]*** Cut start [12:52:14]*** Partial cut [12:52:14]*** CUTSNS_PIN = 1 [12:52:14]*** CUTSNS_PIN = 0 [12:52:14]*** Brake cut motor [12:52:14]Read from MH i2c: 01 [12:52:14]MH_I2C_Read... [12:52:14]*** Stop cut motor [12:52:14]*** Cut end [12:52:14]Read from MH i2c: 01 07 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [12:52:14]process_action close_receipt done [12:52:14]requested_data is exist [12:52:14]produce_requested_data [12:52:14]requested_item fm.sn is exist - process it [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 11 00 00 [12:52:14]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:14]Read from MH i2c: E2 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 17 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [12: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 [12:52:14]wFMCommunicate OK [12:52:14]requested_item fd.num is exist - process it [12:52:14]SAM_PROTO_GetFieldsCounters [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 13 00 00 [12:52:14]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 62 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 62 00 C8 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 DB 13 01 00 0E 04 04 00 C4 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 AB [12: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 DB 13 01 00 0E 04 04 00 C4 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 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_GetFieldsCounters done [12:52:15]requested_item shift.num is exist - process it [12:52:15]requested_item shift.opened is exist - process it [12:52:15]req_shift_opened [12:52:15]FM_GetShiftState [12:52:15]SAM_PROTO_GetShiftState [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 13 01 00 [12:52:15]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0E 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D7 [12:52:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_GetShiftState done [12:52:15]FM_GetShiftState done [12:52:15]req_shift_opened done [12:52:15]requested_item shift.open_date is exist - process it [12:52:15]req_shift_open_date [12:52:15]req_shift_open_date done [12:52:15]produce_requested_data done [12:52:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70619,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:52:15]process_action_free close_receipt [12:52:15]json_value_free [12:52:15]json_value_free done [12:52:15]process_json_proto returns [12:52:15]Send response to host [12:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70619,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:52:15]free response buf [12:52:15]execute_script done [12:52:15]execute_script returns [12:52:15]free content buf [12:52:15]Sock 7.Close socket [12:52:15]Sock 7.Thread stoped [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:56]accept exits with 9 [12:53:56]New connection [12:53:56]New thread 3067034980 created [12:53:56]Thread 3066891620 joined [12:53:56]Waiting for new connection... [12:53:56] Sock 9.Parse request [12:53:56]Sock 9.Check first char [12:53:56]Sock 9.First char is OK [12:53:56]request: POST /json_proto HTTP/1.0 [12:53:56]Method: POST [12:53:56]URL: /json_proto [12:53:56]Method is POST - this is cgi request [12:53:56]url: /json_proto [12:53:56]query_string will be loaded in cgi processing [12:53:56]execute_cgi json_proto POST (null) [12:53:56]execute_cgi path=json_proto method=POST [12:53:56]POST find Content-Length [12:53:56]Host: 172.17.50.3:8080 [12:53:56]Content-Length: 678 [12:53:56]Content-Type: application/json [12:53:56] [12:53:56]POST finish read [12:53:56]Found Content-Length = 678 [12:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886396", "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" ] } } [12:53:56]execute_script... [12:53: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)2886396", "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" ] } } [12:53:56]POST & json_proto [12:53:56]process_json_proto [12:53:56]json parsed OK: [12:53:56]protocol is kg_v1.0 [12:53:56]action value=close_receipt [12:53:56]process_action close_receipt [12:53:56]cmd_close_receipt [12:53:56]MH_GetDate [12:53:56]Write to MH i2c: F0 00 00 CA 04 BD [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: F0 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: F0 09 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: F0 09 00 CA 04 00 E5 F1 18 67 6B 98 1E 66 A2 [12:53:56]GetLastDocTimeStamp 1729687932 [12:53:56]current date 1729688037 [12:53:56]FM_GetShiftState [12:53:56]SAM_PROTO_GetShiftState [12:53:56]wFMCommunicate request_size=4 [12:53:56]MH_SAM_APDU [12:53:56]CAPDU: 80 13 01 00 [12:53:56]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:56]Read from MH i2c: E2 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 0E 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D9 [12:53:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:53:56]wFMCommunicate OK [12:53:56]SAM_PROTO_GetShiftState done [12:53:56]FM_GetShiftState done [12:53:56]opened in 1729642435 [12:53:56]opened+sec_in_day 1729728835 [12:53:56]quantity*price = 60027 [12:53:56]sum+1 = 60029 [12:53:56]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 СНО: Общий режим Чек 136 23.10.2024 12:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70620 ФПД: 21013381645233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70620&fm=21013381645233&tin=02508201610067®Number=0000000000156251&sum=60000 [12:53:57]StoreToDocumentArchive [12:53:57]shift 196 fd 70620 [12:53:57]save to /storage/0196/doc_00070620 [12:53:57]save last doc name /storage/0196/doc_00070620 to /storage/kkm_last_doc_name [12:53:57]save OK [12:53:57]Clear old archive folders... [12:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:57]tlvbuf is B6DBC100 [12:53:57]SAM_PROTO_ClearQueue [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 09 00 00 [12:53:57]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 03 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [12:53:57]RAPDU: 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_ClearQueue done [12:53:57]KKMCreateOFDPacket [12:53:57]OFDProtocolAddRootSTLVToBuf [12:53:57]FM_MakeSignedData [12:53:57]FM_MakeSignedData [12:53:57]SAM_PROTO_SignData [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 0D 01 02 [12:53:57]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 03 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [12:53:57]RAPDU: 90 00 [12:53:57]wFMCommunicate OK [12:53:57]wFMCommunicate request_size=255 [12:53:57]MH_SAM_APDU [12:53: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 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 88 00 00 00 F4 03 04 00 E5 F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 13 [12:53:57]Write to MH i2c: E2 02 01 DA 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 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 88 00 00 00 F4 03 04 00 E5 F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 13 00 00 E1 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=10 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 02 02 05 1C 8F 26 03 B1 [12:53:58]Write to MH i2c: E2 0D 00 DB 04 80 0D 02 02 05 00 1C 8F 26 03 B1 00 00 E8 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 03 02 [12:53:58]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0B 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0B 00 DC 04 00 0C 05 DD FA 56 7F 24 62 90 00 9F [12:53:58]RAPDU: 0C 05 DD FA 56 7F 24 62 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_SignData done [12:53:58]FM_MakeSignedData done [12:53:58]CreateOFDProtocolMessage [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 11 00 00 [12:53:58]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [12:53: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:53:58]wFMCommunicate OK [12:53:58]CreateOFDProtocolMessage done [12:53:58]OFDSenderStorePacket 70620 [12:53:58]StoreOFDPacket docnum=70620 [12:53: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 EC 74 07 01 A7 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 E5 F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 13 1C 8F 26 03 B1 0C 05 DD FA 56 7F 24 62 [12:53:58]CheckFolder [12:53:58]dirname=/storage/ofd_packets [12:53:58]CheckFolder done [12:53:58]ProducePacketName [12:53:58]name=ofd_packets/00070620 [12:53:58]NVStorageSaveData ofd_packets/00070620 [12:53:58]File name is /storage/ofd_packets/00070620 [12:53:58]Write 301 bytes [12:53:58]NVStorageSaveData done [12:53:58]OFDSenderStorePacket done [12:53:58]KKMCreateOFDPacket done [12:53:58]NVStorageSaveData kkm_last_timestamp [12:53:58]File name is /storage/kkm_last_timestamp [12:53:58]Write 4 bytes [12:53:58]NVStorageSaveData done [12:53:58]ExternCall_PrintAddStr [12:53:58]wPrintStart [12:53:58]Write to MH i2c: 01 00 00 DE 04 E2 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [12:53:58]RasterBufferAndPrint [12:53:58]line Счет N : (1)2886396 [12:53:58]line ИНН: 02508201610067 [12:53:58]line Контрольно-Кассовый Чек [12:53:58]line ПРОДАЖА [12:53:58]line ТРК (МРК, ГНК) : 13 [12:53:58]line Товар: 2710124500 [12:53:58]line Аи-95-К-5 [12:53:58]line 8.090 * 74.20 [12:53:58]line = 600.28 [12:53:58]line НДС 12% НСП 1% [12:53:58]line > о реализуемом товаре [12:53:58]line ОКРУГЛЕНИЕ: -0.28 [12:53:58]line ИТОГО: 600.00 [12:53:58]line Внесено: 600.00 [12:53:58]line СДАЧА: 0.00 [12:53:58]line НСП 1% : 5.31 [12:53:58]line НДС 12% : 63.75 [12:53:58]line Наличными: 600.00 [12:53:58]line Безнал.: 0.00 [12:53:58]line Место: АЗС № 85 "Партнер Нефть" [12:53:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:53:58]line СНО: Общий режим [12:53:58]line Чек 136 23.10.2024 12:53 [12:53:58]line Смена: 196 ФФД: 1.0 [12:53:58]line ЗНМ: 0300000167 [12:53:58]line РНМ: 0000000000156251 [12:53:58]line Версия ККМ: v1.0 [12:53:58]line ФМ: 0000000000963346 [12:53:58]line ФД: 70620 [12:53:58]line ФПД: 21013381645233 [12:53:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70620&fm=21013381645233&tin=02508201610067®Number=0000000000156251&sum=60000 [12:53:58]OFD Sender: Processing packet 70620 [packets to send 18, broken 17] [12:53:58]ProducePacketName [12:53:58]name=ofd_packets/00070620 [12:53:58]OFD Sender: To server: pG, [12:53:58]CommunicateWithHost lk.salyk.kg:30040 [12:53:58]ConnectInit lk.salyk.kg [12:53:58]written 0, free lines is 4095 [12:53:58]Connected sock=10 [12:53: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 EC 74 07 01 A7 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 E5 F1 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 13 1C 8F 26 03 B1 0C 05 DD FA 56 7F 24 62 [12:53: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 49 F5 47 00 8F 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 DC 13 01 00 F4 03 04 00 83 9B 18 67 B6 04 01 00 00 DF 15 0D 5A EF 4C 4D F8 [12:53:58]CommunicateWithHost err = 0 [12:53:58]CheckOFDResponse [12:53:58]1017 (14) - 77093643461234 [12:53:58]1041 (16) - 0000000000963346 [12:53:58]1040 (4) - 70620 [12:53:58]1012 (4) - 23.10.2024 06:45 [12:53:58]1206 (1) - 0 [12:53:58]OFD Sender: Remove packet 70620 [12:53:58]ProducePacketName [12:53:58]name=ofd_packets/00070620 [12:53:58]NVStorageDeleteData [12:53:59]Write to MH i2c: 01 00 00 09 05 0E [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 D9 0C FA [12:53:59]RasterBufferAndPrint [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]written 0, free lines is 3297 [12:53:59]MH_Cut [12:53:59]Write to MH i2c: D1 01 00 10 05 01 E7 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 01 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 01 00 10 05 00 E6 [12:53:59]Write to MH i2c: 01 00 00 11 05 16 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]OFD Sender: No OFD packet to send [12:53:59]*** Cut start [12:53:59]*** Partial cut [12:53:59]*** CUTSNS_PIN = 1 [12:53:59]*** CUTSNS_PIN = 0 [12:54:00]*** Brake cut motor [12:54:00]Read from MH i2c: 01 [12:54:00]MH_I2C_Read... [12:54:00]*** Stop cut motor [12:54:00]*** Cut end [12:54:00]Read from MH i2c: 01 07 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [12:54:00]process_action close_receipt done [12:54:00]requested_data is exist [12:54:00]produce_requested_data [12:54:00]requested_item fm.sn is exist - process it [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 11 00 00 [12:54:00]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 17 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [12:54: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:54:00]wFMCommunicate OK [12:54:00]requested_item fd.num is exist - process it [12:54:00]SAM_PROTO_GetFieldsCounters [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 13 00 00 [12:54:00]Write to MH i2c: E2 08 00 13 05 80 13 00 00 00 00 00 00 94 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 62 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 62 00 13 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 DC 13 01 00 0E 04 04 00 C4 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 FB [12:54: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 DC 13 01 00 0E 04 04 00 C4 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 [12:54:00]wFMCommunicate OK [12:54:00]SAM_PROTO_GetFieldsCounters done [12:54:00]requested_item shift.num is exist - process it [12:54:00]requested_item shift.opened is exist - process it [12:54:00]req_shift_opened [12:54:00]FM_GetShiftState [12:54:00]SAM_PROTO_GetShiftState [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 13 01 00 [12:54:00]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0E 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 23 [12:54:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:54:00]wFMCommunicate OK [12:54:00]SAM_PROTO_GetShiftState done [12:54:00]FM_GetShiftState done [12:54:00]req_shift_opened done [12:54:00]requested_item shift.open_date is exist - process it [12:54:00]req_shift_open_date [12:54:00]req_shift_open_date done [12:54:00]produce_requested_data done [12:54:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70620,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:54:00]process_action_free close_receipt [12:54:00]json_value_free [12:54:00]json_value_free done [12:54:00]process_json_proto returns [12:54:00]Send response to host [12:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70620,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:54:00]free response buf [12:54:00]execute_script done [12:54:00]execute_script returns [12:54:00]free content buf [12:54:00]Sock 9.Close socket [12:54:00]Sock 9.Thread stoped [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:29]accept exits with 7 [12:56:29]New connection [12:56:29]New thread 3066891620 created [12:56:29]Thread 3067034980 joined [12:56:29]Waiting for new connection... [12:56:29] Sock 7.Parse request [12:56:29]Sock 7.Check first char [12:56:29]Sock 7.First char is OK [12:56:29]request: POST /json_proto HTTP/1.0 [12:56:29]Method: POST [12:56:29]URL: /json_proto [12:56:29]Method is POST - this is cgi request [12:56:29]url: /json_proto [12:56:29]query_string will be loaded in cgi processing [12:56:29]execute_cgi json_proto POST (null) [12:56:29]execute_cgi path=json_proto method=POST [12:56:29]POST find Content-Length [12:56:29]Host: 172.17.50.3:8080 [12:56:29]Content-Length: 678 [12:56:29]Content-Type: application/json [12:56:29] [12:56:29]POST finish read [12:56:29]Found Content-Length = 678 [12:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886397", "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" ] } } [12:56:29]execute_script... [12:56: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)2886397", "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" ] } } [12:56:29]POST & json_proto [12:56:29]process_json_proto [12:56:29]json parsed OK: [12:56:29]protocol is kg_v1.0 [12:56:29]action value=close_receipt [12:56:29]process_action close_receipt [12:56:29]cmd_close_receipt [12:56:29]MH_GetDate [12:56:29]Write to MH i2c: F0 00 00 15 05 09 [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 09 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 09 00 15 05 00 7F F2 18 67 6B 98 1E 66 89 [12:56:29]GetLastDocTimeStamp 1729688037 [12:56:29]current date 1729688191 [12:56:29]FM_GetShiftState [12:56:29]SAM_PROTO_GetShiftState [12:56:29]wFMCommunicate request_size=4 [12:56:29]MH_SAM_APDU [12:56:29]CAPDU: 80 13 01 00 [12:56:29]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:29]Read from MH i2c: E2 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 0E 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 25 [12:56:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:56:29]wFMCommunicate OK [12:56:29]SAM_PROTO_GetShiftState done [12:56:29]FM_GetShiftState done [12:56:29]opened in 1729642435 [12:56:29]opened+sec_in_day 1729728835 [12:56:29]quantity*price = 50041 [12:56:29]sum+1 = 50042 [12:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 137 23.10.2024 12:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70621 ФПД: 126160313263339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70621&fm=126160313263339&tin=02508201610067®Number=0000000000156251&sum=50000 [12:56:31]StoreToDocumentArchive [12:56:31]shift 196 fd 70621 [12:56:31]save to /storage/0196/doc_00070621 [12:56:31]save last doc name /storage/0196/doc_00070621 to /storage/kkm_last_doc_name [12:56:31]save OK [12:56:31]Clear old archive folders... [12:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:31]tlvbuf is 00128F80 [12:56:31]SAM_PROTO_ClearQueue [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 09 00 00 [12:56:31]Write to MH i2c: E2 08 00 23 05 80 09 00 00 00 00 00 00 9A [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_ClearQueue done [12:56:31]KKMCreateOFDPacket [12:56:31]OFDProtocolAddRootSTLVToBuf [12:56:31]FM_MakeSignedData [12:56:31]FM_MakeSignedData [12:56:31]SAM_PROTO_SignData [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 01 02 [12:56:31]Write to MH i2c: E2 08 00 24 05 80 0D 01 02 00 00 00 00 A2 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=255 [12:56:31]MH_SAM_APDU [12: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 89 00 00 00 F4 03 04 00 7F F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 72 [12:56:31]Write to MH i2c: E2 02 01 25 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 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 89 00 00 00 F4 03 04 00 7F F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 72 00 00 CB [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=10 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 02 02 05 BD FC A8 24 EB [12:56:31]Write to MH i2c: E2 0D 00 26 05 80 0D 02 02 05 00 BD FC A8 24 EB 00 00 1F [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 03 02 [12:56:31]Write to MH i2c: E2 08 00 27 05 80 0D 03 02 00 00 00 00 A7 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 27 05 00 B4 36 F6 6C 00 6B EC 8F 90 00 DA [12:56:31]RAPDU: B4 36 F6 6C 00 6B EC 8F 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_SignData done [12:56:31]FM_MakeSignedData done [12:56:31]CreateOFDProtocolMessage [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 11 00 00 [12:56:31]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [12: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 [12:56:31]wFMCommunicate OK [12:56:31]CreateOFDProtocolMessage done [12:56:31]OFDSenderStorePacket 70621 [12:56:31]StoreOFDPacket docnum=70621 [12:56: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 D9 7E 07 01 0A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 89 00 00 00 F4 03 04 00 7F F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 72 BD FC A8 24 EB B4 36 F6 6C 00 6B EC 8F [12:56:31]CheckFolder [12:56:31]dirname=/storage/ofd_packets [12:56:31]CheckFolder done [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00070621 [12:56:31]NVStorageSaveData ofd_packets/00070621 [12:56:31]File name is /storage/ofd_packets/00070621 [12:56:31]Write 301 bytes [12:56:31]NVStorageSaveData done [12:56:31]OFDSenderStorePacket done [12:56:31]KKMCreateOFDPacket done [12:56:31]NVStorageSaveData kkm_last_timestamp [12:56:31]File name is /storage/kkm_last_timestamp [12:56:31]Write 4 bytes [12:56:31]NVStorageSaveData done [12:56:31]ExternCall_PrintAddStr [12:56:31]wPrintStart [12:56:31]Write to MH i2c: 01 00 00 29 05 2E [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [12:56:31]RasterBufferAndPrint [12:56:31]line Счет N : (1)2886397 [12:56:31]line ИНН: 02508201610067 [12:56:31]line Контрольно-Кассовый Чек [12:56:31]line ПРОДАЖА [12:56:31]line ТРК (МРК, ГНК) : 12 [12:56:31]line Товар: 2710124130 [12:56:31]line Аи-92-К-5 [12:56:31]line 7.480 * 66.90 [12:56:31]line = 500.41 [12:56:31]line НДС 12% НСП 1% [12:56:31]line > о реализуемом товаре [12:56:31]line ОКРУГЛЕНИЕ: -0.41 [12:56:31]line ИТОГО: 500.00 [12:56:31]line Внесено: 500.00 [12:56:31]line СДАЧА: 0.00 [12:56:31]line НСП 1% : 4.43 [12:56:31]line НДС 12% : 53.14 [12:56:31]line Наличными: 500.00 [12:56:31]line Безнал.: 0.00 [12:56:31]line Место: АЗС № 85 "Партнер Нефть" [12:56:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:56:31]line СНО: Общий режим [12:56:31]line Чек 137 23.10.2024 12:56 [12:56:31]line Смена: 196 ФФД: 1.0 [12:56:31]line ЗНМ: 0300000167 [12:56:31]line РНМ: 0000000000156251 [12:56:31]line Версия ККМ: v1.0 [12:56:31]line ФМ: 0000000000963346 [12:56:31]line ФД: 70621 [12:56:31]line ФПД: 126160313263339 [12:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70621&fm=126160313263339&tin=02508201610067®Number=0000000000156251&sum=50000 [12:56:31]OFD Sender: Processing packet 70621 [packets to send 18, broken 17] [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00070621 [12:56:31]OFD Sender: To server: pG, [12:56:31]CommunicateWithHost lk.salyk.kg:30040 [12:56:31]ConnectInit lk.salyk.kg [12:56:31]written 0, free lines is 4095 [12:56:32]Connected sock=10 [12: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 D9 7E 07 01 0A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 89 00 00 00 F4 03 04 00 7F F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 72 BD FC A8 24 EB B4 36 F6 6C 00 6B EC 8F [12: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 6A B9 47 00 4F 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 DD 13 01 00 F4 03 04 00 1C 9C 18 67 B6 04 01 00 00 E0 86 E1 D9 CA 3E E1 7B [12:56:32]CommunicateWithHost err = 0 [12:56:32]CheckOFDResponse [12:56:32]1017 (14) - 77093643461234 [12:56:32]1041 (16) - 0000000000963346 [12:56:32]1040 (4) - 70621 [12:56:32]1012 (4) - 23.10.2024 06:47 [12:56:32]1206 (1) - 0 [12:56:32]OFD Sender: Remove packet 70621 [12:56:32]ProducePacketName [12:56:32]name=ofd_packets/00070621 [12:56:32]NVStorageDeleteData [12:56:32]Write to MH i2c: 01 00 00 54 05 59 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 07 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 E9 0C 55 [12:56:32]RasterBufferAndPrint [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]line [12:56:32]written 0, free lines is 3311 [12:56:32]MH_Cut [12:56:32]Write to MH i2c: D1 01 00 5B 05 01 32 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 01 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: D1 01 00 5B 05 00 31 [12:56:32]Write to MH i2c: 01 00 00 5C 05 61 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]OFD Sender: No OFD packet to send [12:56:33]*** Cut start [12:56:33]*** Partial cut [12:56:33]*** CUTSNS_PIN = 1 [12:56:33]*** CUTSNS_PIN = 0 [12:56:33]*** Brake cut motor [12:56:33]Read from MH i2c: 01 [12:56:33]MH_I2C_Read... [12:56:33]*** Stop cut motor [12:56:33]*** Cut end [12:56:33]Read from MH i2c: 01 07 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [12:56:33]process_action close_receipt done [12:56:33]requested_data is exist [12:56:33]produce_requested_data [12:56:33]requested_item fm.sn is exist - process it [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 11 00 00 [12:56:33]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [12:56: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:56:33]wFMCommunicate OK [12:56:33]requested_item fd.num is exist - process it [12:56:33]SAM_PROTO_GetFieldsCounters [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 00 00 [12:56:33]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 62 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 62 00 5E 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 DD 13 01 00 0E 04 04 00 C4 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 4A [12:56: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 DD 13 01 00 0E 04 04 00 C4 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 [12:56:33]wFMCommunicate OK [12:56:33]SAM_PROTO_GetFieldsCounters done [12:56:33]requested_item shift.num is exist - process it [12:56:33]requested_item shift.opened is exist - process it [12:56:33]req_shift_opened [12:56:33]FM_GetShiftState [12:56:33]SAM_PROTO_GetShiftState [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 01 00 [12:56:33]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6E [12:56:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetShiftState done [12:56:34]FM_GetShiftState done [12:56:34]req_shift_opened done [12:56:34]requested_item shift.open_date is exist - process it [12:56:34]req_shift_open_date [12:56:34]req_shift_open_date done [12:56:34]produce_requested_data done [12:56:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70621,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:56:34]process_action_free close_receipt [12:56:34]json_value_free [12:56:34]json_value_free done [12:56:34]process_json_proto returns [12:56:34]Send response to host [12:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70621,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:56:34]free response buf [12:56:34]execute_script done [12:56:34]execute_script returns [12:56:34]free content buf [12:56:34]Sock 7.Close socket [12:56:34]Sock 7.Thread stoped [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:04]accept exits with 9 [12:58:04]New connection [12:58:04]New thread 3067034980 created [12:58:04]Thread 3066891620 joined [12:58:04]Waiting for new connection... [12:58:04] Sock 9.Parse request [12:58:04]Sock 9.Check first char [12:58:04]Sock 9.First char is OK [12:58:04]request: POST /json_proto HTTP/1.0 [12:58:04]Method: POST [12:58:04]URL: /json_proto [12:58:04]Method is POST - this is cgi request [12:58:04]url: /json_proto [12:58:04]query_string will be loaded in cgi processing [12:58:04]execute_cgi json_proto POST (null) [12:58:04]execute_cgi path=json_proto method=POST [12:58:04]POST find Content-Length [12:58:04]Host: 172.17.50.3:8080 [12:58:04]Content-Length: 770 [12:58:04]Content-Type: application/json [12:58:04] [12:58:04]POST finish read [12:58:04]Found Content-Length = 770 [12:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886398", "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 }]} ], "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" ] } } [12:58:04]execute_script... [12:58: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)2886398", "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 }]} ], "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" ] } } [12:58:04]POST & json_proto [12:58:04]process_json_proto [12:58:04]json parsed OK: [12:58:04]protocol is kg_v1.0 [12:58:04]action value=close_receipt [12:58:04]process_action close_receipt [12:58:04]cmd_close_receipt [12:58:04]MH_GetDate [12:58:04]Write to MH i2c: F0 00 00 60 05 54 [12:58:04]Write i2c OK [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: F0 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: F0 09 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: F0 09 00 60 05 00 DD F2 18 67 6B 98 1E 66 32 [12:58:04]GetLastDocTimeStamp 1729688191 [12:58:04]current date 1729688285 [12:58:04]FM_GetShiftState [12:58:04]SAM_PROTO_GetShiftState [12:58:04]wFMCommunicate request_size=4 [12:58:04]MH_SAM_APDU [12:58:04]CAPDU: 80 13 01 00 [12:58:04]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [12:58:04]Write i2c OK [12:58:04]MH_I2C_Read... [12:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:04]Read from MH i2c: E2 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 0E 00 [12:58:04]MH_I2C_Read... [12:58:04]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 70 [12:58:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:58:04]wFMCommunicate OK [12:58:04]SAM_PROTO_GetShiftState done [12:58:04]FM_GetShiftState done [12:58:04]opened in 1729642435 [12:58:04]opened+sec_in_day 1729728835 [12:58:04]quantity*price = 200043 [12:58:04]sum+1 = 200044 [12:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 138 23.10.2024 12:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70622 ФПД: 12743157678211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125806&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70622&fm=12743157678211&tin=02508201610067®Number=0000000000156251&sum=200043 [12:58:06]StoreToDocumentArchive [12:58:06]shift 196 fd 70622 [12:58:06]save to /storage/0196/doc_00070622 [12:58:06]save last doc name /storage/0196/doc_00070622 to /storage/kkm_last_doc_name [12:58:06]save OK [12:58:06]Clear old archive folders... [12:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:06]tlvbuf is 00133EB0 [12:58:06]SAM_PROTO_ClearQueue [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 09 00 00 [12:58:06]Write to MH i2c: E2 08 00 6E 05 80 09 00 00 00 00 00 00 E5 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]SAM_PROTO_ClearQueue done [12:58:06]KKMCreateOFDPacket [12:58:06]OFDProtocolAddRootSTLVToBuf [12:58:06]FM_MakeSignedData [12:58:06]FM_MakeSignedData [12:58:06]SAM_PROTO_SignData [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 01 02 [12:58:06]Write to MH i2c: E2 08 00 6F 05 80 0D 01 02 00 00 00 00 ED [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=255 [12:58:06]MH_SAM_APDU [12:58: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 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 8A 00 00 00 F4 03 04 00 DE F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B [12:58:06]Write to MH i2c: E2 02 01 70 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 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 8A 00 00 00 F4 03 04 00 DE F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 00 00 0E [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=10 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 02 02 05 96 FF 63 00 83 [12:58:06]Write to MH i2c: E2 0D 00 71 05 80 0D 02 02 05 00 96 FF 63 00 83 00 00 75 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 03 02 [12:58:06]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0B 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0B 00 72 05 00 AC 3A 66 F1 61 88 E8 53 90 00 54 [12:58:06]RAPDU: AC 3A 66 F1 61 88 E8 53 90 00 [12:58:06]wFMCommunicate OK [12:58:06]SAM_PROTO_SignData done [12:58:06]FM_MakeSignedData done [12:58:06]CreateOFDProtocolMessage [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 11 00 00 [12:58:06]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 17 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 44 [12:58: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:58:06]wFMCommunicate OK [12:58:06]CreateOFDProtocolMessage done [12:58:06]OFDSenderStorePacket 70622 [12:58:06]StoreOFDPacket docnum=70622 [12:58: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 FA BC 07 01 AE 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 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 8A 00 00 00 F4 03 04 00 DE F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 96 FF 63 00 83 AC 3A 66 F1 61 88 E8 53 [12:58:06]CheckFolder [12:58:06]dirname=/storage/ofd_packets [12:58:06]CheckFolder done [12:58:06]ProducePacketName [12:58:06]name=ofd_packets/00070622 [12:58:06]NVStorageSaveData ofd_packets/00070622 [12:58:06]File name is /storage/ofd_packets/00070622 [12:58:06]Write 301 bytes [12:58:06]NVStorageSaveData done [12:58:06]OFDSenderStorePacket done [12:58:06]KKMCreateOFDPacket done [12:58:06]NVStorageSaveData kkm_last_timestamp [12:58:06]File name is /storage/kkm_last_timestamp [12:58:06]Write 4 bytes [12:58:06]NVStorageSaveData done [12:58:06]ExternCall_PrintAddStr [12:58:06]wPrintStart [12:58:06]Write to MH i2c: 01 00 00 74 05 79 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 07 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [12:58:06]RasterBufferAndPrint [12:58:06]line Счет N : (1)2886398 [12:58:06]line ИНН: 02508201610067 [12:58:06]line Контрольно-Кассовый Чек [12:58:06]line ПРОДАЖА [12:58:06]line ТРК (МРК, ГНК) : 43 [12:58:06]line Товар: 2710124500 [12:58:06]line Аи-95-К-5 [12:58:06]line 26.960 * 74.20 [12:58:06]line = 2000.43 [12:58:06]line НДС 12% НСП 1% [12:58:06]line > о реализуемом товаре [12:58:06]line ИТОГО: 2000.43 [12:58:06]line НСП 1% : 17.70 [12:58:06]line НДС 12% : 212.43 [12:58:06]line Наличными: 0.00 [12:58:06]line Безнал.: 2000.43 [12:58:06]line Место: АЗС № 85 "Партнер Нефть" [12:58:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:58:06]line СНО: Общий режим [12:58:06]line Чек 138 23.10.2024 12:58 [12:58:06]line Смена: 196 ФФД: 1.0 [12:58:06]line ЗНМ: 0300000167 [12:58:06]line РНМ: 0000000000156251 [12:58:06]line Версия ККМ: v1.0 [12:58:06]line Платежная система: Mbank [12:58:06]line ФМ: 0000000000963346 [12:58:06]line ФД: 70622 [12:58:06]line ФПД: 12743157678211 [12:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125806&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70622&fm=12743157678211&tin=02508201610067®Number=0000000000156251&sum=200043 [12:58:06]OFD Sender: Processing packet 70622 [packets to send 18, broken 17] [12:58:06]ProducePacketName [12:58:06]name=ofd_packets/00070622 [12:58:06]OFD Sender: To server: pG, [12:58:06]CommunicateWithHost lk.salyk.kg:30040 [12:58:06]ConnectInit lk.salyk.kg [12:58:06]written 0, free lines is 4095 [12:58:06]Connected sock=10 [12:58: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 FA BC 07 01 AE 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 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 8A 00 00 00 F4 03 04 00 DE F2 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 0B 96 FF 63 00 83 AC 3A 66 F1 61 88 E8 53 [12:58: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 93 0D 47 00 14 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 13 01 00 F4 03 04 00 7B 9C 18 67 B6 04 01 00 00 46 2C AF FE 58 3C 1C 4D [12:58:07]CommunicateWithHost err = 0 [12:58:07]CheckOFDResponse [12:58:07]1017 (14) - 77093643461234 [12:58:07]1041 (16) - 0000000000963346 [12:58:07]1040 (4) - 70622 [12:58:07]1012 (4) - 23.10.2024 06:49 [12:58:07]1206 (1) - 0 [12:58:07]OFD Sender: Remove packet 70622 [12:58:07]ProducePacketName [12:58:07]name=ofd_packets/00070622 [12:58:07]NVStorageDeleteData [12:58:07]Write to MH i2c: 01 00 00 9D 05 A2 [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 07 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 10 0D C6 [12:58:07]RasterBufferAndPrint [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]written 0, free lines is 3350 [12:58:07]MH_Cut [12:58:07]Write to MH i2c: D1 01 00 A4 05 01 7B [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 01 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 01 00 A4 05 00 7A [12:58:07]Write to MH i2c: 01 00 00 A5 05 AA [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]OFD Sender: No OFD packet to send [12:58:08]*** Cut start [12:58:08]*** Partial cut [12:58:08]*** CUTSNS_PIN = 1 [12:58:08]*** CUTSNS_PIN = 0 [12:58:08]*** Brake cut motor [12:58:08]Read from MH i2c: 01 [12:58:08]MH_I2C_Read... [12:58:08]*** Stop cut motor [12:58:08]*** Cut end [12:58:08]Read from MH i2c: 01 07 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [12:58:08]process_action close_receipt done [12:58:08]requested_data is exist [12:58:08]produce_requested_data [12:58:08]requested_item fm.sn is exist - process it [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 11 00 00 [12:58:08]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [12:58:08]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:08]wFMCommunicate OK [12:58:08]requested_item fd.num is exist - process it [12:58:08]SAM_PROTO_GetFieldsCounters [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 13 00 00 [12:58:08]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 62 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 62 00 A7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 97 [12:58: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 DE 13 01 00 0E 04 04 00 C4 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 [12:58:08]wFMCommunicate OK [12:58:08]SAM_PROTO_GetFieldsCounters done [12:58:08]requested_item shift.num is exist - process it [12:58:08]requested_item shift.opened is exist - process it [12:58:08]req_shift_opened [12:58:08]FM_GetShiftState [12:58:08]SAM_PROTO_GetShiftState [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 13 01 00 [12:58:08]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 0E 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B7 [12:58:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [12:58:08]wFMCommunicate OK [12:58:08]SAM_PROTO_GetShiftState done [12:58:08]FM_GetShiftState done [12:58:08]req_shift_opened done [12:58:08]requested_item shift.open_date is exist - process it [12:58:08]req_shift_open_date [12:58:08]req_shift_open_date done [12:58:08]produce_requested_data done [12:58:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70622,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [12:58:08]process_action_free close_receipt [12:58:08]json_value_free [12:58:08]json_value_free done [12:58:08]process_json_proto returns [12:58:08]Send response to host [12:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70622,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [12:58:08]free response buf [12:58:08]execute_script done [12:58:08]execute_script returns [12:58:08]free content buf [12:58:08]Sock 9.Close socket [12:58:08]Sock 9.Thread stoped [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59: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:48]accept exits with 7 [13:00:48]New connection [13:00:48]New thread 3066891620 created [13:00:48]Thread 3067034980 joined [13:00:48]Waiting for new connection... [13:00:48] Sock 7.Parse request [13:00:48]Sock 7.Check first char [13:00:48]Sock 7.First char is OK [13:00:48]request: POST /json_proto HTTP/1.0 [13:00:48]Method: POST [13:00:48]URL: /json_proto [13:00:48]Method is POST - this is cgi request [13:00:48]url: /json_proto [13:00:48]query_string will be loaded in cgi processing [13:00:48]execute_cgi json_proto POST (null) [13:00:48]execute_cgi path=json_proto method=POST [13:00:48]POST find Content-Length [13:00:48]Host: 172.17.50.3:8080 [13:00:48]Content-Length: 689 [13:00:48]Content-Type: application/json [13:00:48] [13:00:48]POST finish read [13:00:48]Found Content-Length = 689 [13:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886399", "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" : 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" ] } } [13:00:48]execute_script... [13: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)2886399", "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" : 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" ] } } [13:00:48]POST & json_proto [13:00:48]process_json_proto [13:00:48]json parsed OK: [13:00:48]protocol is kg_v1.0 [13:00:48]action value=close_receipt [13:00:48]process_action close_receipt [13:00:48]cmd_close_receipt [13:00:48]MH_GetDate [13:00:48]Write to MH i2c: F0 00 00 A9 05 9D [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: F0 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: F0 09 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: F0 09 00 A9 05 00 81 F3 18 67 6B 98 1E 66 20 [13:00:48]GetLastDocTimeStamp 1729688286 [13:00:48]current date 1729688449 [13:00:48]FM_GetShiftState [13:00:48]SAM_PROTO_GetShiftState [13:00:48]wFMCommunicate request_size=4 [13:00:48]MH_SAM_APDU [13:00:48]CAPDU: 80 13 01 00 [13:00:48]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:48]Read from MH i2c: E2 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 0E 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B9 [13:00:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:00:48]wFMCommunicate OK [13:00:48]SAM_PROTO_GetShiftState done [13:00:48]FM_GetShiftState done [13:00:48]opened in 1729642435 [13:00:48]opened+sec_in_day 1729728835 [13:00:48]quantity*price = 300076 [13:00:48]sum+1 = 300077 [13:00:48]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 СНО: Общий режим Чек 139 23.10.2024 13:00 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70623 ФПД: 196210900235570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70623&fm=196210900235570&tin=02508201610067®Number=0000000000156251&sum=300000 [13:00:49]StoreToDocumentArchive [13:00:49]shift 196 fd 70623 [13:00:49]save to /storage/0196/doc_00070623 [13:00:49]save last doc name /storage/0196/doc_00070623 to /storage/kkm_last_doc_name [13:00:49]save OK [13:00:49]Clear old archive folders... [13:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:00:49]tlvbuf is 0014B8B0 [13:00:49]SAM_PROTO_ClearQueue [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 09 00 00 [13:00:49]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [13:00:49]RAPDU: 90 00 [13:00:49]wFMCommunicate OK [13:00:49]SAM_PROTO_ClearQueue done [13:00:49]KKMCreateOFDPacket [13:00:49]OFDProtocolAddRootSTLVToBuf [13:00:49]FM_MakeSignedData [13:00:49]FM_MakeSignedData [13:00:49]SAM_PROTO_SignData [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 0D 01 02 [13:00:49]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [13:00:49]RAPDU: 90 00 [13:00:49]wFMCommunicate OK [13:00:49]wFMCommunicate request_size=255 [13:00:49]MH_SAM_APDU [13:00:49]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 8B 00 00 00 F4 03 04 00 81 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [13:00:49]Write to MH i2c: E2 02 01 B9 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 8B 00 00 00 F4 03 04 00 81 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 9F [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [13:00:49]RAPDU: 90 00 [13:00:49]wFMCommunicate OK [13:00:49]wFMCommunicate request_size=16 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 73 E9 02 75 32 [13:00:49]Write to MH i2c: E2 13 00 BA 05 80 0D 02 02 0B 00 00 35 04 06 00 B2 73 E9 02 75 32 00 00 45 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 03 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [13:00:50]RAPDU: 90 00 [13:00:50]wFMCommunicate OK [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 0D 03 02 [13:00:50]Write to MH i2c: E2 08 00 BB 05 80 0D 03 02 00 00 00 00 3B [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0B 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0B 00 BB 05 00 AD 3A 1C B8 B8 72 EA 80 90 00 8B [13:00:50]RAPDU: AD 3A 1C B8 B8 72 EA 80 90 00 [13:00:50]wFMCommunicate OK [13:00:50]SAM_PROTO_SignData done [13:00:50]FM_MakeSignedData done [13:00:50]CreateOFDProtocolMessage [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 11 00 00 [13:00:50]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 17 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [13: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 [13:00:50]wFMCommunicate OK [13:00:50]CreateOFDProtocolMessage done [13:00:50]OFDSenderStorePacket 70623 [13:00:50]StoreOFDPacket docnum=70623 [13: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 15 01 00 00 8E BB 0D 01 9A DB 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 8B 00 00 00 F4 03 04 00 81 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B2 73 E9 02 75 32 AD 3A 1C B8 B8 72 EA 80 [13:00:50]CheckFolder [13:00:50]dirname=/storage/ofd_packets [13:00:50]CheckFolder done [13:00:50]ProducePacketName [13:00:50]name=ofd_packets/00070623 [13:00:50]NVStorageSaveData ofd_packets/00070623 [13:00:50]File name is /storage/ofd_packets/00070623 [13:00:50]Write 307 bytes [13:00:50]NVStorageSaveData done [13:00:50]OFDSenderStorePacket done [13:00:50]KKMCreateOFDPacket done [13:00:50]NVStorageSaveData kkm_last_timestamp [13:00:50]File name is /storage/kkm_last_timestamp [13:00:50]Write 4 bytes [13:00:50]NVStorageSaveData done [13:00:50]ExternCall_PrintAddStr [13:00:50]wPrintStart [13:00:50]Write to MH i2c: 01 00 00 BD 05 C2 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [13:00:50]RasterBufferAndPrint [13:00:50]line Счет N : (1)2886399 [13:00:50]line ИНН: 02508201610067 [13:00:50]line Контрольно-Кассовый Чек [13:00:50]line ПРОДАЖА [13:00:50]line ТРК (МРК, ГНК) : 21 [13:00:50]line Товар: 2710194240 [13:00:50]line D-ENERGY Дт-К-2 [13:00:50]line 38.870 * 77.20 [13:00:50]line = 3000.76 [13:00:50]line НДС 12% НСП 1% [13:00:50]line > о реализуемом товаре [13:00:50]line ОКРУГЛЕНИЕ: -0.76 [13:00:50]line ИТОГО: 3000.00 [13:00:50]line Внесено: 3000.00 [13:00:50]line СДАЧА: 0.00 [13:00:50]line НСП 1% : 26.55 [13:00:50]line НДС 12% : 318.66 [13:00:50]line Наличными: 3000.00 [13:00:50]line Безнал.: 0.00 [13:00:50]line Место: АЗС № 85 "Партнер Нефть" [13:00:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:00:50]line СНО: Общий режим [13:00:50]line Чек 139 23.10.2024 13:00 [13:00:50]line Смена: 196 ФФД: 1.0 [13:00:50]line ЗНМ: 0300000167 [13:00:50]line РНМ: 0000000000156251 [13:00:50]line Версия ККМ: v1.0 [13:00:50]line ФМ: 0000000000963346 [13:00:50]line ФД: 70623 [13:00:50]line ФПД: 196210900235570 [13:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70623&fm=196210900235570&tin=02508201610067®Number=0000000000156251&sum=300000 [13:00:50]OFD Sender: Processing packet 70623 [packets to send 18, broken 17] [13:00:50]ProducePacketName [13:00:50]name=ofd_packets/00070623 [13:00:50]OFD Sender: To server: pG, [13:00:50]CommunicateWithHost lk.salyk.kg:30040 [13:00:50]ConnectInit lk.salyk.kg [13:00:50]written 0, free lines is 4095 [13:00:50]Connected sock=10 [13: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 15 01 00 00 8E BB 0D 01 9A DB 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 8B 00 00 00 F4 03 04 00 81 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 B2 73 E9 02 75 32 AD 3A 1C B8 B8 72 EA 80 [13:00: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 2A 59 47 00 A3 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 DF 13 01 00 F4 03 04 00 1F 9D 18 67 B6 04 01 00 00 A4 77 8F C1 93 6C A9 D8 [13:00:50]CommunicateWithHost err = 0 [13:00:50]CheckOFDResponse [13:00:50]1017 (14) - 77093643461234 [13:00:50]1041 (16) - 0000000000963346 [13:00:50]1040 (4) - 70623 [13:00:50]1012 (4) - 23.10.2024 06:52 [13:00:50]1206 (1) - 0 [13:00:50]OFD Sender: Remove packet 70623 [13:00:50]ProducePacketName [13:00:50]name=ofd_packets/00070623 [13:00:50]NVStorageDeleteData [13:00:50]Write to MH i2c: 01 00 00 E8 05 ED [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 F9 0C F9 [13:00:50]RasterBufferAndPrint [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]written 0, free lines is 3328 [13:00:50]MH_Cut [13:00:50]Write to MH i2c: D1 01 00 EF 05 01 C6 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 01 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 01 00 EF 05 00 C5 [13:00:50]Write to MH i2c: 01 00 00 F0 05 F5 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:51]OFD Sender: No OFD packet to send [13:00:51]*** Cut start [13:00:51]*** Partial cut [13:00:51]*** CUTSNS_PIN = 1 [13:00:51]*** CUTSNS_PIN = 0 [13:00:51]*** Brake cut motor [13:00:52]Read from MH i2c: 01 [13:00:52]MH_I2C_Read... [13:00:52]*** Stop cut motor [13:00:52]*** Cut end [13:00:52]Read from MH i2c: 01 07 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [13:00:52]process_action close_receipt done [13:00:52]requested_data is exist [13:00:52]produce_requested_data [13:00:52]requested_item fm.sn is exist - process it [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 11 00 00 [13:00:52]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [13: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 [13:00:52]wFMCommunicate OK [13:00:52]requested_item fd.num is exist - process it [13:00:52]SAM_PROTO_GetFieldsCounters [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 13 00 00 [13:00:52]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 62 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 62 00 F2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 E6 [13: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 DF 13 01 00 0E 04 04 00 C4 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 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_GetFieldsCounters done [13:00:52]requested_item shift.num is exist - process it [13:00:52]requested_item shift.opened is exist - process it [13:00:52]req_shift_opened [13:00:52]FM_GetShiftState [13:00:52]SAM_PROTO_GetShiftState [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 13 01 00 [13:00:52]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0E 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 02 [13:00:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_GetShiftState done [13:00:52]FM_GetShiftState done [13:00:52]req_shift_opened done [13:00:52]requested_item shift.open_date is exist - process it [13:00:52]req_shift_open_date [13:00:52]req_shift_open_date done [13:00:52]produce_requested_data done [13:00:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70623,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:00:52]process_action_free close_receipt [13:00:52]json_value_free [13:00:52]json_value_free done [13:00:52]process_json_proto returns [13:00:52]Send response to host [13:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70623,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:00:52]free response buf [13:00:52]execute_script done [13:00:52]execute_script returns [13:00:52]free content buf [13:00:52]Sock 7.Close socket [13:00:52]Sock 7.Thread stoped [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:23]accept exits with 9 [13:01:23]New connection [13:01:23]New thread 3067034980 created [13:01:23]Thread 3066891620 joined [13:01:23]Waiting for new connection... [13:01:23] Sock 9.Parse request [13:01:23]Sock 9.Check first char [13:01:23]Sock 9.First char is OK [13:01:23]request: POST /json_proto HTTP/1.0 [13:01:23]Method: POST [13:01:23]URL: /json_proto [13:01:23]Method is POST - this is cgi request [13:01:23]url: /json_proto [13:01:23]query_string will be loaded in cgi processing [13:01:23]execute_cgi json_proto POST (null) [13:01:23]execute_cgi path=json_proto method=POST [13:01:23]POST find Content-Length [13:01:23]Host: 172.17.50.3:8080 [13:01:23]Content-Length: 678 [13:01:23]Content-Type: application/json [13:01:23] [13:01:23]POST finish read [13:01:23]Found Content-Length = 678 [13:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886400", "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:01:23]execute_script... [13:01: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)2886400", "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:01:23]POST & json_proto [13:01:23]process_json_proto [13:01:23]json parsed OK: [13:01:23]protocol is kg_v1.0 [13:01:23]action value=close_receipt [13:01:23]process_action close_receipt [13:01:23]cmd_close_receipt [13:01:23]MH_GetDate [13:01:23]Write to MH i2c: F0 00 00 F4 05 E8 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 F4 05 00 A4 F3 18 67 6B 98 1E 66 8E [13:01:23]GetLastDocTimeStamp 1729688449 [13:01:23]current date 1729688484 [13:01:23]FM_GetShiftState [13:01:23]SAM_PROTO_GetShiftState [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 13 01 00 [13:01:23]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 04 [13:01:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetShiftState done [13:01:23]FM_GetShiftState done [13:01:23]opened in 1729642435 [13:01:23]opened+sec_in_day 1729728835 [13:01:23]quantity*price = 50041 [13:01:23]sum+1 = 50042 [13:01: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 СНО: Общий режим Чек 140 23.10.2024 13:01 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70624 ФПД: 160809805796559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70624&fm=160809805796559&tin=02508201610067®Number=0000000000156251&sum=50000 [13:01:24]StoreToDocumentArchive [13:01:24]shift 196 fd 70624 [13:01:24]save to /storage/0196/doc_00070624 [13:01:24]save last doc name /storage/0196/doc_00070624 to /storage/kkm_last_doc_name [13:01:24]save OK [13:01:24]Clear old archive folders... [13:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:24]tlvbuf is 00128E30 [13:01:24]SAM_PROTO_ClearQueue [13:01:24]wFMCommunicate request_size=4 [13:01:24]MH_SAM_APDU [13:01:24]CAPDU: 80 09 00 00 [13:01:24]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:24]Read from MH i2c: E2 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [13:01:24]RAPDU: 90 00 [13:01:24]wFMCommunicate OK [13:01:24]SAM_PROTO_ClearQueue done [13:01:24]KKMCreateOFDPacket [13:01:24]OFDProtocolAddRootSTLVToBuf [13:01:24]FM_MakeSignedData [13:01:24]FM_MakeSignedData [13:01:24]SAM_PROTO_SignData [13:01:24]wFMCommunicate request_size=4 [13:01:24]MH_SAM_APDU [13:01:24]CAPDU: 80 0D 01 02 [13:01:24]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:24]Read from MH i2c: E2 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [13:01:24]RAPDU: 90 00 [13:01:24]wFMCommunicate OK [13:01:24]wFMCommunicate request_size=255 [13:01:24]MH_SAM_APDU [13:01: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 8C 00 00 00 F4 03 04 00 A4 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 [13:01:24]Write to MH i2c: E2 02 01 04 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 F4 03 04 00 A4 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 00 00 F7 [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=10 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 02 02 05 41 73 59 D4 CF [13:01:25]Write to MH i2c: E2 0D 00 05 06 80 0D 02 02 05 00 41 73 59 D4 CF 00 00 3F [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 03 02 [13:01:25]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 06 06 00 B3 2F E5 9C 51 88 A0 26 90 00 8A [13:01:25]RAPDU: B3 2F E5 9C 51 88 A0 26 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_SignData done [13:01:25]FM_MakeSignedData done [13:01:25]CreateOFDProtocolMessage [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 11 00 00 [13:01:25]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D9 [13:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:01:25]wFMCommunicate OK [13:01:25]CreateOFDProtocolMessage done [13:01:25]OFDSenderStorePacket 70624 [13:01:25]StoreOFDPacket docnum=70624 [13:01: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 8A 27 07 01 D2 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 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 00 00 00 F4 03 04 00 A4 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 41 73 59 D4 CF B3 2F E5 9C 51 88 A0 26 [13:01:25]CheckFolder [13:01:25]dirname=/storage/ofd_packets [13:01:25]CheckFolder done [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00070624 [13:01:25]NVStorageSaveData ofd_packets/00070624 [13:01:25]File name is /storage/ofd_packets/00070624 [13:01:25]Write 301 bytes [13:01:25]NVStorageSaveData done [13:01:25]OFDSenderStorePacket done [13:01:25]KKMCreateOFDPacket done [13:01:25]NVStorageSaveData kkm_last_timestamp [13:01:25]File name is /storage/kkm_last_timestamp [13:01:25]Write 4 bytes [13:01:25]NVStorageSaveData done [13:01:25]ExternCall_PrintAddStr [13:01:25]wPrintStart [13:01:25]Write to MH i2c: 01 00 00 08 06 0E [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [13:01:25]RasterBufferAndPrint [13:01:25]line Счет N : (1)2886400 [13:01:25]line ИНН: 02508201610067 [13:01:25]line Контрольно-Кассовый Чек [13:01:25]line ПРОДАЖА [13:01:25]line ТРК (МРК, ГНК) : 42 [13:01:25]line Товар: 2710124130 [13:01:25]line Аи-92-К-5 [13:01:25]line 7.480 * 66.90 [13:01:25]line = 500.41 [13:01:25]line НДС 12% НСП 1% [13:01:25]line > о реализуемом товаре [13:01:25]line ОКРУГЛЕНИЕ: -0.41 [13:01:25]line ИТОГО: 500.00 [13:01:25]line Внесено: 500.00 [13:01:25]line СДАЧА: 0.00 [13:01:25]line НСП 1% : 4.43 [13:01:25]line НДС 12% : 53.14 [13:01:25]line Наличными: 500.00 [13:01:25]line Безнал.: 0.00 [13:01:25]line Место: АЗС № 85 "Партнер Нефть" [13:01:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:01:25]line СНО: Общий режим [13:01:25]line Чек 140 23.10.2024 13:01 [13:01:25]line Смена: 196 ФФД: 1.0 [13:01:25]line ЗНМ: 0300000167 [13:01:25]line РНМ: 0000000000156251 [13:01:25]line Версия ККМ: v1.0 [13:01:25]line ФМ: 0000000000963346 [13:01:25]line ФД: 70624 [13:01:25]line ФПД: 160809805796559 [13:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70624&fm=160809805796559&tin=02508201610067®Number=0000000000156251&sum=50000 [13:01:25]OFD Sender: Processing packet 70624 [packets to send 18, broken 17] [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00070624 [13:01:25]OFD Sender: To server: pG, [13:01:25]CommunicateWithHost lk.salyk.kg:30040 [13:01:25]ConnectInit lk.salyk.kg [13:01:25]written 0, free lines is 4095 [13:01:25]Connected sock=10 [13:01: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 8A 27 07 01 D2 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 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 00 00 00 F4 03 04 00 A4 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 92 41 73 59 D4 CF B3 2F E5 9C 51 88 A0 26 [13:01: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 BB 91 47 00 BC 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 E0 13 01 00 F4 03 04 00 42 9D 18 67 B6 04 01 00 00 02 9A D6 13 17 08 09 9F [13:01:25]CommunicateWithHost err = 0 [13:01:25]CheckOFDResponse [13:01:25]1017 (14) - 77093643461234 [13:01:25]1041 (16) - 0000000000963346 [13:01:25]1040 (4) - 70624 [13:01:25]1012 (4) - 23.10.2024 06:52 [13:01:25]1206 (1) - 0 [13:01:25]OFD Sender: Remove packet 70624 [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00070624 [13:01:25]NVStorageDeleteData [13:01:25]Write to MH i2c: 01 00 00 33 06 39 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 F9 0C 45 [13:01:26]RasterBufferAndPrint [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]written 0, free lines is 3327 [13:01:26]MH_Cut [13:01:26]Write to MH i2c: D1 01 00 3A 06 01 12 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 3A 06 00 11 [13:01:26]Write to MH i2c: 01 00 00 3B 06 41 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]OFD Sender: No OFD packet to send [13:01:26]*** Cut start [13:01:26]*** Partial cut [13:01:26]*** CUTSNS_PIN = 1 [13:01:26]*** CUTSNS_PIN = 0 [13:01:26]*** Brake cut motor [13:01:27]Read from MH i2c: 01 [13:01:27]MH_I2C_Read... [13:01:27]*** Stop cut motor [13:01:27]*** Cut end [13:01:27]Read from MH i2c: 01 07 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [13:01:27]process_action close_receipt done [13:01:27]requested_data is exist [13:01:27]produce_requested_data [13:01:27]requested_item fm.sn is exist - process it [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 11 00 00 [13:01:27]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 17 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [13:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:01:27]wFMCommunicate OK [13:01:27]requested_item fd.num is exist - process it [13:01:27]SAM_PROTO_GetFieldsCounters [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 13 00 00 [13:01:27]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 62 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 36 [13:01: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 E0 13 01 00 0E 04 04 00 C4 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 [13:01:27]wFMCommunicate OK [13:01:27]SAM_PROTO_GetFieldsCounters done [13:01:27]requested_item shift.num is exist - process it [13:01:27]requested_item shift.opened is exist - process it [13:01:27]req_shift_opened [13:01:27]FM_GetShiftState [13:01:27]SAM_PROTO_GetShiftState [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 13 01 00 [13:01:27]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:27]Read from MH i2c: E2 0E 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4E [13:01:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:01:27]wFMCommunicate OK [13:01:27]SAM_PROTO_GetShiftState done [13:01:27]FM_GetShiftState done [13:01:27]req_shift_opened done [13:01:27]requested_item shift.open_date is exist - process it [13:01:27]req_shift_open_date [13:01:27]req_shift_open_date done [13:01:27]produce_requested_data done [13:01:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70624,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:01:27]process_action_free close_receipt [13:01:27]json_value_free [13:01:27]json_value_free done [13:01:27]process_json_proto returns [13:01:27]Send response to host [13:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70624,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:01:27]free response buf [13:01:27]execute_script done [13:01:27]execute_script returns [13:01:27]free content buf [13:01:27]Sock 9.Close socket [13:01:27]Sock 9.Thread stoped [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]accept exits with 7 [13:02:41]New connection [13:02:41]New thread 3066891620 created [13:02:41]Thread 3067034980 joined [13:02:41]Waiting for new connection... [13:02:41] Sock 7.Parse request [13:02:41]Sock 7.Check first char [13:02:41]Sock 7.First char is OK [13:02:41]request: POST /json_proto HTTP/1.0 [13:02:41]Method: POST [13:02:41]URL: /json_proto [13:02:41]Method is POST - this is cgi request [13:02:41]url: /json_proto [13:02:41]query_string will be loaded in cgi processing [13:02:41]execute_cgi json_proto POST (null) [13:02:41]execute_cgi path=json_proto method=POST [13:02:41]POST find Content-Length [13:02:41]Host: 172.17.50.3:8080 [13:02:41]Content-Length: 767 [13:02:41]Content-Type: application/json [13:02:41] [13:02:41]POST finish read [13:02:41]Found Content-Length = 767 [13:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886401", "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 }]} ], "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" ] } } [13:02:41]execute_script... [13:02: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)2886401", "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 }]} ], "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" ] } } [13:02:41]POST & json_proto [13:02:41]process_json_proto [13:02:41]json parsed OK: [13:02:41]protocol is kg_v1.0 [13:02:41]action value=close_receipt [13:02:41]process_action close_receipt [13:02:41]cmd_close_receipt [13:02:41]MH_GetDate [13:02:41]Write to MH i2c: F0 00 00 3F 06 34 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 09 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: F0 09 00 3F 06 00 F2 F3 18 67 6B 98 1E 66 28 [13:02:41]GetLastDocTimeStamp 1729688484 [13:02:41]current date 1729688562 [13:02:41]FM_GetShiftState [13:02:41]SAM_PROTO_GetShiftState [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 13 01 00 [13:02:41]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 50 [13:02:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetShiftState done [13:02:41]FM_GetShiftState done [13:02:41]opened in 1729642435 [13:02:41]opened+sec_in_day 1729728835 [13:02:41]quantity*price = 50041 [13:02:41]sum+1 = 50042 [13:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 141 23.10.2024 13:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70625 ФПД: 167804453853358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70625&fm=167804453853358&tin=02508201610067®Number=0000000000156251&sum=50041 [13:02:42]StoreToDocumentArchive [13:02:42]shift 196 fd 70625 [13:02:42]save to /storage/0196/doc_00070625 [13:02:42]save last doc name /storage/0196/doc_00070625 to /storage/kkm_last_doc_name [13:02:42]save OK [13:02:42]Clear old archive folders... [13:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:42]tlvbuf is 00149EC0 [13:02:42]SAM_PROTO_ClearQueue [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 09 00 00 [13:02:42]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [13:02:42]RAPDU: 90 00 [13:02:42]wFMCommunicate OK [13:02:42]SAM_PROTO_ClearQueue done [13:02:42]KKMCreateOFDPacket [13:02:42]OFDProtocolAddRootSTLVToBuf [13:02:42]FM_MakeSignedData [13:02:42]FM_MakeSignedData [13:02:42]SAM_PROTO_SignData [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 0D 01 02 [13:02:42]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [13:02:42]RAPDU: 90 00 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=255 [13:02:42]MH_SAM_APDU [13:02: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 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 8D 00 00 00 F4 03 04 00 F2 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 [13:02:42]Write to MH i2c: E2 02 01 4F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8D 00 00 00 F4 03 04 00 F2 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 00 00 EA [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [13:02:42]RAPDU: 90 00 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=10 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 0D 02 02 05 9E 04 DD 18 AE [13:02:42]Write to MH i2c: E2 0D 00 50 06 80 0D 02 02 05 00 9E 04 DD 18 AE 00 00 1F [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [13:02:42]RAPDU: 90 00 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 0D 03 02 [13:02:42]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 0B 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 0B 00 51 06 00 DD DB 37 9F 8F 19 4B 87 90 00 DB [13:02:42]RAPDU: DD DB 37 9F 8F 19 4B 87 90 00 [13:02:42]wFMCommunicate OK [13:02:42]SAM_PROTO_SignData done [13:02:42]FM_MakeSignedData done [13:02:42]CreateOFDProtocolMessage [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 11 00 00 [13:02:42]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 17 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [13:02: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:02:42]wFMCommunicate OK [13:02:42]CreateOFDProtocolMessage done [13:02:42]OFDSenderStorePacket 70625 [13:02:42]StoreOFDPacket docnum=70625 [13:02: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 21 FB 07 01 2A 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 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 8D 00 00 00 F4 03 04 00 F2 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 9E 04 DD 18 AE DD DB 37 9F 8F 19 4B 87 [13:02:42]CheckFolder [13:02:42]dirname=/storage/ofd_packets [13:02:42]CheckFolder done [13:02:42]ProducePacketName [13:02:42]name=ofd_packets/00070625 [13:02:42]NVStorageSaveData ofd_packets/00070625 [13:02:42]File name is /storage/ofd_packets/00070625 [13:02:42]Write 301 bytes [13:02:42]NVStorageSaveData done [13:02:42]OFDSenderStorePacket done [13:02:42]KKMCreateOFDPacket done [13:02:42]NVStorageSaveData kkm_last_timestamp [13:02:42]File name is /storage/kkm_last_timestamp [13:02:42]Write 4 bytes [13:02:42]NVStorageSaveData done [13:02:42]ExternCall_PrintAddStr [13:02:42]wPrintStart [13:02:42]Write to MH i2c: 01 00 00 53 06 59 [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 53 06 00 00 00 00 00 FF 0F 6E [13:02:42]RasterBufferAndPrint [13:02:42]line Счет N : (1)2886401 [13:02:42]line ИНН: 02508201610067 [13:02:42]line Контрольно-Кассовый Чек [13:02:42]line ПРОДАЖА [13:02:42]line ТРК (МРК, ГНК) : 32 [13:02:42]line Товар: 2710124130 [13:02:42]line Аи-92-К-5 [13:02:42]line 7.480 * 66.90 [13:02:42]line = 500.41 [13:02:42]line НДС 12% НСП 1% [13:02:42]line > о реализуемом товаре [13:02:42]line ИТОГО: 500.41 [13:02:42]line НСП 1% : 4.43 [13:02:42]line НДС 12% : 53.14 [13:02:42]line Наличными: 0.00 [13:02:42]line Безнал.: 500.41 [13:02:42]line Место: АЗС № 85 "Партнер Нефть" [13:02:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:02:42]line СНО: Общий режим [13:02:42]line Чек 141 23.10.2024 13:02 [13:02:42]line Смена: 196 ФФД: 1.0 [13:02:42]line ЗНМ: 0300000167 [13:02:42]line РНМ: 0000000000156251 [13:02:42]line Версия ККМ: v1.0 [13:02:42]line Платежная система: Mbank [13:02:42]line ФМ: 0000000000963346 [13:02:42]line ФД: 70625 [13:02:42]line ФПД: 167804453853358 [13:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70625&fm=167804453853358&tin=02508201610067®Number=0000000000156251&sum=50041 [13:02:43]OFD Sender: Processing packet 70625 [packets to send 18, broken 17] [13:02:43]ProducePacketName [13:02:43]name=ofd_packets/00070625 [13:02:43]OFD Sender: To server: pG, [13:02:43]CommunicateWithHost lk.salyk.kg:30040 [13:02:43]ConnectInit lk.salyk.kg [13:02:43]written 0, free lines is 4095 [13:02:43]Connected sock=10 [13:02: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 21 FB 07 01 2A 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 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 8D 00 00 00 F4 03 04 00 F2 F3 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 98 9E 04 DD 18 AE DD DB 37 9F 8F 19 4B 87 [13:02: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 A7 74 47 00 78 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 E1 13 01 00 F4 03 04 00 90 9D 18 67 B6 04 01 00 00 CC F3 43 BE 30 85 44 7D [13:02:43]CommunicateWithHost err = 0 [13:02:43]CheckOFDResponse [13:02:43]1017 (14) - 77093643461234 [13:02:43]1041 (16) - 0000000000963346 [13:02:43]1040 (4) - 70625 [13:02:43]1012 (4) - 23.10.2024 06:54 [13:02:43]1206 (1) - 0 [13:02:43]OFD Sender: Remove packet 70625 [13:02:43]ProducePacketName [13:02:43]name=ofd_packets/00070625 [13:02:43]NVStorageDeleteData [13:02:43]Write to MH i2c: 01 00 00 7C 06 82 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 [13:02:43]MH_I2C_Read... [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 7C 06 00 00 00 00 00 10 0D A6 [13:02:43]RasterBufferAndPrint [13:02:43]line [13:02:43]line [13:02:43]line [13:02:43]line [13:02:43]line [13:02:43]written 0, free lines is 3350 [13:02:43]MH_Cut [13:02:43]Write to MH i2c: D1 01 00 83 06 01 5B [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: D1 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: D1 01 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: D1 01 00 83 06 00 5A [13:02:43]Write to MH i2c: 01 00 00 84 06 8A [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:44]OFD Sender: No OFD packet to send [13:02:44]*** Cut start [13:02:44]*** Partial cut [13:02:44]*** CUTSNS_PIN = 1 [13:02:44]*** CUTSNS_PIN = 0 [13:02:44]*** Brake cut motor [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]*** Stop cut motor [13:02:44]*** Cut end [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 FF 0F 9F [13:02:44]process_action close_receipt done [13:02:44]requested_data is exist [13:02:44]produce_requested_data [13:02:44]requested_item fm.sn is exist - process it [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 11 00 00 [13:02:44]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 85 06 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:02: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:02:45]wFMCommunicate OK [13:02:45]requested_item fd.num is exist - process it [13:02:45]SAM_PROTO_GetFieldsCounters [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 00 00 [13:02:45]Write to MH i2c: E2 08 00 86 06 80 13 00 00 00 00 00 00 08 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 86 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 E1 13 01 00 0E 04 04 00 C4 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 83 [13:02: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 E1 13 01 00 0E 04 04 00 C4 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 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetFieldsCounters done [13:02:45]requested_item shift.num is exist - process it [13:02:45]requested_item shift.opened is exist - process it [13:02:45]req_shift_opened [13:02:45]FM_GetShiftState [13:02:45]SAM_PROTO_GetShiftState [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 01 00 [13:02:45]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 97 [13:02:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetShiftState done [13:02:45]FM_GetShiftState done [13:02:45]req_shift_opened done [13:02:45]requested_item shift.open_date is exist - process it [13:02:45]req_shift_open_date [13:02:45]req_shift_open_date done [13:02:45]produce_requested_data done [13:02:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70625,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:02:45]process_action_free close_receipt [13:02:45]json_value_free [13:02:45]json_value_free done [13:02:45]process_json_proto returns [13:02:45]Send response to host [13:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70625,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:02:45]free response buf [13:02:45]execute_script done [13:02:45]execute_script returns [13:02:45]free content buf [13:02:45]Sock 7.Close socket [13:02:45]Sock 7.Thread stoped [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:28]accept exits with 9 [13:07:28]New connection [13:07:28]New thread 3067034980 created [13:07:28]Thread 3066891620 joined [13:07:28]Waiting for new connection... [13:07:28] Sock 9.Parse request [13:07:28]Sock 9.Check first char [13:07:28]Sock 9.First char is OK [13:07:28]request: POST /json_proto HTTP/1.0 [13:07:28]Method: POST [13:07:28]URL: /json_proto [13:07:28]Method is POST - this is cgi request [13:07:28]url: /json_proto [13:07:28]query_string will be loaded in cgi processing [13:07:28]execute_cgi json_proto POST (null) [13:07:28]execute_cgi path=json_proto method=POST [13:07:28]POST find Content-Length [13:07:28]Host: 172.17.50.3:8080 [13:07:28]Content-Length: 684 [13:07:28]Content-Type: application/json [13:07:28] [13:07:28]POST finish read [13:07:28]Found Content-Length = 684 [13:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886402", "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" : 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" ] } } [13:07:28]execute_script... [13: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)2886402", "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" : 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" ] } } [13:07:28]POST & json_proto [13:07:28]process_json_proto [13:07:28]json parsed OK: [13:07:28]protocol is kg_v1.0 [13:07:28]action value=close_receipt [13:07:28]process_action close_receipt [13:07:28]cmd_close_receipt [13:07:28]MH_GetDate [13:07:28]Write to MH i2c: F0 00 00 88 06 7D [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 09 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: F0 09 00 88 06 00 12 F5 18 67 6B 98 1E 66 93 [13:07:28]GetLastDocTimeStamp 1729688562 [13:07:28]current date 1729688850 [13:07:28]FM_GetShiftState [13:07:28]SAM_PROTO_GetShiftState [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 13 01 00 [13:07:28]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 99 [13:07:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_GetShiftState done [13:07:28]FM_GetShiftState done [13:07:28]opened in 1729642435 [13:07:28]opened+sec_in_day 1729728835 [13:07:28]quantity*price = 70020 [13:07:28]sum+1 = 70021 [13:07:28]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 СНО: Общий режим Чек 142 23.10.2024 13:07 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70626 ФПД: 193240008211397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70626&fm=193240008211397&tin=02508201610067®Number=0000000000156251&sum=70000 [13:07:30]StoreToDocumentArchive [13:07:30]shift 196 fd 70626 [13:07:30]save to /storage/0196/doc_00070626 [13:07:30]save last doc name /storage/0196/doc_00070626 to /storage/kkm_last_doc_name [13:07:30]save OK [13:07:30]Clear old archive folders... [13:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:07:30]tlvbuf is 00144BF0 [13:07:30]SAM_PROTO_ClearQueue [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 09 00 00 [13:07:30]Write to MH i2c: E2 08 00 96 06 80 09 00 00 00 00 00 00 0E [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]SAM_PROTO_ClearQueue done [13:07:30]KKMCreateOFDPacket [13:07:30]OFDProtocolAddRootSTLVToBuf [13:07:30]FM_MakeSignedData [13:07:30]FM_MakeSignedData [13:07:30]SAM_PROTO_SignData [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 0D 01 02 [13:07:30]Write to MH i2c: E2 08 00 97 06 80 0D 01 02 00 00 00 00 16 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]wFMCommunicate request_size=255 [13:07:30]MH_SAM_APDU [13:07:30]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 8E 00 00 00 F4 03 04 00 12 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [13:07:30]Write to MH i2c: E2 02 01 98 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 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 8E 00 00 00 F4 03 04 00 12 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 5C [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]wFMCommunicate request_size=16 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AF C0 32 0B BB C5 [13:07:30]Write to MH i2c: E2 13 00 99 06 80 0D 02 02 0B 00 00 35 04 06 00 AF C0 32 0B BB C5 00 00 9A [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [13:07:30]RAPDU: 90 00 [13:07:30]wFMCommunicate OK [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 0D 03 02 [13:07:30]Write to MH i2c: E2 08 00 9A 06 80 0D 03 02 00 00 00 00 1B [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 0B 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 0B 00 9A 06 00 36 F9 6D DB 0A CD AF 86 90 00 9F [13:07:30]RAPDU: 36 F9 6D DB 0A CD AF 86 90 00 [13:07:30]wFMCommunicate OK [13:07:30]SAM_PROTO_SignData done [13:07:30]FM_MakeSignedData done [13:07:30]CreateOFDProtocolMessage [13:07:30]wFMCommunicate request_size=4 [13:07:30]MH_SAM_APDU [13:07:30]CAPDU: 80 11 00 00 [13:07:30]Write to MH i2c: E2 08 00 9B 06 80 11 00 00 00 00 00 00 1B [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:30]Read from MH i2c: E2 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 17 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: E2 17 00 9B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [13:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:07:30]wFMCommunicate OK [13:07:30]CreateOFDProtocolMessage done [13:07:30]OFDSenderStorePacket 70626 [13:07:30]StoreOFDPacket docnum=70626 [13:07: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 E4 53 0D 01 4E 8E 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 8E 00 00 00 F4 03 04 00 12 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF C0 32 0B BB C5 36 F9 6D DB 0A CD AF 86 [13:07:30]CheckFolder [13:07:30]dirname=/storage/ofd_packets [13:07:30]CheckFolder done [13:07:30]ProducePacketName [13:07:30]name=ofd_packets/00070626 [13:07:30]NVStorageSaveData ofd_packets/00070626 [13:07:30]File name is /storage/ofd_packets/00070626 [13:07:30]Write 307 bytes [13:07:30]NVStorageSaveData done [13:07:30]OFDSenderStorePacket done [13:07:30]KKMCreateOFDPacket done [13:07:30]NVStorageSaveData kkm_last_timestamp [13:07:30]File name is /storage/kkm_last_timestamp [13:07:30]Write 4 bytes [13:07:30]NVStorageSaveData done [13:07:30]ExternCall_PrintAddStr [13:07:30]wPrintStart [13:07:30]Write to MH i2c: 01 00 00 9C 06 A2 [13:07:30]Write i2c OK [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 07 00 [13:07:30]MH_I2C_Read... [13:07:30]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 FF 0F B7 [13:07:30]RasterBufferAndPrint [13:07:30]line Счет N : (1)2886402 [13:07:30]line ИНН: 02508201610067 [13:07:30]line Контрольно-Кассовый Чек [13:07:30]line ПРОДАЖА [13:07:30]line ТРК (МРК, ГНК) : 31 [13:07:30]line Товар: 2710194240 [13:07:30]line D-ENERGY Дт-К-2 [13:07:30]line 9.070 * 77.20 [13:07:30]line = 700.20 [13:07:30]line НДС 12% НСП 1% [13:07:30]line > о реализуемом товаре [13:07:30]line ОКРУГЛЕНИЕ: -0.20 [13:07:30]line ИТОГО: 700.00 [13:07:30]line Внесено: 700.00 [13:07:30]line СДАЧА: 0.00 [13:07:30]line НСП 1% : 6.20 [13:07:30]line НДС 12% : 74.36 [13:07:30]line Наличными: 700.00 [13:07:30]line Безнал.: 0.00 [13:07:30]line Место: АЗС № 85 "Партнер Нефть" [13:07:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:07:30]line СНО: Общий режим [13:07:30]line Чек 142 23.10.2024 13:07 [13:07:30]line Смена: 196 ФФД: 1.0 [13:07:30]line ЗНМ: 0300000167 [13:07:30]line РНМ: 0000000000156251 [13:07:30]line Версия ККМ: v1.0 [13:07:30]line ФМ: 0000000000963346 [13:07:30]line ФД: 70626 [13:07:30]line ФПД: 193240008211397 [13:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70626&fm=193240008211397&tin=02508201610067®Number=0000000000156251&sum=70000 [13:07:30]OFD Sender: Processing packet 70626 [packets to send 18, broken 17] [13:07:30]ProducePacketName [13:07:30]name=ofd_packets/00070626 [13:07:30]OFD Sender: To server: pG, [13:07:30]CommunicateWithHost lk.salyk.kg:30040 [13:07:30]ConnectInit lk.salyk.kg [13:07:30]written 0, free lines is 4095 [13:07:31]Connected sock=10 [13:07: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 15 01 00 00 E4 53 0D 01 4E 8E 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 8E 00 00 00 F4 03 04 00 12 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AF C0 32 0B BB C5 36 F9 6D DB 0A CD AF 86 [13:07: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 4B DC 47 00 07 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 E2 13 01 00 F4 03 04 00 AF 9E 18 67 B6 04 01 00 00 82 9E EA 7F 43 10 F7 05 [13:07:31]CommunicateWithHost err = 0 [13:07:31]CheckOFDResponse [13:07:31]1017 (14) - 77093643461234 [13:07:31]1041 (16) - 0000000000963346 [13:07:31]1040 (4) - 70626 [13:07:31]1012 (4) - 23.10.2024 06:58 [13:07:31]1206 (1) - 0 [13:07:31]OFD Sender: Remove packet 70626 [13:07:31]ProducePacketName [13:07:31]name=ofd_packets/00070626 [13:07:31]NVStorageDeleteData [13:07:31]Write to MH i2c: 01 00 00 C7 06 CD [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FC 0C DC [13:07:31]RasterBufferAndPrint [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]line [13:07:31]written 0, free lines is 3330 [13:07:31]MH_Cut [13:07:31]Write to MH i2c: D1 01 00 CE 06 01 A6 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 01 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: D1 01 00 CE 06 00 A5 [13:07:31]Write to MH i2c: 01 00 00 CF 06 D5 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]OFD Sender: No OFD packet to send [13:07:32]*** Cut start [13:07:32]*** Partial cut [13:07:32]*** CUTSNS_PIN = 1 [13:07:32]*** CUTSNS_PIN = 0 [13:07:32]*** Brake cut motor [13:07:32]Read from MH i2c: 01 [13:07:32]MH_I2C_Read... [13:07:32]*** Stop cut motor [13:07:32]*** Cut end [13:07:32]Read from MH i2c: 01 07 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [13:07:32]process_action close_receipt done [13:07:32]requested_data is exist [13:07:32]produce_requested_data [13:07:32]requested_item fm.sn is exist - process it [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 11 00 00 [13:07:32]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 17 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 17 00 D0 06 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: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 [13:07:32]wFMCommunicate OK [13:07:32]requested_item fd.num is exist - process it [13:07:32]SAM_PROTO_GetFieldsCounters [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 13 00 00 [13:07:32]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 62 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 62 00 D1 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 E2 13 01 00 0E 04 04 00 C4 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 D2 [13: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 E2 13 01 00 0E 04 04 00 C4 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 [13:07:32]wFMCommunicate OK [13:07:32]SAM_PROTO_GetFieldsCounters done [13:07:32]requested_item shift.num is exist - process it [13:07:32]requested_item shift.opened is exist - process it [13:07:32]req_shift_opened [13:07:32]FM_GetShiftState [13:07:32]SAM_PROTO_GetShiftState [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 13 01 00 [13:07:32]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 0E 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E2 [13:07:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:07:32]wFMCommunicate OK [13:07:32]SAM_PROTO_GetShiftState done [13:07:32]FM_GetShiftState done [13:07:32]req_shift_opened done [13:07:32]requested_item shift.open_date is exist - process it [13:07:32]req_shift_open_date [13:07:32]req_shift_open_date done [13:07:32]produce_requested_data done [13:07:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70626,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:07:32]process_action_free close_receipt [13:07:32]json_value_free [13:07:32]json_value_free done [13:07:32]process_json_proto returns [13:07:32]Send response to host [13:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70626,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:07:32]free response buf [13:07:32]execute_script done [13:07:32]execute_script returns [13:07:32]free content buf [13:07:32]Sock 9.Close socket [13:07:32]Sock 9.Thread stoped [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:32]accept exits with 7 [13:08:32]New connection [13:08:32]New thread 3066891620 created [13:08:32]Thread 3067034980 joined [13:08:32]Waiting for new connection... [13:08:32] Sock 7.Parse request [13:08:32]Sock 7.Check first char [13:08:32]Sock 7.First char is OK [13:08:32]request: POST /json_proto HTTP/1.0 [13:08:32]Method: POST [13:08:32]URL: /json_proto [13:08:32]Method is POST - this is cgi request [13:08:32]url: /json_proto [13:08:32]query_string will be loaded in cgi processing [13:08:32]execute_cgi json_proto POST (null) [13:08:32]execute_cgi path=json_proto method=POST [13:08:32]POST find Content-Length [13:08:32]Host: 172.17.50.3:8080 [13:08:32]Content-Length: 676 [13:08:32]Content-Type: application/json [13:08:32] [13:08:32]POST finish read [13:08:32]Found Content-Length = 676 [13:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886403", "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.550, "sum" : 880.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:32]execute_script... [13: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)2886403", "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.550, "sum" : 880.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:32]POST & json_proto [13:08:32]process_json_proto [13:08:32]json parsed OK: [13:08:32]protocol is kg_v1.0 [13:08:32]action value=close_receipt [13:08:32]process_action close_receipt [13:08:32]cmd_close_receipt [13:08:32]MH_GetDate [13:08:32]Write to MH i2c: F0 00 00 D3 06 C8 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: F0 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: F0 09 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: F0 09 00 D3 06 00 51 F5 18 67 6B 98 1E 66 1D [13:08:32]GetLastDocTimeStamp 1729688850 [13:08:32]current date 1729688913 [13:08:32]FM_GetShiftState [13:08:32]SAM_PROTO_GetShiftState [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 13 01 00 [13:08:32]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E4 [13:08:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:08:32]wFMCommunicate OK [13:08:32]SAM_PROTO_GetShiftState done [13:08:32]FM_GetShiftState done [13:08:32]opened in 1729642435 [13:08:32]opened+sec_in_day 1729728835 [13:08:32]quantity*price = 88011 [13:08:32]sum+1 = 88012 [13:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 880.00 Внесено: 880.00 СДАЧА: 0.00 НСП 1% : 7.79 НДС 12% : 93.46 Наличными: 880.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 143 23.10.2024 13:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70627 ФПД: 62050395354100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70627&fm=62050395354100&tin=02508201610067®Number=0000000000156251&sum=88000 [13:08:33]StoreToDocumentArchive [13:08:33]shift 196 fd 70627 [13:08:33]save to /storage/0196/doc_00070627 [13:08:33]save last doc name /storage/0196/doc_00070627 to /storage/kkm_last_doc_name [13:08:33]save OK [13:08:33]Clear old archive folders... [13:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:33]tlvbuf is 001299D0 [13:08:33]SAM_PROTO_ClearQueue [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 09 00 00 [13:08:33]Write to MH i2c: E2 08 00 E1 06 80 09 00 00 00 00 00 00 59 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [13:08:33]RAPDU: 90 00 [13:08:33]wFMCommunicate OK [13:08:33]SAM_PROTO_ClearQueue done [13:08:33]KKMCreateOFDPacket [13:08:33]OFDProtocolAddRootSTLVToBuf [13:08:33]FM_MakeSignedData [13:08:33]FM_MakeSignedData [13:08:33]SAM_PROTO_SignData [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 0D 01 02 [13:08:33]Write to MH i2c: E2 08 00 E2 06 80 0D 01 02 00 00 00 00 61 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [13:08:33]RAPDU: 90 00 [13:08:33]wFMCommunicate OK [13:08:33]wFMCommunicate request_size=255 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 24 00 00 00 00 07 04 06 00 C0 57 01 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 51 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 38 6F 3B C5 [13:08:33]Write to MH i2c: E2 02 01 E3 06 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 1E 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 24 00 00 00 00 07 04 06 00 C0 57 01 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 51 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 38 6F 3B C5 00 00 A1 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [13:08:33]RAPDU: 90 00 [13:08:33]wFMCommunicate OK [13:08:33]wFMCommunicate request_size=7 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 0D 02 02 02 F3 F4 [13:08:33]Write to MH i2c: E2 0A 00 E4 06 80 0D 02 02 02 00 F3 F4 00 00 4F [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [13:08:33]RAPDU: 90 00 [13:08:33]wFMCommunicate OK [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 0D 03 02 [13:08:33]Write to MH i2c: E2 08 00 E5 06 80 0D 03 02 00 00 00 00 66 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0B 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0B 00 E5 06 00 8E A6 EA FE 80 FF 49 09 90 00 54 [13:08:33]RAPDU: 8E A6 EA FE 80 FF 49 09 90 00 [13:08:33]wFMCommunicate OK [13:08:33]SAM_PROTO_SignData done [13:08:33]FM_MakeSignedData done [13:08:33]CreateOFDProtocolMessage [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 11 00 00 [13:08:33]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 17 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [13: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 [13:08:33]wFMCommunicate OK [13:08:33]CreateOFDProtocolMessage done [13:08:33]OFDSenderStorePacket 70627 [13:08:33]StoreOFDPacket docnum=70627 [13: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 0C 01 00 00 57 72 04 01 A6 D6 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 1E 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 24 00 00 00 00 07 04 06 00 C0 57 01 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 51 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 38 6F 3B C5 F3 F4 8E A6 EA FE 80 FF 49 09 [13:08:33]CheckFolder [13:08:33]dirname=/storage/ofd_packets [13:08:33]CheckFolder done [13:08:33]ProducePacketName [13:08:33]name=ofd_packets/00070627 [13:08:33]NVStorageSaveData ofd_packets/00070627 [13:08:33]File name is /storage/ofd_packets/00070627 [13:08:33]Write 298 bytes [13:08:33]NVStorageSaveData done [13:08:33]OFDSenderStorePacket done [13:08:33]KKMCreateOFDPacket done [13:08:33]NVStorageSaveData kkm_last_timestamp [13:08:33]File name is /storage/kkm_last_timestamp [13:08:33]Write 4 bytes [13:08:33]NVStorageSaveData done [13:08:33]ExternCall_PrintAddStr [13:08:33]wPrintStart [13:08:33]Write to MH i2c: 01 00 00 E7 06 ED [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: 01 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: 01 07 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [13:08:33]RasterBufferAndPrint [13:08:33]line Счет N : (1)2886403 [13:08:33]line ИНН: 02508201610067 [13:08:33]line Контрольно-Кассовый Чек [13:08:33]line ПРОДАЖА [13:08:33]line ТРК (МРК, ГНК) : 51 [13:08:33]line Товар: 2710194210 [13:08:33]line ДТ-К-5 [13:08:33]line 11.550 * 76.20 [13:08:33]line = 880.11 [13:08:33]line НДС 12% НСП 1% [13:08:33]line > о реализуемом товаре [13:08:33]line ОКРУГЛЕНИЕ: -0.11 [13:08:33]line ИТОГО: 880.00 [13:08:33]line Внесено: 880.00 [13:08:33]line СДАЧА: 0.00 [13:08:33]line НСП 1% : 7.79 [13:08:33]line НДС 12% : 93.46 [13:08:33]line Наличными: 880.00 [13:08:33]line Безнал.: 0.00 [13:08:33]line Место: АЗС № 85 "Партнер Нефть" [13:08:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:08:33]line СНО: Общий режим [13:08:33]line Чек 143 23.10.2024 13:08 [13:08:33]line Смена: 196 ФФД: 1.0 [13:08:33]line ЗНМ: 0300000167 [13:08:33]line РНМ: 0000000000156251 [13:08:33]line Версия ККМ: v1.0 [13:08:33]line ФМ: 0000000000963346 [13:08:33]line ФД: 70627 [13:08:33]line ФПД: 62050395354100 [13:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70627&fm=62050395354100&tin=02508201610067®Number=0000000000156251&sum=88000 [13:08:34]OFD Sender: Processing packet 70627 [packets to send 18, broken 17] [13:08:34]ProducePacketName [13:08:34]name=ofd_packets/00070627 [13:08:34]OFD Sender: To server: pG, [13:08:34]CommunicateWithHost lk.salyk.kg:30040 [13:08:34]ConnectInit lk.salyk.kg [13:08:34]written 0, free lines is 4095 [13:08:34]Connected sock=9 [13: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 0C 01 00 00 57 72 04 01 A6 D6 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 1E 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 24 00 00 00 00 07 04 06 00 C0 57 01 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 51 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 38 6F 3B C5 F3 F4 8E A6 EA FE 80 FF 49 09 [13: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 2A 0A 47 00 C0 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 E3 13 01 00 F4 03 04 00 EE 9E 18 67 B6 04 01 00 00 61 7A 94 A0 9D F9 EB D7 [13:08:34]CommunicateWithHost err = 0 [13:08:34]CheckOFDResponse [13:08:34]1017 (14) - 77093643461234 [13:08:34]1041 (16) - 0000000000963346 [13:08:34]1040 (4) - 70627 [13:08:34]1012 (4) - 23.10.2024 06:59 [13:08:34]1206 (1) - 0 [13:08:34]OFD Sender: Remove packet 70627 [13:08:34]ProducePacketName [13:08:34]name=ofd_packets/00070627 [13:08:34]NVStorageDeleteData [13:08:34]Write to MH i2c: 01 00 00 12 07 19 [13:08:34]Write i2c OK [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: 01 [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: 01 07 00 [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 ED 0C 19 [13:08:34]RasterBufferAndPrint [13:08:34]line [13:08:34]line [13:08:34]line [13:08:34]line [13:08:34]line [13:08:34]written 0, free lines is 3315 [13:08:34]MH_Cut [13:08:34]Write to MH i2c: D1 01 00 19 07 01 F2 [13:08:34]Write i2c OK [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: D1 [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: D1 01 00 [13:08:34]MH_I2C_Read... [13:08:34]Read from MH i2c: D1 01 00 19 07 00 F1 [13:08:34]Write to MH i2c: 01 00 00 1A 07 21 [13:08:34]Write i2c OK [13:08:34]MH_I2C_Read... [13:08:34]OFD Sender: No OFD packet to send [13:08:35]*** Cut start [13:08:35]*** Partial cut [13:08:35]*** CUTSNS_PIN = 1 [13:08:35]*** CUTSNS_PIN = 0 [13:08:35]*** Brake cut motor [13:08:35]Read from MH i2c: 01 [13:08:35]MH_I2C_Read... [13:08:35]*** Stop cut motor [13:08:35]*** Cut end [13:08:35]Read from MH i2c: 01 07 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [13:08:35]process_action close_receipt done [13:08:35]requested_data is exist [13:08:35]produce_requested_data [13:08:35]requested_item fm.sn is exist - process it [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 11 00 00 [13:08:35]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:35]Read from MH i2c: E2 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 17 00 [13:08:35]MH_I2C_Read... [13:08:35]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [13: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 [13:08:35]wFMCommunicate OK [13:08:35]requested_item fd.num is exist - process it [13:08:35]SAM_PROTO_GetFieldsCounters [13:08:35]wFMCommunicate request_size=4 [13:08:35]MH_SAM_APDU [13:08:35]CAPDU: 80 13 00 00 [13:08:35]Write to MH i2c: E2 08 00 1C 07 80 13 00 00 00 00 00 00 9F [13:08:35]Write i2c OK [13:08:35]MH_I2C_Read... [13:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:36]Read from MH i2c: E2 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 62 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 62 00 1C 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 E3 13 01 00 0E 04 04 00 C4 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 22 [13: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 E3 13 01 00 0E 04 04 00 C4 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 [13:08:36]wFMCommunicate OK [13:08:36]SAM_PROTO_GetFieldsCounters done [13:08:36]requested_item shift.num is exist - process it [13:08:36]requested_item shift.opened is exist - process it [13:08:36]req_shift_opened [13:08:36]FM_GetShiftState [13:08:36]SAM_PROTO_GetShiftState [13:08:36]wFMCommunicate request_size=4 [13:08:36]MH_SAM_APDU [13:08:36]CAPDU: 80 13 01 00 [13:08:36]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [13:08:36]Write i2c OK [13:08:36]MH_I2C_Read... [13:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:36]Read from MH i2c: E2 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 0E 00 [13:08:36]MH_I2C_Read... [13:08:36]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2E [13:08:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:08:36]wFMCommunicate OK [13:08:36]SAM_PROTO_GetShiftState done [13:08:36]FM_GetShiftState done [13:08:36]req_shift_opened done [13:08:36]requested_item shift.open_date is exist - process it [13:08:36]req_shift_open_date [13:08:36]req_shift_open_date done [13:08:36]produce_requested_data done [13:08:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70627,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:08:36]process_action_free close_receipt [13:08:36]json_value_free [13:08:36]json_value_free done [13:08:36]process_json_proto returns [13:08:36]Send response to host [13:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70627,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:08:36]free response buf [13:08:36]execute_script done [13:08:36]execute_script returns [13:08:36]free content buf [13:08:36]Sock 7.Close socket [13:08:36]Sock 7.Thread stoped [13:08:39]OFD Sender: No OFD packet to send [13:08:40]accept exits with 10 [13:08:40]New connection [13:08:40]New thread 3067034980 created [13:08:40]Thread 3066891620 joined [13:08:40]Waiting for new connection... [13:08:40] Sock 10.Parse request [13:08:40]Sock 10.Check first char [13:08:40]Sock 10.First char is OK [13:08:40]request: POST /json_proto HTTP/1.0 [13:08:40]Method: POST [13:08:40]URL: /json_proto [13:08:40]Method is POST - this is cgi request [13:08:40]url: /json_proto [13:08:40]query_string will be loaded in cgi processing [13:08:40]execute_cgi json_proto POST (null) [13:08:40]execute_cgi path=json_proto method=POST [13:08:40]POST find Content-Length [13:08:40]Host: 172.17.50.3:8080 [13:08:40]Content-Length: 801 [13:08:40]Content-Type: application/json [13:08:40] [13:08:40]POST finish read [13:08:40]Found Content-Length = 801 [13:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886404", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194535", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:40]execute_script... [13:08: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)2886404", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194535", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:40]POST & json_proto [13:08:40]process_json_proto [13:08:40]json parsed OK: [13:08:40]protocol is kg_v1.0 [13:08:40]action value=close_receipt [13:08:40]process_action close_receipt [13:08:40]cmd_close_receipt [13:08:40]MH_GetDate [13:08:40]Write to MH i2c: F0 00 00 1E 07 14 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: F0 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: F0 09 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: F0 09 00 1E 07 00 59 F5 18 67 6B 98 1E 66 71 [13:08:40]GetLastDocTimeStamp 1729688913 [13:08:40]current date 1729688921 [13:08:40]FM_GetShiftState [13:08:40]SAM_PROTO_GetShiftState [13:08:40]wFMCommunicate request_size=4 [13:08:40]MH_SAM_APDU [13:08:40]CAPDU: 80 13 01 00 [13:08:40]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:40]Read from MH i2c: E2 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 30 [13:08:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:08:40]wFMCommunicate OK [13:08:40]SAM_PROTO_GetShiftState done [13:08:40]FM_GetShiftState done [13:08:40]opened in 1729642435 [13:08:40]opened+sec_in_day 1729728835 [13:08:40]quantity*price = 0 [13:08:40]sum+1 = 1 [13:08: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 СНО: Общий режим Чек 144 23.10.2024 13:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4194535 ФМ: 0000000000963346 ФД: 70628 ФПД: 278200845680585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70628&fm=278200845680585&tin=02508201610067®Number=0000000000156251&sum=0 [13:08:41]StoreToDocumentArchive [13:08:41]shift 196 fd 70628 [13:08:41]save to /storage/0196/doc_00070628 [13:08:41]save last doc name /storage/0196/doc_00070628 to /storage/kkm_last_doc_name [13:08:41]save OK [13:08:41]Clear old archive folders... [13:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:41]tlvbuf is 00183EB0 [13:08:41]SAM_PROTO_ClearQueue [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 09 00 00 [13:08:41]Write to MH i2c: E2 08 00 2C 07 80 09 00 00 00 00 00 00 A5 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_ClearQueue done [13:08:41]KKMCreateOFDPacket [13:08:41]OFDProtocolAddRootSTLVToBuf [13:08:41]FM_MakeSignedData [13:08:41]FM_MakeSignedData [13:08:41]SAM_PROTO_SignData [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 01 02 [13:08:41]Write to MH i2c: E2 08 00 2D 07 80 0D 01 02 00 00 00 00 AD [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=255 [13:08:41]MH_SAM_APDU [13:08: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 90 00 00 00 F4 03 04 00 59 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FD [13:08:41]Write to MH i2c: E2 02 01 2E 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 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 90 00 00 00 F4 03 04 00 59 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FD 00 00 35 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=10 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 02 02 05 05 AE 95 3F C9 [13:08:41]Write to MH i2c: E2 0D 00 2F 07 80 0D 02 02 05 00 05 AE 95 3F C9 00 00 0A [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 03 02 [13:08:41]Write to MH i2c: E2 08 00 30 07 80 0D 03 02 00 00 00 00 B2 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 30 07 00 CF AE 76 44 9A B1 F2 A1 90 00 C8 [13:08:41]RAPDU: CF AE 76 44 9A B1 F2 A1 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_SignData done [13:08:41]FM_MakeSignedData done [13:08:41]CreateOFDProtocolMessage [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 11 00 00 [13:08:41]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:42]Read from MH i2c: E2 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: E2 17 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [13:08: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:08:42]wFMCommunicate OK [13:08:42]CreateOFDProtocolMessage done [13:08:42]OFDSenderStorePacket 70628 [13:08:42]StoreOFDPacket docnum=70628 [13:08: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 B9 00 07 01 F8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 59 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FD 05 AE 95 3F C9 CF AE 76 44 9A B1 F2 A1 [13:08:42]CheckFolder [13:08:42]dirname=/storage/ofd_packets [13:08:42]CheckFolder done [13:08:42]ProducePacketName [13:08:42]name=ofd_packets/00070628 [13:08:42]NVStorageSaveData ofd_packets/00070628 [13:08:42]File name is /storage/ofd_packets/00070628 [13:08:42]Write 301 bytes [13:08:42]NVStorageSaveData done [13:08:42]OFDSenderStorePacket done [13:08:42]KKMCreateOFDPacket done [13:08:42]NVStorageSaveData kkm_last_timestamp [13:08:42]File name is /storage/kkm_last_timestamp [13:08:42]Write 4 bytes [13:08:42]NVStorageSaveData done [13:08:42]ExternCall_PrintAddStr [13:08:42]wPrintStart [13:08:42]Write to MH i2c: 01 00 00 32 07 39 [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 32 07 00 00 00 00 00 FF 0F 4E [13:08:42]RasterBufferAndPrint [13:08:42]line Счет N : (1)2886404 [13:08:42]line ИНН: 02508201610067 [13:08:42]line Контрольно-Кассовый Чек [13:08:42]line ПРОДАЖА [13:08:42]line ТРК (МРК, ГНК) : 12 [13:08:42]line Товар: 2710124130 [13:08:42]line Аи-92-К-5 [13:08:42]line 20.000 * 0.00 [13:08:42]line = 0.00 [13:08:42]line НДС 12% НСП 1% [13:08:42]line > о реализуемом товаре [13:08:42]line ИТОГО: 0.00 [13:08:42]line НСП 1% : 0.00 [13:08:42]line НДС 12% : 0.00 [13:08:42]line Наличными: 0.00 [13:08:42]line Безнал.: 0.00 [13:08:42]line Место: АЗС № 85 "Партнер Нефть" [13:08:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:08:42]line СНО: Общий режим [13:08:42]line Чек 144 23.10.2024 13:08 [13:08:42]line Смена: 196 ФФД: 1.0 [13:08:42]line ЗНМ: 0300000167 [13:08:42]line РНМ: 0000000000156251 [13:08:42]line Версия ККМ: v1.0 [13:08:42]line Талоны: Топливные Талоны [13:08:42]line 4194535 [13:08:42]line ФМ: 0000000000963346 [13:08:42]line ФД: 70628 [13:08:42]line ФПД: 278200845680585 [13:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70628&fm=278200845680585&tin=02508201610067®Number=0000000000156251&sum=0 [13:08:42]written 0, free lines is 4095 [13:08:42]OFD Sender: Processing packet 70628 [packets to send 18, broken 17] [13:08:42]ProducePacketName [13:08:42]name=ofd_packets/00070628 [13:08:42]OFD Sender: To server: pG, [13:08:42]CommunicateWithHost lk.salyk.kg:30040 [13:08:42]ConnectInit lk.salyk.kg [13:08:42]Connected sock=9 [13:08: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 B9 00 07 01 F8 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 59 F5 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FD 05 AE 95 3F C9 CF AE 76 44 9A B1 F2 A1 [13:08: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 60 40 47 00 4D 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 E4 13 01 00 F4 03 04 00 F6 9E 18 67 B6 04 01 00 00 91 C1 02 D3 07 82 06 2D [13:08:42]CommunicateWithHost err = 0 [13:08:42]CheckOFDResponse [13:08:42]1017 (14) - 77093643461234 [13:08:42]1041 (16) - 0000000000963346 [13:08:42]1040 (4) - 70628 [13:08:42]1012 (4) - 23.10.2024 07:00 [13:08:42]1206 (1) - 0 [13:08:42]OFD Sender: Remove packet 70628 [13:08:42]ProducePacketName [13:08:42]name=ofd_packets/00070628 [13:08:42]NVStorageDeleteData [13:08:42]Write to MH i2c: 01 00 00 5C 07 63 [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 F7 0C 6D [13:08:42]RasterBufferAndPrint [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]written 0, free lines is 3334 [13:08:42]MH_Cut [13:08:42]Write to MH i2c: D1 01 00 63 07 01 3C [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 01 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 01 00 63 07 00 3B [13:08:42]Write to MH i2c: 01 00 00 64 07 6B [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]OFD Sender: No OFD packet to send [13:08:43]*** Cut start [13:08:43]*** Partial cut [13:08:43]*** CUTSNS_PIN = 1 [13:08:43]*** CUTSNS_PIN = 0 [13:08:43]*** Brake cut motor [13:08:43]Read from MH i2c: 01 [13:08:43]MH_I2C_Read... [13:08:43]*** Stop cut motor [13:08:43]*** Cut end [13:08:43]Read from MH i2c: 01 07 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: 01 07 00 64 07 00 00 00 00 00 FF 0F 80 [13:08:43]process_action close_receipt done [13:08:43]requested_data is exist [13:08:43]produce_requested_data [13:08:43]requested_item fm.sn is exist - process it [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 11 00 00 [13:08:43]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [13:08: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:08:43]wFMCommunicate OK [13:08:43]requested_item fd.num is exist - process it [13:08:43]SAM_PROTO_GetFieldsCounters [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 13 00 00 [13:08:43]Write to MH i2c: E2 08 00 66 07 80 13 00 00 00 00 00 00 E9 [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:44]Read from MH i2c: E2 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 62 00 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 62 00 66 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 E4 13 01 00 0E 04 04 00 C4 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 70 [13:08: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 E4 13 01 00 0E 04 04 00 C4 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 [13:08:44]wFMCommunicate OK [13:08:44]SAM_PROTO_GetFieldsCounters done [13:08:44]requested_item shift.num is exist - process it [13:08:44]requested_item shift.opened is exist - process it [13:08:44]req_shift_opened [13:08:44]FM_GetShiftState [13:08:44]SAM_PROTO_GetShiftState [13:08:44]wFMCommunicate request_size=4 [13:08:44]MH_SAM_APDU [13:08:44]CAPDU: 80 13 01 00 [13:08:44]Write to MH i2c: E2 08 00 67 07 80 13 01 00 00 00 00 00 EB [13:08:44]Write i2c OK [13:08:44]MH_I2C_Read... [13:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:44]Read from MH i2c: E2 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 0E 00 [13:08:44]MH_I2C_Read... [13:08:44]Read from MH i2c: E2 0E 00 67 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 78 [13:08:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:08:44]wFMCommunicate OK [13:08:44]SAM_PROTO_GetShiftState done [13:08:44]FM_GetShiftState done [13:08:44]req_shift_opened done [13:08:44]requested_item shift.open_date is exist - process it [13:08:44]req_shift_open_date [13:08:44]req_shift_open_date done [13:08:44]produce_requested_data done [13:08:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70628,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:08:44]process_action_free close_receipt [13:08:44]json_value_free [13:08:44]json_value_free done [13:08:44]process_json_proto returns [13:08:44]Send response to host [13:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70628,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:08:44]free response buf [13:08:44]execute_script done [13:08:44]execute_script returns [13:08:44]free content buf [13:08:44]Sock 10.Close socket [13:08:44]Sock 10.Thread stoped [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:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12: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:13]OFD Sender: No OFD packet to send [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]accept exits with 7 [13:15:13]New connection [13:15:13]New thread 3066891620 created [13:15:13]Thread 3067034980 joined [13:15:13]Waiting for new connection... [13:15:13] Sock 7.Parse request [13:15:13]Sock 7.Check first char [13:15:13]Sock 7.First char is OK [13:15:13]request: POST /json_proto HTTP/1.0 [13:15:13]Method: POST [13:15:13]URL: /json_proto [13:15:13]Method is POST - this is cgi request [13:15:13]url: /json_proto [13:15:13]query_string will be loaded in cgi processing [13:15:13]execute_cgi json_proto POST (null) [13:15:13]execute_cgi path=json_proto method=POST [13:15:13]POST find Content-Length [13:15:13]Host: 172.17.50.3:8080 [13:15:13]Content-Length: 680 [13:15:13]Content-Type: application/json [13:15:13] [13:15:13]POST finish read [13:15:13]Found Content-Length = 680 [13:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886406", "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" ] } } [13:15:13]execute_script... [13:15: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)2886406", "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" ] } } [13:15:13]POST & json_proto [13:15:13]process_json_proto [13:15:13]json parsed OK: [13:15:13]protocol is kg_v1.0 [13:15:13]action value=close_receipt [13:15:13]process_action close_receipt [13:15:13]cmd_close_receipt [13:15:13]MH_GetDate [13:15:13]Write to MH i2c: F0 00 00 68 07 5E [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 68 07 00 E2 F6 18 67 6B 98 1E 66 45 [13:15:13]GetLastDocTimeStamp 1729688921 [13:15:13]current date 1729689314 [13:15:13]FM_GetShiftState [13:15:13]SAM_PROTO_GetShiftState [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 13 01 00 [13:15:13]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [13:15:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_GetShiftState done [13:15:13]FM_GetShiftState done [13:15:13]opened in 1729642435 [13:15:13]opened+sec_in_day 1729728835 [13:15:13]quantity*price = 150037 [13:15:13]sum+1 = 150039 [13:15:13]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 СНО: Общий режим Чек 145 23.10.2024 13:15 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70629 ФПД: 26985159002240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70629&fm=26985159002240&tin=02508201610067®Number=0000000000156251&sum=150000 [13:15:14]StoreToDocumentArchive [13:15:14]shift 196 fd 70629 [13:15:14]save to /storage/0196/doc_00070629 [13:15:14]save last doc name /storage/0196/doc_00070629 to /storage/kkm_last_doc_name [13:15:14]save OK [13:15:14]Clear old archive folders... [13:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:14]tlvbuf is 0012A1A0 [13:15:14]SAM_PROTO_ClearQueue [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 09 00 00 [13:15:14]Write to MH i2c: E2 08 00 76 07 80 09 00 00 00 00 00 00 EF [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_ClearQueue done [13:15:14]KKMCreateOFDPacket [13:15:14]OFDProtocolAddRootSTLVToBuf [13:15:14]FM_MakeSignedData [13:15:14]FM_MakeSignedData [13:15:14]SAM_PROTO_SignData [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 01 02 [13:15:14]Write to MH i2c: E2 08 00 77 07 80 0D 01 02 00 00 00 00 F7 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=255 [13:15:14]MH_SAM_APDU [13:15: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 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 91 00 00 00 F4 03 04 00 E2 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 18 8A F8 D1 [13:15:14]Write to MH i2c: E2 02 01 78 07 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 91 00 00 00 F4 03 04 00 E2 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 18 8A F8 D1 00 00 FD [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=7 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 02 02 02 08 80 [13:15:14]Write to MH i2c: E2 0A 00 79 07 80 0D 02 02 02 00 08 80 00 00 86 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 03 02 [13:15:14]Write to MH i2c: E2 08 00 7A 07 80 0D 03 02 00 00 00 00 FC [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0B 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0B 00 7A 07 00 A8 87 F6 54 EB 98 93 19 90 00 A5 [13:15:14]RAPDU: A8 87 F6 54 EB 98 93 19 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_SignData done [13:15:14]FM_MakeSignedData done [13:15:14]CreateOFDProtocolMessage [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 11 00 00 [13:15:14]Write to MH i2c: E2 08 00 7B 07 80 11 00 00 00 00 00 00 FC [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 7B 07 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:15: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:15:14]wFMCommunicate OK [13:15:14]CreateOFDProtocolMessage done [13:15:14]OFDSenderStorePacket 70629 [13:15:14]StoreOFDPacket docnum=70629 [13:15: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 87 8F 04 01 5E 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 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 91 00 00 00 F4 03 04 00 E2 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 18 8A F8 D1 08 80 A8 87 F6 54 EB 98 93 19 [13:15:14]CheckFolder [13:15:14]dirname=/storage/ofd_packets [13:15:14]CheckFolder done [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00070629 [13:15:14]NVStorageSaveData ofd_packets/00070629 [13:15:14]File name is /storage/ofd_packets/00070629 [13:15:14]Write 298 bytes [13:15:14]NVStorageSaveData done [13:15:14]OFDSenderStorePacket done [13:15:14]KKMCreateOFDPacket done [13:15:14]NVStorageSaveData kkm_last_timestamp [13:15:14]File name is /storage/kkm_last_timestamp [13:15:14]Write 4 bytes [13:15:14]NVStorageSaveData done [13:15:14]ExternCall_PrintAddStr [13:15:14]wPrintStart [13:15:14]Write to MH i2c: 01 00 00 7C 07 83 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 FF 0F 98 [13:15:14]RasterBufferAndPrint [13:15:14]line Счет N : (1)2886406 [13:15:14]line ИНН: 02508201610067 [13:15:14]line Контрольно-Кассовый Чек [13:15:14]line ПРОДАЖА [13:15:14]line ТРК (МРК, ГНК) : 51 [13:15:14]line Товар: 2710194210 [13:15:14]line ДТ-К-5 [13:15:14]line 19.690 * 76.20 [13:15:14]line = 1500.38 [13:15:14]line НДС 12% НСП 1% [13:15:14]line > о реализуемом товаре [13:15:14]line ОКРУГЛЕНИЕ: -0.38 [13:15:14]line ИТОГО: 1500.00 [13:15:14]line Внесено: 1500.00 [13:15:14]line СДАЧА: 0.00 [13:15:14]line НСП 1% : 13.28 [13:15:14]line НДС 12% : 159.33 [13:15:14]line Наличными: 1500.00 [13:15:14]line Безнал.: 0.00 [13:15:14]line Место: АЗС № 85 "Партнер Нефть" [13:15:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:15:14]line СНО: Общий режим [13:15:14]line Чек 145 23.10.2024 13:15 [13:15:14]line Смена: 196 ФФД: 1.0 [13:15:14]line ЗНМ: 0300000167 [13:15:15]line РНМ: 0000000000156251 [13:15:15]line Версия ККМ: v1.0 [13:15:15]line ФМ: 0000000000963346 [13:15:15]line ФД: 70629 [13:15:15]line ФПД: 26985159002240 [13:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70629&fm=26985159002240&tin=02508201610067®Number=0000000000156251&sum=150000 [13:15:15]OFD Sender: Processing packet 70629 [packets to send 18, broken 17] [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00070629 [13:15:15]OFD Sender: To server: pG, [13:15:15]CommunicateWithHost lk.salyk.kg:30040 [13:15:15]ConnectInit lk.salyk.kg [13:15:15]written 0, free lines is 4095 [13:15:15]Connected sock=10 [13:15: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 87 8F 04 01 5E 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 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 91 00 00 00 F4 03 04 00 E2 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 18 8A F8 D1 08 80 A8 87 F6 54 EB 98 93 19 [13:15: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 84 67 47 00 86 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 E5 13 01 00 F4 03 04 00 80 A0 18 67 B6 04 01 00 00 E3 1B 9A 11 2F 3B 36 B1 [13:15:15]CommunicateWithHost err = 0 [13:15:15]CheckOFDResponse [13:15:15]1017 (14) - 77093643461234 [13:15:15]1041 (16) - 0000000000963346 [13:15:15]1040 (4) - 70629 [13:15:15]1012 (4) - 23.10.2024 07:06 [13:15:15]1206 (1) - 0 [13:15:15]OFD Sender: Remove packet 70629 [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00070629 [13:15:15]NVStorageDeleteData [13:15:15]Write to MH i2c: 01 00 00 A7 07 AE [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 EC 0C AD [13:15:15]RasterBufferAndPrint [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]written 0, free lines is 3314 [13:15:15]MH_Cut [13:15:15]Write to MH i2c: D1 01 00 AE 07 01 87 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 AE 07 00 86 [13:15:15]Write to MH i2c: 01 00 00 AF 07 B6 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]OFD Sender: No OFD packet to send [13:15:16]*** Cut start [13:15:16]*** Partial cut [13:15:16]*** CUTSNS_PIN = 1 [13:15:16]*** CUTSNS_PIN = 0 [13:15:16]*** Brake cut motor [13:15:16]Read from MH i2c: 01 [13:15:16]MH_I2C_Read... [13:15:16]*** Stop cut motor [13:15:16]*** Cut end [13:15:16]Read from MH i2c: 01 07 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [13:15:16]process_action close_receipt done [13:15:16]requested_data is exist [13:15:16]produce_requested_data [13:15:16]requested_item fm.sn is exist - process it [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 11 00 00 [13:15:16]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [13:15: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:15:17]wFMCommunicate OK [13:15:17]requested_item fd.num is exist - process it [13:15:17]SAM_PROTO_GetFieldsCounters [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 00 00 [13:15:17]Write to MH i2c: E2 08 00 B1 07 80 13 00 00 00 00 00 00 34 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 62 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 62 00 B1 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 E5 13 01 00 0E 04 04 00 C4 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 BF [13:15: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 E5 13 01 00 0E 04 04 00 C4 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 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_GetFieldsCounters done [13:15:17]requested_item shift.num is exist - process it [13:15:17]requested_item shift.opened is exist - process it [13:15:17]req_shift_opened [13:15:17]FM_GetShiftState [13:15:17]SAM_PROTO_GetShiftState [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 01 00 [13:15:17]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [13:15:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_GetShiftState done [13:15:17]FM_GetShiftState done [13:15:17]req_shift_opened done [13:15:17]requested_item shift.open_date is exist - process it [13:15:17]req_shift_open_date [13:15:17]req_shift_open_date done [13:15:17]produce_requested_data done [13:15:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70629,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:15:17]process_action_free close_receipt [13:15:17]json_value_free [13:15:17]json_value_free done [13:15:17]process_json_proto returns [13:15:17]Send response to host [13:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70629,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:15:17]free response buf [13:15:17]execute_script done [13:15:17]execute_script returns [13:15:17]free content buf [13:15:17]Sock 7.Close socket [13:15:17]Sock 7.Thread stoped [13:15:17]accept exits with 9 [13:15:17]New connection [13:15:17]New thread 3067034980 created [13:15:17]Thread 3066891620 joined [13:15:17]Waiting for new connection... [13:15:17] Sock 9.Parse request [13:15:17]Sock 9.Check first char [13:15:17]Sock 9.First char is OK [13:15:17]request: POST /json_proto HTTP/1.0 [13:15:17]Method: POST [13:15:17]URL: /json_proto [13:15:17]Method is POST - this is cgi request [13:15:17]url: /json_proto [13:15:17]query_string will be loaded in cgi processing [13:15:17]execute_cgi json_proto POST (null) [13:15:17]execute_cgi path=json_proto method=POST [13:15:17]POST find Content-Length [13:15:17]Host: 172.17.50.3:8080 [13:15:17]Content-Length: 678 [13:15:17]Content-Type: application/json [13:15:17] [13:15:17]POST finish read [13:15:17]Found Content-Length = 678 [13:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886407", "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" ] } } [13:15:17]execute_script... [13:15: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)2886407", "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" ] } } [13:15:17]POST & json_proto [13:15:17]process_json_proto [13:15:17]json parsed OK: [13:15:17]protocol is kg_v1.0 [13:15:17]action value=close_receipt [13:15:17]process_action close_receipt [13:15:17]cmd_close_receipt [13:15:17]MH_GetDate [13:15:17]Write to MH i2c: F0 00 00 B3 07 A9 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 09 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 09 00 B3 07 00 E7 F6 18 67 6B 98 1E 66 95 [13:15:17]GetLastDocTimeStamp 1729689314 [13:15:17]current date 1729689319 [13:15:17]FM_GetShiftState [13:15:17]SAM_PROTO_GetShiftState [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 01 00 [13:15:17]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0E 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [13:15:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:15:18]wFMCommunicate OK [13:15:18]SAM_PROTO_GetShiftState done [13:15:18]FM_GetShiftState done [13:15:18]opened in 1729642435 [13:15:18]opened+sec_in_day 1729728835 [13:15:18]quantity*price = 20003 [13:15:18]sum+1 = 20004 [13:15:18]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 СНО: Общий режим Чек 146 23.10.2024 13:15 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70630 ФПД: 182982791403979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70630&fm=182982791403979&tin=02508201610067®Number=0000000000156251&sum=20000 [13:15:19]StoreToDocumentArchive [13:15:19]shift 196 fd 70630 [13:15:19]save to /storage/0196/doc_00070630 [13:15:19]save last doc name /storage/0196/doc_00070630 to /storage/kkm_last_doc_name [13:15:19]save OK [13:15:19]Clear old archive folders... [13:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:19]tlvbuf is 00171700 [13:15:19]SAM_PROTO_ClearQueue [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 09 00 00 [13:15:19]Write to MH i2c: E2 08 00 C1 07 80 09 00 00 00 00 00 00 3A [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]SAM_PROTO_ClearQueue done [13:15:19]KKMCreateOFDPacket [13:15:19]OFDProtocolAddRootSTLVToBuf [13:15:19]FM_MakeSignedData [13:15:19]FM_MakeSignedData [13:15:19]SAM_PROTO_SignData [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 0D 01 02 [13:15:19]Write to MH i2c: E2 08 00 C2 07 80 0D 01 02 00 00 00 00 42 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=255 [13:15:19]MH_SAM_APDU [13:15: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 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 92 00 00 00 F4 03 04 00 E7 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 [13:15:19]Write to MH i2c: E2 02 01 C3 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 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 92 00 00 00 F4 03 04 00 E7 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 00 00 DF [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=10 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 0D 02 02 05 6C 00 48 19 CB [13:15:19]Write to MH i2c: E2 0D 00 C4 07 80 0D 02 02 05 00 6C 00 48 19 CB 00 00 E7 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 0D 03 02 [13:15:19]Write to MH i2c: E2 08 00 C5 07 80 0D 03 02 00 00 00 00 47 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0B 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0B 00 C5 07 00 F0 90 AB 06 3C E6 54 8C 90 00 7B [13:15:20]RAPDU: F0 90 AB 06 3C E6 54 8C 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_SignData done [13:15:20]FM_MakeSignedData done [13:15:20]CreateOFDProtocolMessage [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 11 00 00 [13:15:20]Write to MH i2c: E2 08 00 C6 07 80 11 00 00 00 00 00 00 47 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 C6 07 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:15: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:15:20]wFMCommunicate OK [13:15:20]CreateOFDProtocolMessage done [13:15:20]OFDSenderStorePacket 70630 [13:15:20]StoreOFDPacket docnum=70630 [13:15: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 63 62 07 01 C8 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 92 00 00 00 F4 03 04 00 E7 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 6C 00 48 19 CB F0 90 AB 06 3C E6 54 8C [13:15:20]CheckFolder [13:15:20]dirname=/storage/ofd_packets [13:15:20]CheckFolder done [13:15:20]ProducePacketName [13:15:20]name=ofd_packets/00070630 [13:15:20]NVStorageSaveData ofd_packets/00070630 [13:15:20]File name is /storage/ofd_packets/00070630 [13:15:20]Write 301 bytes [13:15:20]NVStorageSaveData done [13:15:20]OFDSenderStorePacket done [13:15:20]KKMCreateOFDPacket done [13:15:20]NVStorageSaveData kkm_last_timestamp [13:15:20]File name is /storage/kkm_last_timestamp [13:15:20]Write 4 bytes [13:15:20]NVStorageSaveData done [13:15:20]ExternCall_PrintAddStr [13:15:20]wPrintStart [13:15:20]Write to MH i2c: 01 00 00 C7 07 CE [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FF 0F E3 [13:15:20]RasterBufferAndPrint [13:15:20]line Счет N : (1)2886407 [13:15:20]line ИНН: 02508201610067 [13:15:20]line Контрольно-Кассовый Чек [13:15:20]line ПРОДАЖА [13:15:20]line ТРК (МРК, ГНК) : 32 [13:15:20]line Товар: 2710124130 [13:15:20]line Аи-92-К-5 [13:15:20]line 2.990 * 66.90 [13:15:20]line = 200.03 [13:15:20]line НДС 12% НСП 1% [13:15:20]line > о реализуемом товаре [13:15:20]line ОКРУГЛЕНИЕ: -0.03 [13:15:20]line ИТОГО: 200.00 [13:15:20]line Внесено: 200.00 [13:15:20]line СДАЧА: 0.00 [13:15:20]line НСП 1% : 1.77 [13:15:20]line НДС 12% : 21.24 [13:15:20]line Наличными: 200.00 [13:15:20]line Безнал.: 0.00 [13:15:20]line Место: АЗС № 85 "Партнер Нефть" [13:15:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:15:20]line СНО: Общий режим [13:15:20]line Чек 146 23.10.2024 13:15 [13:15:20]line Смена: 196 ФФД: 1.0 [13:15:20]line ЗНМ: 0300000167 [13:15:20]line РНМ: 0000000000156251 [13:15:20]line Версия ККМ: v1.0 [13:15:20]line ФМ: 0000000000963346 [13:15:20]line ФД: 70630 [13:15:20]line ФПД: 182982791403979 [13:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70630&fm=182982791403979&tin=02508201610067®Number=0000000000156251&sum=20000 [13:15:20]written 0, free lines is 4095 [13:15:20]OFD Sender: Processing packet 70630 [packets to send 18, broken 17] [13:15:20]ProducePacketName [13:15:20]name=ofd_packets/00070630 [13:15:20]OFD Sender: To server: pG, [13:15:20]CommunicateWithHost lk.salyk.kg:30040 [13:15:20]ConnectInit lk.salyk.kg [13:15:20]Connected sock=11 [13:15: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 63 62 07 01 C8 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 92 00 00 00 F4 03 04 00 E7 F6 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 6C 00 48 19 CB F0 90 AB 06 3C E6 54 8C [13:15: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 2B 8A 47 00 E6 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 13 01 00 F4 03 04 00 85 A0 18 67 B6 04 01 00 00 06 53 57 0D 98 20 9E 76 [13:15:20]CommunicateWithHost err = 0 [13:15:20]CheckOFDResponse [13:15:20]1017 (14) - 77093643461234 [13:15:20]1041 (16) - 0000000000963346 [13:15:20]1040 (4) - 70630 [13:15:20]1012 (4) - 23.10.2024 07:06 [13:15:20]1206 (1) - 0 [13:15:20]OFD Sender: Remove packet 70630 [13:15:20]ProducePacketName [13:15:20]name=ofd_packets/00070630 [13:15:20]NVStorageDeleteData [13:15:20]Write to MH i2c: 01 00 00 F2 07 F9 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 F0 0C FC [13:15:20]RasterBufferAndPrint [13:15:20]line [13:15:20]line [13:15:20]line [13:15:20]line [13:15:20]line [13:15:20]written 0, free lines is 3321 [13:15:20]MH_Cut [13:15:20]Write to MH i2c: D1 01 00 F9 07 01 D2 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: D1 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: D1 01 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: D1 01 00 F9 07 00 D1 [13:15:20]Write to MH i2c: 01 00 00 FA 07 01 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]OFD Sender: No OFD packet to send [13:15:21]*** Cut start [13:15:21]*** Partial cut [13:15:21]*** CUTSNS_PIN = 1 [13:15:21]*** CUTSNS_PIN = 0 [13:15:21]*** Brake cut motor [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]*** Stop cut motor [13:15:21]*** Cut end [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 FF 0F 16 [13:15:21]process_action close_receipt done [13:15:21]requested_data is exist [13:15:21]produce_requested_data [13:15:21]requested_item fm.sn is exist - process it [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 11 00 00 [13:15:21]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:21]Read from MH i2c: E2 17 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [13:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:15:21]wFMCommunicate OK [13:15:21]requested_item fd.num is exist - process it [13:15:21]SAM_PROTO_GetFieldsCounters [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 00 00 [13:15:21]Write to MH i2c: E2 08 00 FC 07 80 13 00 00 00 00 00 00 7F [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 62 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 62 00 FC 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 E6 13 01 00 0E 04 04 00 C4 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 0E [13:15: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 E6 13 01 00 0E 04 04 00 C4 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 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetFieldsCounters done [13:15:22]requested_item shift.num is exist - process it [13:15:22]requested_item shift.opened is exist - process it [13:15:22]req_shift_opened [13:15:22]FM_GetShiftState [13:15:22]SAM_PROTO_GetShiftState [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 13 01 00 [13:15:22]Write to MH i2c: E2 08 00 FD 07 80 13 01 00 00 00 00 00 81 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 FD 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0E [13:15:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetShiftState done [13:15:22]FM_GetShiftState done [13:15:22]req_shift_opened done [13:15:22]requested_item shift.open_date is exist - process it [13:15:22]req_shift_open_date [13:15:22]req_shift_open_date done [13:15:22]produce_requested_data done [13:15:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70630,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:15:22]process_action_free close_receipt [13:15:22]json_value_free [13:15:22]json_value_free done [13:15:22]process_json_proto returns [13:15:22]Send response to host [13:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70630,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:15:22]free response buf [13:15:22]execute_script done [13:15:22]execute_script returns [13:15:22]free content buf [13:15:22]Sock 9.Close socket [13:15:22]Sock 9.Thread stoped [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:38]accept exits with 7 [13:16:38]New connection [13:16:38]New thread 3066891620 created [13:16:38]Thread 3067034980 joined [13:16:38]Waiting for new connection... [13:16:38] Sock 7.Parse request [13:16:38]Sock 7.Check first char [13:16:38]Sock 7.First char is OK [13:16:38]request: POST /json_proto HTTP/1.0 [13:16:38]Method: POST [13:16:38]URL: /json_proto [13:16:38]Method is POST - this is cgi request [13:16:38]url: /json_proto [13:16:38]query_string will be loaded in cgi processing [13:16:38]execute_cgi json_proto POST (null) [13:16:38]execute_cgi path=json_proto method=POST [13:16:38]POST find Content-Length [13:16:38]Host: 172.17.50.3:8080 [13:16:38]Content-Length: 752 [13:16:38]Content-Type: application/json [13:16:38] [13:16:38]POST finish read [13:16:38]Found Content-Length = 752 [13:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886408", "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" : 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\u000A30134227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:38]execute_script... [13:16: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)2886408", "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" : 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\u000A30134227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:38]POST & json_proto [13:16:38]process_json_proto [13:16:38]json parsed OK: [13:16:38]protocol is kg_v1.0 [13:16:38]action value=close_receipt [13:16:38]process_action close_receipt [13:16:38]cmd_close_receipt [13:16:38]MH_GetDate [13:16:38]Write to MH i2c: F0 00 00 FE 07 F4 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: F0 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: F0 09 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: F0 09 00 FE 07 00 38 F7 18 67 6B 98 1E 66 32 [13:16:38]GetLastDocTimeStamp 1729689319 [13:16:38]current date 1729689400 [13:16:38]FM_GetShiftState [13:16:38]SAM_PROTO_GetShiftState [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 13 01 00 [13:16:38]Write to MH i2c: E2 08 00 FF 07 80 13 01 00 00 00 00 00 83 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0E 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0E 00 FF 07 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 10 [13:16:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:16:38]wFMCommunicate OK [13:16:38]SAM_PROTO_GetShiftState done [13:16:38]FM_GetShiftState done [13:16:38]opened in 1729642435 [13:16:38]opened+sec_in_day 1729728835 [13:16:38]quantity*price = 0 [13:16:38]sum+1 = 1 [13:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 147 23.10.2024 13:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30134227 ФМ: 0000000000963346 ФД: 70631 ФПД: 159953697259747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70631&fm=159953697259747&tin=02508201610067®Number=0000000000156251&sum=0 [13:16:39]StoreToDocumentArchive [13:16:39]shift 196 fd 70631 [13:16:39]save to /storage/0196/doc_00070631 [13:16:39]save last doc name /storage/0196/doc_00070631 to /storage/kkm_last_doc_name [13:16:39]save OK [13:16:39]Clear old archive folders... [13:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:39]tlvbuf is 00157760 [13:16:39]SAM_PROTO_ClearQueue [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 09 00 00 [13:16:39]Write to MH i2c: E2 08 00 0C 08 80 09 00 00 00 00 00 00 86 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [13:16:40]RAPDU: 90 00 [13:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_ClearQueue done [13:16:40]KKMCreateOFDPacket [13:16:40]OFDProtocolAddRootSTLVToBuf [13:16:40]FM_MakeSignedData [13:16:40]FM_MakeSignedData [13:16:40]SAM_PROTO_SignData [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 0D 01 02 [13:16:40]Write to MH i2c: E2 08 00 0D 08 80 0D 01 02 00 00 00 00 8E [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [13:16:40]RAPDU: 90 00 [13:16:40]wFMCommunicate OK [13:16:40]wFMCommunicate request_size=255 [13:16:40]MH_SAM_APDU [13:16: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 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 93 00 00 00 F4 03 04 00 38 F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 7A 1F 4E [13:16:40]Write to MH i2c: E2 02 01 0E 08 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 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 93 00 00 00 F4 03 04 00 38 F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 7A 1F 4E 00 00 39 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [13:16:40]RAPDU: 90 00 [13:16:40]wFMCommunicate OK [13:16:40]wFMCommunicate request_size=7 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 0D 02 02 02 40 E3 [13:16:40]Write to MH i2c: E2 0A 00 0F 08 80 0D 02 02 02 00 40 E3 00 00 B8 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [13:16:40]RAPDU: 90 00 [13:16:40]wFMCommunicate OK [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 0D 03 02 [13:16:40]Write to MH i2c: E2 08 00 10 08 80 0D 03 02 00 00 00 00 93 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0B 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0B 00 10 08 00 FC 92 27 16 6C 4D B1 B2 90 00 7B [13:16:40]RAPDU: FC 92 27 16 6C 4D B1 B2 90 00 [13:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_SignData done [13:16:40]FM_MakeSignedData done [13:16:40]CreateOFDProtocolMessage [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 11 00 00 [13:16:40]Write to MH i2c: E2 08 00 11 08 80 11 00 00 00 00 00 00 93 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 11 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [13:16: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:16:40]wFMCommunicate OK [13:16:40]CreateOFDProtocolMessage done [13:16:40]OFDSenderStorePacket 70631 [13:16:40]StoreOFDPacket docnum=70631 [13:16: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 FC 85 04 01 ED 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 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 93 00 00 00 F4 03 04 00 38 F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 7A 1F 4E 40 E3 FC 92 27 16 6C 4D B1 B2 [13:16:40]CheckFolder [13:16:40]dirname=/storage/ofd_packets [13:16:40]CheckFolder done [13:16:40]ProducePacketName [13:16:40]name=ofd_packets/00070631 [13:16:40]NVStorageSaveData ofd_packets/00070631 [13:16:40]File name is /storage/ofd_packets/00070631 [13:16:40]Write 298 bytes [13:16:40]NVStorageSaveData done [13:16:40]OFDSenderStorePacket done [13:16:40]KKMCreateOFDPacket done [13:16:40]NVStorageSaveData kkm_last_timestamp [13:16:40]File name is /storage/kkm_last_timestamp [13:16:40]Write 4 bytes [13:16:40]NVStorageSaveData done [13:16:40]ExternCall_PrintAddStr [13:16:40]wPrintStart [13:16:40]Write to MH i2c: 01 00 00 12 08 1A [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: 01 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: 01 07 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: 01 07 00 12 08 00 00 00 00 00 FF 0F 2F [13:16:40]RasterBufferAndPrint [13:16:40]line Счет N : (1)2886408 [13:16:40]line ИНН: 02508201610067 [13:16:40]line Контрольно-Кассовый Чек [13:16:40]line ПРОДАЖА [13:16:40]line ТРК (МРК, ГНК) : 61 [13:16:40]line Товар: 2710194210 [13:16:40]line ДТ-К-5 [13:16:40]line 40.000 * 0.00 [13:16:40]line = 0.00 [13:16:40]line НДС 12% НСП 1% [13:16:40]line > о реализуемом товаре [13:16:40]line ИТОГО: 0.00 [13:16:40]line НСП 1% : 0.00 [13:16:40]line НДС 12% : 0.00 [13:16:40]line Наличными: 0.00 [13:16:40]line Безнал.: 0.00 [13:16:40]line Место: АЗС № 85 "Партнер Нефть" [13:16:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:16:40]line СНО: Общий режим [13:16:40]line Чек 147 23.10.2024 13:16 [13:16:40]line Смена: 196 ФФД: 1.0 [13:16:40]line ЗНМ: 0300000167 [13:16:40]line РНМ: 0000000000156251 [13:16:40]line Версия ККМ: v1.0 [13:16:40]line Талоны: ТК ГПНА Online [13:16:40]line 30134227 [13:16:40]line ФМ: 0000000000963346 [13:16:40]line ФД: 70631 [13:16:40]line ФПД: 159953697259747 [13:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70631&fm=159953697259747&tin=02508201610067®Number=0000000000156251&sum=0 [13:16:40]OFD Sender: Processing packet 70631 [packets to send 18, broken 17] [13:16:40]ProducePacketName [13:16:40]name=ofd_packets/00070631 [13:16:40]OFD Sender: To server: pG, [13:16:40]CommunicateWithHost lk.salyk.kg:30040 [13:16:40]ConnectInit lk.salyk.kg [13:16:40]written 0, free lines is 4095 [13:16:40]Connected sock=10 [13: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 0C 01 00 00 FC 85 04 01 ED 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 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 93 00 00 00 F4 03 04 00 38 F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 91 7A 1F 4E 40 E3 FC 92 27 16 6C 4D B1 B2 [13:16: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 F9 34 47 00 1B 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 E7 13 01 00 F4 03 04 00 D5 A0 18 67 B6 04 01 00 00 30 A8 0D EA 47 E0 B8 81 [13:16:41]CommunicateWithHost err = 0 [13:16:41]CheckOFDResponse [13:16:41]1017 (14) - 77093643461234 [13:16:41]1041 (16) - 0000000000963346 [13:16:41]1040 (4) - 70631 [13:16:41]1012 (4) - 23.10.2024 07:08 [13:16:41]1206 (1) - 0 [13:16:41]OFD Sender: Remove packet 70631 [13:16:41]ProducePacketName [13:16:41]name=ofd_packets/00070631 [13:16:41]NVStorageDeleteData [13:16:41]Write to MH i2c: 01 00 00 3C 08 44 [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: 01 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: 01 07 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 F2 0C 49 [13:16:41]RasterBufferAndPrint [13:16:41]line [13:16:41]line [13:16:41]line [13:16:41]line [13:16:41]line [13:16:41]written 0, free lines is 3320 [13:16:41]MH_Cut [13:16:41]Write to MH i2c: D1 01 00 43 08 01 1D [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: D1 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: D1 01 00 [13:16:41]MH_I2C_Read... [13:16:41]Read from MH i2c: D1 01 00 43 08 00 1C [13:16:41]Write to MH i2c: 01 00 00 44 08 4C [13:16:41]Write i2c OK [13:16:41]MH_I2C_Read... [13:16:41]OFD Sender: No OFD packet to send [13:16:41]*** Cut start [13:16:41]*** Partial cut [13:16:41]*** CUTSNS_PIN = 1 [13:16:41]*** CUTSNS_PIN = 0 [13:16:42]*** Brake cut motor [13:16:42]Read from MH i2c: 01 [13:16:42]MH_I2C_Read... [13:16:42]*** Stop cut motor [13:16:42]*** Cut end [13:16:42]Read from MH i2c: 01 07 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [13:16:42]process_action close_receipt done [13:16:42]requested_data is exist [13:16:42]produce_requested_data [13:16:42]requested_item fm.sn is exist - process it [13:16:42]wFMCommunicate request_size=4 [13:16:42]MH_SAM_APDU [13:16:42]CAPDU: 80 11 00 00 [13:16:42]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:42]Read from MH i2c: E2 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 17 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 17 00 45 08 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:16: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:16:42]wFMCommunicate OK [13:16:42]requested_item fd.num is exist - process it [13:16:42]SAM_PROTO_GetFieldsCounters [13:16:42]wFMCommunicate request_size=4 [13:16:42]MH_SAM_APDU [13:16:42]CAPDU: 80 13 00 00 [13:16:42]Write to MH i2c: E2 08 00 46 08 80 13 00 00 00 00 00 00 CA [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:42]Read from MH i2c: E2 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 62 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 62 00 46 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 E7 13 01 00 0E 04 04 00 C4 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 5D [13:16: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 E7 13 01 00 0E 04 04 00 C4 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 [13:16:42]wFMCommunicate OK [13:16:42]SAM_PROTO_GetFieldsCounters done [13:16:42]requested_item shift.num is exist - process it [13:16:42]requested_item shift.opened is exist - process it [13:16:42]req_shift_opened [13:16:42]FM_GetShiftState [13:16:42]SAM_PROTO_GetShiftState [13:16:42]wFMCommunicate request_size=4 [13:16:42]MH_SAM_APDU [13:16:42]CAPDU: 80 13 01 00 [13:16:42]Write to MH i2c: E2 08 00 47 08 80 13 01 00 00 00 00 00 CC [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:42]Read from MH i2c: E2 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 47 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [13:16:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:16:42]wFMCommunicate OK [13:16:42]SAM_PROTO_GetShiftState done [13:16:42]FM_GetShiftState done [13:16:42]req_shift_opened done [13:16:42]requested_item shift.open_date is exist - process it [13:16:42]req_shift_open_date [13:16:42]req_shift_open_date done [13:16:42]produce_requested_data done [13:16:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70631,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:16:42]process_action_free close_receipt [13:16:42]json_value_free [13:16:42]json_value_free done [13:16:42]process_json_proto returns [13:16:42]Send response to host [13:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70631,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:16:42]free response buf [13:16:42]execute_script done [13:16:42]execute_script returns [13:16:42]free content buf [13:16:42]Sock 7.Close socket [13:16:42]Sock 7.Thread stoped [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:02]accept exits with 9 [13:17:02]New connection [13:17:02]New thread 3067034980 created [13:17:02]Thread 3066891620 joined [13:17:02]Waiting for new connection... [13:17:02] Sock 9.Parse request [13:17:02]Sock 9.Check first char [13:17:02]Sock 9.First char is OK [13:17:02]request: POST /json_proto HTTP/1.0 [13:17:02]Method: POST [13:17:02]URL: /json_proto [13:17:02]Method is POST - this is cgi request [13:17:02]url: /json_proto [13:17:02]query_string will be loaded in cgi processing [13:17:02]execute_cgi json_proto POST (null) [13:17:02]execute_cgi path=json_proto method=POST [13:17:02]POST find Content-Length [13:17:02]Host: 172.17.50.3:8080 [13:17:02]Content-Length: 678 [13:17:02]Content-Type: application/json [13:17:02] [13:17:02]POST finish read [13:17:02]Found Content-Length = 678 [13:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886409", "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" ] } } [13:17:02]execute_script... [13:17: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)2886409", "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" ] } } [13:17:02]POST & json_proto [13:17:02]process_json_proto [13:17:02]json parsed OK: [13:17:02]protocol is kg_v1.0 [13:17:02]action value=close_receipt [13:17:02]process_action close_receipt [13:17:02]cmd_close_receipt [13:17:02]MH_GetDate [13:17:02]Write to MH i2c: F0 00 00 48 08 3F [13:17:02]Write i2c OK [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 09 00 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: F0 09 00 48 08 00 4F F7 18 67 6B 98 1E 66 94 [13:17:02]GetLastDocTimeStamp 1729689400 [13:17:02]current date 1729689423 [13:17:02]FM_GetShiftState [13:17:02]SAM_PROTO_GetShiftState [13:17:02]wFMCommunicate request_size=4 [13:17:02]MH_SAM_APDU [13:17:02]CAPDU: 80 13 01 00 [13:17:02]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [13:17:02]Write i2c OK [13:17:02]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 49 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5B [13:17:02]RAPDU: 09 00 01 C3 3F 18 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]opened in 1729642435 [13:17:02]opened+sec_in_day 1729728835 [13:17:02]quantity*price = 50041 [13:17:02]sum+1 = 50042 [13:17:02]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 СНО: Общий режим Чек 148 23.10.2024 13:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70632 ФПД: 28463215080498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70632&fm=28463215080498&tin=02508201610067®Number=0000000000156251&sum=50000 [13:17:03]StoreToDocumentArchive [13:17:03]shift 196 fd 70632 [13:17:03]save to /storage/0196/doc_00070632 [13:17:03]save last doc name /storage/0196/doc_00070632 to /storage/kkm_last_doc_name [13:17:03]save OK [13:17:03]Clear old archive folders... [13:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:03]tlvbuf is 00129B70 [13:17:03]SAM_PROTO_ClearQueue [13:17:03]wFMCommunicate request_size=4 [13:17:03]MH_SAM_APDU [13:17:03]CAPDU: 80 09 00 00 [13:17:03]Write to MH i2c: E2 08 00 56 08 80 09 00 00 00 00 00 00 D0 [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:03]Read from MH i2c: E2 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [13:17:03]RAPDU: 90 00 [13:17:03]wFMCommunicate OK [13:17:03]SAM_PROTO_ClearQueue done [13:17:03]KKMCreateOFDPacket [13:17:03]OFDProtocolAddRootSTLVToBuf [13:17:03]FM_MakeSignedData [13:17:03]FM_MakeSignedData [13:17:03]SAM_PROTO_SignData [13:17:03]wFMCommunicate request_size=4 [13:17:03]MH_SAM_APDU [13:17:03]CAPDU: 80 0D 01 02 [13:17:03]Write to MH i2c: E2 08 00 57 08 80 0D 01 02 00 00 00 00 D8 [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:03]Read from MH i2c: E2 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [13:17:03]RAPDU: 90 00 [13:17:03]wFMCommunicate OK [13:17:03]wFMCommunicate request_size=255 [13:17:03]MH_SAM_APDU [13:17: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 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 94 00 00 00 F4 03 04 00 4F F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 19 [13:17:03]Write to MH i2c: E2 02 01 58 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 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 94 00 00 00 F4 03 04 00 4F F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 19 00 00 93 [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:03]Read from MH i2c: E2 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [13:17:03]RAPDU: 90 00 [13:17:03]wFMCommunicate OK [13:17:03]wFMCommunicate request_size=10 [13:17:03]MH_SAM_APDU [13:17:03]CAPDU: 80 0D 02 02 05 E3 1B D2 F4 32 [13:17:03]Write to MH i2c: E2 0D 00 59 08 80 0D 02 02 05 00 E3 1B D2 F4 32 00 00 DB [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:03]Read from MH i2c: E2 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [13:17:03]RAPDU: 90 00 [13:17:03]wFMCommunicate OK [13:17:03]wFMCommunicate request_size=4 [13:17:03]MH_SAM_APDU [13:17:03]CAPDU: 80 0D 03 02 [13:17:03]Write to MH i2c: E2 08 00 5A 08 80 0D 03 02 00 00 00 00 DD [13:17:03]Write i2c OK [13:17:03]MH_I2C_Read... [13:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:03]Read from MH i2c: E2 [13:17:03]MH_I2C_Read... [13:17:03]Read from MH i2c: E2 0B 00 [13:17:03]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 0B 00 5A 08 00 78 1B CE EC 58 DD AF 22 90 00 31 [13:17:04]RAPDU: 78 1B CE EC 58 DD AF 22 90 00 [13:17:04]wFMCommunicate OK [13:17:04]SAM_PROTO_SignData done [13:17:04]FM_MakeSignedData done [13:17:04]CreateOFDProtocolMessage [13:17:04]wFMCommunicate request_size=4 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 11 00 00 [13:17:04]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 17 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [13:17: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:17:04]wFMCommunicate OK [13:17:04]CreateOFDProtocolMessage done [13:17:04]OFDSenderStorePacket 70632 [13:17:04]StoreOFDPacket docnum=70632 [13:17: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 60 15 07 01 19 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 94 00 00 00 F4 03 04 00 4F F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 19 E3 1B D2 F4 32 78 1B CE EC 58 DD AF 22 [13:17:04]CheckFolder [13:17:04]dirname=/storage/ofd_packets [13:17:04]CheckFolder done [13:17:04]ProducePacketName [13:17:04]name=ofd_packets/00070632 [13:17:04]NVStorageSaveData ofd_packets/00070632 [13:17:04]File name is /storage/ofd_packets/00070632 [13:17:04]Write 301 bytes [13:17:04]NVStorageSaveData done [13:17:04]OFDSenderStorePacket done [13:17:04]KKMCreateOFDPacket done [13:17:04]NVStorageSaveData kkm_last_timestamp [13:17:04]File name is /storage/kkm_last_timestamp [13:17:04]Write 4 bytes [13:17:04]NVStorageSaveData done [13:17:04]ExternCall_PrintAddStr [13:17:04]wPrintStart [13:17:04]Write to MH i2c: 01 00 00 5C 08 64 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [13:17:04]RasterBufferAndPrint [13:17:04]line Счет N : (1)2886409 [13:17:04]line ИНН: 02508201610067 [13:17:04]line Контрольно-Кассовый Чек [13:17:04]line ПРОДАЖА [13:17:04]line ТРК (МРК, ГНК) : 22 [13:17:04]line Товар: 2710124130 [13:17:04]line Аи-92-К-5 [13:17:04]line 7.480 * 66.90 [13:17:04]line = 500.41 [13:17:04]line НДС 12% НСП 1% [13:17:04]line > о реализуемом товаре [13:17:04]line ОКРУГЛЕНИЕ: -0.41 [13:17:04]line ИТОГО: 500.00 [13:17:04]line Внесено: 500.00 [13:17:04]line СДАЧА: 0.00 [13:17:04]line НСП 1% : 4.43 [13:17:04]line НДС 12% : 53.14 [13:17:04]line Наличными: 500.00 [13:17:04]line Безнал.: 0.00 [13:17:04]line Место: АЗС № 85 "Партнер Нефть" [13:17:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:17:04]line СНО: Общий режим [13:17:04]line Чек 148 23.10.2024 13:17 [13:17:04]line Смена: 196 ФФД: 1.0 [13:17:04]line ЗНМ: 0300000167 [13:17:04]line РНМ: 0000000000156251 [13:17:04]line Версия ККМ: v1.0 [13:17:04]line ФМ: 0000000000963346 [13:17:04]line ФД: 70632 [13:17:04]line ФПД: 28463215080498 [13:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70632&fm=28463215080498&tin=02508201610067®Number=0000000000156251&sum=50000 [13:17:04]OFD Sender: Processing packet 70632 [packets to send 18, broken 17] [13:17:04]ProducePacketName [13:17:04]name=ofd_packets/00070632 [13:17:04]OFD Sender: To server: pG, [13:17:04]CommunicateWithHost lk.salyk.kg:30040 [13:17:04]ConnectInit lk.salyk.kg [13:17:04]written 0, free lines is 4095 [13:17:04]Connected sock=10 [13:17: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 60 15 07 01 19 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 94 00 00 00 F4 03 04 00 4F F7 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 19 E3 1B D2 F4 32 78 1B CE EC 58 DD AF 22 [13:17: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 DE FE 47 00 BF 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 E8 13 01 00 F4 03 04 00 ED A0 18 67 B6 04 01 00 00 7C 9D 42 A6 04 F8 5D 2B [13:17:04]CommunicateWithHost err = 0 [13:17:04]CheckOFDResponse [13:17:04]1017 (14) - 77093643461234 [13:17:04]1041 (16) - 0000000000963346 [13:17:04]1040 (4) - 70632 [13:17:04]1012 (4) - 23.10.2024 07:08 [13:17:04]1206 (1) - 0 [13:17:04]OFD Sender: Remove packet 70632 [13:17:04]ProducePacketName [13:17:04]name=ofd_packets/00070632 [13:17:04]NVStorageDeleteData [13:17:04]Write to MH i2c: 01 00 00 87 08 8F [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 E3 0C 85 [13:17:04]RasterBufferAndPrint [13:17:04]line [13:17:04]line [13:17:04]line [13:17:04]line [13:17:04]line [13:17:04]written 0, free lines is 3305 [13:17:04]MH_Cut [13:17:04]Write to MH i2c: D1 01 00 8E 08 01 68 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: D1 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: D1 01 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: D1 01 00 8E 08 00 67 [13:17:04]Write to MH i2c: 01 00 00 8F 08 97 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:05]OFD Sender: No OFD packet to send [13:17:05]*** Cut start [13:17:05]*** Partial cut [13:17:05]*** CUTSNS_PIN = 1 [13:17:05]*** CUTSNS_PIN = 0 [13:17:05]*** Brake cut motor [13:17:06]Read from MH i2c: 01 [13:17:06]MH_I2C_Read... [13:17:06]*** Stop cut motor [13:17:06]*** Cut end [13:17:06]Read from MH i2c: 01 07 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [13:17:06]process_action close_receipt done [13:17:06]requested_data is exist [13:17:06]produce_requested_data [13:17:06]requested_item fm.sn is exist - process it [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 11 00 00 [13:17:06]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 90 08 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:17: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:17:06]wFMCommunicate OK [13:17:06]requested_item fd.num is exist - process it [13:17:06]SAM_PROTO_GetFieldsCounters [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 13 00 00 [13:17:06]Write to MH i2c: E2 08 00 91 08 80 13 00 00 00 00 00 00 15 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 62 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 62 00 91 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 E8 13 01 00 0E 04 04 00 C4 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 AC [13:17: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 E8 13 01 00 0E 04 04 00 C4 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 [13:17:06]wFMCommunicate OK [13:17:06]SAM_PROTO_GetFieldsCounters done [13:17:06]requested_item shift.num is exist - process it [13:17:06]requested_item shift.opened is exist - process it [13:17:06]req_shift_opened [13:17:06]FM_GetShiftState [13:17:06]SAM_PROTO_GetShiftState [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 13 01 00 [13:17:06]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0E 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A4 [13:17:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:17:06]wFMCommunicate OK [13:17:06]SAM_PROTO_GetShiftState done [13:17:06]FM_GetShiftState done [13:17:06]req_shift_opened done [13:17:06]requested_item shift.open_date is exist - process it [13:17:06]req_shift_open_date [13:17:06]req_shift_open_date done [13:17:06]produce_requested_data done [13:17:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70632,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:17:06]process_action_free close_receipt [13:17:06]json_value_free [13:17:06]json_value_free done [13:17:06]process_json_proto returns [13:17:06]Send response to host [13:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70632,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:17:06]free response buf [13:17:06]execute_script done [13:17:06]execute_script returns [13:17:06]free content buf [13:17:06]Sock 9.Close socket [13:17:06]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:22:59]accept exits with 7 [13:22:59]New connection [13:22:59]New thread 3066891620 created [13:22:59]Thread 3067034980 joined [13:22:59]Waiting for new connection... [13:22:59] Sock 7.Parse request [13:22:59]Sock 7.Check first char [13:22:59]Sock 7.First char is OK [13:22:59]request: POST /json_proto HTTP/1.0 [13:22:59]Method: POST [13:22:59]URL: /json_proto [13:22:59]Method is POST - this is cgi request [13:22:59]url: /json_proto [13:22:59]query_string will be loaded in cgi processing [13:22:59]execute_cgi json_proto POST (null) [13:22:59]execute_cgi path=json_proto method=POST [13:22:59]POST find Content-Length [13:22:59]Host: 172.17.50.3:8080 [13:22:59]Content-Length: 678 [13:22:59]Content-Type: application/json [13:22:59] [13:22:59]POST finish read [13:22:59]Found Content-Length = 678 [13:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886410", "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" ] } } [13:22:59]execute_script... [13:22: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)2886410", "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" ] } } [13:22:59]POST & json_proto [13:22:59]process_json_proto [13:22:59]json parsed OK: [13:22:59]protocol is kg_v1.0 [13:22:59]action value=close_receipt [13:22:59]process_action close_receipt [13:22:59]cmd_close_receipt [13:22:59]MH_GetDate [13:22:59]Write to MH i2c: F0 00 00 93 08 8A [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 09 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 09 00 93 08 00 B4 F8 18 67 6B 98 1E 66 45 [13:22:59]GetLastDocTimeStamp 1729689423 [13:22:59]current date 1729689780 [13:22:59]FM_GetShiftState [13:22:59]SAM_PROTO_GetShiftState [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 13 01 00 [13:22:59]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A6 [13:22:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:22:59]wFMCommunicate OK [13:22:59]SAM_PROTO_GetShiftState done [13:22:59]FM_GetShiftState done [13:22:59]opened in 1729642435 [13:22:59]opened+sec_in_day 1729728835 [13:22:59]quantity*price = 50041 [13:22:59]sum+1 = 50042 [13:22: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 СНО: Общий режим Чек 149 23.10.2024 13:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70633 ФПД: 36442910114615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70633&fm=36442910114615&tin=02508201610067®Number=0000000000156251&sum=50000 [13:23:00]StoreToDocumentArchive [13:23:00]shift 196 fd 70633 [13:23:00]save to /storage/0196/doc_00070633 [13:23:00]save last doc name /storage/0196/doc_00070633 to /storage/kkm_last_doc_name [13:23:00]save OK [13:23:00]Clear old archive folders... [13:23:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:00]tlvbuf is 00051440 [13:23:00]SAM_PROTO_ClearQueue [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 09 00 00 [13:23:00]Write to MH i2c: E2 08 00 A1 08 80 09 00 00 00 00 00 00 1B [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [13:23:00]RAPDU: 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_ClearQueue done [13:23:00]KKMCreateOFDPacket [13:23:00]OFDProtocolAddRootSTLVToBuf [13:23:00]FM_MakeSignedData [13:23:00]FM_MakeSignedData [13:23:00]SAM_PROTO_SignData [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 0D 01 02 [13:23:00]Write to MH i2c: E2 08 00 A2 08 80 0D 01 02 00 00 00 00 23 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [13:23:00]RAPDU: 90 00 [13:23:00]wFMCommunicate OK [13:23:00]wFMCommunicate request_size=255 [13:23:00]MH_SAM_APDU [13:23: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 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 95 00 00 00 F4 03 04 00 B5 F8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 [13:23:01]Write to MH i2c: E2 02 01 A3 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 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 95 00 00 00 F4 03 04 00 B5 F8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 00 00 4F [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]wFMCommunicate request_size=10 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 02 02 05 25 06 B6 43 37 [13:23:01]Write to MH i2c: E2 0D 00 A4 08 80 0D 02 02 05 00 25 06 B6 43 37 00 00 8B [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 03 02 [13:23:01]Write to MH i2c: E2 08 00 A5 08 80 0D 03 02 00 00 00 00 28 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0B 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0B 00 A5 08 00 6D 00 EA 3B BD FB 14 4A 90 00 D1 [13:23:01]RAPDU: 6D 00 EA 3B BD FB 14 4A 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_SignData done [13:23:01]FM_MakeSignedData done [13:23:01]CreateOFDProtocolMessage [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 11 00 00 [13:23:01]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 17 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [13: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 [13:23:01]wFMCommunicate OK [13:23:01]CreateOFDProtocolMessage done [13:23:01]OFDSenderStorePacket 70633 [13:23:01]StoreOFDPacket docnum=70633 [13:23: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 94 06 07 01 74 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 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 95 00 00 00 F4 03 04 00 B5 F8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 25 06 B6 43 37 6D 00 EA 3B BD FB 14 4A [13:23:01]CheckFolder [13:23:01]dirname=/storage/ofd_packets [13:23:01]CheckFolder done [13:23:01]ProducePacketName [13:23:01]name=ofd_packets/00070633 [13:23:01]NVStorageSaveData ofd_packets/00070633 [13:23:01]File name is /storage/ofd_packets/00070633 [13:23:01]Write 301 bytes [13:23:01]NVStorageSaveData done [13:23:01]OFDSenderStorePacket done [13:23:01]KKMCreateOFDPacket done [13:23:01]NVStorageSaveData kkm_last_timestamp [13:23:01]File name is /storage/kkm_last_timestamp [13:23:01]Write 4 bytes [13:23:01]NVStorageSaveData done [13:23:01]ExternCall_PrintAddStr [13:23:01]wPrintStart [13:23:01]Write to MH i2c: 01 00 00 A7 08 AF [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [13:23:01]RasterBufferAndPrint [13:23:01]line Счет N : (1)2886410 [13:23:01]line ИНН: 02508201610067 [13:23:01]line Контрольно-Кассовый Чек [13:23:01]line ПРОДАЖА [13:23:01]line ТРК (МРК, ГНК) : 32 [13:23:01]line Товар: 2710124130 [13:23:01]line Аи-92-К-5 [13:23:01]line 7.480 * 66.90 [13:23:01]line = 500.41 [13:23:01]line НДС 12% НСП 1% [13:23:01]line > о реализуемом товаре [13:23:01]line ОКРУГЛЕНИЕ: -0.41 [13:23:01]line ИТОГО: 500.00 [13:23:01]line Внесено: 500.00 [13:23:01]line СДАЧА: 0.00 [13:23:01]line НСП 1% : 4.43 [13:23:01]line НДС 12% : 53.14 [13:23:01]line Наличными: 500.00 [13:23:01]line Безнал.: 0.00 [13:23:01]line Место: АЗС № 85 "Партнер Нефть" [13:23:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:23:01]line СНО: Общий режим [13:23:01]line Чек 149 23.10.2024 13:23 [13:23:01]line Смена: 196 ФФД: 1.0 [13:23:01]line ЗНМ: 0300000167 [13:23:01]line РНМ: 0000000000156251 [13:23:01]line Версия ККМ: v1.0 [13:23:01]line ФМ: 0000000000963346 [13:23:01]line ФД: 70633 [13:23:01]line ФПД: 36442910114615 [13:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70633&fm=36442910114615&tin=02508201610067®Number=0000000000156251&sum=50000 [13:23:01]OFD Sender: Processing packet 70633 [packets to send 18, broken 17] [13:23:01]ProducePacketName [13:23:01]name=ofd_packets/00070633 [13:23:01]OFD Sender: To server: pG, [13:23:01]CommunicateWithHost lk.salyk.kg:30040 [13:23:01]ConnectInit lk.salyk.kg [13:23:01]written 0, free lines is 4095 [13:23:01]Connected sock=10 [13:23: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 94 06 07 01 74 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 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 95 00 00 00 F4 03 04 00 B5 F8 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 21 25 06 B6 43 37 6D 00 EA 3B BD FB 14 4A [13:23: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 9A 01 47 00 72 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 E9 13 01 00 F4 03 04 00 52 A2 18 67 B6 04 01 00 00 99 19 5D 8E 07 34 03 FF [13:23:02]CommunicateWithHost err = 0 [13:23:02]CheckOFDResponse [13:23:02]1017 (14) - 77093643461234 [13:23:02]1041 (16) - 0000000000963346 [13:23:02]1040 (4) - 70633 [13:23:02]1012 (4) - 23.10.2024 07:14 [13:23:02]1206 (1) - 0 [13:23:02]OFD Sender: Remove packet 70633 [13:23:02]ProducePacketName [13:23:02]name=ofd_packets/00070633 [13:23:02]NVStorageDeleteData [13:23:02]Write to MH i2c: 01 00 00 D2 08 DA [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 D2 08 00 00 00 00 00 E4 0C D1 [13:23:02]RasterBufferAndPrint [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]written 0, free lines is 3306 [13:23:02]MH_Cut [13:23:02]Write to MH i2c: D1 01 00 D9 08 01 B3 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 01 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 01 00 D9 08 00 B2 [13:23:02]Write to MH i2c: 01 00 00 DA 08 E2 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]OFD Sender: No OFD packet to send [13:23:02]*** Cut start [13:23:02]*** Partial cut [13:23:02]*** CUTSNS_PIN = 1 [13:23:02]*** CUTSNS_PIN = 0 [13:23:03]*** Brake cut motor [13:23:03]Read from MH i2c: 01 [13:23:03]MH_I2C_Read... [13:23:03]*** Stop cut motor [13:23:03]*** Cut end [13:23:03]Read from MH i2c: 01 07 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 FF 0F F7 [13:23:03]process_action close_receipt done [13:23:03]requested_data is exist [13:23:03]produce_requested_data [13:23:03]requested_item fm.sn is exist - process it [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 11 00 00 [13:23:03]Write to MH i2c: E2 08 00 DB 08 80 11 00 00 00 00 00 00 5D [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 DB 08 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:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:23:03]wFMCommunicate OK [13:23:03]requested_item fd.num is exist - process it [13:23:03]SAM_PROTO_GetFieldsCounters [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 00 00 [13:23:03]Write to MH i2c: E2 08 00 DC 08 80 13 00 00 00 00 00 00 60 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 62 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 62 00 DC 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 E9 13 01 00 0E 04 04 00 C4 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 FB [13:23: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 E9 13 01 00 0E 04 04 00 C4 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 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_GetFieldsCounters done [13:23:03]requested_item shift.num is exist - process it [13:23:03]requested_item shift.opened is exist - process it [13:23:03]req_shift_opened [13:23:03]FM_GetShiftState [13:23:03]SAM_PROTO_GetShiftState [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 01 00 [13:23:03]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EF [13:23:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_GetShiftState done [13:23:03]FM_GetShiftState done [13:23:03]req_shift_opened done [13:23:03]requested_item shift.open_date is exist - process it [13:23:03]req_shift_open_date [13:23:03]req_shift_open_date done [13:23:03]produce_requested_data done [13:23:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70633,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:23:03]process_action_free close_receipt [13:23:03]json_value_free [13:23:03]json_value_free done [13:23:03]process_json_proto returns [13:23:03]Send response to host [13:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70633,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:23:03]free response buf [13:23:03]execute_script done [13:23:03]execute_script returns [13:23:03]free content buf [13:23:03]Sock 7.Close socket [13:23:03]Sock 7.Thread stoped [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:03]accept exits with 9 [13:27:03]New connection [13:27:03]New thread 3067034980 created [13:27:03]Thread 3066891620 joined [13:27:03]Waiting for new connection... [13:27:03] Sock 9.Parse request [13:27:03]Sock 9.Check first char [13:27:03]Sock 9.First char is OK [13:27:03]request: POST /json_proto HTTP/1.0 [13:27:03]Method: POST [13:27:03]URL: /json_proto [13:27:03]Method is POST - this is cgi request [13:27:03]url: /json_proto [13:27:03]query_string will be loaded in cgi processing [13:27:03]execute_cgi json_proto POST (null) [13:27:03]execute_cgi path=json_proto method=POST [13:27:03]POST find Content-Length [13:27:03]Host: 172.17.50.3:8080 [13:27:03]Content-Length: 683 [13:27:03]Content-Type: application/json [13:27:03] [13:27:03]POST finish read [13:27:03]Found Content-Length = 683 [13:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886412", "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:27:03]execute_script... [13:27: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)2886412", "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:27:03]POST & json_proto [13:27:03]process_json_proto [13:27:03]json parsed OK: [13:27:03]protocol is kg_v1.0 [13:27:03]action value=close_receipt [13:27:03]process_action close_receipt [13:27:03]cmd_close_receipt [13:27:03]MH_GetDate [13:27:03]Write to MH i2c: F0 00 00 DE 08 D5 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 09 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 09 00 DE 08 00 A8 F9 18 67 6B 98 1E 66 85 [13:27:03]GetLastDocTimeStamp 1729689781 [13:27:03]current date 1729690024 [13:27:03]FM_GetShiftState [13:27:03]SAM_PROTO_GetShiftState [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 13 01 00 [13:27:03]Write to MH i2c: E2 08 00 DF 08 80 13 01 00 00 00 00 00 64 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 0E 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 0E 00 DF 08 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F1 [13:27:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:27:03]wFMCommunicate OK [13:27:03]SAM_PROTO_GetShiftState done [13:27:03]FM_GetShiftState done [13:27:03]opened in 1729642435 [13:27:03]opened+sec_in_day 1729728835 [13:27:03]quantity*price = 100015 [13:27:03]sum+1 = 100017 [13:27: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 СНО: Общий режим Чек 150 23.10.2024 13:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70634 ФПД: 209818447755066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70634&fm=209818447755066&tin=02508201610067®Number=0000000000156251&sum=100000 [13:27:04]StoreToDocumentArchive [13:27:04]shift 196 fd 70634 [13:27:04]save to /storage/0196/doc_00070634 [13:27:04]save last doc name /storage/0196/doc_00070634 to /storage/kkm_last_doc_name [13:27:04]save OK [13:27:04]Clear old archive folders... [13:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:04]tlvbuf is 0013A130 [13:27:04]SAM_PROTO_ClearQueue [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 09 00 00 [13:27:04]Write to MH i2c: E2 08 00 EC 08 80 09 00 00 00 00 00 00 66 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_ClearQueue done [13:27:04]KKMCreateOFDPacket [13:27:04]OFDProtocolAddRootSTLVToBuf [13:27:04]FM_MakeSignedData [13:27:04]FM_MakeSignedData [13:27:04]SAM_PROTO_SignData [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 01 02 [13:27:04]Write to MH i2c: E2 08 00 ED 08 80 0D 01 02 00 00 00 00 6E [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=255 [13:27:04]MH_SAM_APDU [13:27: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 96 00 00 00 F4 03 04 00 A8 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE [13:27:04]Write to MH i2c: E2 02 01 EE 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 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 96 00 00 00 F4 03 04 00 A8 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE 00 00 27 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=10 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 02 02 05 D4 2A 0B B7 3A [13:27:04]Write to MH i2c: E2 0D 00 EF 08 80 0D 02 02 05 00 D4 2A 0B B7 3A 00 00 75 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 03 02 [13:27:04]Write to MH i2c: E2 08 00 F0 08 80 0D 03 02 00 00 00 00 73 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 F0 08 00 08 11 36 65 FE 9D D9 6B 90 00 07 [13:27:04]RAPDU: 08 11 36 65 FE 9D D9 6B 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_SignData done [13:27:04]FM_MakeSignedData done [13:27:04]CreateOFDProtocolMessage [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 F1 08 80 11 00 00 00 00 00 00 73 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 F1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [13:27: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:27:04]wFMCommunicate OK [13:27:04]CreateOFDProtocolMessage done [13:27:04]OFDSenderStorePacket 70634 [13:27:04]StoreOFDPacket docnum=70634 [13:27: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 9A D0 07 01 1B 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 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 96 00 00 00 F4 03 04 00 A8 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE D4 2A 0B B7 3A 08 11 36 65 FE 9D D9 6B [13:27:04]CheckFolder [13:27:04]dirname=/storage/ofd_packets [13:27:04]CheckFolder done [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00070634 [13:27:04]NVStorageSaveData ofd_packets/00070634 [13:27:04]File name is /storage/ofd_packets/00070634 [13:27:04]Write 301 bytes [13:27:04]NVStorageSaveData done [13:27:04]OFDSenderStorePacket done [13:27:04]KKMCreateOFDPacket done [13:27:04]NVStorageSaveData kkm_last_timestamp [13:27:04]File name is /storage/kkm_last_timestamp [13:27:04]Write 4 bytes [13:27:04]NVStorageSaveData done [13:27:04]ExternCall_PrintAddStr [13:27:04]wPrintStart [13:27:04]Write to MH i2c: 01 00 00 F2 08 FA [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 FF 0F 0F [13:27:04]RasterBufferAndPrint [13:27:04]line Счет N : (1)2886412 [13:27:04]line ИНН: 02508201610067 [13:27:04]line Контрольно-Кассовый Чек [13:27:04]line ПРОДАЖА [13:27:04]line ТРК (МРК, ГНК) : 42 [13:27:04]line Товар: 2710124130 [13:27:04]line Аи-92-К-5 [13:27:04]line 14.950 * 66.90 [13:27:04]line = 1000.16 [13:27:04]line НДС 12% НСП 1% [13:27:04]line > о реализуемом товаре [13:27:04]line ОКРУГЛЕНИЕ: -0.16 [13:27:04]line ИТОГО: 1000.00 [13:27:04]line Внесено: 1000.00 [13:27:04]line СДАЧА: 0.00 [13:27:04]line НСП 1% : 8.85 [13:27:04]line НДС 12% : 106.21 [13:27:04]line Наличными: 1000.00 [13:27:04]line Безнал.: 0.00 [13:27:04]line Место: АЗС № 85 "Партнер Нефть" [13:27:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:27:04]line СНО: Общий режим [13:27:04]line Чек 150 23.10.2024 13:27 [13:27:04]line Смена: 196 ФФД: 1.0 [13:27:04]line ЗНМ: 0300000167 [13:27:04]line РНМ: 0000000000156251 [13:27:04]line Версия ККМ: v1.0 [13:27:04]line ФМ: 0000000000963346 [13:27:04]line ФД: 70634 [13:27:04]line ФПД: 209818447755066 [13:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132704&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70634&fm=209818447755066&tin=02508201610067®Number=0000000000156251&sum=100000 [13:27:05]OFD Sender: Processing packet 70634 [packets to send 18, broken 17] [13:27:05]ProducePacketName [13:27:05]name=ofd_packets/00070634 [13:27:05]OFD Sender: To server: pG, [13:27:05]CommunicateWithHost lk.salyk.kg:30040 [13:27:05]ConnectInit lk.salyk.kg [13:27:05]written 0, free lines is 4095 [13:27:05]Connected sock=10 [13:27: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 9A D0 07 01 1B 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 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 96 00 00 00 F4 03 04 00 A8 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE D4 2A 0B B7 3A 08 11 36 65 FE 9D D9 6B [13:27: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 FD AA 47 00 0F 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 EA 13 01 00 F4 03 04 00 46 A3 18 67 B6 04 01 00 00 7F 42 EC 82 B3 DD EB 4E [13:27:05]CommunicateWithHost err = 0 [13:27:05]CheckOFDResponse [13:27:05]1017 (14) - 77093643461234 [13:27:05]1041 (16) - 0000000000963346 [13:27:05]1040 (4) - 70634 [13:27:05]1012 (4) - 23.10.2024 07:18 [13:27:05]1206 (1) - 0 [13:27:05]OFD Sender: Remove packet 70634 [13:27:05]ProducePacketName [13:27:05]name=ofd_packets/00070634 [13:27:05]NVStorageDeleteData [13:27:05]Write to MH i2c: 01 00 00 1D 09 26 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 F2 0C 2B [13:27:05]RasterBufferAndPrint [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]written 0, free lines is 3320 [13:27:05]MH_Cut [13:27:05]Write to MH i2c: D1 01 00 24 09 01 FF [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 24 09 00 FE [13:27:05]Write to MH i2c: 01 00 00 25 09 2E [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]OFD Sender: No OFD packet to send [13:27:06]*** Cut start [13:27:06]*** Partial cut [13:27:06]*** CUTSNS_PIN = 1 [13:27:06]*** CUTSNS_PIN = 0 [13:27:06]*** Brake cut motor [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]*** Stop cut motor [13:27:06]*** Cut end [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [13:27:06]process_action close_receipt done [13:27:06]requested_data is exist [13:27:06]produce_requested_data [13:27:06]requested_item fm.sn is exist - process it [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 11 00 00 [13:27:06]Write to MH i2c: E2 08 00 26 09 80 11 00 00 00 00 00 00 A9 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 26 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [13:27: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:27:06]wFMCommunicate OK [13:27:06]requested_item fd.num is exist - process it [13:27:06]SAM_PROTO_GetFieldsCounters [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 00 00 [13:27:06]Write to MH i2c: E2 08 00 27 09 80 13 00 00 00 00 00 00 AC [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 62 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 62 00 27 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 EA 13 01 00 0E 04 04 00 C4 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 4B [13:27: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 EA 13 01 00 0E 04 04 00 C4 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 [13:27:07]wFMCommunicate OK [13:27:07]SAM_PROTO_GetFieldsCounters done [13:27:07]requested_item shift.num is exist - process it [13:27:07]requested_item shift.opened is exist - process it [13:27:07]req_shift_opened [13:27:07]FM_GetShiftState [13:27:07]SAM_PROTO_GetShiftState [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 13 01 00 [13:27:07]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0E 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3B [13:27:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:27:07]wFMCommunicate OK [13:27:07]SAM_PROTO_GetShiftState done [13:27:07]FM_GetShiftState done [13:27:07]req_shift_opened done [13:27:07]requested_item shift.open_date is exist - process it [13:27:07]req_shift_open_date [13:27:07]req_shift_open_date done [13:27:07]produce_requested_data done [13:27:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70634,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:27:07]process_action_free close_receipt [13:27:07]json_value_free [13:27:07]json_value_free done [13:27:07]process_json_proto returns [13:27:07]Send response to host [13:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70634,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:27:07]free response buf [13:27:07]execute_script done [13:27:07]execute_script returns [13:27:07]free content buf [13:27:07]Sock 9.Close socket [13:27:07]Sock 9.Thread stoped [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:49]accept exits with 7 [13:27:49]New connection [13:27:49]New thread 3066891620 created [13:27:49]Thread 3067034980 joined [13:27:49]Waiting for new connection... [13:27:49] Sock 7.Parse request [13:27:49]Sock 7.Check first char [13:27:49]Sock 7.First char is OK [13:27:49]request: POST /json_proto HTTP/1.0 [13:27:49]Method: POST [13:27:49]URL: /json_proto [13:27:49]Method is POST - this is cgi request [13:27:49]url: /json_proto [13:27:49]query_string will be loaded in cgi processing [13:27:49]execute_cgi json_proto POST (null) [13:27:49]execute_cgi path=json_proto method=POST [13:27:49]POST find Content-Length [13:27:49]Host: 172.17.50.3:8080 [13:27:49]Content-Length: 689 [13:27:49]Content-Type: application/json [13:27:49] [13:27:49]POST finish read [13:27:49]Found Content-Length = 689 [13:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886411", "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" ] } } [13:27:49]execute_script... [13:27: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)2886411", "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" ] } } [13:27:49]POST & json_proto [13:27:49]process_json_proto [13:27:49]json parsed OK: [13:27:49]protocol is kg_v1.0 [13:27:49]action value=close_receipt [13:27:49]process_action close_receipt [13:27:49]cmd_close_receipt [13:27:49]MH_GetDate [13:27:49]Write to MH i2c: F0 00 00 29 09 21 [13:27:49]Write i2c OK [13:27:49]MH_I2C_Read... [13:27:49]Read from MH i2c: F0 [13:27:49]MH_I2C_Read... [13:27:49]Read from MH i2c: F0 09 00 [13:27:49]MH_I2C_Read... [13:27:49]Read from MH i2c: F0 09 00 29 09 00 D6 F9 18 67 6B 98 1E 66 FF [13:27:49]GetLastDocTimeStamp 1729690024 [13:27:49]current date 1729690070 [13:27:49]FM_GetShiftState [13:27:49]SAM_PROTO_GetShiftState [13:27:49]wFMCommunicate request_size=4 [13:27:49]MH_SAM_APDU [13:27:49]CAPDU: 80 13 01 00 [13:27:49]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [13:27:49]Write i2c OK [13:27:49]MH_I2C_Read... [13:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:49]Read from MH i2c: E2 [13:27:49]MH_I2C_Read... [13:27:49]Read from MH i2c: E2 0E 00 [13:27:49]MH_I2C_Read... [13:27:49]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3D [13:27:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:27:49]wFMCommunicate OK [13:27:49]SAM_PROTO_GetShiftState done [13:27:49]FM_GetShiftState done [13:27:49]opened in 1729642435 [13:27:49]opened+sec_in_day 1729728835 [13:27:49]quantity*price = 300076 [13:27:49]sum+1 = 300077 [13:27:49]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 СНО: Общий режим Чек 151 23.10.2024 13:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70635 ФПД: 116462721508960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132750&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70635&fm=116462721508960&tin=02508201610067®Number=0000000000156251&sum=300000 [13:27:50]StoreToDocumentArchive [13:27:50]shift 196 fd 70635 [13:27:50]save to /storage/0196/doc_00070635 [13:27:50]save last doc name /storage/0196/doc_00070635 to /storage/kkm_last_doc_name [13:27:50]save OK [13:27:50]Clear old archive folders... [13:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:27:50]tlvbuf is 0014FFB0 [13:27:50]SAM_PROTO_ClearQueue [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 09 00 00 [13:27:50]Write to MH i2c: E2 08 00 37 09 80 09 00 00 00 00 00 00 B2 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [13:27:50]RAPDU: 90 00 [13:27:50]wFMCommunicate OK [13:27:50]SAM_PROTO_ClearQueue done [13:27:50]KKMCreateOFDPacket [13:27:50]OFDProtocolAddRootSTLVToBuf [13:27:50]FM_MakeSignedData [13:27:50]FM_MakeSignedData [13:27:50]SAM_PROTO_SignData [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 0D 01 02 [13:27:50]Write to MH i2c: E2 08 00 38 09 80 0D 01 02 00 00 00 00 BA [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [13:27:50]RAPDU: 90 00 [13:27:50]wFMCommunicate OK [13:27:50]wFMCommunicate request_size=255 [13:27:50]MH_SAM_APDU [13:27:50]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 97 00 00 00 F4 03 04 00 D6 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [13:27:50]Write to MH i2c: E2 02 01 39 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 97 00 00 00 F4 03 04 00 D6 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 96 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [13:27:50]RAPDU: 90 00 [13:27:50]wFMCommunicate OK [13:27:50]wFMCommunicate request_size=16 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 69 EC 17 25 26 60 [13:27:50]Write to MH i2c: E2 13 00 3A 09 80 0D 02 02 0B 00 00 35 04 06 00 69 EC 17 25 26 60 00 00 29 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [13:27:50]RAPDU: 90 00 [13:27:50]wFMCommunicate OK [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 0D 03 02 [13:27:50]Write to MH i2c: E2 08 00 3B 09 80 0D 03 02 00 00 00 00 BF [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 0B 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 0B 00 3B 09 00 AD 1E 2C 59 42 CC 4D C6 90 00 31 [13:27:50]RAPDU: AD 1E 2C 59 42 CC 4D C6 90 00 [13:27:50]wFMCommunicate OK [13:27:50]SAM_PROTO_SignData done [13:27:50]FM_MakeSignedData done [13:27:50]CreateOFDProtocolMessage [13:27:50]wFMCommunicate request_size=4 [13:27:50]MH_SAM_APDU [13:27:50]CAPDU: 80 11 00 00 [13:27:50]Write to MH i2c: E2 08 00 3C 09 80 11 00 00 00 00 00 00 BF [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:50]Read from MH i2c: E2 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 17 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: E2 17 00 3C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [13: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 [13:27:50]wFMCommunicate OK [13:27:50]CreateOFDProtocolMessage done [13:27:50]OFDSenderStorePacket 70635 [13:27:50]StoreOFDPacket docnum=70635 [13: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 15 01 00 00 52 BF 0D 01 75 2D 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 97 00 00 00 F4 03 04 00 D6 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 69 EC 17 25 26 60 AD 1E 2C 59 42 CC 4D C6 [13:27:50]CheckFolder [13:27:50]dirname=/storage/ofd_packets [13:27:50]CheckFolder done [13:27:50]ProducePacketName [13:27:50]name=ofd_packets/00070635 [13:27:50]NVStorageSaveData ofd_packets/00070635 [13:27:50]File name is /storage/ofd_packets/00070635 [13:27:50]Write 307 bytes [13:27:50]NVStorageSaveData done [13:27:50]OFDSenderStorePacket done [13:27:50]KKMCreateOFDPacket done [13:27:50]NVStorageSaveData kkm_last_timestamp [13:27:50]File name is /storage/kkm_last_timestamp [13:27:50]Write 4 bytes [13:27:50]NVStorageSaveData done [13:27:50]ExternCall_PrintAddStr [13:27:50]wPrintStart [13:27:50]Write to MH i2c: 01 00 00 3D 09 46 [13:27:50]Write i2c OK [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: 01 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: 01 07 00 [13:27:50]MH_I2C_Read... [13:27:50]Read from MH i2c: 01 07 00 3D 09 00 00 00 00 00 FF 0F 5B [13:27:50]RasterBufferAndPrint [13:27:50]line Счет N : (1)2886411 [13:27:50]line ИНН: 02508201610067 [13:27:50]line Контрольно-Кассовый Чек [13:27:50]line ПРОДАЖА [13:27:50]line ТРК (МРК, ГНК) : 31 [13:27:50]line Товар: 2710194240 [13:27:50]line D-ENERGY Дт-К-2 [13:27:50]line 38.870 * 77.20 [13:27:50]line = 3000.76 [13:27:50]line НДС 12% НСП 1% [13:27:50]line > о реализуемом товаре [13:27:50]line ОКРУГЛЕНИЕ: -0.76 [13:27:50]line ИТОГО: 3000.00 [13:27:50]line Внесено: 3000.00 [13:27:50]line СДАЧА: 0.00 [13:27:50]line НСП 1% : 26.55 [13:27:50]line НДС 12% : 318.66 [13:27:50]line Наличными: 3000.00 [13:27:50]line Безнал.: 0.00 [13:27:50]line Место: АЗС № 85 "Партнер Нефть" [13:27:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:27:50]line СНО: Общий режим [13:27:50]line Чек 151 23.10.2024 13:27 [13:27:50]line Смена: 196 ФФД: 1.0 [13:27:50]line ЗНМ: 0300000167 [13:27:50]line РНМ: 0000000000156251 [13:27:50]line Версия ККМ: v1.0 [13:27:50]line ФМ: 0000000000963346 [13:27:50]line ФД: 70635 [13:27:50]line ФПД: 116462721508960 [13:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132750&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70635&fm=116462721508960&tin=02508201610067®Number=0000000000156251&sum=300000 [13:27:51]OFD Sender: Processing packet 70635 [packets to send 18, broken 17] [13:27:51]ProducePacketName [13:27:51]name=ofd_packets/00070635 [13:27:51]OFD Sender: To server: pG, [13:27:51]CommunicateWithHost lk.salyk.kg:30040 [13:27:51]ConnectInit lk.salyk.kg [13:27:51]written 0, free lines is 4095 [13:27:51]Connected sock=10 [13: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 15 01 00 00 52 BF 0D 01 75 2D 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 97 00 00 00 F4 03 04 00 D6 F9 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 69 EC 17 25 26 60 AD 1E 2C 59 42 CC 4D C6 [13: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 87 20 47 00 2A 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 EB 13 01 00 F4 03 04 00 74 A3 18 67 B6 04 01 00 00 65 C6 66 B2 B2 9F BA 99 [13:27:51]CommunicateWithHost err = 0 [13:27:51]CheckOFDResponse [13:27:51]1017 (14) - 77093643461234 [13:27:51]1041 (16) - 0000000000963346 [13:27:51]1040 (4) - 70635 [13:27:51]1012 (4) - 23.10.2024 07:19 [13:27:51]1206 (1) - 0 [13:27:51]OFD Sender: Remove packet 70635 [13:27:51]ProducePacketName [13:27:51]name=ofd_packets/00070635 [13:27:51]NVStorageDeleteData [13:27:51]Write to MH i2c: 01 00 00 68 09 71 [13:27:51]Write i2c OK [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: 01 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: 01 07 00 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 04 0D 89 [13:27:51]RasterBufferAndPrint [13:27:51]line [13:27:51]line [13:27:51]line [13:27:51]line [13:27:51]line [13:27:51]written 0, free lines is 3338 [13:27:51]MH_Cut [13:27:51]Write to MH i2c: D1 01 00 6F 09 01 4A [13:27:51]Write i2c OK [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: D1 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: D1 01 00 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: D1 01 00 6F 09 00 49 [13:27:51]Write to MH i2c: 01 00 00 70 09 79 [13:27:51]Write i2c OK [13:27:51]MH_I2C_Read... [13:27:52]OFD Sender: No OFD packet to send [13:27:52]*** Cut start [13:27:52]*** Partial cut [13:27:52]*** CUTSNS_PIN = 1 [13:27:52]*** CUTSNS_PIN = 0 [13:27:52]*** Brake cut motor [13:27:53]Read from MH i2c: 01 [13:27:53]MH_I2C_Read... [13:27:53]*** Stop cut motor [13:27:53]*** Cut end [13:27:53]Read from MH i2c: 01 07 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [13:27:53]process_action close_receipt done [13:27:53]requested_data is exist [13:27:53]produce_requested_data [13:27:53]requested_item fm.sn is exist - process it [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 11 00 00 [13:27:53]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 17 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 17 00 71 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [13:27: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:27:53]wFMCommunicate OK [13:27:53]requested_item fd.num is exist - process it [13:27:53]SAM_PROTO_GetFieldsCounters [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 13 00 00 [13:27:53]Write to MH i2c: E2 08 00 72 09 80 13 00 00 00 00 00 00 F7 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 62 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 62 00 72 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 EB 13 01 00 0E 04 04 00 C4 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 9A [13:27: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 EB 13 01 00 0E 04 04 00 C4 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 [13:27:53]wFMCommunicate OK [13:27:53]SAM_PROTO_GetFieldsCounters done [13:27:53]requested_item shift.num is exist - process it [13:27:53]requested_item shift.opened is exist - process it [13:27:53]req_shift_opened [13:27:53]FM_GetShiftState [13:27:53]SAM_PROTO_GetShiftState [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 13 01 00 [13:27:53]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 0E 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 86 [13:27:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:27:53]wFMCommunicate OK [13:27:53]SAM_PROTO_GetShiftState done [13:27:53]FM_GetShiftState done [13:27:53]req_shift_opened done [13:27:53]requested_item shift.open_date is exist - process it [13:27:53]req_shift_open_date [13:27:53]req_shift_open_date done [13:27:53]produce_requested_data done [13:27:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70635,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:27:53]process_action_free close_receipt [13:27:53]json_value_free [13:27:53]json_value_free done [13:27:53]process_json_proto returns [13:27:53]Send response to host [13:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70635,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:27:53]free response buf [13:27:53]execute_script done [13:27:53]execute_script returns [13:27:53]free content buf [13:27:53]Sock 7.Close socket [13:27:53]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:15]accept exits with 9 [13:33:15]New connection [13:33:15]New thread 3067034980 created [13:33:15]Thread 3066891620 joined [13:33:15]Waiting for new connection... [13:33:15] Sock 9.Parse request [13:33:15]Sock 9.Check first char [13:33:15]Sock 9.First char is OK [13:33:15]request: POST /json_proto HTTP/1.0 [13:33:15]Method: POST [13:33:15]URL: /json_proto [13:33:15]Method is POST - this is cgi request [13:33:15]url: /json_proto [13:33:15]query_string will be loaded in cgi processing [13:33:15]execute_cgi json_proto POST (null) [13:33:15]execute_cgi path=json_proto method=POST [13:33:15]POST find Content-Length [13:33:15]Host: 172.17.50.3:8080 [13:33:15]Content-Length: 678 [13:33:15]Content-Type: application/json [13:33:15] [13:33:15]POST finish read [13:33:15]Found Content-Length = 678 [13:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886413", "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" ] } } [13:33:15]execute_script... [13:33: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)2886413", "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" ] } } [13:33:15]POST & json_proto [13:33:15]process_json_proto [13:33:15]json parsed OK: [13:33:15]protocol is kg_v1.0 [13:33:15]action value=close_receipt [13:33:15]process_action close_receipt [13:33:15]cmd_close_receipt [13:33:15]MH_GetDate [13:33:15]Write to MH i2c: F0 00 00 74 09 6C [13:33:15]Write i2c OK [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: F0 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: F0 09 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: F0 09 00 74 09 00 1C FB 18 67 6B 98 1E 66 92 [13:33:15]GetLastDocTimeStamp 1729690070 [13:33:15]current date 1729690396 [13:33:15]FM_GetShiftState [13:33:15]SAM_PROTO_GetShiftState [13:33:15]wFMCommunicate request_size=4 [13:33:15]MH_SAM_APDU [13:33:15]CAPDU: 80 13 01 00 [13:33:15]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [13:33:15]Write i2c OK [13:33:15]MH_I2C_Read... [13:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:15]Read from MH i2c: E2 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 0E 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 88 [13:33:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:33:15]wFMCommunicate OK [13:33:15]SAM_PROTO_GetShiftState done [13:33:15]FM_GetShiftState done [13:33:15]opened in 1729642435 [13:33:15]opened+sec_in_day 1729728835 [13:33:15]quantity*price = 40006 [13:33:15]sum+1 = 40007 [13:33: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 СНО: Общий режим Чек 152 23.10.2024 13:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70636 ФПД: 209627514168789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70636&fm=209627514168789&tin=02508201610067®Number=0000000000156251&sum=40000 [13:33:16]StoreToDocumentArchive [13:33:16]shift 196 fd 70636 [13:33:16]save to /storage/0196/doc_00070636 [13:33:16]save last doc name /storage/0196/doc_00070636 to /storage/kkm_last_doc_name [13:33:16]save OK [13:33:16]Clear old archive folders... [13:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:16]tlvbuf is 00157660 [13:33:16]SAM_PROTO_ClearQueue [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 09 00 00 [13:33:16]Write to MH i2c: E2 08 00 82 09 80 09 00 00 00 00 00 00 FD [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_ClearQueue done [13:33:16]KKMCreateOFDPacket [13:33:16]OFDProtocolAddRootSTLVToBuf [13:33:16]FM_MakeSignedData [13:33:16]FM_MakeSignedData [13:33:16]SAM_PROTO_SignData [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 0D 01 02 [13:33:16]Write to MH i2c: E2 08 00 83 09 80 0D 01 02 00 00 00 00 05 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]wFMCommunicate request_size=255 [13:33:16]MH_SAM_APDU [13:33: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 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 98 00 00 00 F4 03 04 00 1C FB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE [13:33:16]Write to MH i2c: E2 02 01 84 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 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 98 00 00 00 F4 03 04 00 1C FB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE 00 00 0D [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:17]Read from MH i2c: E2 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 03 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [13:33:17]RAPDU: 90 00 [13:33:17]wFMCommunicate OK [13:33:17]wFMCommunicate request_size=10 [13:33:17]MH_SAM_APDU [13:33:17]CAPDU: 80 0D 02 02 05 A7 B5 84 65 D5 [13:33:17]Write to MH i2c: E2 0D 00 85 09 80 0D 02 02 05 00 A7 B5 84 65 D5 00 00 2C [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:17]Read from MH i2c: E2 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 03 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [13:33:17]RAPDU: 90 00 [13:33:17]wFMCommunicate OK [13:33:17]wFMCommunicate request_size=4 [13:33:17]MH_SAM_APDU [13:33:17]CAPDU: 80 0D 03 02 [13:33:17]Write to MH i2c: E2 08 00 86 09 80 0D 03 02 00 00 00 00 0A [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:17]Read from MH i2c: E2 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 0B 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 0B 00 86 09 00 DA C2 F2 7F 82 C6 EE ED 90 00 3B [13:33:17]RAPDU: DA C2 F2 7F 82 C6 EE ED 90 00 [13:33:17]wFMCommunicate OK [13:33:17]SAM_PROTO_SignData done [13:33:17]FM_MakeSignedData done [13:33:17]CreateOFDProtocolMessage [13:33:17]wFMCommunicate request_size=4 [13:33:17]MH_SAM_APDU [13:33:17]CAPDU: 80 11 00 00 [13:33:17]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:17]Read from MH i2c: E2 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 17 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: E2 17 00 87 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [13:33: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:33:17]wFMCommunicate OK [13:33:17]CreateOFDProtocolMessage done [13:33:17]OFDSenderStorePacket 70636 [13:33:17]StoreOFDPacket docnum=70636 [13:33: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 77 D6 07 01 C5 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 1C FB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE A7 B5 84 65 D5 DA C2 F2 7F 82 C6 EE ED [13:33:17]CheckFolder [13:33:17]dirname=/storage/ofd_packets [13:33:17]CheckFolder done [13:33:17]ProducePacketName [13:33:17]name=ofd_packets/00070636 [13:33:17]NVStorageSaveData ofd_packets/00070636 [13:33:17]File name is /storage/ofd_packets/00070636 [13:33:17]Write 301 bytes [13:33:17]NVStorageSaveData done [13:33:17]OFDSenderStorePacket done [13:33:17]KKMCreateOFDPacket done [13:33:17]NVStorageSaveData kkm_last_timestamp [13:33:17]File name is /storage/kkm_last_timestamp [13:33:17]Write 4 bytes [13:33:17]NVStorageSaveData done [13:33:17]ExternCall_PrintAddStr [13:33:17]wPrintStart [13:33:17]Write to MH i2c: 01 00 00 88 09 91 [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 07 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 07 00 88 09 00 00 00 00 00 FF 0F A6 [13:33:17]RasterBufferAndPrint [13:33:17]line Счет N : (1)2886413 [13:33:17]line ИНН: 02508201610067 [13:33:17]line Контрольно-Кассовый Чек [13:33:17]line ПРОДАЖА [13:33:17]line ТРК (МРК, ГНК) : 12 [13:33:17]line Товар: 2710124130 [13:33:17]line Аи-92-К-5 [13:33:17]line 5.980 * 66.90 [13:33:17]line = 400.06 [13:33:17]line НДС 12% НСП 1% [13:33:17]line > о реализуемом товаре [13:33:17]line ОКРУГЛЕНИЕ: -0.06 [13:33:17]line ИТОГО: 400.00 [13:33:17]line Внесено: 400.00 [13:33:17]line СДАЧА: 0.00 [13:33:17]line НСП 1% : 3.54 [13:33:17]line НДС 12% : 42.48 [13:33:17]line Наличными: 400.00 [13:33:17]line Безнал.: 0.00 [13:33:17]line Место: АЗС № 85 "Партнер Нефть" [13:33:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:33:17]line СНО: Общий режим [13:33:17]line Чек 152 23.10.2024 13:33 [13:33:17]line Смена: 196 ФФД: 1.0 [13:33:17]line ЗНМ: 0300000167 [13:33:17]line РНМ: 0000000000156251 [13:33:17]line Версия ККМ: v1.0 [13:33:17]line ФМ: 0000000000963346 [13:33:17]line ФД: 70636 [13:33:17]line ФПД: 209627514168789 [13:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70636&fm=209627514168789&tin=02508201610067®Number=0000000000156251&sum=40000 [13:33:17]OFD Sender: Processing packet 70636 [packets to send 18, broken 17] [13:33:17]ProducePacketName [13:33:17]name=ofd_packets/00070636 [13:33:17]OFD Sender: To server: pG, [13:33:17]CommunicateWithHost lk.salyk.kg:30040 [13:33:17]ConnectInit lk.salyk.kg [13:33:17]written 0, free lines is 4095 [13:33:17]Connected sock=7 [13:33: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 77 D6 07 01 C5 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 1C FB 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 BE A7 B5 84 65 D5 DA C2 F2 7F 82 C6 EE ED [13:33: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 B8 68 47 00 85 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 13 01 00 F4 03 04 00 BA A4 18 67 B6 04 01 00 00 1C B7 B2 28 2C C3 50 B1 [13:33:17]CommunicateWithHost err = 0 [13:33:17]CheckOFDResponse [13:33:17]1017 (14) - 77093643461234 [13:33:17]1041 (16) - 0000000000963346 [13:33:17]1040 (4) - 70636 [13:33:17]1012 (4) - 23.10.2024 07:24 [13:33:17]1206 (1) - 0 [13:33:17]OFD Sender: Remove packet 70636 [13:33:17]ProducePacketName [13:33:17]name=ofd_packets/00070636 [13:33:17]NVStorageDeleteData [13:33:18]Write to MH i2c: 01 00 00 B3 09 BC [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 F9 0C C8 [13:33:18]RasterBufferAndPrint [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]written 0, free lines is 3327 [13:33:18]MH_Cut [13:33:18]Write to MH i2c: D1 01 00 BA 09 01 95 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: D1 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: D1 01 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: D1 01 00 BA 09 00 94 [13:33:18]Write to MH i2c: 01 00 00 BB 09 C4 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]OFD Sender: No OFD packet to send [13:33:18]*** Cut start [13:33:18]*** Partial cut [13:33:18]*** CUTSNS_PIN = 1 [13:33:18]*** CUTSNS_PIN = 0 [13:33:19]*** Brake cut motor [13:33:19]Read from MH i2c: 01 [13:33:19]MH_I2C_Read... [13:33:19]*** Stop cut motor [13:33:19]*** Cut end [13:33:19]Read from MH i2c: 01 07 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [13:33:19]process_action close_receipt done [13:33:19]requested_data is exist [13:33:19]produce_requested_data [13:33:19]requested_item fm.sn is exist - process it [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 11 00 00 [13:33:19]Write to MH i2c: E2 08 00 BC 09 80 11 00 00 00 00 00 00 3F [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 17 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 17 00 BC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [13:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:33:19]wFMCommunicate OK [13:33:19]requested_item fd.num is exist - process it [13:33:19]SAM_PROTO_GetFieldsCounters [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 13 00 00 [13:33:19]Write to MH i2c: E2 08 00 BD 09 80 13 00 00 00 00 00 00 42 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 62 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 62 00 BD 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 EC 13 01 00 0E 04 04 00 C4 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 E9 [13:33: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 EC 13 01 00 0E 04 04 00 C4 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 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_GetFieldsCounters done [13:33:19]requested_item shift.num is exist - process it [13:33:19]requested_item shift.opened is exist - process it [13:33:19]req_shift_opened [13:33:19]FM_GetShiftState [13:33:19]SAM_PROTO_GetShiftState [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 13 01 00 [13:33:19]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D1 [13:33:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_GetShiftState done [13:33:19]FM_GetShiftState done [13:33:19]req_shift_opened done [13:33:19]requested_item shift.open_date is exist - process it [13:33:19]req_shift_open_date [13:33:19]req_shift_open_date done [13:33:19]produce_requested_data done [13:33:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70636,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:33:19]process_action_free close_receipt [13:33:19]json_value_free [13:33:19]json_value_free done [13:33:19]process_json_proto returns [13:33:19]Send response to host [13:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70636,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:33:19]free response buf [13:33:19]execute_script done [13:33:19]execute_script returns [13:33:19]free content buf [13:33:19]Sock 9.Close socket [13:33:19]Sock 9.Thread stoped [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:31]accept exits with 10 [13:44:31]New connection [13:44:31]New thread 3066891620 created [13:44:31]Thread 3067034980 joined [13:44:31]Waiting for new connection... [13:44:31] Sock 10.Parse request [13:44:31]Sock 10.Check first char [13:44:31]Sock 10.First char is OK [13:44:31]request: POST /json_proto HTTP/1.0 [13:44:31]Method: POST [13:44:31]URL: /json_proto [13:44:31]Method is POST - this is cgi request [13:44:31]url: /json_proto [13:44:31]query_string will be loaded in cgi processing [13:44:31]execute_cgi json_proto POST (null) [13:44:31]execute_cgi path=json_proto method=POST [13:44:31]POST find Content-Length [13:44:31]Host: 172.17.50.3:8080 [13:44:31]Content-Length: 767 [13:44:31]Content-Type: application/json [13:44:31] [13:44:31]POST finish read [13:44:31]Found Content-Length = 767 [13:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886414", "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" ] } } [13:44:31]execute_script... [13:44: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)2886414", "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" ] } } [13:44:31]POST & json_proto [13:44:31]process_json_proto [13:44:31]json parsed OK: [13:44:31]protocol is kg_v1.0 [13:44:31]action value=close_receipt [13:44:31]process_action close_receipt [13:44:31]cmd_close_receipt [13:44:31]MH_GetDate [13:44:31]Write to MH i2c: F0 00 00 BF 09 B7 [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 09 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: F0 09 00 BF 09 00 C0 FD 18 67 6B 98 1E 66 83 [13:44:31]GetLastDocTimeStamp 1729690396 [13:44:31]current date 1729691072 [13:44:31]FM_GetShiftState [13:44:31]SAM_PROTO_GetShiftState [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 13 01 00 [13:44:31]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D3 [13:44:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:44:31]wFMCommunicate OK [13:44:31]SAM_PROTO_GetShiftState done [13:44:31]FM_GetShiftState done [13:44:31]opened in 1729642435 [13:44:31]opened+sec_in_day 1729728835 [13:44:31]quantity*price = 50041 [13:44:31]sum+1 = 50042 [13:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 153 23.10.2024 13:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70637 ФПД: 188256145463797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134432&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70637&fm=188256145463797&tin=02508201610067®Number=0000000000156251&sum=50041 [13:44:32]StoreToDocumentArchive [13:44:32]shift 196 fd 70637 [13:44:32]save to /storage/0196/doc_00070637 [13:44:32]save last doc name /storage/0196/doc_00070637 to /storage/kkm_last_doc_name [13:44:32]save OK [13:44:32]Clear old archive folders... [13:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:32]tlvbuf is 00168350 [13:44:32]SAM_PROTO_ClearQueue [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 09 00 00 [13:44:32]Write to MH i2c: E2 08 00 CD 09 80 09 00 00 00 00 00 00 48 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]SAM_PROTO_ClearQueue done [13:44:32]KKMCreateOFDPacket [13:44:32]OFDProtocolAddRootSTLVToBuf [13:44:32]FM_MakeSignedData [13:44:32]FM_MakeSignedData [13:44:32]SAM_PROTO_SignData [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 01 02 [13:44:32]Write to MH i2c: E2 08 00 CE 09 80 0D 01 02 00 00 00 00 50 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=255 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 99 00 00 00 F4 03 04 00 C0 FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB [13:44:32]Write to MH i2c: E2 02 01 CF 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 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 99 00 00 00 F4 03 04 00 C0 FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB 00 00 70 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=10 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 02 02 05 37 CC AD 59 F5 [13:44:32]Write to MH i2c: E2 0D 00 D0 09 80 0D 02 02 05 00 37 CC AD 59 F5 00 00 5B [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [13:44:32]RAPDU: 90 00 [13:44:32]wFMCommunicate OK [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 0D 03 02 [13:44:32]Write to MH i2c: E2 08 00 D1 09 80 0D 03 02 00 00 00 00 55 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 0B 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 0B 00 D1 09 00 9D EC B8 D5 0B 82 00 A2 90 00 9B [13:44:32]RAPDU: 9D EC B8 D5 0B 82 00 A2 90 00 [13:44:32]wFMCommunicate OK [13:44:32]SAM_PROTO_SignData done [13:44:32]FM_MakeSignedData done [13:44:32]CreateOFDProtocolMessage [13:44:32]wFMCommunicate request_size=4 [13:44:32]MH_SAM_APDU [13:44:32]CAPDU: 80 11 00 00 [13:44:32]Write to MH i2c: E2 08 00 D2 09 80 11 00 00 00 00 00 00 55 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:32]Read from MH i2c: E2 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 17 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: E2 17 00 D2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [13:44: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:44:32]wFMCommunicate OK [13:44:32]CreateOFDProtocolMessage done [13:44:32]OFDSenderStorePacket 70637 [13:44:32]StoreOFDPacket docnum=70637 [13:44: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 35 8A 07 01 30 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 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 99 00 00 00 F4 03 04 00 C0 FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB 37 CC AD 59 F5 9D EC B8 D5 0B 82 00 A2 [13:44:32]CheckFolder [13:44:32]dirname=/storage/ofd_packets [13:44:32]CheckFolder done [13:44:32]ProducePacketName [13:44:32]name=ofd_packets/00070637 [13:44:32]NVStorageSaveData ofd_packets/00070637 [13:44:32]File name is /storage/ofd_packets/00070637 [13:44:32]Write 301 bytes [13:44:32]NVStorageSaveData done [13:44:32]OFDSenderStorePacket done [13:44:32]KKMCreateOFDPacket done [13:44:32]NVStorageSaveData kkm_last_timestamp [13:44:32]File name is /storage/kkm_last_timestamp [13:44:32]Write 4 bytes [13:44:32]NVStorageSaveData done [13:44:32]ExternCall_PrintAddStr [13:44:32]wPrintStart [13:44:32]Write to MH i2c: 01 00 00 D3 09 DC [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 D3 09 00 00 00 00 00 FF 0F F1 [13:44:32]RasterBufferAndPrint [13:44:32]line Счет N : (1)2886414 [13:44:32]line ИНН: 02508201610067 [13:44:32]line Контрольно-Кассовый Чек [13:44:32]line ПРОДАЖА [13:44:32]line ТРК (МРК, ГНК) : 12 [13:44:32]line Товар: 2710124130 [13:44:32]line Аи-92-К-5 [13:44:32]line 7.480 * 66.90 [13:44:32]line = 500.41 [13:44:32]line НДС 12% НСП 1% [13:44:32]line > о реализуемом товаре [13:44:32]line ИТОГО: 500.41 [13:44:32]line НСП 1% : 4.43 [13:44:32]line НДС 12% : 53.14 [13:44:32]line Наличными: 0.00 [13:44:32]line Безнал.: 500.41 [13:44:32]line Место: АЗС № 85 "Партнер Нефть" [13:44:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:44:32]line СНО: Общий режим [13:44:32]line Чек 153 23.10.2024 13:44 [13:44:32]line Смена: 196 ФФД: 1.0 [13:44:32]line ЗНМ: 0300000167 [13:44:32]line РНМ: 0000000000156251 [13:44:32]line Версия ККМ: v1.0 [13:44:32]line Платежная система: Mbank [13:44:32]line ФМ: 0000000000963346 [13:44:32]line ФД: 70637 [13:44:32]line ФПД: 188256145463797 [13:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134432&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70637&fm=188256145463797&tin=02508201610067®Number=0000000000156251&sum=50041 [13:44:33]OFD Sender: Processing packet 70637 [packets to send 18, broken 17] [13:44:33]ProducePacketName [13:44:33]name=ofd_packets/00070637 [13:44:33]OFD Sender: To server: pG, [13:44:33]CommunicateWithHost lk.salyk.kg:30040 [13:44:33]ConnectInit lk.salyk.kg [13:44:33]written 0, free lines is 4095 [13:44:33]Connected sock=9 [13:44: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 35 8A 07 01 30 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 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 99 00 00 00 F4 03 04 00 C0 FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AB 37 CC AD 59 F5 9D EC B8 D5 0B 82 00 A2 [13:44: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 07 59 47 00 DB 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 ED 13 01 00 F4 03 04 00 5E A7 18 67 B6 04 01 00 00 F1 B3 7B 30 BD BE 8B 0A [13:44:33]CommunicateWithHost err = 0 [13:44:33]CheckOFDResponse [13:44:33]1017 (14) - 77093643461234 [13:44:33]1041 (16) - 0000000000963346 [13:44:33]1040 (4) - 70637 [13:44:33]1012 (4) - 23.10.2024 07:35 [13:44:33]1206 (1) - 0 [13:44:33]OFD Sender: Remove packet 70637 [13:44:33]ProducePacketName [13:44:33]name=ofd_packets/00070637 [13:44:33]NVStorageDeleteData [13:44:33]Write to MH i2c: 01 00 00 FC 09 05 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 1D 0D 36 [13:44:33]RasterBufferAndPrint [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]line [13:44:33]written 0, free lines is 3363 [13:44:33]MH_Cut [13:44:33]Write to MH i2c: D1 01 00 03 0A 01 DF [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 01 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: D1 01 00 03 0A 00 DE [13:44:33]Write to MH i2c: 01 00 00 04 0A 0E [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:34]OFD Sender: No OFD packet to send [13:44:34]*** Cut start [13:44:34]*** Partial cut [13:44:34]*** CUTSNS_PIN = 1 [13:44:34]*** CUTSNS_PIN = 0 [13:44:34]*** Brake cut motor [13:44:34]Read from MH i2c: 01 [13:44:34]MH_I2C_Read... [13:44:34]*** Stop cut motor [13:44:34]*** Cut end [13:44:34]Read from MH i2c: 01 07 00 [13:44:34]MH_I2C_Read... [13:44:34]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [13:44:34]process_action close_receipt done [13:44:34]requested_data is exist [13:44:34]produce_requested_data [13:44:34]requested_item fm.sn is exist - process it [13:44:34]wFMCommunicate request_size=4 [13:44:34]MH_SAM_APDU [13:44:34]CAPDU: 80 11 00 00 [13:44:34]Write to MH i2c: E2 08 00 05 0A 80 11 00 00 00 00 00 00 89 [13:44:34]Write i2c OK [13:44:34]MH_I2C_Read... [13:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:34]Read from MH i2c: E2 [13:44:34]MH_I2C_Read... [13:44:34]Read from MH i2c: E2 17 00 [13:44:34]MH_I2C_Read... [13:44:34]Read from MH i2c: E2 17 00 05 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [13:44: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:44:34]wFMCommunicate OK [13:44:34]requested_item fd.num is exist - process it [13:44:34]SAM_PROTO_GetFieldsCounters [13:44:34]wFMCommunicate request_size=4 [13:44:34]MH_SAM_APDU [13:44:34]CAPDU: 80 13 00 00 [13:44:34]Write to MH i2c: E2 08 00 06 0A 80 13 00 00 00 00 00 00 8C [13:44:34]Write i2c OK [13:44:34]MH_I2C_Read... [13:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:35]Read from MH i2c: E2 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 62 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 62 00 06 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 ED 13 01 00 0E 04 04 00 C4 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 37 [13:44: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 ED 13 01 00 0E 04 04 00 C4 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 [13:44:35]wFMCommunicate OK [13:44:35]SAM_PROTO_GetFieldsCounters done [13:44:35]requested_item shift.num is exist - process it [13:44:35]requested_item shift.opened is exist - process it [13:44:35]req_shift_opened [13:44:35]FM_GetShiftState [13:44:35]SAM_PROTO_GetShiftState [13:44:35]wFMCommunicate request_size=4 [13:44:35]MH_SAM_APDU [13:44:35]CAPDU: 80 13 01 00 [13:44:35]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [13:44:35]Write i2c OK [13:44:35]MH_I2C_Read... [13:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:35]Read from MH i2c: E2 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 0E 00 [13:44:35]MH_I2C_Read... [13:44:35]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1B [13:44:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:44:35]wFMCommunicate OK [13:44:35]SAM_PROTO_GetShiftState done [13:44:35]FM_GetShiftState done [13:44:35]req_shift_opened done [13:44:35]requested_item shift.open_date is exist - process it [13:44:35]req_shift_open_date [13:44:35]req_shift_open_date done [13:44:35]produce_requested_data done [13:44:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70637,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:44:35]process_action_free close_receipt [13:44:35]json_value_free [13:44:35]json_value_free done [13:44:35]process_json_proto returns [13:44:35]Send response to host [13:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70637,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:44:35]free response buf [13:44:35]execute_script done [13:44:35]execute_script returns [13:44:35]free content buf [13:44:35]Sock 10.Close socket [13:44:35]Sock 10.Thread stoped [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:33]accept exits with 7 [13:45:33]New connection [13:45:33]New thread 3067034980 created [13:45:33]Thread 3066891620 joined [13:45:33]Waiting for new connection... [13:45:33] Sock 7.Parse request [13:45:33]Sock 7.Check first char [13:45:33]Sock 7.First char is OK [13:45:33]request: POST /json_proto HTTP/1.0 [13:45:33]Method: POST [13:45:33]URL: /json_proto [13:45:33]Method is POST - this is cgi request [13:45:33]url: /json_proto [13:45:33]query_string will be loaded in cgi processing [13:45:33]execute_cgi json_proto POST (null) [13:45:33]execute_cgi path=json_proto method=POST [13:45:33]POST find Content-Length [13:45:33]Host: 172.17.50.3:8080 [13:45:33]Content-Length: 683 [13:45:33]Content-Type: application/json [13:45:33] [13:45:33]POST finish read [13:45:33]Found Content-Length = 683 [13:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886415", "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:45:33]execute_script... [13:45: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)2886415", "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:45:33]POST & json_proto [13:45:33]process_json_proto [13:45:33]json parsed OK: [13:45:33]protocol is kg_v1.0 [13:45:33]action value=close_receipt [13:45:33]process_action close_receipt [13:45:33]cmd_close_receipt [13:45:33]MH_GetDate [13:45:33]Write to MH i2c: F0 00 00 08 0A 01 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 09 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 09 00 08 0A 00 FE FD 18 67 6B 98 1E 66 0B [13:45:33]GetLastDocTimeStamp 1729691072 [13:45:33]current date 1729691134 [13:45:33]FM_GetShiftState [13:45:33]SAM_PROTO_GetShiftState [13:45:33]wFMCommunicate request_size=4 [13:45:33]MH_SAM_APDU [13:45:33]CAPDU: 80 13 01 00 [13:45:33]Write to MH i2c: E2 08 00 09 0A 80 13 01 00 00 00 00 00 90 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:33]Read from MH i2c: E2 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 09 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [13:45:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:45:33]wFMCommunicate OK [13:45:33]SAM_PROTO_GetShiftState done [13:45:33]FM_GetShiftState done [13:45:33]opened in 1729642435 [13:45:33]opened+sec_in_day 1729728835 [13:45:33]quantity*price = 100015 [13:45:33]sum+1 = 100017 [13:45:33]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 СНО: Общий режим Чек 154 23.10.2024 13:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70638 ФПД: 150158260072723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70638&fm=150158260072723&tin=02508201610067®Number=0000000000156251&sum=100000 [13:45:34]StoreToDocumentArchive [13:45:34]shift 196 fd 70638 [13:45:34]save to /storage/0196/doc_00070638 [13:45:34]save last doc name /storage/0196/doc_00070638 to /storage/kkm_last_doc_name [13:45:34]save OK [13:45:34]Clear old archive folders... [13:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:34]tlvbuf is 00168890 [13:45:34]SAM_PROTO_ClearQueue [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 09 00 00 [13:45:34]Write to MH i2c: E2 08 00 16 0A 80 09 00 00 00 00 00 00 92 [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [13:45:34]RAPDU: 90 00 [13:45:34]wFMCommunicate OK [13:45:34]SAM_PROTO_ClearQueue done [13:45:34]KKMCreateOFDPacket [13:45:34]OFDProtocolAddRootSTLVToBuf [13:45:34]FM_MakeSignedData [13:45:34]FM_MakeSignedData [13:45:34]SAM_PROTO_SignData [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 0D 01 02 [13:45:34]Write to MH i2c: E2 08 00 17 0A 80 0D 01 02 00 00 00 00 9A [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [13:45:34]RAPDU: 90 00 [13:45:34]wFMCommunicate OK [13:45:34]wFMCommunicate request_size=255 [13:45:34]MH_SAM_APDU [13:45: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 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 9A 00 00 00 F4 03 04 00 FE FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 88 [13:45:34]Write to MH i2c: E2 02 01 18 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 9A 00 00 00 F4 03 04 00 FE FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 88 00 00 7F [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [13:45:35]RAPDU: 90 00 [13:45:35]wFMCommunicate OK [13:45:35]wFMCommunicate request_size=10 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 0D 02 02 05 91 71 C0 71 13 [13:45:35]Write to MH i2c: E2 0D 00 19 0A 80 0D 02 02 05 00 91 71 C0 71 13 00 00 ED [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [13:45:35]RAPDU: 90 00 [13:45:35]wFMCommunicate OK [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 0D 03 02 [13:45:35]Write to MH i2c: E2 08 00 1A 0A 80 0D 03 02 00 00 00 00 9F [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 0B 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 0B 00 1A 0A 00 3B 7A B9 D4 BF B8 C9 1C 90 00 3E [13:45:35]RAPDU: 3B 7A B9 D4 BF B8 C9 1C 90 00 [13:45:35]wFMCommunicate OK [13:45:35]SAM_PROTO_SignData done [13:45:35]FM_MakeSignedData done [13:45:35]CreateOFDProtocolMessage [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 11 00 00 [13:45:35]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 1B 0A 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:45: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:45:35]wFMCommunicate OK [13:45:35]CreateOFDProtocolMessage done [13:45:35]OFDSenderStorePacket 70638 [13:45:35]StoreOFDPacket docnum=70638 [13:45: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 1E BA 07 01 8D 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 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 9A 00 00 00 F4 03 04 00 FE FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 88 91 71 C0 71 13 3B 7A B9 D4 BF B8 C9 1C [13:45:35]CheckFolder [13:45:35]dirname=/storage/ofd_packets [13:45:35]CheckFolder done [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00070638 [13:45:35]NVStorageSaveData ofd_packets/00070638 [13:45:35]File name is /storage/ofd_packets/00070638 [13:45:35]Write 301 bytes [13:45:35]NVStorageSaveData done [13:45:35]OFDSenderStorePacket done [13:45:35]KKMCreateOFDPacket done [13:45:35]NVStorageSaveData kkm_last_timestamp [13:45:35]File name is /storage/kkm_last_timestamp [13:45:35]Write 4 bytes [13:45:35]NVStorageSaveData done [13:45:35]ExternCall_PrintAddStr [13:45:35]wPrintStart [13:45:35]Write to MH i2c: 01 00 00 1C 0A 26 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 FF 0F 3B [13:45:35]RasterBufferAndPrint [13:45:35]line Счет N : (1)2886415 [13:45:35]line ИНН: 02508201610067 [13:45:35]line Контрольно-Кассовый Чек [13:45:35]line ПРОДАЖА [13:45:35]line ТРК (МРК, ГНК) : 42 [13:45:35]line Товар: 2710124130 [13:45:35]line Аи-92-К-5 [13:45:35]line 14.950 * 66.90 [13:45:35]line = 1000.16 [13:45:35]line НДС 12% НСП 1% [13:45:35]line > о реализуемом товаре [13:45:35]line ОКРУГЛЕНИЕ: -0.16 [13:45:35]line ИТОГО: 1000.00 [13:45:35]line Внесено: 1000.00 [13:45:35]line СДАЧА: 0.00 [13:45:35]line НСП 1% : 8.85 [13:45:35]line НДС 12% : 106.21 [13:45:35]line Наличными: 1000.00 [13:45:35]line Безнал.: 0.00 [13:45:35]line Место: АЗС № 85 "Партнер Нефть" [13:45:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:45:35]line СНО: Общий режим [13:45:35]line Чек 154 23.10.2024 13:45 [13:45:35]line Смена: 196 ФФД: 1.0 [13:45:35]line ЗНМ: 0300000167 [13:45:35]line РНМ: 0000000000156251 [13:45:35]line Версия ККМ: v1.0 [13:45:35]line ФМ: 0000000000963346 [13:45:35]line ФД: 70638 [13:45:35]line ФПД: 150158260072723 [13:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70638&fm=150158260072723&tin=02508201610067®Number=0000000000156251&sum=100000 [13:45:35]OFD Sender: Processing packet 70638 [packets to send 18, broken 17] [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00070638 [13:45:35]OFD Sender: To server: pG, [13:45:35]CommunicateWithHost lk.salyk.kg:30040 [13:45:35]ConnectInit lk.salyk.kg [13:45:35]written 0, free lines is 4095 [13:45:35]Connected sock=10 [13:45: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 1E BA 07 01 8D 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 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 9A 00 00 00 F4 03 04 00 FE FD 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 88 91 71 C0 71 13 3B 7A B9 D4 BF B8 C9 1C [13:45: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 0D E8 47 00 1D 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 EE 13 01 00 F4 03 04 00 9C A7 18 67 B6 04 01 00 00 54 4D 3C AA 1C 2E 66 5A [13:45:35]CommunicateWithHost err = 0 [13:45:35]CheckOFDResponse [13:45:35]1017 (14) - 77093643461234 [13:45:35]1041 (16) - 0000000000963346 [13:45:35]1040 (4) - 70638 [13:45:35]1012 (4) - 23.10.2024 07:37 [13:45:35]1206 (1) - 0 [13:45:35]OFD Sender: Remove packet 70638 [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00070638 [13:45:35]NVStorageDeleteData [13:45:35]Write to MH i2c: 01 00 00 47 0A 51 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 F6 0C 5A [13:45:35]RasterBufferAndPrint [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]written 0, free lines is 3324 [13:45:35]MH_Cut [13:45:35]Write to MH i2c: D1 01 00 4E 0A 01 2A [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: D1 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: D1 01 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: D1 01 00 4E 0A 00 29 [13:45:35]Write to MH i2c: 01 00 00 4F 0A 59 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:36]OFD Sender: No OFD packet to send [13:45:36]*** Cut start [13:45:36]*** Partial cut [13:45:36]*** CUTSNS_PIN = 1 [13:45:36]*** CUTSNS_PIN = 0 [13:45:36]*** Brake cut motor [13:45:37]Read from MH i2c: 01 [13:45:37]MH_I2C_Read... [13:45:37]*** Stop cut motor [13:45:37]*** Cut end [13:45:37]Read from MH i2c: 01 07 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [13:45:37]process_action close_receipt done [13:45:37]requested_data is exist [13:45:37]produce_requested_data [13:45:37]requested_item fm.sn is exist - process it [13:45:37]wFMCommunicate request_size=4 [13:45:37]MH_SAM_APDU [13:45:37]CAPDU: 80 11 00 00 [13:45:37]Write to MH i2c: E2 08 00 50 0A 80 11 00 00 00 00 00 00 D4 [13:45:37]Write i2c OK [13:45:37]MH_I2C_Read... [13:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:37]Read from MH i2c: E2 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 17 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 17 00 50 0A 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:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:45:37]wFMCommunicate OK [13:45:37]requested_item fd.num is exist - process it [13:45:37]SAM_PROTO_GetFieldsCounters [13:45:37]wFMCommunicate request_size=4 [13:45:37]MH_SAM_APDU [13:45:37]CAPDU: 80 13 00 00 [13:45:37]Write to MH i2c: E2 08 00 51 0A 80 13 00 00 00 00 00 00 D7 [13:45:37]Write i2c OK [13:45:37]MH_I2C_Read... [13:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:37]Read from MH i2c: E2 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 62 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 62 00 51 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 EE 13 01 00 0E 04 04 00 C4 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 86 [13:45: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 EE 13 01 00 0E 04 04 00 C4 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 [13:45:37]wFMCommunicate OK [13:45:37]SAM_PROTO_GetFieldsCounters done [13:45:37]requested_item shift.num is exist - process it [13:45:37]requested_item shift.opened is exist - process it [13:45:37]req_shift_opened [13:45:37]FM_GetShiftState [13:45:37]SAM_PROTO_GetShiftState [13:45:37]wFMCommunicate request_size=4 [13:45:37]MH_SAM_APDU [13:45:37]CAPDU: 80 13 01 00 [13:45:37]Write to MH i2c: E2 08 00 52 0A 80 13 01 00 00 00 00 00 D9 [13:45:37]Write i2c OK [13:45:37]MH_I2C_Read... [13:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:37]Read from MH i2c: E2 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 0E 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 0E 00 52 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 66 [13:45:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:45:37]wFMCommunicate OK [13:45:37]SAM_PROTO_GetShiftState done [13:45:37]FM_GetShiftState done [13:45:37]req_shift_opened done [13:45:37]requested_item shift.open_date is exist - process it [13:45:37]req_shift_open_date [13:45:37]req_shift_open_date done [13:45:37]produce_requested_data done [13:45:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70638,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:45:37]process_action_free close_receipt [13:45:37]json_value_free [13:45:37]json_value_free done [13:45:37]process_json_proto returns [13:45:37]Send response to host [13:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70638,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:45:37]free response buf [13:45:37]execute_script done [13:45:37]execute_script returns [13:45:37]free content buf [13:45:37]Sock 7.Close socket [13:45:37]Sock 7.Thread stoped [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:40]accept exits with 9 [13:51:40]New connection [13:51:40]New thread 3066891620 created [13:51:40]Thread 3067034980 joined [13:51:40]Waiting for new connection... [13:51:40] Sock 9.Parse request [13:51:40]Sock 9.Check first char [13:51:40]Sock 9.First char is OK [13:51:40]request: POST /json_proto HTTP/1.0 [13:51:40]Method: POST [13:51:40]URL: /json_proto [13:51:40]Method is POST - this is cgi request [13:51:40]url: /json_proto [13:51:40]query_string will be loaded in cgi processing [13:51:40]execute_cgi json_proto POST (null) [13:51:40]execute_cgi path=json_proto method=POST [13:51:40]POST find Content-Length [13:51:40]Host: 172.17.50.3:8080 [13:51:40]Content-Length: 683 [13:51:40]Content-Type: application/json [13:51:40] [13:51:40]POST finish read [13:51:40]Found Content-Length = 683 [13:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886416", "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:51:40]execute_script... [13:51: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)2886416", "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:51:40]POST & json_proto [13:51:40]process_json_proto [13:51:40]json parsed OK: [13:51:40]protocol is kg_v1.0 [13:51:40]action value=close_receipt [13:51:40]process_action close_receipt [13:51:40]cmd_close_receipt [13:51:40]MH_GetDate [13:51:40]Write to MH i2c: F0 00 00 53 0A 4C [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 09 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: F0 09 00 53 0A 00 6D FF 18 67 6B 98 1E 66 C7 [13:51:40]GetLastDocTimeStamp 1729691134 [13:51:40]current date 1729691501 [13:51:40]FM_GetShiftState [13:51:40]SAM_PROTO_GetShiftState [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 13 01 00 [13:51:40]Write to MH i2c: E2 08 00 54 0A 80 13 01 00 00 00 00 00 DB [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0E 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0E 00 54 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 68 [13:51:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:51:40]wFMCommunicate OK [13:51:40]SAM_PROTO_GetShiftState done [13:51:40]FM_GetShiftState done [13:51:40]opened in 1729642435 [13:51:40]opened+sec_in_day 1729728835 [13:51:40]quantity*price = 100021 [13:51:40]sum+1 = 100023 [13:51: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 СНО: Общий режим Чек 155 23.10.2024 13:51 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70639 ФПД: 252515859442667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135141&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70639&fm=252515859442667&tin=02508201610067®Number=0000000000156251&sum=100000 [13:51:41]StoreToDocumentArchive [13:51:41]shift 196 fd 70639 [13:51:41]save to /storage/0196/doc_00070639 [13:51:41]save last doc name /storage/0196/doc_00070639 to /storage/kkm_last_doc_name [13:51:41]save OK [13:51:41]Clear old archive folders... [13:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:41]tlvbuf is 00121A80 [13:51:41]SAM_PROTO_ClearQueue [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 09 00 00 [13:51:41]Write to MH i2c: E2 08 00 61 0A 80 09 00 00 00 00 00 00 DD [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]SAM_PROTO_ClearQueue done [13:51:41]KKMCreateOFDPacket [13:51:41]OFDProtocolAddRootSTLVToBuf [13:51:41]FM_MakeSignedData [13:51:41]FM_MakeSignedData [13:51:41]SAM_PROTO_SignData [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 01 02 [13:51:41]Write to MH i2c: E2 08 00 62 0A 80 0D 01 02 00 00 00 00 E5 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=255 [13:51:41]MH_SAM_APDU [13:51: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 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 9B 00 00 00 F4 03 04 00 6D FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E5 [13:51:41]Write to MH i2c: E2 02 01 63 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 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 9B 00 00 00 F4 03 04 00 6D FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E5 00 00 BD [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]OFD Sender: No OFD packet to send [13:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=10 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 02 02 05 A9 6E 1A 2B EB [13:51:41]Write to MH i2c: E2 0D 00 64 0A 80 0D 02 02 05 00 A9 6E 1A 2B EB 00 00 39 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 03 02 [13:51:41]Write to MH i2c: E2 08 00 65 0A 80 0D 03 02 00 00 00 00 EA [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 65 0A 00 A1 FF EB D2 9F 37 6D 9D 90 00 28 [13:51:41]RAPDU: A1 FF EB D2 9F 37 6D 9D 90 00 [13:51:41]wFMCommunicate OK [13:51:41]SAM_PROTO_SignData done [13:51:41]FM_MakeSignedData done [13:51:41]CreateOFDProtocolMessage [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 11 00 00 [13:51:41]Write to MH i2c: E2 08 00 66 0A 80 11 00 00 00 00 00 00 EA [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 66 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [13:51: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:51:41]wFMCommunicate OK [13:51:41]CreateOFDProtocolMessage done [13:51:41]OFDSenderStorePacket 70639 [13:51:41]StoreOFDPacket docnum=70639 [13:51: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 0F 01 00 00 3C 91 07 01 FC B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 6D FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E5 A9 6E 1A 2B EB A1 FF EB D2 9F 37 6D 9D [13:51:41]CheckFolder [13:51:41]dirname=/storage/ofd_packets [13:51:41]CheckFolder done [13:51:41]ProducePacketName [13:51:41]name=ofd_packets/00070639 [13:51:41]NVStorageSaveData ofd_packets/00070639 [13:51:41]File name is /storage/ofd_packets/00070639 [13:51:41]Write 301 bytes [13:51:41]NVStorageSaveData done [13:51:41]OFDSenderStorePacket done [13:51:41]KKMCreateOFDPacket done [13:51:41]NVStorageSaveData kkm_last_timestamp [13:51:41]File name is /storage/kkm_last_timestamp [13:51:41]Write 4 bytes [13:51:41]NVStorageSaveData done [13:51:41]ExternCall_PrintAddStr [13:51:41]wPrintStart [13:51:41]Write to MH i2c: 01 00 00 67 0A 71 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 67 0A 00 00 00 00 00 FF 0F 86 [13:51:41]RasterBufferAndPrint [13:51:41]line Счет N : (1)2886416 [13:51:41]line ИНН: 02508201610067 [13:51:41]line Контрольно-Кассовый Чек [13:51:41]line ПРОДАЖА [13:51:41]line ТРК (МРК, ГНК) : 43 [13:51:41]line Товар: 2710124500 [13:51:41]line Аи-95-К-5 [13:51:41]line 13.480 * 74.20 [13:51:41]line = 1000.22 [13:51:41]line НДС 12% НСП 1% [13:51:41]line > о реализуемом товаре [13:51:41]line ОКРУГЛЕНИЕ: -0.22 [13:51:41]line ИТОГО: 1000.00 [13:51:41]line Внесено: 1000.00 [13:51:41]line СДАЧА: 0.00 [13:51:41]line НСП 1% : 8.85 [13:51:41]line НДС 12% : 106.22 [13:51:41]line Наличными: 1000.00 [13:51:41]line Безнал.: 0.00 [13:51:41]line Место: АЗС № 85 "Партнер Нефть" [13:51:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:51:41]line СНО: Общий режим [13:51:41]line Чек 155 23.10.2024 13:51 [13:51:41]line Смена: 196 ФФД: 1.0 [13:51:41]line ЗНМ: 0300000167 [13:51:41]line РНМ: 0000000000156251 [13:51:41]line Версия ККМ: v1.0 [13:51:41]line ФМ: 0000000000963346 [13:51:41]line ФД: 70639 [13:51:41]line ФПД: 252515859442667 [13:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135141&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70639&fm=252515859442667&tin=02508201610067®Number=0000000000156251&sum=100000 [13:51:42]OFD Sender: Processing packet 70639 [packets to send 18, broken 17] [13:51:42]ProducePacketName [13:51:42]name=ofd_packets/00070639 [13:51:42]OFD Sender: To server: pG, [13:51:42]CommunicateWithHost lk.salyk.kg:30040 [13:51:42]ConnectInit lk.salyk.kg [13:51:42]written 0, free lines is 4095 [13:51:42]Connected sock=10 [13:51: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 3C 91 07 01 FC B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 6D FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E5 A9 6E 1A 2B EB A1 FF EB D2 9F 37 6D 9D [13:51: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 85 65 47 00 61 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 EF 13 01 00 F4 03 04 00 0B A9 18 67 B6 04 01 00 00 50 E8 E8 72 D3 75 B4 EF [13:51:42]CommunicateWithHost err = 0 [13:51:42]CheckOFDResponse [13:51:42]1017 (14) - 77093643461234 [13:51:42]1041 (16) - 0000000000963346 [13:51:42]1040 (4) - 70639 [13:51:42]1012 (4) - 23.10.2024 07:43 [13:51:42]1206 (1) - 0 [13:51:42]OFD Sender: Remove packet 70639 [13:51:42]ProducePacketName [13:51:42]name=ofd_packets/00070639 [13:51:42]NVStorageDeleteData [13:51:42]Write to MH i2c: 01 00 00 92 0A 9C [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 07 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0C AE [13:51:42]RasterBufferAndPrint [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]line [13:51:42]written 0, free lines is 3333 [13:51:42]MH_Cut [13:51:42]Write to MH i2c: D1 01 00 99 0A 01 75 [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 01 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: D1 01 00 99 0A 00 74 [13:51:42]Write to MH i2c: 01 00 00 9A 0A A4 [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]OFD Sender: No OFD packet to send [13:51:43]*** Cut start [13:51:43]*** Partial cut [13:51:43]*** CUTSNS_PIN = 1 [13:51:43]*** CUTSNS_PIN = 0 [13:51:43]*** Brake cut motor [13:51:43]Read from MH i2c: 01 [13:51:43]MH_I2C_Read... [13:51:43]*** Stop cut motor [13:51:43]*** Cut end [13:51:43]Read from MH i2c: 01 07 00 [13:51:43]MH_I2C_Read... [13:51:43]Read from MH i2c: 01 07 00 9A 0A 00 00 00 00 00 FF 0F B9 [13:51:43]process_action close_receipt done [13:51:43]requested_data is exist [13:51:43]produce_requested_data [13:51:43]requested_item fm.sn is exist - process it [13:51:43]wFMCommunicate request_size=4 [13:51:43]MH_SAM_APDU [13:51:43]CAPDU: 80 11 00 00 [13:51:43]Write to MH i2c: E2 08 00 9B 0A 80 11 00 00 00 00 00 00 1F [13:51:43]Write i2c OK [13:51:43]MH_I2C_Read... [13:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 17 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 17 00 9B 0A 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:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:51:44]wFMCommunicate OK [13:51:44]requested_item fd.num is exist - process it [13:51:44]SAM_PROTO_GetFieldsCounters [13:51:44]wFMCommunicate request_size=4 [13:51:44]MH_SAM_APDU [13:51:44]CAPDU: 80 13 00 00 [13:51:44]Write to MH i2c: E2 08 00 9C 0A 80 13 00 00 00 00 00 00 22 [13:51:44]Write i2c OK [13:51:44]MH_I2C_Read... [13:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 62 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 62 00 9C 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 EF 13 01 00 0E 04 04 00 C4 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 D5 [13:51: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 EF 13 01 00 0E 04 04 00 C4 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 [13:51:44]wFMCommunicate OK [13:51:44]SAM_PROTO_GetFieldsCounters done [13:51:44]requested_item shift.num is exist - process it [13:51:44]requested_item shift.opened is exist - process it [13:51:44]req_shift_opened [13:51:44]FM_GetShiftState [13:51:44]SAM_PROTO_GetShiftState [13:51:44]wFMCommunicate request_size=4 [13:51:44]MH_SAM_APDU [13:51:44]CAPDU: 80 13 01 00 [13:51:44]Write to MH i2c: E2 08 00 9D 0A 80 13 01 00 00 00 00 00 24 [13:51:44]Write i2c OK [13:51:44]MH_I2C_Read... [13:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:44]Read from MH i2c: E2 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 0E 00 [13:51:44]MH_I2C_Read... [13:51:44]Read from MH i2c: E2 0E 00 9D 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B1 [13:51:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:51:44]wFMCommunicate OK [13:51:44]SAM_PROTO_GetShiftState done [13:51:44]FM_GetShiftState done [13:51:44]req_shift_opened done [13:51:44]requested_item shift.open_date is exist - process it [13:51:44]req_shift_open_date [13:51:44]req_shift_open_date done [13:51:44]produce_requested_data done [13:51:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70639,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:51:44]process_action_free close_receipt [13:51:44]json_value_free [13:51:44]json_value_free done [13:51:44]process_json_proto returns [13:51:44]Send response to host [13:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70639,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:51:44]free response buf [13:51:44]execute_script done [13:51:44]execute_script returns [13:51:44]free content buf [13:51:44]Sock 9.Close socket [13:51:44]Sock 9.Thread stoped [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:29]accept exits with 7 [13:53:29]New connection [13:53:29]New thread 3067034980 created [13:53:29]Thread 3066891620 joined [13:53:29]Waiting for new connection... [13:53:29] Sock 7.Parse request [13:53:29]Sock 7.Check first char [13:53:29]Sock 7.First char is OK [13:53:29]request: POST /json_proto HTTP/1.0 [13:53:29]Method: POST [13:53:29]URL: /json_proto [13:53:29]Method is POST - this is cgi request [13:53:29]url: /json_proto [13:53:29]query_string will be loaded in cgi processing [13:53:29]execute_cgi json_proto POST (null) [13:53:29]execute_cgi path=json_proto method=POST [13:53:29]POST find Content-Length [13:53:29]Host: 172.17.50.3:8080 [13:53:29]Content-Length: 683 [13:53:29]Content-Type: application/json [13:53:29] [13:53:29]POST finish read [13:53:29]Found Content-Length = 683 [13:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886417", "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" ] } } [13:53:29]execute_script... [13:53: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)2886417", "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" ] } } [13:53:29]POST & json_proto [13:53:29]process_json_proto [13:53:29]json parsed OK: [13:53:29]protocol is kg_v1.0 [13:53:29]action value=close_receipt [13:53:29]process_action close_receipt [13:53:29]cmd_close_receipt [13:53:29]MH_GetDate [13:53:29]Write to MH i2c: F0 00 00 9E 0A 97 [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 09 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 09 00 9E 0A 00 DB FF 18 67 6B 98 1E 66 80 [13:53:29]GetLastDocTimeStamp 1729691501 [13:53:29]current date 1729691611 [13:53:29]FM_GetShiftState [13:53:29]SAM_PROTO_GetShiftState [13:53:29]wFMCommunicate request_size=4 [13:53:29]MH_SAM_APDU [13:53:29]CAPDU: 80 13 01 00 [13:53:29]Write to MH i2c: E2 08 00 9F 0A 80 13 01 00 00 00 00 00 26 [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:29]Read from MH i2c: E2 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: E2 0E 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: E2 0E 00 9F 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B3 [13:53:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:53:29]wFMCommunicate OK [13:53:29]SAM_PROTO_GetShiftState done [13:53:29]FM_GetShiftState done [13:53:29]opened in 1729642435 [13:53:29]opened+sec_in_day 1729728835 [13:53:29]quantity*price = 200031 [13:53:29]sum+1 = 200032 [13:53:29]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 СНО: Общий режим Чек 156 23.10.2024 13:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70640 ФПД: 250228111603136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135331&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70640&fm=250228111603136&tin=02508201610067®Number=0000000000156251&sum=200000 [13:53:31]StoreToDocumentArchive [13:53:31]shift 196 fd 70640 [13:53:31]save to /storage/0196/doc_00070640 [13:53:31]save last doc name /storage/0196/doc_00070640 to /storage/kkm_last_doc_name [13:53:31]save OK [13:53:31]Clear old archive folders... [13:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:31]tlvbuf is 00150770 [13:53:31]SAM_PROTO_ClearQueue [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 09 00 00 [13:53:31]Write to MH i2c: E2 08 00 AC 0A 80 09 00 00 00 00 00 00 28 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [13:53:31]RAPDU: 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_ClearQueue done [13:53:31]KKMCreateOFDPacket [13:53:31]OFDProtocolAddRootSTLVToBuf [13:53:31]FM_MakeSignedData [13:53:31]FM_MakeSignedData [13:53:31]SAM_PROTO_SignData [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 0D 01 02 [13:53:31]Write to MH i2c: E2 08 00 AD 0A 80 0D 01 02 00 00 00 00 30 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [13:53:31]RAPDU: 90 00 [13:53:31]wFMCommunicate OK [13:53:31]wFMCommunicate request_size=255 [13:53:31]MH_SAM_APDU [13:53: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 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 9C 00 00 00 F4 03 04 00 DB FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E3 [13:53:31]Write to MH i2c: E2 02 01 AE 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 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 9C 00 00 00 F4 03 04 00 DB FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E3 00 00 9B [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [13:53:31]RAPDU: 90 00 [13:53:31]wFMCommunicate OK [13:53:31]wFMCommunicate request_size=10 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 0D 02 02 05 94 C5 B4 75 C0 [13:53:31]Write to MH i2c: E2 0D 00 AF 0A 80 0D 02 02 05 00 94 C5 B4 75 C0 00 00 7F [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [13:53:31]RAPDU: 90 00 [13:53:31]wFMCommunicate OK [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 0D 03 02 [13:53:31]Write to MH i2c: E2 08 00 B0 0A 80 0D 03 02 00 00 00 00 35 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0B 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0B 00 B0 0A 00 74 7F EF DA 55 8B F0 99 90 00 5B [13:53:31]RAPDU: 74 7F EF DA 55 8B F0 99 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_SignData done [13:53:31]FM_MakeSignedData done [13:53:31]CreateOFDProtocolMessage [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 11 00 00 [13:53:31]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [13:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:53:31]wFMCommunicate OK [13:53:31]CreateOFDProtocolMessage done [13:53:31]OFDSenderStorePacket 70640 [13:53:31]StoreOFDPacket docnum=70640 [13:53: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 44 13 07 01 68 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 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 9C 00 00 00 F4 03 04 00 DB FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E3 94 C5 B4 75 C0 74 7F EF DA 55 8B F0 99 [13:53:31]CheckFolder [13:53:31]dirname=/storage/ofd_packets [13:53:31]CheckFolder done [13:53:31]ProducePacketName [13:53:31]name=ofd_packets/00070640 [13:53:31]NVStorageSaveData ofd_packets/00070640 [13:53:31]File name is /storage/ofd_packets/00070640 [13:53:31]Write 301 bytes [13:53:31]NVStorageSaveData done [13:53:31]OFDSenderStorePacket done [13:53:31]KKMCreateOFDPacket done [13:53:31]NVStorageSaveData kkm_last_timestamp [13:53:31]File name is /storage/kkm_last_timestamp [13:53:31]Write 4 bytes [13:53:31]NVStorageSaveData done [13:53:31]ExternCall_PrintAddStr [13:53:31]wPrintStart [13:53:31]Write to MH i2c: 01 00 00 B2 0A BC [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 FF 0F D1 [13:53:31]RasterBufferAndPrint [13:53:31]line Счет N : (1)2886417 [13:53:31]line ИНН: 02508201610067 [13:53:31]line Контрольно-Кассовый Чек [13:53:31]line ПРОДАЖА [13:53:31]line ТРК (МРК, ГНК) : 32 [13:53:31]line Товар: 2710124130 [13:53:31]line Аи-92-К-5 [13:53:31]line 29.900 * 66.90 [13:53:31]line = 2000.31 [13:53:31]line НДС 12% НСП 1% [13:53:31]line > о реализуемом товаре [13:53:31]line ОКРУГЛЕНИЕ: -0.31 [13:53:31]line ИТОГО: 2000.00 [13:53:31]line Внесено: 2000.00 [13:53:31]line СДАЧА: 0.00 [13:53:31]line НСП 1% : 17.70 [13:53:31]line НДС 12% : 212.42 [13:53:31]line Наличными: 2000.00 [13:53:31]line Безнал.: 0.00 [13:53:31]line Место: АЗС № 85 "Партнер Нефть" [13:53:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:53:31]line СНО: Общий режим [13:53:31]line Чек 156 23.10.2024 13:53 [13:53:31]line Смена: 196 ФФД: 1.0 [13:53:31]line ЗНМ: 0300000167 [13:53:31]line РНМ: 0000000000156251 [13:53:31]line Версия ККМ: v1.0 [13:53:31]line ФМ: 0000000000963346 [13:53:31]line ФД: 70640 [13:53:31]line ФПД: 250228111603136 [13:53:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135331&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70640&fm=250228111603136&tin=02508201610067®Number=0000000000156251&sum=200000 [13:53:31]OFD Sender: Processing packet 70640 [packets to send 18, broken 17] [13:53:31]ProducePacketName [13:53:31]name=ofd_packets/00070640 [13:53:31]OFD Sender: To server: pG, [13:53:31]CommunicateWithHost lk.salyk.kg:30040 [13:53:31]ConnectInit lk.salyk.kg [13:53:31]written 0, free lines is 4095 [13:53:32]Connected sock=10 [13: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 0F 01 00 00 44 13 07 01 68 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 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 9C 00 00 00 F4 03 04 00 DB FF 18 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 E3 94 C5 B4 75 C0 74 7F EF DA 55 8B F0 99 [13: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 E2 D9 47 00 C5 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 F0 13 01 00 F4 03 04 00 79 A9 18 67 B6 04 01 00 00 62 BF 96 A5 9D 8A 4F FC [13:53:32]CommunicateWithHost err = 0 [13:53:32]CheckOFDResponse [13:53:32]1017 (14) - 77093643461234 [13:53:32]1041 (16) - 0000000000963346 [13:53:32]1040 (4) - 70640 [13:53:32]1012 (4) - 23.10.2024 07:44 [13:53:32]1206 (1) - 0 [13:53:32]OFD Sender: Remove packet 70640 [13:53:32]ProducePacketName [13:53:32]name=ofd_packets/00070640 [13:53:32]NVStorageDeleteData [13:53:32]Write to MH i2c: 01 00 00 DD 0A E7 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: 01 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: 01 07 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 00 0D FB [13:53:32]RasterBufferAndPrint [13:53:32]line [13:53:32]line [13:53:32]line [13:53:32]line [13:53:32]line [13:53:32]written 0, free lines is 3334 [13:53:32]MH_Cut [13:53:32]Write to MH i2c: D1 01 00 E4 0A 01 C0 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: D1 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: D1 01 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: D1 01 00 E4 0A 00 BF [13:53:32]Write to MH i2c: 01 00 00 E5 0A EF [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]OFD Sender: No OFD packet to send [13:53:33]*** Cut start [13:53:33]*** Partial cut [13:53:33]*** CUTSNS_PIN = 1 [13:53:33]*** CUTSNS_PIN = 0 [13:53:33]*** Brake cut motor [13:53:33]Read from MH i2c: 01 [13:53:33]MH_I2C_Read... [13:53:33]*** Stop cut motor [13:53:33]*** Cut end [13:53:33]Read from MH i2c: 01 07 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 E5 0A 00 00 00 00 00 FF 0F 04 [13:53:33]process_action close_receipt done [13:53:33]requested_data is exist [13:53:33]produce_requested_data [13:53:33]requested_item fm.sn is exist - process it [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 11 00 00 [13:53:33]Write to MH i2c: E2 08 00 E6 0A 80 11 00 00 00 00 00 00 6A [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 17 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 17 00 E6 0A 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:53: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:53:33]wFMCommunicate OK [13:53:33]requested_item fd.num is exist - process it [13:53:33]SAM_PROTO_GetFieldsCounters [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 13 00 00 [13:53:33]Write to MH i2c: E2 08 00 E7 0A 80 13 00 00 00 00 00 00 6D [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 62 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 62 00 E7 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 F0 13 01 00 0E 04 04 00 C4 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 24 [13:53: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 F0 13 01 00 0E 04 04 00 C4 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 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_GetFieldsCounters done [13:53:33]requested_item shift.num is exist - process it [13:53:33]requested_item shift.opened is exist - process it [13:53:33]req_shift_opened [13:53:33]FM_GetShiftState [13:53:33]SAM_PROTO_GetShiftState [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 13 01 00 [13:53:33]Write to MH i2c: E2 08 00 E8 0A 80 13 01 00 00 00 00 00 6F [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 0E 00 E8 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FC [13:53:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:53:34]wFMCommunicate OK [13:53:34]SAM_PROTO_GetShiftState done [13:53:34]FM_GetShiftState done [13:53:34]req_shift_opened done [13:53:34]requested_item shift.open_date is exist - process it [13:53:34]req_shift_open_date [13:53:34]req_shift_open_date done [13:53:34]produce_requested_data done [13:53:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70640,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:53:34]process_action_free close_receipt [13:53:34]json_value_free [13:53:34]json_value_free done [13:53:34]process_json_proto returns [13:53:34]Send response to host [13:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70640,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:53:34]free response buf [13:53:34]execute_script done [13:53:34]execute_script returns [13:53:34]free content buf [13:53:34]Sock 7.Close socket [13:53:34]Sock 7.Thread stoped [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:57]accept exits with 9 [13:55:57]New connection [13:55:57]New thread 3066891620 created [13:55:57]Thread 3067034980 joined [13:55:57]Waiting for new connection... [13:55:57] Sock 9.Parse request [13:55:57]Sock 9.Check first char [13:55:57]Sock 9.First char is OK [13:55:57]request: POST /json_proto HTTP/1.0 [13:55:57]Method: POST [13:55:57]URL: /json_proto [13:55:57]Method is POST - this is cgi request [13:55:57]url: /json_proto [13:55:57]query_string will be loaded in cgi processing [13:55:57]execute_cgi json_proto POST (null) [13:55:57]execute_cgi path=json_proto method=POST [13:55:57]POST find Content-Length [13:55:57]Host: 172.17.50.3:8080 [13:55:57]Content-Length: 793 [13:55:57]Content-Type: application/json [13:55:57] [13:55:57]POST finish read [13:55:57]Found Content-Length = 793 [13:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886419", "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\u000A54199", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:57]execute_script... [13:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886419", "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\u000A54199", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:57]POST & json_proto [13:55:57]process_json_proto [13:55:57]json parsed OK: [13:55:57]protocol is kg_v1.0 [13:55:57]action value=close_receipt [13:55:57]process_action close_receipt [13:55:57]cmd_close_receipt [13:55:57]MH_GetDate [13:55:57]Write to MH i2c: F0 00 00 E9 0A E2 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 09 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 09 00 E9 0A 00 6E 00 19 67 6B 98 1E 66 60 [13:55:57]GetLastDocTimeStamp 1729691611 [13:55:57]current date 1729691758 [13:55:57]FM_GetShiftState [13:55:57]SAM_PROTO_GetShiftState [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 01 00 [13:55:57]Write to MH i2c: E2 08 00 EA 0A 80 13 01 00 00 00 00 00 71 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 EA 0A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FE [13:55:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetShiftState done [13:55:57]FM_GetShiftState done [13:55:57]opened in 1729642435 [13:55:57]opened+sec_in_day 1729728835 [13:55:57]quantity*price = 0 [13:55:57]sum+1 = 1 [13:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 157 23.10.2024 13:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 54199 ФМ: 0000000000963346 ФД: 70641 ФПД: 263751229805129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70641&fm=263751229805129&tin=02508201610067®Number=0000000000156251&sum=0 [13:55:58]StoreToDocumentArchive [13:55:58]shift 196 fd 70641 [13:55:58]save to /storage/0196/doc_00070641 [13:55:58]save last doc name /storage/0196/doc_00070641 to /storage/kkm_last_doc_name [13:55:58]save OK [13:55:58]Clear old archive folders... [13:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:58]tlvbuf is 00158130 [13:55:58]SAM_PROTO_ClearQueue [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 09 00 00 [13:55:58]Write to MH i2c: E2 08 00 F7 0A 80 09 00 00 00 00 00 00 73 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 F7 0A 00 90 00 75 [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]SAM_PROTO_ClearQueue done [13:55:58]KKMCreateOFDPacket [13:55:58]OFDProtocolAddRootSTLVToBuf [13:55:58]FM_MakeSignedData [13:55:58]FM_MakeSignedData [13:55:58]SAM_PROTO_SignData [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 0D 01 02 [13:55:58]Write to MH i2c: E2 08 00 F8 0A 80 0D 01 02 00 00 00 00 7B [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]wFMCommunicate request_size=255 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9D 00 00 00 F4 03 04 00 6E 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF [13:55:58]Write to MH i2c: E2 02 01 F9 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 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 9D 00 00 00 F4 03 04 00 6E 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF 00 00 30 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]wFMCommunicate request_size=10 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 0D 02 02 05 E1 5E 5C 92 49 [13:55:58]Write to MH i2c: E2 0D 00 FA 0A 80 0D 02 02 05 00 E1 5E 5C 92 49 00 00 FE [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 0D 03 02 [13:55:58]Write to MH i2c: E2 08 00 FB 0A 80 0D 03 02 00 00 00 00 80 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0B 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0B 00 FB 0A 00 68 0A 7A DA FF 7A 3B EE 90 00 E9 [13:55:59]RAPDU: 68 0A 7A DA FF 7A 3B EE 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_SignData done [13:55:59]FM_MakeSignedData done [13:55:59]CreateOFDProtocolMessage [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 11 00 00 [13:55:59]Write to MH i2c: E2 08 00 FC 0A 80 11 00 00 00 00 00 00 80 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 FC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [13:55: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:55:59]wFMCommunicate OK [13:55:59]CreateOFDProtocolMessage done [13:55:59]OFDSenderStorePacket 70641 [13:55:59]StoreOFDPacket docnum=70641 [13:55: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 8C 56 07 01 3C 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9D 00 00 00 F4 03 04 00 6E 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF E1 5E 5C 92 49 68 0A 7A DA FF 7A 3B EE [13:55:59]CheckFolder [13:55:59]dirname=/storage/ofd_packets [13:55:59]CheckFolder done [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00070641 [13:55:59]NVStorageSaveData ofd_packets/00070641 [13:55:59]File name is /storage/ofd_packets/00070641 [13:55:59]Write 301 bytes [13:55:59]NVStorageSaveData done [13:55:59]OFDSenderStorePacket done [13:55:59]KKMCreateOFDPacket done [13:55:59]NVStorageSaveData kkm_last_timestamp [13:55:59]File name is /storage/kkm_last_timestamp [13:55:59]Write 4 bytes [13:55:59]NVStorageSaveData done [13:55:59]ExternCall_PrintAddStr [13:55:59]wPrintStart [13:55:59]Write to MH i2c: 01 00 00 FD 0A 07 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 FD 0A 00 00 00 00 00 FF 0F 1C [13:55:59]RasterBufferAndPrint [13:55:59]line Счет N : (1)2886419 [13:55:59]line ИНН: 02508201610067 [13:55:59]line Контрольно-Кассовый Чек [13:55:59]line ПРОДАЖА [13:55:59]line ТРК (МРК, ГНК) : 42 [13:55:59]line Товар: 2710124130 [13:55:59]line Аи-92-К-5 [13:55:59]line 20.000 * 0.00 [13:55:59]line = 0.00 [13:55:59]line НДС 12% НСП 1% [13:55:59]line > о реализуемом товаре [13:55:59]line ИТОГО: 0.00 [13:55:59]line НСП 1% : 0.00 [13:55:59]line НДС 12% : 0.00 [13:55:59]line Наличными: 0.00 [13:55:59]line Безнал.: 0.00 [13:55:59]line Место: АЗС № 85 "Партнер Нефть" [13:55:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:55:59]line СНО: Общий режим [13:55:59]line Чек 157 23.10.2024 13:55 [13:55:59]line Смена: 196 ФФД: 1.0 [13:55:59]line ЗНМ: 0300000167 [13:55:59]line РНМ: 0000000000156251 [13:55:59]line Версия ККМ: v1.0 [13:55:59]line Талоны: Топливная Карта [13:55:59]line 54199 [13:55:59]line ФМ: 0000000000963346 [13:55:59]line ФД: 70641 [13:55:59]line ФПД: 263751229805129 [13:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70641&fm=263751229805129&tin=02508201610067®Number=0000000000156251&sum=0 [13:55:59]OFD Sender: Processing packet 70641 [packets to send 18, broken 17] [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00070641 [13:55:59]OFD Sender: To server: pG, [13:55:59]CommunicateWithHost lk.salyk.kg:30040 [13:55:59]ConnectInit lk.salyk.kg [13:55:59]written 0, free lines is 4095 [13:55:59]Connected sock=10 [13:55: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 8C 56 07 01 3C 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9D 00 00 00 F4 03 04 00 6E 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EF E1 5E 5C 92 49 68 0A 7A DA FF 7A 3B EE [13:55: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 FF 3E 47 00 E6 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 F1 13 01 00 F4 03 04 00 0C AA 18 67 B6 04 01 00 00 13 7F 97 F0 BE 54 44 17 [13:55:59]CommunicateWithHost err = 0 [13:55:59]CheckOFDResponse [13:55:59]1017 (14) - 77093643461234 [13:55:59]1041 (16) - 0000000000963346 [13:55:59]1040 (4) - 70641 [13:55:59]1012 (4) - 23.10.2024 07:47 [13:55:59]1206 (1) - 0 [13:55:59]OFD Sender: Remove packet 70641 [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00070641 [13:55:59]NVStorageDeleteData [13:55:59]Write to MH i2c: 01 00 00 27 0B 32 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 04 0D 4A [13:55:59]RasterBufferAndPrint [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]written 0, free lines is 3340 [13:55:59]MH_Cut [13:55:59]Write to MH i2c: D1 01 00 2E 0B 01 0B [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 01 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 01 00 2E 0B 00 0A [13:55:59]Write to MH i2c: 01 00 00 2F 0B 3A [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:56:00]OFD Sender: No OFD packet to send [13:56:00]*** Cut start [13:56:00]*** Partial cut [13:56:00]*** CUTSNS_PIN = 1 [13:56:00]*** CUTSNS_PIN = 0 [13:56:00]*** Brake cut motor [13:56:01]Read from MH i2c: 01 [13:56:01]MH_I2C_Read... [13:56:01]*** Stop cut motor [13:56:01]*** Cut end [13:56:01]Read from MH i2c: 01 07 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 FF 0F 4F [13:56:01]process_action close_receipt done [13:56:01]requested_data is exist [13:56:01]produce_requested_data [13:56:01]requested_item fm.sn is exist - process it [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 11 00 00 [13:56:01]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 17 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [13:56: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:56:01]wFMCommunicate OK [13:56:01]requested_item fd.num is exist - process it [13:56:01]SAM_PROTO_GetFieldsCounters [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 13 00 00 [13:56:01]Write to MH i2c: E2 08 00 31 0B 80 13 00 00 00 00 00 00 B8 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 62 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 62 00 31 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 F1 13 01 00 0E 04 04 00 C4 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 73 [13:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 13 01 00 0E 04 04 00 C4 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 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_GetFieldsCounters done [13:56:01]requested_item shift.num is exist - process it [13:56:01]requested_item shift.opened is exist - process it [13:56:01]req_shift_opened [13:56:01]FM_GetShiftState [13:56:01]SAM_PROTO_GetShiftState [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 13 01 00 [13:56:01]Write to MH i2c: E2 08 00 32 0B 80 13 01 00 00 00 00 00 BA [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 0E 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 0E 00 32 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 47 [13:56:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_GetShiftState done [13:56:01]FM_GetShiftState done [13:56:01]req_shift_opened done [13:56:01]requested_item shift.open_date is exist - process it [13:56:01]req_shift_open_date [13:56:01]req_shift_open_date done [13:56:01]produce_requested_data done [13:56:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70641,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:56:01]process_action_free close_receipt [13:56:01]json_value_free [13:56:01]json_value_free done [13:56:01]process_json_proto returns [13:56:01]Send response to host [13:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70641,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:56:01]free response buf [13:56:01]execute_script done [13:56:01]execute_script returns [13:56:01]free content buf [13:56:01]Sock 9.Close socket [13:56:01]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:07]accept exits with 7 [13:57:07]New connection [13:57:07]New thread 3067034980 created [13:57:07]Thread 3066891620 joined [13:57:07]Waiting for new connection... [13:57:07] Sock 7.Parse request [13:57:07]Sock 7.Check first char [13:57:07]Sock 7.First char is OK [13:57:07]request: POST /json_proto HTTP/1.0 [13:57:07]Method: POST [13:57:07]URL: /json_proto [13:57:07]Method is POST - this is cgi request [13:57:07]url: /json_proto [13:57:07]query_string will be loaded in cgi processing [13:57:07]execute_cgi json_proto POST (null) [13:57:07]execute_cgi path=json_proto method=POST [13:57:07]POST find Content-Length [13:57:07]Host: 172.17.50.3:8080 [13:57:07]Content-Length: 978 [13:57:07]Content-Type: application/json [13:57:07] [13:57:07]POST finish read [13:57:07]Found Content-Length = 978 [13:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886418", "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" : 93.900, "sum" : 7061.28, "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 93.90 \u0441\u043E\u043C", "deposit" : 7061.00, "total" : 7061.00, "payments": [ { "type": 0, "sum" : 7061.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:07]execute_script... [13:57: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)2886418", "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" : 93.900, "sum" : 7061.28, "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 93.90 \u0441\u043E\u043C", "deposit" : 7061.00, "total" : 7061.00, "payments": [ { "type": 0, "sum" : 7061.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:07]POST & json_proto [13:57:07]process_json_proto [13:57:07]json parsed OK: [13:57:07]protocol is kg_v1.0 [13:57:07]action value=close_receipt [13:57:07]process_action close_receipt [13:57:07]cmd_close_receipt [13:57:07]MH_GetDate [13:57:07]Write to MH i2c: F0 00 00 33 0B 2D [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 33 0B 00 B4 00 19 67 6B 98 1E 66 F1 [13:57:07]GetLastDocTimeStamp 1729691758 [13:57:07]current date 1729691828 [13:57:07]FM_GetShiftState [13:57:07]SAM_PROTO_GetShiftState [13:57:07]wFMCommunicate request_size=4 [13:57:07]MH_SAM_APDU [13:57:07]CAPDU: 80 13 01 00 [13:57:07]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:07]Read from MH i2c: E2 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 49 [13:57:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:57:07]wFMCommunicate OK [13:57:07]SAM_PROTO_GetShiftState done [13:57:07]FM_GetShiftState done [13:57:07]opened in 1729642435 [13:57:07]opened+sec_in_day 1729728835 [13:57:07]quantity*price = 706128 [13:57:07]sum+1 = 706129 [13:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 7061.00 Внесено: 7061.00 СДАЧА: 0.00 НСП 1% : 62.49 НДС 12% : 749.87 Наличными: 7061.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 158 23.10.2024 13:57 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 93.90 сом ФМ: 0000000000963346 ФД: 70642 ФПД: 225516551314997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70642&fm=225516551314997&tin=02508201610067®Number=0000000000156251&sum=706100 [13:57:08]StoreToDocumentArchive [13:57:08]shift 196 fd 70642 [13:57:08]save to /storage/0196/doc_00070642 [13:57:08]save last doc name /storage/0196/doc_00070642 to /storage/kkm_last_doc_name [13:57:08]save OK [13:57:08]Clear old archive folders... [13:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:08]tlvbuf is 001221D0 [13:57:08]SAM_PROTO_ClearQueue [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 09 00 00 [13:57:08]Write to MH i2c: E2 08 00 41 0B 80 09 00 00 00 00 00 00 BE [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]SAM_PROTO_ClearQueue done [13:57:08]KKMCreateOFDPacket [13:57:08]OFDProtocolAddRootSTLVToBuf [13:57:08]FM_MakeSignedData [13:57:08]FM_MakeSignedData [13:57:08]SAM_PROTO_SignData [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 0D 01 02 [13:57:08]Write to MH i2c: E2 08 00 42 0B 80 0D 01 02 00 00 00 00 C6 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]wFMCommunicate request_size=255 [13:57:08]MH_SAM_APDU [13:57:08]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 CC 6E 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 50 C6 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 C6 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 24 01 00 00 00 07 04 06 00 34 C6 0A 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 B4 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CD 1B 29 EE [13:57:08]Write to MH i2c: E2 02 01 43 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 CC 6E 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 50 C6 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 C6 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 24 01 00 00 00 07 04 06 00 34 C6 0A 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 B4 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CD 1B 29 EE 00 00 29 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]wFMCommunicate request_size=7 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 0D 02 02 02 9E 35 [13:57:08]Write to MH i2c: E2 0A 00 44 0B 80 0D 02 02 02 00 9E 35 00 00 A0 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 0D 03 02 [13:57:08]Write to MH i2c: E2 08 00 45 0B 80 0D 03 02 00 00 00 00 CB [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 0B 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 0B 00 45 0B 00 06 72 3E 53 B2 D7 2C D2 90 00 5C [13:57:08]RAPDU: 06 72 3E 53 B2 D7 2C D2 90 00 [13:57:08]wFMCommunicate OK [13:57:08]SAM_PROTO_SignData done [13:57:08]FM_MakeSignedData done [13:57:08]CreateOFDProtocolMessage [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 11 00 00 [13:57:08]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 17 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [13:57:08]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:08]wFMCommunicate OK [13:57:08]CreateOFDProtocolMessage done [13:57:08]OFDSenderStorePacket 70642 [13:57:08]StoreOFDPacket docnum=70642 [13:57: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 0C 01 00 00 CA CD 04 01 04 71 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 CC 6E 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 50 C6 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 C6 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 24 01 00 00 00 07 04 06 00 34 C6 0A 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 B4 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CD 1B 29 EE 9E 35 06 72 3E 53 B2 D7 2C D2 [13:57:08]CheckFolder [13:57:08]dirname=/storage/ofd_packets [13:57:08]CheckFolder done [13:57:08]ProducePacketName [13:57:08]name=ofd_packets/00070642 [13:57:08]NVStorageSaveData ofd_packets/00070642 [13:57:08]File name is /storage/ofd_packets/00070642 [13:57:08]Write 298 bytes [13:57:08]NVStorageSaveData done [13:57:08]OFDSenderStorePacket done [13:57:08]KKMCreateOFDPacket done [13:57:08]NVStorageSaveData kkm_last_timestamp [13:57:08]File name is /storage/kkm_last_timestamp [13:57:08]Write 4 bytes [13:57:08]NVStorageSaveData done [13:57:08]ExternCall_PrintAddStr [13:57:08]wPrintStart [13:57:08]Write to MH i2c: 01 00 00 47 0B 52 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: 01 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: 01 07 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 FF 0F 67 [13:57:08]RasterBufferAndPrint [13:57:08]line Счет N : (1)2886418 [13:57:08]line ИНН: 02508201610067 [13:57:08]line Контрольно-Кассовый Чек [13:57:08]line ПРОДАЖА [13:57:08]line ТРК (МРК, ГНК) : 61 [13:57:08]line Товар: 2710194210 [13:57:08]line ДТ-К-5 [13:57:08]line 93.900 * 75.20 [13:57:08]line = 7061.28 [13:57:08]line НДС 12% НСП 1% [13:57:08]line > о реализуемом товаре [13:57:08]line ОКРУГЛЕНИЕ: -0.28 [13:57:08]line ИТОГО: 7061.00 [13:57:08]line Внесено: 7061.00 [13:57:08]line СДАЧА: 0.00 [13:57:08]line НСП 1% : 62.49 [13:57:08]line НДС 12% : 749.87 [13:57:08]line Наличными: 7061.00 [13:57:08]line Безнал.: 0.00 [13:57:08]line Место: АЗС № 85 "Партнер Нефть" [13:57:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:08]line СНО: Общий режим [13:57:08]line Чек 158 23.10.2024 13:57 [13:57:08]line Смена: 196 ФФД: 1.0 [13:57:08]line ЗНМ: 0300000167 [13:57:08]line РНМ: 0000000000156251 [13:57:08]line Версия ККМ: v1.0 [13:57:08]line [13:57:08]line Дисконтная программа [13:57:08]line ДТ [13:57:08]line номер 85 [13:57:08]line сэкономлено 93.90 сом [13:57:08]line ФМ: 0000000000963346 [13:57:08]line ФД: 70642 [13:57:09]line ФПД: 225516551314997 [13:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70642&fm=225516551314997&tin=02508201610067®Number=0000000000156251&sum=706100 [13:57:09]OFD Sender: Processing packet 70642 [packets to send 18, broken 17] [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00070642 [13:57:09]OFD Sender: To server: pG, [13:57:09]CommunicateWithHost lk.salyk.kg:30040 [13:57:09]ConnectInit lk.salyk.kg [13:57:09]written 0, free lines is 4095 [13:57:09]Connected sock=10 [13:57: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 0C 01 00 00 CA CD 04 01 04 71 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 CC 6E 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 50 C6 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 C6 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 24 01 00 00 00 07 04 06 00 34 C6 0A 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 B4 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 CD 1B 29 EE 9E 35 06 72 3E 53 B2 D7 2C D2 [13:57: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 EC 0F 47 00 A9 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 F2 13 01 00 F4 03 04 00 52 AA 18 67 B6 04 01 00 00 2B 08 83 32 D1 8F 57 5D [13:57:09]CommunicateWithHost err = 0 [13:57:09]CheckOFDResponse [13:57:09]1017 (14) - 77093643461234 [13:57:09]1041 (16) - 0000000000963346 [13:57:09]1040 (4) - 70642 [13:57:09]1012 (4) - 23.10.2024 07:48 [13:57:09]1206 (1) - 0 [13:57:09]OFD Sender: Remove packet 70642 [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00070642 [13:57:09]NVStorageDeleteData [13:57:09]Write to MH i2c: 01 00 00 77 0B 82 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 A0 0C 35 [13:57:09]RasterBufferAndPrint [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]written 0, free lines is 3239 [13:57:09]MH_Cut [13:57:09]Write to MH i2c: D1 01 00 7E 0B 01 5B [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 01 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 01 00 7E 0B 00 5A [13:57:09]Write to MH i2c: 01 00 00 7F 0B 8A [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]OFD Sender: No OFD packet to send [13:57:10]*** Cut start [13:57:10]*** Partial cut [13:57:10]*** CUTSNS_PIN = 1 [13:57:10]*** CUTSNS_PIN = 0 [13:57:10]*** Brake cut motor [13:57:10]Read from MH i2c: 01 [13:57:10]MH_I2C_Read... [13:57:10]*** Stop cut motor [13:57:10]*** Cut end [13:57:10]Read from MH i2c: 01 07 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [13:57:10]process_action close_receipt done [13:57:10]requested_data is exist [13:57:10]produce_requested_data [13:57:10]requested_item fm.sn is exist - process it [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 11 00 00 [13:57:10]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:10]Read from MH i2c: E2 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 17 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 17 00 80 0B 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: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 [13:57:10]wFMCommunicate OK [13:57:10]requested_item fd.num is exist - process it [13:57:10]SAM_PROTO_GetFieldsCounters [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 13 00 00 [13:57:11]Write to MH i2c: E2 08 00 81 0B 80 13 00 00 00 00 00 00 08 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 81 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 F2 13 01 00 0E 04 04 00 C4 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 C7 [13:57: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 F2 13 01 00 0E 04 04 00 C4 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 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetFieldsCounters done [13:57:11]requested_item shift.num is exist - process it [13:57:11]requested_item shift.opened is exist - process it [13:57:11]req_shift_opened [13:57:11]FM_GetShiftState [13:57:11]SAM_PROTO_GetShiftState [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 13 01 00 [13:57:11]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 97 [13:57:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetShiftState done [13:57:11]FM_GetShiftState done [13:57:11]req_shift_opened done [13:57:11]requested_item shift.open_date is exist - process it [13:57:11]req_shift_open_date [13:57:11]req_shift_open_date done [13:57:11]produce_requested_data done [13:57:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70642,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:57:11]process_action_free close_receipt [13:57:11]json_value_free [13:57:11]json_value_free done [13:57:11]process_json_proto returns [13:57:11]Send response to host [13:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70642,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:57:11]free response buf [13:57:11]execute_script done [13:57:11]execute_script returns [13:57:11]free content buf [13:57:11]Sock 7.Close socket [13:57:11]Sock 7.Thread stoped [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:47]accept exits with 9 [13:57:47]New connection [13:57:47]New thread 3066891620 created [13:57:47]Thread 3067034980 joined [13:57:47]Waiting for new connection... [13:57:47] Sock 9.Parse request [13:57:47]Sock 9.Check first char [13:57:47]Sock 9.First char is OK [13:57:47]request: POST /json_proto HTTP/1.0 [13:57:47]Method: POST [13:57:47]URL: /json_proto [13:57:47]Method is POST - this is cgi request [13:57:47]url: /json_proto [13:57:47]query_string will be loaded in cgi processing [13:57:47]execute_cgi json_proto POST (null) [13:57:47]execute_cgi path=json_proto method=POST [13:57:47]POST find Content-Length [13:57:47]Host: 172.17.50.3:8080 [13:57:47]Content-Length: 675 [13:57:47]Content-Type: application/json [13:57:47] [13:57:47]POST finish read [13:57:47]Found Content-Length = 675 [13:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886420", "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" ] } } [13:57:47]execute_script... [13:57: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)2886420", "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" ] } } [13:57:47]POST & json_proto [13:57:47]process_json_proto [13:57:47]json parsed OK: [13:57:47]protocol is kg_v1.0 [13:57:47]action value=close_receipt [13:57:47]process_action close_receipt [13:57:47]cmd_close_receipt [13:57:47]MH_GetDate [13:57:47]Write to MH i2c: F0 00 00 83 0B 7D [13:57:47]Write i2c OK [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: F0 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: F0 09 00 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: F0 09 00 83 0B 00 DC 00 19 67 6B 98 1E 66 69 [13:57:47]GetLastDocTimeStamp 1729691828 [13:57:47]current date 1729691868 [13:57:47]FM_GetShiftState [13:57:47]SAM_PROTO_GetShiftState [13:57:47]wFMCommunicate request_size=4 [13:57:47]MH_SAM_APDU [13:57:47]CAPDU: 80 13 01 00 [13:57:47]Write to MH i2c: E2 08 00 84 0B 80 13 01 00 00 00 00 00 0C [13:57:47]Write i2c OK [13:57:47]MH_I2C_Read... [13:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:47]Read from MH i2c: E2 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: E2 0E 00 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: E2 0E 00 84 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 99 [13:57:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:57:47]wFMCommunicate OK [13:57:47]SAM_PROTO_GetShiftState done [13:57:47]FM_GetShiftState done [13:57:47]opened in 1729642435 [13:57:47]opened+sec_in_day 1729728835 [13:57:47]quantity*price = 50063 [13:57:47]sum+1 = 50064 [13:57:47]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 СНО: Общий режим Чек 159 23.10.2024 13:57 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70643 ФПД: 31024475583634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70643&fm=31024475583634&tin=02508201610067®Number=0000000000156251&sum=50000 [13:57:48]StoreToDocumentArchive [13:57:48]shift 196 fd 70643 [13:57:48]save to /storage/0196/doc_00070643 [13:57:48]save last doc name /storage/0196/doc_00070643 to /storage/kkm_last_doc_name [13:57:48]save OK [13:57:48]Clear old archive folders... [13:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:48]tlvbuf is 00162EC0 [13:57:48]SAM_PROTO_ClearQueue [13:57:48]wFMCommunicate request_size=4 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 09 00 00 [13:57:48]Write to MH i2c: E2 08 00 91 0B 80 09 00 00 00 00 00 00 0E [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [13:57:48]RAPDU: 90 00 [13:57:48]wFMCommunicate OK [13:57:48]SAM_PROTO_ClearQueue done [13:57:48]KKMCreateOFDPacket [13:57:48]OFDProtocolAddRootSTLVToBuf [13:57:48]FM_MakeSignedData [13:57:48]FM_MakeSignedData [13:57:48]SAM_PROTO_SignData [13:57:48]wFMCommunicate request_size=4 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 0D 01 02 [13:57:48]Write to MH i2c: E2 08 00 92 0B 80 0D 01 02 00 00 00 00 16 [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [13:57:48]RAPDU: 90 00 [13:57:48]wFMCommunicate OK [13:57:48]wFMCommunicate request_size=255 [13:57:48]MH_SAM_APDU [13:57:48]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 9F 00 00 00 F4 03 04 00 DC 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 37 72 D8 [13:57:48]Write to MH i2c: E2 02 01 93 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 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 9F 00 00 00 F4 03 04 00 DC 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 37 72 D8 00 00 80 [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [13:57:48]RAPDU: 90 00 [13:57:48]wFMCommunicate OK [13:57:48]wFMCommunicate request_size=7 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 0D 02 02 02 B4 92 [13:57:48]Write to MH i2c: E2 0A 00 94 0B 80 0D 02 02 02 00 B4 92 00 00 63 [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [13:57:48]RAPDU: 90 00 [13:57:48]wFMCommunicate OK [13:57:48]wFMCommunicate request_size=4 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 0D 03 02 [13:57:48]Write to MH i2c: E2 08 00 95 0B 80 0D 03 02 00 00 00 00 1B [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 0B 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 0B 00 95 0B 00 A6 E2 E9 79 BD AA 9C 45 90 00 4E [13:57:48]RAPDU: A6 E2 E9 79 BD AA 9C 45 90 00 [13:57:48]wFMCommunicate OK [13:57:48]SAM_PROTO_SignData done [13:57:48]FM_MakeSignedData done [13:57:48]CreateOFDProtocolMessage [13:57:48]wFMCommunicate request_size=4 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 11 00 00 [13:57:48]Write to MH i2c: E2 08 00 96 0B 80 11 00 00 00 00 00 00 1B [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:49]Read from MH i2c: E2 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: E2 17 00 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: E2 17 00 96 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [13: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 [13:57:49]wFMCommunicate OK [13:57:49]CreateOFDProtocolMessage done [13:57:49]OFDSenderStorePacket 70643 [13:57:49]StoreOFDPacket docnum=70643 [13:57: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 0C 01 00 00 36 2C 04 01 F3 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 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 9F 00 00 00 F4 03 04 00 DC 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 37 72 D8 B4 92 A6 E2 E9 79 BD AA 9C 45 [13:57:49]CheckFolder [13:57:49]dirname=/storage/ofd_packets [13:57:49]CheckFolder done [13:57:49]ProducePacketName [13:57:49]name=ofd_packets/00070643 [13:57:49]NVStorageSaveData ofd_packets/00070643 [13:57:49]File name is /storage/ofd_packets/00070643 [13:57:49]Write 298 bytes [13:57:49]NVStorageSaveData done [13:57:49]OFDSenderStorePacket done [13:57:49]KKMCreateOFDPacket done [13:57:49]NVStorageSaveData kkm_last_timestamp [13:57:49]File name is /storage/kkm_last_timestamp [13:57:49]Write 4 bytes [13:57:49]NVStorageSaveData done [13:57:49]ExternCall_PrintAddStr [13:57:49]wPrintStart [13:57:49]Write to MH i2c: 01 00 00 97 0B A2 [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 07 00 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 07 00 97 0B 00 00 00 00 00 FF 0F B7 [13:57:49]RasterBufferAndPrint [13:57:49]line Счет N : (1)2886420 [13:57:49]line ИНН: 02508201610067 [13:57:49]line Контрольно-Кассовый Чек [13:57:49]line ПРОДАЖА [13:57:49]line ТРК (МРК, ГНК) : 51 [13:57:49]line Товар: 2710194210 [13:57:49]line ДТ-К-5 [13:57:49]line 6.570 * 76.20 [13:57:49]line = 500.63 [13:57:49]line НДС 12% НСП 1% [13:57:49]line > о реализуемом товаре [13:57:49]line ОКРУГЛЕНИЕ: -0.63 [13:57:49]line ИТОГО: 500.00 [13:57:49]line Внесено: 500.00 [13:57:49]line СДАЧА: 0.00 [13:57:49]line НСП 1% : 4.43 [13:57:49]line НДС 12% : 53.16 [13:57:49]line Наличными: 500.00 [13:57:49]line Безнал.: 0.00 [13:57:49]line Место: АЗС № 85 "Партнер Нефть" [13:57:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:49]line СНО: Общий режим [13:57:49]line Чек 159 23.10.2024 13:57 [13:57:49]line Смена: 196 ФФД: 1.0 [13:57:49]line ЗНМ: 0300000167 [13:57:49]line РНМ: 0000000000156251 [13:57:49]line Версия ККМ: v1.0 [13:57:49]line ФМ: 0000000000963346 [13:57:49]line ФД: 70643 [13:57:49]line ФПД: 31024475583634 [13:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70643&fm=31024475583634&tin=02508201610067®Number=0000000000156251&sum=50000 [13:57:49]OFD Sender: Processing packet 70643 [packets to send 18, broken 17] [13:57:49]ProducePacketName [13:57:49]name=ofd_packets/00070643 [13:57:49]OFD Sender: To server: pG, [13:57:49]CommunicateWithHost lk.salyk.kg:30040 [13:57:49]ConnectInit lk.salyk.kg [13:57:49]written 0, free lines is 4095 [13:57:49]Connected sock=10 [13:57: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 0C 01 00 00 36 2C 04 01 F3 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 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 9F 00 00 00 F4 03 04 00 DC 00 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 1C 37 72 D8 B4 92 A6 E2 E9 79 BD AA 9C 45 [13:57: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 8E 2F 47 00 DD 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 F3 13 01 00 F4 03 04 00 7A AA 18 67 B6 04 01 00 00 B3 2C 9F AB DF 28 0D 24 [13:57:49]CommunicateWithHost err = 0 [13:57:49]CheckOFDResponse [13:57:49]1017 (14) - 77093643461234 [13:57:49]1041 (16) - 0000000000963346 [13:57:49]1040 (4) - 70643 [13:57:49]1012 (4) - 23.10.2024 07:49 [13:57:49]1206 (1) - 0 [13:57:49]OFD Sender: Remove packet 70643 [13:57:49]ProducePacketName [13:57:49]name=ofd_packets/00070643 [13:57:49]NVStorageDeleteData [13:57:49]Write to MH i2c: 01 00 00 C2 0B CD [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 07 00 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: 01 07 00 C2 0B 00 00 00 00 00 F6 0C D6 [13:57:49]RasterBufferAndPrint [13:57:49]line [13:57:49]line [13:57:49]line [13:57:49]line [13:57:49]line [13:57:49]written 0, free lines is 3324 [13:57:49]MH_Cut [13:57:49]Write to MH i2c: D1 01 00 C9 0B 01 A6 [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: D1 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: D1 01 00 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: D1 01 00 C9 0B 00 A5 [13:57:49]Write to MH i2c: 01 00 00 CA 0B D5 [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:50]OFD Sender: No OFD packet to send [13:57:50]*** Cut start [13:57:50]*** Partial cut [13:57:50]*** CUTSNS_PIN = 1 [13:57:50]*** CUTSNS_PIN = 0 [13:57:50]*** Brake cut motor [13:57:51]Read from MH i2c: 01 [13:57:51]MH_I2C_Read... [13:57:51]*** Stop cut motor [13:57:51]*** Cut end [13:57:51]Read from MH i2c: 01 07 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [13:57:51]process_action close_receipt done [13:57:51]requested_data is exist [13:57:51]produce_requested_data [13:57:51]requested_item fm.sn is exist - process it [13:57:51]wFMCommunicate request_size=4 [13:57:51]MH_SAM_APDU [13:57:51]CAPDU: 80 11 00 00 [13:57:51]Write to MH i2c: E2 08 00 CB 0B 80 11 00 00 00 00 00 00 50 [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:51]Read from MH i2c: E2 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 17 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 17 00 CB 0B 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:57: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:57:51]wFMCommunicate OK [13:57:51]requested_item fd.num is exist - process it [13:57:51]SAM_PROTO_GetFieldsCounters [13:57:51]wFMCommunicate request_size=4 [13:57:51]MH_SAM_APDU [13:57:51]CAPDU: 80 13 00 00 [13:57:51]Write to MH i2c: E2 08 00 CC 0B 80 13 00 00 00 00 00 00 53 [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:51]Read from MH i2c: E2 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 62 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 62 00 CC 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 F3 13 01 00 0E 04 04 00 C4 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 16 [13:57: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 F3 13 01 00 0E 04 04 00 C4 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 [13:57:51]wFMCommunicate OK [13:57:51]SAM_PROTO_GetFieldsCounters done [13:57:51]requested_item shift.num is exist - process it [13:57:51]requested_item shift.opened is exist - process it [13:57:51]req_shift_opened [13:57:51]FM_GetShiftState [13:57:51]SAM_PROTO_GetShiftState [13:57:51]wFMCommunicate request_size=4 [13:57:51]MH_SAM_APDU [13:57:51]CAPDU: 80 13 01 00 [13:57:51]Write to MH i2c: E2 08 00 CD 0B 80 13 01 00 00 00 00 00 55 [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:51]Read from MH i2c: E2 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 0E 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: E2 0E 00 CD 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E2 [13:57:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [13:57:51]wFMCommunicate OK [13:57:51]SAM_PROTO_GetShiftState done [13:57:51]FM_GetShiftState done [13:57:51]req_shift_opened done [13:57:51]requested_item shift.open_date is exist - process it [13:57:51]req_shift_open_date [13:57:51]req_shift_open_date done [13:57:51]produce_requested_data done [13:57:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70643,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [13:57:51]process_action_free close_receipt [13:57:51]json_value_free [13:57:51]json_value_free done [13:57:51]process_json_proto returns [13:57:51]Send response to host [13:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70643,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [13:57:51]free response buf [13:57:51]execute_script done [13:57:51]execute_script returns [13:57:51]free content buf [13:57:51]Sock 9.Close socket [13:57:51]Sock 9.Thread stoped [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:30]accept exits with 7 [14:04:30]New connection [14:04:30]New thread 3067034980 created [14:04:30]Thread 3066891620 joined [14:04:30]Waiting for new connection... [14:04:30] Sock 7.Parse request [14:04:30]Sock 7.Check first char [14:04:30]Sock 7.First char is OK [14:04:30]request: POST /json_proto HTTP/1.0 [14:04:30]Method: POST [14:04:30]URL: /json_proto [14:04:30]Method is POST - this is cgi request [14:04:30]url: /json_proto [14:04:30]query_string will be loaded in cgi processing [14:04:30]execute_cgi json_proto POST (null) [14:04:30]execute_cgi path=json_proto method=POST [14:04:30]POST find Content-Length [14:04:30]Host: 172.17.50.3:8080 [14:04:30]Content-Length: 678 [14:04:30]Content-Type: application/json [14:04:30] [14:04:30]POST finish read [14:04:30]Found Content-Length = 678 [14:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886421", "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:04:30]execute_script... [14:04: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)2886421", "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:04:30]POST & json_proto [14:04:30]process_json_proto [14:04:30]json parsed OK: [14:04:30]protocol is kg_v1.0 [14:04:30]action value=close_receipt [14:04:30]process_action close_receipt [14:04:30]cmd_close_receipt [14:04:30]MH_GetDate [14:04:30]Write to MH i2c: F0 00 00 CE 0B C8 [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: F0 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: F0 09 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: F0 09 00 CE 0B 00 6F 02 19 67 6B 98 1E 66 49 [14:04:30]GetLastDocTimeStamp 1729691868 [14:04:30]current date 1729692271 [14:04:30]FM_GetShiftState [14:04:30]SAM_PROTO_GetShiftState [14:04:30]wFMCommunicate request_size=4 [14:04:30]MH_SAM_APDU [14:04:30]CAPDU: 80 13 01 00 [14:04:30]Write to MH i2c: E2 08 00 CF 0B 80 13 01 00 00 00 00 00 57 [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:30]Read from MH i2c: E2 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 0E 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 0E 00 CF 0B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E4 [14:04:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:04:30]wFMCommunicate OK [14:04:30]SAM_PROTO_GetShiftState done [14:04:30]FM_GetShiftState done [14:04:30]opened in 1729642435 [14:04:30]opened+sec_in_day 1729728835 [14:04:30]quantity*price = 30038 [14:04:30]sum+1 = 30039 [14:04:30]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 СНО: Общий режим Чек 160 23.10.2024 14:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70644 ФПД: 260413123122664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140432&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70644&fm=260413123122664&tin=02508201610067®Number=0000000000156251&sum=30000 [14:04:31]StoreToDocumentArchive [14:04:31]shift 196 fd 70644 [14:04:31]save to /storage/0196/doc_00070644 [14:04:31]save last doc name /storage/0196/doc_00070644 to /storage/kkm_last_doc_name [14:04:31]save OK [14:04:31]Clear old archive folders... [14:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:31]tlvbuf is B6EBCAE0 [14:04:31]SAM_PROTO_ClearQueue [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 09 00 00 [14:04:31]Write to MH i2c: E2 08 00 DC 0B 80 09 00 00 00 00 00 00 59 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_ClearQueue done [14:04:31]KKMCreateOFDPacket [14:04:31]OFDProtocolAddRootSTLVToBuf [14:04:31]FM_MakeSignedData [14:04:31]FM_MakeSignedData [14:04:31]SAM_PROTO_SignData [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 01 02 [14:04:31]Write to MH i2c: E2 08 00 DD 0B 80 0D 01 02 00 00 00 00 61 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=255 [14:04:31]MH_SAM_APDU [14:04: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 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 A0 00 00 00 F4 03 04 00 70 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EC [14:04:31]Write to MH i2c: E2 02 01 DE 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 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 A0 00 00 00 F4 03 04 00 70 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EC 00 00 28 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 [14:04:32]MH_I2C_Read... [14:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:32]Read from MH i2c: E2 03 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [14:04:32]RAPDU: 90 00 [14:04:32]wFMCommunicate OK [14:04:32]wFMCommunicate request_size=10 [14:04:32]MH_SAM_APDU [14:04:32]CAPDU: 80 0D 02 02 05 D8 27 B2 D5 E8 [14:04:32]Write to MH i2c: E2 0D 00 DF 0B 80 0D 02 02 05 00 D8 27 B2 D5 E8 00 00 DC [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:32]Read from MH i2c: E2 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 03 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [14:04:32]RAPDU: 90 00 [14:04:32]wFMCommunicate OK [14:04:32]wFMCommunicate request_size=4 [14:04:32]MH_SAM_APDU [14:04:32]CAPDU: 80 0D 03 02 [14:04:32]Write to MH i2c: E2 08 00 E0 0B 80 0D 03 02 00 00 00 00 66 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:32]Read from MH i2c: E2 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 0B 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 0B 00 E0 0B 00 D3 11 4A 87 B4 70 85 57 90 00 1C [14:04:32]RAPDU: D3 11 4A 87 B4 70 85 57 90 00 [14:04:32]wFMCommunicate OK [14:04:32]SAM_PROTO_SignData done [14:04:32]FM_MakeSignedData done [14:04:32]CreateOFDProtocolMessage [14:04:32]wFMCommunicate request_size=4 [14:04:32]MH_SAM_APDU [14:04:32]CAPDU: 80 11 00 00 [14:04:32]Write to MH i2c: E2 08 00 E1 0B 80 11 00 00 00 00 00 00 66 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:32]Read from MH i2c: E2 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 17 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 17 00 E1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [14:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:04:32]wFMCommunicate OK [14:04:32]CreateOFDProtocolMessage done [14:04:32]OFDSenderStorePacket 70644 [14:04:32]StoreOFDPacket docnum=70644 [14:04: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 79 03 07 01 B4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 00 00 00 F4 03 04 00 70 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EC D8 27 B2 D5 E8 D3 11 4A 87 B4 70 85 57 [14:04:32]CheckFolder [14:04:32]dirname=/storage/ofd_packets [14:04:32]CheckFolder done [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00070644 [14:04:32]NVStorageSaveData ofd_packets/00070644 [14:04:32]File name is /storage/ofd_packets/00070644 [14:04:32]Write 301 bytes [14:04:32]NVStorageSaveData done [14:04:32]OFDSenderStorePacket done [14:04:32]KKMCreateOFDPacket done [14:04:32]NVStorageSaveData kkm_last_timestamp [14:04:32]File name is /storage/kkm_last_timestamp [14:04:32]Write 4 bytes [14:04:32]NVStorageSaveData done [14:04:32]ExternCall_PrintAddStr [14:04:32]wPrintStart [14:04:32]Write to MH i2c: 01 00 00 E2 0B ED [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 FF 0F 02 [14:04:32]RasterBufferAndPrint [14:04:32]line Счет N : (1)2886421 [14:04:32]line ИНН: 02508201610067 [14:04:32]line Контрольно-Кассовый Чек [14:04:32]line ПРОДАЖА [14:04:32]line ТРК (МРК, ГНК) : 42 [14:04:32]line Товар: 2710124130 [14:04:32]line Аи-92-К-5 [14:04:32]line 4.490 * 66.90 [14:04:32]line = 300.38 [14:04:32]line НДС 12% НСП 1% [14:04:32]line > о реализуемом товаре [14:04:32]line ОКРУГЛЕНИЕ: -0.38 [14:04:32]line ИТОГО: 300.00 [14:04:32]line Внесено: 300.00 [14:04:32]line СДАЧА: 0.00 [14:04:32]line НСП 1% : 2.66 [14:04:32]line НДС 12% : 31.90 [14:04:32]line Наличными: 300.00 [14:04:32]line Безнал.: 0.00 [14:04:32]line Место: АЗС № 85 "Партнер Нефть" [14:04:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:04:32]line СНО: Общий режим [14:04:32]line Чек 160 23.10.2024 14:04 [14:04:32]line Смена: 196 ФФД: 1.0 [14:04:32]line ЗНМ: 0300000167 [14:04:32]line РНМ: 0000000000156251 [14:04:32]line Версия ККМ: v1.0 [14:04:32]line ФМ: 0000000000963346 [14:04:32]line ФД: 70644 [14:04:32]line ФПД: 260413123122664 [14:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140432&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70644&fm=260413123122664&tin=02508201610067®Number=0000000000156251&sum=30000 [14:04:32]OFD Sender: Processing packet 70644 [packets to send 18, broken 17] [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00070644 [14:04:32]OFD Sender: To server: pG, [14:04:32]CommunicateWithHost lk.salyk.kg:30040 [14:04:32]ConnectInit lk.salyk.kg [14:04:32]written 0, free lines is 4095 [14:04:32]Connected sock=10 [14:04: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 79 03 07 01 B4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 00 00 00 F4 03 04 00 70 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 EC D8 27 B2 D5 E8 D3 11 4A 87 B4 70 85 57 [14:04: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 71 2F 47 00 8B 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 F4 13 01 00 F4 03 04 00 0D AC 18 67 B6 04 01 00 00 2A 67 8D AF 3D DD 5D 85 [14:04:32]CommunicateWithHost err = 0 [14:04:32]CheckOFDResponse [14:04:32]1017 (14) - 77093643461234 [14:04:32]1041 (16) - 0000000000963346 [14:04:32]1040 (4) - 70644 [14:04:32]1012 (4) - 23.10.2024 07:55 [14:04:32]1206 (1) - 0 [14:04:32]OFD Sender: Remove packet 70644 [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00070644 [14:04:32]NVStorageDeleteData [14:04:33]Write to MH i2c: 01 00 00 0D 0C 19 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: 01 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: 01 07 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 08 0D 35 [14:04:33]RasterBufferAndPrint [14:04:33]line [14:04:33]line [14:04:33]line [14:04:33]line [14:04:33]line [14:04:33]written 0, free lines is 3342 [14:04:33]MH_Cut [14:04:33]Write to MH i2c: D1 01 00 14 0C 01 F2 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: D1 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: D1 01 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: D1 01 00 14 0C 00 F1 [14:04:33]Write to MH i2c: 01 00 00 15 0C 21 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]OFD Sender: No OFD packet to send [14:04:33]*** Cut start [14:04:33]*** Partial cut [14:04:33]*** CUTSNS_PIN = 1 [14:04:33]*** CUTSNS_PIN = 0 [14:04:34]*** Brake cut motor [14:04:34]Read from MH i2c: 01 [14:04:34]MH_I2C_Read... [14:04:34]*** Stop cut motor [14:04:34]*** Cut end [14:04:34]Read from MH i2c: 01 07 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [14:04:34]process_action close_receipt done [14:04:34]requested_data is exist [14:04:34]produce_requested_data [14:04:34]requested_item fm.sn is exist - process it [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 11 00 00 [14:04:34]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 17 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [14:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:04:34]wFMCommunicate OK [14:04:34]requested_item fd.num is exist - process it [14:04:34]SAM_PROTO_GetFieldsCounters [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 13 00 00 [14:04:34]Write to MH i2c: E2 08 00 17 0C 80 13 00 00 00 00 00 00 9F [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 17 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 F4 13 01 00 0E 04 04 00 C4 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 66 [14:04: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 F4 13 01 00 0E 04 04 00 C4 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 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetFieldsCounters done [14:04:34]requested_item shift.num is exist - process it [14:04:34]requested_item shift.opened is exist - process it [14:04:34]req_shift_opened [14:04:34]FM_GetShiftState [14:04:34]SAM_PROTO_GetShiftState [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 13 01 00 [14:04:34]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 18 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2E [14:04:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetShiftState done [14:04:34]FM_GetShiftState done [14:04:34]req_shift_opened done [14:04:34]requested_item shift.open_date is exist - process it [14:04:34]req_shift_open_date [14:04:34]req_shift_open_date done [14:04:34]produce_requested_data done [14:04:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70644,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:04:34]process_action_free close_receipt [14:04:34]json_value_free [14:04:34]json_value_free done [14:04:34]process_json_proto returns [14:04:34]Send response to host [14:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70644,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:04:34]free response buf [14:04:34]execute_script done [14:04:34]execute_script returns [14:04:34]free content buf [14:04:34]Sock 7.Close socket [14:04:34]Sock 7.Thread stoped [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:53]accept exits with 9 [14:04:53]New connection [14:04:53]New thread 3066891620 created [14:04:53]Thread 3067034980 joined [14:04:53]Waiting for new connection... [14:04:53] Sock 9.Parse request [14:04:53]Sock 9.Check first char [14:04:53]Sock 9.First char is OK [14:04:53]request: POST /json_proto HTTP/1.0 [14:04:53]Method: POST [14:04:53]URL: /json_proto [14:04:53]Method is POST - this is cgi request [14:04:53]url: /json_proto [14:04:53]query_string will be loaded in cgi processing [14:04:53]execute_cgi json_proto POST (null) [14:04:53]execute_cgi path=json_proto method=POST [14:04:53]POST find Content-Length [14:04:53]Host: 172.17.50.3:8080 [14:04:53]Content-Length: 678 [14:04:53]Content-Type: application/json [14:04:53] [14:04:53]POST finish read [14:04:53]Found Content-Length = 678 [14:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886422", "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" : 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:04:53]execute_script... [14:04: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)2886422", "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" : 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:04:53]POST & json_proto [14:04:53]process_json_proto [14:04:53]json parsed OK: [14:04:53]protocol is kg_v1.0 [14:04:53]action value=close_receipt [14:04:53]process_action close_receipt [14:04:53]cmd_close_receipt [14:04:53]MH_GetDate [14:04:53]Write to MH i2c: F0 00 00 19 0C 14 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 09 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: F0 09 00 19 0C 00 87 02 19 67 6B 98 1E 66 AD [14:04:53]GetLastDocTimeStamp 1729692272 [14:04:53]current date 1729692295 [14:04:53]FM_GetShiftState [14:04:53]SAM_PROTO_GetShiftState [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 13 01 00 [14:04:53]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0E 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 30 [14:04:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:04:53]wFMCommunicate OK [14:04:53]SAM_PROTO_GetShiftState done [14:04:53]FM_GetShiftState done [14:04:53]opened in 1729642435 [14:04:53]opened+sec_in_day 1729728835 [14:04:53]quantity*price = 30038 [14:04:53]sum+1 = 30039 [14:04:53]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 СНО: Общий режим Чек 161 23.10.2024 14:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70645 ФПД: 124048423019004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70645&fm=124048423019004&tin=02508201610067®Number=0000000000156251&sum=30000 [14:04:55]StoreToDocumentArchive [14:04:55]shift 196 fd 70645 [14:04:55]save to /storage/0196/doc_00070645 [14:04:55]save last doc name /storage/0196/doc_00070645 to /storage/kkm_last_doc_name [14:04:55]save OK [14:04:55]Clear old archive folders... [14:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:55]tlvbuf is 00121E50 [14:04:55]SAM_PROTO_ClearQueue [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 09 00 00 [14:04:55]Write to MH i2c: E2 08 00 27 0C 80 09 00 00 00 00 00 00 A5 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]SAM_PROTO_ClearQueue done [14:04:55]KKMCreateOFDPacket [14:04:55]OFDProtocolAddRootSTLVToBuf [14:04:55]FM_MakeSignedData [14:04:55]FM_MakeSignedData [14:04:55]SAM_PROTO_SignData [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 01 02 [14:04:55]Write to MH i2c: E2 08 00 28 0C 80 0D 01 02 00 00 00 00 AD [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=255 [14:04:55]MH_SAM_APDU [14:04: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 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 A1 00 00 00 F4 03 04 00 87 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 70 [14:04:55]Write to MH i2c: E2 02 01 29 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 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 A1 00 00 00 F4 03 04 00 87 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 70 00 00 11 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=10 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 02 02 05 D2 46 30 61 FC [14:04:55]Write to MH i2c: E2 0D 00 2A 0C 80 0D 02 02 05 00 D2 46 30 61 FC 00 00 5F [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [14:04:55]RAPDU: 90 00 [14:04:55]wFMCommunicate OK [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 0D 03 02 [14:04:55]Write to MH i2c: E2 08 00 2B 0C 80 0D 03 02 00 00 00 00 B2 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 0B 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 0B 00 2B 0C 00 C7 83 54 BF 59 89 28 4B 90 00 65 [14:04:55]RAPDU: C7 83 54 BF 59 89 28 4B 90 00 [14:04:55]wFMCommunicate OK [14:04:55]SAM_PROTO_SignData done [14:04:55]FM_MakeSignedData done [14:04:55]CreateOFDProtocolMessage [14:04:55]wFMCommunicate request_size=4 [14:04:55]MH_SAM_APDU [14:04:55]CAPDU: 80 11 00 00 [14:04:55]Write to MH i2c: E2 08 00 2C 0C 80 11 00 00 00 00 00 00 B2 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:55]Read from MH i2c: E2 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 17 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: E2 17 00 2C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [14: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 [14:04:55]wFMCommunicate OK [14:04:55]CreateOFDProtocolMessage done [14:04:55]OFDSenderStorePacket 70645 [14:04:55]StoreOFDPacket docnum=70645 [14:04: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 4E 0D 07 01 7D 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 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 A1 00 00 00 F4 03 04 00 87 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 70 D2 46 30 61 FC C7 83 54 BF 59 89 28 4B [14:04:55]CheckFolder [14:04:55]dirname=/storage/ofd_packets [14:04:55]CheckFolder done [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00070645 [14:04:55]NVStorageSaveData ofd_packets/00070645 [14:04:55]File name is /storage/ofd_packets/00070645 [14:04:55]Write 301 bytes [14:04:55]NVStorageSaveData done [14:04:55]OFDSenderStorePacket done [14:04:55]KKMCreateOFDPacket done [14:04:55]NVStorageSaveData kkm_last_timestamp [14:04:55]File name is /storage/kkm_last_timestamp [14:04:55]Write 4 bytes [14:04:55]NVStorageSaveData done [14:04:55]OFD Sender: Processing packet 70645 [packets to send 18, broken 17] [14:04:55]ProducePacketName [14:04:55]name=ofd_packets/00070645 [14:04:55]OFD Sender: To server: pG, [14:04:55]CommunicateWithHost lk.salyk.kg:30040 [14:04:55]ConnectInit lk.salyk.kg [14:04:55]ExternCall_PrintAddStr [14:04:55]wPrintStart [14:04:55]Write to MH i2c: 01 00 00 2D 0C 39 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FF 0F 4E [14:04:55]RasterBufferAndPrint [14:04:55]line Счет N : (1)2886422 [14:04:55]line ИНН: 02508201610067 [14:04:55]line Контрольно-Кассовый Чек [14:04:55]line ПРОДАЖА [14:04:55]line ТРК (МРК, ГНК) : 22 [14:04:55]line Товар: 2710124130 [14:04:55]line Аи-92-К-5 [14:04:55]line 4.490 * 66.90 [14:04:55]line = 300.38 [14:04:55]line НДС 12% НСП 1% [14:04:55]line > о реализуемом товаре [14:04:55]line ОКРУГЛЕНИЕ: -0.38 [14:04:55]line ИТОГО: 300.00 [14:04:55]line Внесено: 300.00 [14:04:55]line СДАЧА: 0.00 [14:04:55]line НСП 1% : 2.66 [14:04:55]line НДС 12% : 31.90 [14:04:55]line Наличными: 300.00 [14:04:55]line Безнал.: 0.00 [14:04:55]line Место: АЗС № 85 "Партнер Нефть" [14:04:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:04:55]line СНО: Общий режим [14:04:55]line Чек 161 23.10.2024 14:04 [14:04:55]line Смена: 196 ФФД: 1.0 [14:04:55]line ЗНМ: 0300000167 [14:04:55]line РНМ: 0000000000156251 [14:04:55]line Версия ККМ: v1.0 [14:04:55]line ФМ: 0000000000963346 [14:04:55]line ФД: 70645 [14:04:55]line ФПД: 124048423019004 [14:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70645&fm=124048423019004&tin=02508201610067®Number=0000000000156251&sum=30000 [14:04:55]Connected sock=11 [14:04: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 4E 0D 07 01 7D 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 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 A1 00 00 00 F4 03 04 00 87 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 70 D2 46 30 61 FC C7 83 54 BF 59 89 28 4B [14:04:55]written 0, free lines is 4095 [14:04: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 BF 5F 47 00 79 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 F5 13 01 00 F4 03 04 00 24 AC 18 67 B6 04 01 00 00 A6 74 C6 7F 31 FB 97 2D [14:04:56]CommunicateWithHost err = 0 [14:04:56]CheckOFDResponse [14:04:56]1017 (14) - 77093643461234 [14:04:56]1041 (16) - 0000000000963346 [14:04:56]1040 (4) - 70645 [14:04:56]1012 (4) - 23.10.2024 07:56 [14:04:56]1206 (1) - 0 [14:04:56]OFD Sender: Remove packet 70645 [14:04:56]ProducePacketName [14:04:56]name=ofd_packets/00070645 [14:04:56]NVStorageDeleteData [14:04:56]Write to MH i2c: 01 00 00 58 0C 64 [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 07 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 F1 0C 68 [14:04:56]RasterBufferAndPrint [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]line [14:04:56]written 0, free lines is 3319 [14:04:56]MH_Cut [14:04:56]Write to MH i2c: D1 01 00 5F 0C 01 3D [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 01 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: D1 01 00 5F 0C 00 3C [14:04:56]Write to MH i2c: 01 00 00 60 0C 6C [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]OFD Sender: No OFD packet to send [14:04:57]*** Cut start [14:04:57]*** Partial cut [14:04:57]*** CUTSNS_PIN = 1 [14:04:57]*** CUTSNS_PIN = 0 [14:04:57]*** Brake cut motor [14:04:57]Read from MH i2c: 01 [14:04:57]MH_I2C_Read... [14:04:57]*** Stop cut motor [14:04:57]*** Cut end [14:04:57]Read from MH i2c: 01 07 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [14:04:57]process_action close_receipt done [14:04:57]requested_data is exist [14:04:57]produce_requested_data [14:04:57]requested_item fm.sn is exist - process it [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 11 00 00 [14:04:57]Write to MH i2c: E2 08 00 61 0C 80 11 00 00 00 00 00 00 E7 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 61 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [14:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:04:57]wFMCommunicate OK [14:04:57]requested_item fd.num is exist - process it [14:04:57]SAM_PROTO_GetFieldsCounters [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 00 00 [14:04:57]Write to MH i2c: E2 08 00 62 0C 80 13 00 00 00 00 00 00 EA [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 62 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 F5 13 01 00 0E 04 04 00 C4 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 B5 [14:04: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 F5 13 01 00 0E 04 04 00 C4 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 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetFieldsCounters done [14:04:57]requested_item shift.num is exist - process it [14:04:57]requested_item shift.opened is exist - process it [14:04:57]req_shift_opened [14:04:57]FM_GetShiftState [14:04:57]SAM_PROTO_GetShiftState [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 01 00 [14:04:57]Write to MH i2c: E2 08 00 63 0C 80 13 01 00 00 00 00 00 EC [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0E 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0E 00 63 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 79 [14:04:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_GetShiftState done [14:04:58]FM_GetShiftState done [14:04:58]req_shift_opened done [14:04:58]requested_item shift.open_date is exist - process it [14:04:58]req_shift_open_date [14:04:58]req_shift_open_date done [14:04:58]produce_requested_data done [14:04:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70645,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:04:58]process_action_free close_receipt [14:04:58]json_value_free [14:04:58]json_value_free done [14:04:58]process_json_proto returns [14:04:58]Send response to host [14:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70645,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:04:58]free response buf [14:04:58]execute_script done [14:04:58]execute_script returns [14:04:58]free content buf [14:04:58]Sock 9.Close socket [14:04:58]Sock 9.Thread stoped [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:42]accept exits with 7 [14:06:42]New connection [14:06:42]New thread 3067034980 created [14:06:42]Thread 3066891620 joined [14:06:42]Waiting for new connection... [14:06:42] Sock 7.Parse request [14:06:42]Sock 7.Check first char [14:06:42]Sock 7.First char is OK [14:06:42]request: POST /json_proto HTTP/1.0 [14:06:42]Method: POST [14:06:42]URL: /json_proto [14:06:42]Method is POST - this is cgi request [14:06:42]url: /json_proto [14:06:42]query_string will be loaded in cgi processing [14:06:42]execute_cgi json_proto POST (null) [14:06:42]execute_cgi path=json_proto method=POST [14:06:42]POST find Content-Length [14:06:42]Host: 172.17.50.3:8080 [14:06:42]Content-Length: 770 [14:06:42]Content-Type: application/json [14:06:42] [14:06:42]POST finish read [14:06:42]Found Content-Length = 770 [14:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886423", "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" ] } } [14:06:42]execute_script... [14:06: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)2886423", "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" ] } } [14:06:42]POST & json_proto [14:06:42]process_json_proto [14:06:42]json parsed OK: [14:06:42]protocol is kg_v1.0 [14:06:42]action value=close_receipt [14:06:42]process_action close_receipt [14:06:42]cmd_close_receipt [14:06:42]MH_GetDate [14:06:42]Write to MH i2c: F0 00 00 64 0C 5F [14:06:42]Write i2c OK [14:06:42]MH_I2C_Read... [14:06:42]Read from MH i2c: F0 [14:06:42]MH_I2C_Read... [14:06:42]Read from MH i2c: F0 09 00 [14:06:42]MH_I2C_Read... [14:06:42]Read from MH i2c: F0 09 00 64 0C 00 F3 02 19 67 6B 98 1E 66 64 [14:06:42]GetLastDocTimeStamp 1729692295 [14:06:42]current date 1729692403 [14:06:42]FM_GetShiftState [14:06:42]SAM_PROTO_GetShiftState [14:06:42]wFMCommunicate request_size=4 [14:06:42]MH_SAM_APDU [14:06:42]CAPDU: 80 13 01 00 [14:06:42]Write to MH i2c: E2 08 00 65 0C 80 13 01 00 00 00 00 00 EE [14:06:42]Write i2c OK [14:06:42]MH_I2C_Read... [14:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:42]Read from MH i2c: E2 [14:06:42]MH_I2C_Read... [14:06:42]Read from MH i2c: E2 0E 00 [14:06:42]MH_I2C_Read... [14:06:42]Read from MH i2c: E2 0E 00 65 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7B [14:06:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:06:42]wFMCommunicate OK [14:06:42]SAM_PROTO_GetShiftState done [14:06:42]FM_GetShiftState done [14:06:42]opened in 1729642435 [14:06:42]opened+sec_in_day 1729728835 [14:06:42]quantity*price = 100015 [14:06:42]sum+1 = 100017 [14:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 162 23.10.2024 14:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70646 ФПД: 145228259730165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70646&fm=145228259730165&tin=02508201610067®Number=0000000000156251&sum=100016 [14:06:43]StoreToDocumentArchive [14:06:43]shift 196 fd 70646 [14:06:43]save to /storage/0196/doc_00070646 [14:06:43]save last doc name /storage/0196/doc_00070646 to /storage/kkm_last_doc_name [14:06:43]save OK [14:06:43]Clear old archive folders... [14:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:43]tlvbuf is 0015C090 [14:06:43]SAM_PROTO_ClearQueue [14:06:43]wFMCommunicate request_size=4 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 09 00 00 [14:06:43]Write to MH i2c: E2 08 00 72 0C 80 09 00 00 00 00 00 00 F0 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [14:06:43]RAPDU: 90 00 [14:06:43]wFMCommunicate OK [14:06:43]SAM_PROTO_ClearQueue done [14:06:43]KKMCreateOFDPacket [14:06:43]OFDProtocolAddRootSTLVToBuf [14:06:43]FM_MakeSignedData [14:06:43]FM_MakeSignedData [14:06:43]SAM_PROTO_SignData [14:06:43]wFMCommunicate request_size=4 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 0D 01 02 [14:06:43]Write to MH i2c: E2 08 00 73 0C 80 0D 01 02 00 00 00 00 F8 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [14:06:43]RAPDU: 90 00 [14:06:43]wFMCommunicate OK [14:06:43]wFMCommunicate request_size=255 [14:06:43]MH_SAM_APDU [14:06: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 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 A2 00 00 00 F4 03 04 00 F3 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 84 [14:06:43]Write to MH i2c: E2 02 01 74 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 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 A2 00 00 00 F4 03 04 00 F3 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 84 00 00 04 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [14:06:43]RAPDU: 90 00 [14:06:43]wFMCommunicate OK [14:06:43]wFMCommunicate request_size=10 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 0D 02 02 05 15 96 D5 22 F5 [14:06:43]Write to MH i2c: E2 0D 00 75 0C 80 0D 02 02 05 00 15 96 D5 22 F5 00 00 9C [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [14:06:43]RAPDU: 90 00 [14:06:43]wFMCommunicate OK [14:06:43]wFMCommunicate request_size=4 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 0D 03 02 [14:06:43]Write to MH i2c: E2 08 00 76 0C 80 0D 03 02 00 00 00 00 FD [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 0B 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 0B 00 76 0C 00 69 9A 5B 48 74 74 A6 0D 90 00 3F [14:06:43]RAPDU: 69 9A 5B 48 74 74 A6 0D 90 00 [14:06:43]wFMCommunicate OK [14:06:43]SAM_PROTO_SignData done [14:06:43]FM_MakeSignedData done [14:06:43]CreateOFDProtocolMessage [14:06:43]wFMCommunicate request_size=4 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 11 00 00 [14:06:43]Write to MH i2c: E2 08 00 77 0C 80 11 00 00 00 00 00 00 FD [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 17 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 17 00 77 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [14:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:06:43]wFMCommunicate OK [14:06:43]CreateOFDProtocolMessage done [14:06:43]OFDSenderStorePacket 70646 [14:06:43]StoreOFDPacket docnum=70646 [14:06: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 67 E4 07 01 1B 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 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 A2 00 00 00 F4 03 04 00 F3 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 84 15 96 D5 22 F5 69 9A 5B 48 74 74 A6 0D [14:06:43]CheckFolder [14:06:43]dirname=/storage/ofd_packets [14:06:43]CheckFolder done [14:06:43]ProducePacketName [14:06:43]name=ofd_packets/00070646 [14:06:43]NVStorageSaveData ofd_packets/00070646 [14:06:43]File name is /storage/ofd_packets/00070646 [14:06:43]Write 301 bytes [14:06:43]NVStorageSaveData done [14:06:43]OFDSenderStorePacket done [14:06:43]KKMCreateOFDPacket done [14:06:43]NVStorageSaveData kkm_last_timestamp [14:06:43]File name is /storage/kkm_last_timestamp [14:06:43]Write 4 bytes [14:06:43]NVStorageSaveData done [14:06:43]ExternCall_PrintAddStr [14:06:43]wPrintStart [14:06:43]Write to MH i2c: 01 00 00 78 0C 84 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 78 0C 00 00 00 00 00 FF 0F 99 [14:06:43]RasterBufferAndPrint [14:06:43]line Счет N : (1)2886423 [14:06:43]line ИНН: 02508201610067 [14:06:43]line Контрольно-Кассовый Чек [14:06:43]line ПРОДАЖА [14:06:43]line ТРК (МРК, ГНК) : 12 [14:06:43]line Товар: 2710124130 [14:06:43]line Аи-92-К-5 [14:06:43]line 14.950 * 66.90 [14:06:43]line = 1000.16 [14:06:43]line НДС 12% НСП 1% [14:06:43]line > о реализуемом товаре [14:06:43]line ИТОГО: 1000.16 [14:06:43]line НСП 1% : 8.85 [14:06:43]line НДС 12% : 106.21 [14:06:43]line Наличными: 0.00 [14:06:43]line Безнал.: 1000.16 [14:06:43]line Место: АЗС № 85 "Партнер Нефть" [14:06:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:06:43]line СНО: Общий режим [14:06:43]line Чек 162 23.10.2024 14:06 [14:06:43]line Смена: 196 ФФД: 1.0 [14:06:43]line ЗНМ: 0300000167 [14:06:43]line РНМ: 0000000000156251 [14:06:43]line Версия ККМ: v1.0 [14:06:43]line Платежная система: Mbank [14:06:43]line ФМ: 0000000000963346 [14:06:43]line ФД: 70646 [14:06:44]line ФПД: 145228259730165 [14:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70646&fm=145228259730165&tin=02508201610067®Number=0000000000156251&sum=100016 [14:06:44]OFD Sender: Processing packet 70646 [packets to send 18, broken 17] [14:06:44]ProducePacketName [14:06:44]name=ofd_packets/00070646 [14:06:44]OFD Sender: To server: pG, [14:06:44]CommunicateWithHost lk.salyk.kg:30040 [14:06:44]ConnectInit lk.salyk.kg [14:06:44]written 0, free lines is 4095 [14:06:44]Connected sock=10 [14:06: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 67 E4 07 01 1B 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 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 A2 00 00 00 F4 03 04 00 F3 02 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 84 15 96 D5 22 F5 69 9A 5B 48 74 74 A6 0D [14:06: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 A6 A8 47 00 F1 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 F6 13 01 00 F4 03 04 00 91 AC 18 67 B6 04 01 00 00 7B DB A3 6D 1D F3 2E BE [14:06:44]CommunicateWithHost err = 0 [14:06:44]CheckOFDResponse [14:06:44]1017 (14) - 77093643461234 [14:06:44]1041 (16) - 0000000000963346 [14:06:44]1040 (4) - 70646 [14:06:44]1012 (4) - 23.10.2024 07:58 [14:06:44]1206 (1) - 0 [14:06:44]OFD Sender: Remove packet 70646 [14:06:44]ProducePacketName [14:06:44]name=ofd_packets/00070646 [14:06:44]NVStorageDeleteData [14:06:44]Write to MH i2c: 01 00 00 A1 0C AD [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 1D 0D DE [14:06:44]RasterBufferAndPrint [14:06:44]line [14:06:44]line [14:06:44]line [14:06:44]line [14:06:44]line [14:06:44]written 0, free lines is 3363 [14:06:44]MH_Cut [14:06:44]Write to MH i2c: D1 01 00 A8 0C 01 86 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: D1 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: D1 01 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: D1 01 00 A8 0C 00 85 [14:06:44]Write to MH i2c: 01 00 00 A9 0C B5 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:45]OFD Sender: No OFD packet to send [14:06:45]*** Cut start [14:06:45]*** Partial cut [14:06:45]*** CUTSNS_PIN = 1 [14:06:45]*** CUTSNS_PIN = 0 [14:06:45]*** Brake cut motor [14:06:46]Read from MH i2c: 01 [14:06:46]MH_I2C_Read... [14:06:46]*** Stop cut motor [14:06:46]*** Cut end [14:06:46]Read from MH i2c: 01 07 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [14:06:46]process_action close_receipt done [14:06:46]requested_data is exist [14:06:46]produce_requested_data [14:06:46]requested_item fm.sn is exist - process it [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 11 00 00 [14:06:46]Write to MH i2c: E2 08 00 AA 0C 80 11 00 00 00 00 00 00 30 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:46]Read from MH i2c: E2 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 17 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 17 00 AA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [14:06: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:06:46]wFMCommunicate OK [14:06:46]requested_item fd.num is exist - process it [14:06:46]SAM_PROTO_GetFieldsCounters [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 13 00 00 [14:06:46]Write to MH i2c: E2 08 00 AB 0C 80 13 00 00 00 00 00 00 33 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:46]Read from MH i2c: E2 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 62 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 62 00 AB 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 F6 13 01 00 0E 04 04 00 C4 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 02 [14:06: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 F6 13 01 00 0E 04 04 00 C4 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 [14:06:46]wFMCommunicate OK [14:06:46]SAM_PROTO_GetFieldsCounters done [14:06:46]requested_item shift.num is exist - process it [14:06:46]requested_item shift.opened is exist - process it [14:06:46]req_shift_opened [14:06:46]FM_GetShiftState [14:06:46]SAM_PROTO_GetShiftState [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 13 01 00 [14:06:46]Write to MH i2c: E2 08 00 AC 0C 80 13 01 00 00 00 00 00 35 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:46]Read from MH i2c: E2 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 0E 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 0E 00 AC 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C2 [14:06:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:06:46]wFMCommunicate OK [14:06:46]SAM_PROTO_GetShiftState done [14:06:46]FM_GetShiftState done [14:06:46]req_shift_opened done [14:06:46]requested_item shift.open_date is exist - process it [14:06:46]req_shift_open_date [14:06:46]req_shift_open_date done [14:06:46]produce_requested_data done [14:06:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70646,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:06:46]process_action_free close_receipt [14:06:46]json_value_free [14:06:46]json_value_free done [14:06:46]process_json_proto returns [14:06:46]Send response to host [14:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70646,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:06:46]free response buf [14:06:46]execute_script done [14:06:46]execute_script returns [14:06:46]free content buf [14:06:46]Sock 7.Close socket [14:06:46]Sock 7.Thread stoped [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:13]accept exits with 9 [14:13:13]New connection [14:13:13]New thread 3066891620 created [14:13:13]Thread 3067034980 joined [14:13:13]Waiting for new connection... [14:13:13] Sock 9.Parse request [14:13:13]Sock 9.Check first char [14:13:13]Sock 9.First char is OK [14:13:13]request: POST /json_proto HTTP/1.0 [14:13:13]Method: POST [14:13:13]URL: /json_proto [14:13:13]Method is POST - this is cgi request [14:13:13]url: /json_proto [14:13:13]query_string will be loaded in cgi processing [14:13:13]execute_cgi json_proto POST (null) [14:13:13]execute_cgi path=json_proto method=POST [14:13:13]POST find Content-Length [14:13:13]Host: 172.17.50.3:8080 [14:13:13]Content-Length: 689 [14:13:13]Content-Type: application/json [14:13:13] [14:13:13]POST finish read [14:13:13]Found Content-Length = 689 [14:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886424", "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" ] } } [14:13:13]execute_script... [14:13: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)2886424", "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" ] } } [14:13:13]POST & json_proto [14:13:13]process_json_proto [14:13:13]json parsed OK: [14:13:13]protocol is kg_v1.0 [14:13:13]action value=close_receipt [14:13:13]process_action close_receipt [14:13:13]cmd_close_receipt [14:13:13]MH_GetDate [14:13:13]Write to MH i2c: F0 00 00 AD 0C A8 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 09 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 09 00 AD 0C 00 7A 04 19 67 6B 98 1E 66 36 [14:13:13]GetLastDocTimeStamp 1729692403 [14:13:13]current date 1729692794 [14:13:13]FM_GetShiftState [14:13:13]SAM_PROTO_GetShiftState [14:13:13]wFMCommunicate request_size=4 [14:13:13]MH_SAM_APDU [14:13:13]CAPDU: 80 13 01 00 [14:13:13]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:13]Read from MH i2c: E2 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C4 [14:13:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:13:13]wFMCommunicate OK [14:13:13]SAM_PROTO_GetShiftState done [14:13:13]FM_GetShiftState done [14:13:13]opened in 1729642435 [14:13:13]opened+sec_in_day 1729728835 [14:13:13]quantity*price = 100051 [14:13:13]sum+1 = 100052 [14:13:13]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 СНО: Общий режим Чек 163 23.10.2024 14:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70647 ФПД: 55129467760406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70647&fm=55129467760406&tin=02508201610067®Number=0000000000156251&sum=100000 [14:13:14]StoreToDocumentArchive [14:13:14]shift 196 fd 70647 [14:13:14]save to /storage/0196/doc_00070647 [14:13:14]save last doc name /storage/0196/doc_00070647 to /storage/kkm_last_doc_name [14:13:14]save OK [14:13:14]Clear old archive folders... [14:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:13:14]tlvbuf is 00168400 [14:13:14]SAM_PROTO_ClearQueue [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 09 00 00 [14:13:14]Write to MH i2c: E2 08 00 BB 0C 80 09 00 00 00 00 00 00 39 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_ClearQueue done [14:13:14]KKMCreateOFDPacket [14:13:14]OFDProtocolAddRootSTLVToBuf [14:13:14]FM_MakeSignedData [14:13:14]FM_MakeSignedData [14:13:14]SAM_PROTO_SignData [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 01 02 [14:13:14]Write to MH i2c: E2 08 00 BC 0C 80 0D 01 02 00 00 00 00 41 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=255 [14:13:14]MH_SAM_APDU [14:13: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 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 A3 00 00 00 F4 03 04 00 7A 04 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 [14:13:14]Write to MH i2c: E2 02 01 BD 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 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 A3 00 00 00 F4 03 04 00 7A 04 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 00 03 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=16 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 32 23 D4 57 AF 16 [14:13:14]Write to MH i2c: E2 13 00 BE 0C 80 0D 02 02 0B 00 00 35 04 06 00 32 23 D4 57 AF 16 00 00 DE [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 03 02 [14:13:14]Write to MH i2c: E2 08 00 BF 0C 80 0D 03 02 00 00 00 00 46 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0B 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0B 00 BF 0C 00 52 B0 83 E6 EC 0A 3E 8E 90 00 74 [14:13:14]RAPDU: 52 B0 83 E6 EC 0A 3E 8E 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_SignData done [14:13:14]FM_MakeSignedData done [14:13:14]CreateOFDProtocolMessage [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 11 00 00 [14:13:14]Write to MH i2c: E2 08 00 C0 0C 80 11 00 00 00 00 00 00 46 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 C0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [14:13: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:13:14]wFMCommunicate OK [14:13:14]CreateOFDProtocolMessage done [14:13:14]OFDSenderStorePacket 70647 [14:13:14]StoreOFDPacket docnum=70647 [14:13: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 15 01 00 00 10 43 0D 01 B9 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 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 A3 00 00 00 F4 03 04 00 7A 04 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 32 23 D4 57 AF 16 52 B0 83 E6 EC 0A 3E 8E [14:13:14]CheckFolder [14:13:14]dirname=/storage/ofd_packets [14:13:14]CheckFolder done [14:13:14]ProducePacketName [14:13:14]name=ofd_packets/00070647 [14:13:14]NVStorageSaveData ofd_packets/00070647 [14:13:14]File name is /storage/ofd_packets/00070647 [14:13:14]Write 307 bytes [14:13:14]NVStorageSaveData done [14:13:14]OFDSenderStorePacket done [14:13:14]KKMCreateOFDPacket done [14:13:14]NVStorageSaveData kkm_last_timestamp [14:13:14]File name is /storage/kkm_last_timestamp [14:13:14]Write 4 bytes [14:13:14]NVStorageSaveData done [14:13:14]ExternCall_PrintAddStr [14:13:14]wPrintStart [14:13:14]Write to MH i2c: 01 00 00 C1 0C CD [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0F E2 [14:13:14]RasterBufferAndPrint [14:13:14]line Счет N : (1)2886424 [14:13:14]line ИНН: 02508201610067 [14:13:14]line Контрольно-Кассовый Чек [14:13:14]line ПРОДАЖА [14:13:14]line ТРК (МРК, ГНК) : 31 [14:13:14]line Товар: 2710194240 [14:13:14]line D-ENERGY Дт-К-2 [14:13:14]line 12.960 * 77.20 [14:13:14]line = 1000.51 [14:13:14]line НДС 12% НСП 1% [14:13:14]line > о реализуемом товаре [14:13:14]line ОКРУГЛЕНИЕ: -0.51 [14:13:14]line ИТОГО: 1000.00 [14:13:14]line Внесено: 1000.00 [14:13:14]line СДАЧА: 0.00 [14:13:14]line НСП 1% : 8.85 [14:13:14]line НДС 12% : 106.25 [14:13:14]line Наличными: 1000.00 [14:13:14]line Безнал.: 0.00 [14:13:14]line Место: АЗС № 85 "Партнер Нефть" [14:13:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:13:14]line СНО: Общий режим [14:13:14]line Чек 163 23.10.2024 14:13 [14:13:14]line Смена: 196 ФФД: 1.0 [14:13:14]line ЗНМ: 0300000167 [14:13:14]line РНМ: 0000000000156251 [14:13:14]line Версия ККМ: v1.0 [14:13:14]line ФМ: 0000000000963346 [14:13:14]line ФД: 70647 [14:13:14]line ФПД: 55129467760406 [14:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70647&fm=55129467760406&tin=02508201610067®Number=0000000000156251&sum=100000 [14:13:15]OFD Sender: Processing packet 70647 [packets to send 18, broken 17] [14:13:15]ProducePacketName [14:13:15]name=ofd_packets/00070647 [14:13:15]OFD Sender: To server: pG, [14:13:15]CommunicateWithHost lk.salyk.kg:30040 [14:13:15]ConnectInit lk.salyk.kg [14:13:15]written 0, free lines is 4095 [14:13:15]Connected sock=10 [14:13: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 10 43 0D 01 B9 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 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 A3 00 00 00 F4 03 04 00 7A 04 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 32 23 D4 57 AF 16 52 B0 83 E6 EC 0A 3E 8E [14:13: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 7B 37 47 00 22 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 F7 13 01 00 F4 03 04 00 18 AE 18 67 B6 04 01 00 00 DB 74 8E C4 1C C4 B3 E5 [14:13:15]CommunicateWithHost err = 0 [14:13:15]CheckOFDResponse [14:13:15]1017 (14) - 77093643461234 [14:13:15]1041 (16) - 0000000000963346 [14:13:15]1040 (4) - 70647 [14:13:15]1012 (4) - 23.10.2024 08:04 [14:13:15]1206 (1) - 0 [14:13:15]OFD Sender: Remove packet 70647 [14:13:15]ProducePacketName [14:13:15]name=ofd_packets/00070647 [14:13:15]NVStorageDeleteData [14:13:15]Write to MH i2c: 01 00 00 EC 0C F8 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 07 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 F3 0C FE [14:13:15]RasterBufferAndPrint [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]written 0, free lines is 3321 [14:13:15]MH_Cut [14:13:15]Write to MH i2c: D1 01 00 F3 0C 01 D1 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 01 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 01 00 F3 0C 00 D0 [14:13:15]Write to MH i2c: 01 00 00 F4 0C 00 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]OFD Sender: No OFD packet to send [14:13:16]*** Cut start [14:13:16]*** Partial cut [14:13:16]*** CUTSNS_PIN = 1 [14:13:16]*** CUTSNS_PIN = 0 [14:13:16]*** Brake cut motor [14:13:16]Read from MH i2c: 01 [14:13:16]MH_I2C_Read... [14:13:16]*** Stop cut motor [14:13:16]*** Cut end [14:13:16]Read from MH i2c: 01 07 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [14:13:16]process_action close_receipt done [14:13:16]requested_data is exist [14:13:16]produce_requested_data [14:13:16]requested_item fm.sn is exist - process it [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 11 00 00 [14:13:16]Write to MH i2c: E2 08 00 F5 0C 80 11 00 00 00 00 00 00 7B [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 F5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [14:13: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:13:16]wFMCommunicate OK [14:13:16]requested_item fd.num is exist - process it [14:13:16]SAM_PROTO_GetFieldsCounters [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 13 00 00 [14:13:16]Write to MH i2c: E2 08 00 F6 0C 80 13 00 00 00 00 00 00 7E [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 62 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 62 00 F6 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 F7 13 01 00 0E 04 04 00 C4 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 51 [14:13: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 F7 13 01 00 0E 04 04 00 C4 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 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_GetFieldsCounters done [14:13:17]requested_item shift.num is exist - process it [14:13:17]requested_item shift.opened is exist - process it [14:13:17]req_shift_opened [14:13:17]FM_GetShiftState [14:13:17]SAM_PROTO_GetShiftState [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 13 01 00 [14:13:17]Write to MH i2c: E2 08 00 F7 0C 80 13 01 00 00 00 00 00 80 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0E 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0E 00 F7 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0D [14:13:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_GetShiftState done [14:13:17]FM_GetShiftState done [14:13:17]req_shift_opened done [14:13:17]requested_item shift.open_date is exist - process it [14:13:17]req_shift_open_date [14:13:17]req_shift_open_date done [14:13:17]produce_requested_data done [14:13:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70647,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:13:17]process_action_free close_receipt [14:13:17]json_value_free [14:13:17]json_value_free done [14:13:17]process_json_proto returns [14:13:17]Send response to host [14:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70647,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:13:17]free response buf [14:13:17]execute_script done [14:13:17]execute_script returns [14:13:17]free content buf [14:13:17]Sock 9.Close socket [14:13:17]Sock 9.Thread stoped [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:54]accept exits with 7 [14:17:54]New connection [14:17:54]New thread 3067034980 created [14:17:54]Thread 3066891620 joined [14:17:54]Waiting for new connection... [14:17:54] Sock 7.Parse request [14:17:54]Sock 7.Check first char [14:17:54]Sock 7.First char is OK [14:17:54]request: POST /json_proto HTTP/1.0 [14:17:54]Method: POST [14:17:54]URL: /json_proto [14:17:54]Method is POST - this is cgi request [14:17:54]url: /json_proto [14:17:54]query_string will be loaded in cgi processing [14:17:54]execute_cgi json_proto POST (null) [14:17:54]execute_cgi path=json_proto method=POST [14:17:54]POST find Content-Length [14:17:54]Host: 172.17.50.3:8080 [14:17:54]Content-Length: 683 [14:17:54]Content-Type: application/json [14:17:54] [14:17:54]POST finish read [14:17:54]Found Content-Length = 683 [14:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886425", "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" : 59.800, "sum" : 4000.62, "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" ] } } [14:17:54]execute_script... [14: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)2886425", "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" : 59.800, "sum" : 4000.62, "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" ] } } [14:17:54]POST & json_proto [14:17:54]process_json_proto [14:17:54]json parsed OK: [14:17:54]protocol is kg_v1.0 [14:17:54]action value=close_receipt [14:17:54]process_action close_receipt [14:17:54]cmd_close_receipt [14:17:54]MH_GetDate [14:17:54]Write to MH i2c: F0 00 00 F8 0C F3 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: F0 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: F0 09 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: F0 09 00 F8 0C 00 94 05 19 67 6B 98 1E 66 9C [14:17:54]GetLastDocTimeStamp 1729692794 [14:17:54]current date 1729693076 [14:17:54]FM_GetShiftState [14:17:54]SAM_PROTO_GetShiftState [14:17:54]wFMCommunicate request_size=4 [14:17:54]MH_SAM_APDU [14:17:54]CAPDU: 80 13 01 00 [14:17:54]Write to MH i2c: E2 08 00 F9 0C 80 13 01 00 00 00 00 00 82 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:54]Read from MH i2c: E2 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 0E 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 0E 00 F9 0C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0F [14:17:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:17:54]wFMCommunicate OK [14:17:54]SAM_PROTO_GetShiftState done [14:17:54]FM_GetShiftState done [14:17:54]opened in 1729642435 [14:17:54]opened+sec_in_day 1729728835 [14:17:54]quantity*price = 400062 [14:17:54]sum+1 = 400063 [14:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 164 23.10.2024 14:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70648 ФПД: 53237577548738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70648&fm=53237577548738&tin=02508201610067®Number=0000000000156251&sum=400000 [14:17:55]StoreToDocumentArchive [14:17:55]shift 196 fd 70648 [14:17:55]save to /storage/0196/doc_00070648 [14:17:55]save last doc name /storage/0196/doc_00070648 to /storage/kkm_last_doc_name [14:17:55]save OK [14:17:55]Clear old archive folders... [14:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:55]tlvbuf is 00121820 [14:17:55]SAM_PROTO_ClearQueue [14:17:55]wFMCommunicate request_size=4 [14:17:55]MH_SAM_APDU [14:17:55]CAPDU: 80 09 00 00 [14:17:55]Write to MH i2c: E2 08 00 06 0D 80 09 00 00 00 00 00 00 85 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [14:17:56]RAPDU: 90 00 [14:17:56]wFMCommunicate OK [14:17:56]SAM_PROTO_ClearQueue done [14:17:56]KKMCreateOFDPacket [14:17:56]OFDProtocolAddRootSTLVToBuf [14:17:56]FM_MakeSignedData [14:17:56]FM_MakeSignedData [14:17:56]SAM_PROTO_SignData [14:17:56]wFMCommunicate request_size=4 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 0D 01 02 [14:17:56]Write to MH i2c: E2 08 00 07 0D 80 0D 01 02 00 00 00 00 8D [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [14:17:56]RAPDU: 90 00 [14:17:56]wFMCommunicate OK [14:17:56]wFMCommunicate request_size=255 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 A4 00 00 00 F4 03 04 00 94 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 [14:17:56]Write to MH i2c: E2 02 01 08 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 A4 00 00 00 F4 03 04 00 94 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 00 00 A3 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]OFD Sender: No OFD packet to send [14:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [14:17:56]RAPDU: 90 00 [14:17:56]wFMCommunicate OK [14:17:56]wFMCommunicate request_size=10 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 0D 02 02 05 6B 56 E6 03 C2 [14:17:56]Write to MH i2c: E2 0D 00 09 0D 80 0D 02 02 05 00 6B 56 E6 03 C2 00 00 06 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [14:17:56]RAPDU: 90 00 [14:17:56]wFMCommunicate OK [14:17:56]wFMCommunicate request_size=4 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 0D 03 02 [14:17:56]Write to MH i2c: E2 08 00 0A 0D 80 0D 03 02 00 00 00 00 92 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 0B 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 0B 00 0A 0D 00 CC 8A F6 72 C9 92 D8 C5 90 00 49 [14:17:56]RAPDU: CC 8A F6 72 C9 92 D8 C5 90 00 [14:17:56]wFMCommunicate OK [14:17:56]SAM_PROTO_SignData done [14:17:56]FM_MakeSignedData done [14:17:56]CreateOFDProtocolMessage [14:17:56]wFMCommunicate request_size=4 [14:17:56]MH_SAM_APDU [14:17:56]CAPDU: 80 11 00 00 [14:17:56]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:56]Read from MH i2c: E2 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 17 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [14: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 [14:17:56]wFMCommunicate OK [14:17:56]CreateOFDProtocolMessage done [14:17:56]OFDSenderStorePacket 70648 [14:17:56]StoreOFDPacket docnum=70648 [14: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 0F 01 00 00 37 5C 07 01 26 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 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 A4 00 00 00 F4 03 04 00 94 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 6B 56 E6 03 C2 CC 8A F6 72 C9 92 D8 C5 [14:17:56]CheckFolder [14:17:56]dirname=/storage/ofd_packets [14:17:56]CheckFolder done [14:17:56]ProducePacketName [14:17:56]name=ofd_packets/00070648 [14:17:56]NVStorageSaveData ofd_packets/00070648 [14:17:56]File name is /storage/ofd_packets/00070648 [14:17:56]Write 301 bytes [14:17:56]NVStorageSaveData done [14:17:56]OFDSenderStorePacket done [14:17:56]KKMCreateOFDPacket done [14:17:56]NVStorageSaveData kkm_last_timestamp [14:17:56]File name is /storage/kkm_last_timestamp [14:17:56]Write 4 bytes [14:17:56]NVStorageSaveData done [14:17:56]ExternCall_PrintAddStr [14:17:56]wPrintStart [14:17:56]Write to MH i2c: 01 00 00 0C 0D 19 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [14:17:56]RasterBufferAndPrint [14:17:56]line Счет N : (1)2886425 [14:17:56]line ИНН: 02508201610067 [14:17:56]line Контрольно-Кассовый Чек [14:17:56]line ПРОДАЖА [14:17:56]line ТРК (МРК, ГНК) : 12 [14:17:56]line Товар: 2710124130 [14:17:56]line Аи-92-К-5 [14:17:56]line 59.800 * 66.90 [14:17:56]line = 4000.62 [14:17:56]line НДС 12% НСП 1% [14:17:56]line > о реализуемом товаре [14:17:56]line ОКРУГЛЕНИЕ: -0.62 [14:17:56]line ИТОГО: 4000.00 [14:17:56]line Внесено: 4000.00 [14:17:56]line СДАЧА: 0.00 [14:17:56]line НСП 1% : 35.40 [14:17:56]line НДС 12% : 424.84 [14:17:56]line Наличными: 4000.00 [14:17:56]line Безнал.: 0.00 [14:17:56]line Место: АЗС № 85 "Партнер Нефть" [14:17:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:17:56]line СНО: Общий режим [14:17:56]line Чек 164 23.10.2024 14:17 [14:17:56]line Смена: 196 ФФД: 1.0 [14:17:56]line ЗНМ: 0300000167 [14:17:56]line РНМ: 0000000000156251 [14:17:56]line Версия ККМ: v1.0 [14:17:56]line ФМ: 0000000000963346 [14:17:56]line ФД: 70648 [14:17:56]line ФПД: 53237577548738 [14:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70648&fm=53237577548738&tin=02508201610067®Number=0000000000156251&sum=400000 [14:17:56]OFD Sender: Processing packet 70648 [packets to send 18, broken 17] [14:17:56]ProducePacketName [14:17:56]name=ofd_packets/00070648 [14:17:56]OFD Sender: To server: pG, [14:17:56]CommunicateWithHost lk.salyk.kg:30040 [14:17:56]ConnectInit lk.salyk.kg [14:17:56]written 0, free lines is 4095 [14:17:56]Connected sock=10 [14: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 0F 01 00 00 37 5C 07 01 26 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 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 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 F4 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 A4 00 00 00 F4 03 04 00 94 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 30 6B 56 E6 03 C2 CC 8A F6 72 C9 92 D8 C5 [14:17: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 BE 94 47 00 6F 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 F8 13 01 00 F4 03 04 00 31 AF 18 67 B6 04 01 00 00 93 A6 E2 87 8C 9A 02 9E [14:17:57]CommunicateWithHost err = 0 [14:17:57]CheckOFDResponse [14:17:57]1017 (14) - 77093643461234 [14:17:57]1041 (16) - 0000000000963346 [14:17:57]1040 (4) - 70648 [14:17:57]1012 (4) - 23.10.2024 08:09 [14:17:57]1206 (1) - 0 [14:17:57]OFD Sender: Remove packet 70648 [14:17:57]ProducePacketName [14:17:57]name=ofd_packets/00070648 [14:17:57]NVStorageDeleteData [14:17:57]Write to MH i2c: 01 00 00 37 0D 44 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 07 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 FA 0C 51 [14:17:57]RasterBufferAndPrint [14:17:57]line [14:17:57]line [14:17:57]line [14:17:57]line [14:17:57]line [14:17:57]written 0, free lines is 3328 [14:17:57]MH_Cut [14:17:57]Write to MH i2c: D1 01 00 3E 0D 01 1D [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: D1 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: D1 01 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: D1 01 00 3E 0D 00 1C [14:17:57]Write to MH i2c: 01 00 00 3F 0D 4C [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]OFD Sender: No OFD packet to send [14:17:58]*** Cut start [14:17:58]*** Partial cut [14:17:58]*** CUTSNS_PIN = 1 [14:17:58]*** CUTSNS_PIN = 0 [14:17:58]*** Brake cut motor [14:17:58]Read from MH i2c: 01 [14:17:58]MH_I2C_Read... [14:17:58]*** Stop cut motor [14:17:58]*** Cut end [14:17:58]Read from MH i2c: 01 07 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 FF 0F 61 [14:17:58]process_action close_receipt done [14:17:58]requested_data is exist [14:17:58]produce_requested_data [14:17:58]requested_item fm.sn is exist - process it [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 11 00 00 [14:17:58]Write to MH i2c: E2 08 00 40 0D 80 11 00 00 00 00 00 00 C7 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 17 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 17 00 40 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [14: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 [14:17:58]wFMCommunicate OK [14:17:58]requested_item fd.num is exist - process it [14:17:58]SAM_PROTO_GetFieldsCounters [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 13 00 00 [14:17:58]Write to MH i2c: E2 08 00 41 0D 80 13 00 00 00 00 00 00 CA [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 62 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 62 00 41 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 F8 13 01 00 0E 04 04 00 C4 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 A1 [14: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 F8 13 01 00 0E 04 04 00 C4 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 [14:17:58]wFMCommunicate OK [14:17:58]SAM_PROTO_GetFieldsCounters done [14:17:58]requested_item shift.num is exist - process it [14:17:58]requested_item shift.opened is exist - process it [14:17:58]req_shift_opened [14:17:58]FM_GetShiftState [14:17:58]SAM_PROTO_GetShiftState [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 13 01 00 [14:17:58]Write to MH i2c: E2 08 00 42 0D 80 13 01 00 00 00 00 00 CC [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 0E 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 0E 00 42 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [14:17:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:17:58]wFMCommunicate OK [14:17:58]SAM_PROTO_GetShiftState done [14:17:58]FM_GetShiftState done [14:17:58]req_shift_opened done [14:17:58]requested_item shift.open_date is exist - process it [14:17:58]req_shift_open_date [14:17:58]req_shift_open_date done [14:17:58]produce_requested_data done [14:17:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70648,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:17:58]process_action_free close_receipt [14:17:58]json_value_free [14:17:58]json_value_free done [14:17:58]process_json_proto returns [14:17:58]Send response to host [14:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70648,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:17:58]free response buf [14:17:58]execute_script done [14:17:58]execute_script returns [14:17:58]free content buf [14:17:58]Sock 7.Close socket [14:17:58]Sock 7.Thread stoped [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:16]accept exits with 9 [14:19:16]New connection [14:19:16]New thread 3066891620 created [14:19:16]Thread 3067034980 joined [14:19:16]Waiting for new connection... [14:19:16] Sock 9.Parse request [14:19:16]Sock 9.Check first char [14:19:16]Sock 9.First char is OK [14:19:16]request: POST /json_proto HTTP/1.0 [14:19:16]Method: POST [14:19:16]URL: /json_proto [14:19:16]Method is POST - this is cgi request [14:19:16]url: /json_proto [14:19:16]query_string will be loaded in cgi processing [14:19:16]execute_cgi json_proto POST (null) [14:19:16]execute_cgi path=json_proto method=POST [14:19:16]POST find Content-Length [14:19:16]Host: 172.17.50.3:8080 [14:19:16]Content-Length: 770 [14:19:16]Content-Type: application/json [14:19:16] [14:19:16]POST finish read [14:19:16]Found Content-Length = 770 [14:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886426", "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" : 16.180, "sum" : 1200.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" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:16]execute_script... [14:19: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)2886426", "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" : 16.180, "sum" : 1200.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" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:16]POST & json_proto [14:19:16]process_json_proto [14:19:16]json parsed OK: [14:19:16]protocol is kg_v1.0 [14:19:16]action value=close_receipt [14:19:16]process_action close_receipt [14:19:16]cmd_close_receipt [14:19:16]MH_GetDate [14:19:16]Write to MH i2c: F0 00 00 43 0D 3F [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: F0 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: F0 09 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: F0 09 00 43 0D 00 E6 05 19 67 6B 98 1E 66 3A [14:19:16]GetLastDocTimeStamp 1729693076 [14:19:16]current date 1729693158 [14:19:16]FM_GetShiftState [14:19:16]SAM_PROTO_GetShiftState [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 13 01 00 [14:19:16]Write to MH i2c: E2 08 00 44 0D 80 13 01 00 00 00 00 00 CE [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0E 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0E 00 44 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5B [14:19:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_GetShiftState done [14:19:16]FM_GetShiftState done [14:19:16]opened in 1729642435 [14:19:16]opened+sec_in_day 1729728835 [14:19:16]quantity*price = 120055 [14:19:16]sum+1 = 120057 [14:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.56 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.56 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 165 23.10.2024 14:19 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70649 ФПД: 190666332108796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141918&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70649&fm=190666332108796&tin=02508201610067®Number=0000000000156251&sum=120056 [14:19:17]StoreToDocumentArchive [14:19:17]shift 196 fd 70649 [14:19:17]save to /storage/0196/doc_00070649 [14:19:17]save last doc name /storage/0196/doc_00070649 to /storage/kkm_last_doc_name [14:19:17]save OK [14:19:17]Clear old archive folders... [14:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:17]tlvbuf is 001220B0 [14:19:17]SAM_PROTO_ClearQueue [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 09 00 00 [14:19:17]Write to MH i2c: E2 08 00 51 0D 80 09 00 00 00 00 00 00 D0 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [14:19:17]RAPDU: 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_ClearQueue done [14:19:17]KKMCreateOFDPacket [14:19:17]OFDProtocolAddRootSTLVToBuf [14:19:17]FM_MakeSignedData [14:19:17]FM_MakeSignedData [14:19:17]SAM_PROTO_SignData [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 0D 01 02 [14:19:17]Write to MH i2c: E2 08 00 52 0D 80 0D 01 02 00 00 00 00 D8 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [14:19:17]RAPDU: 90 00 [14:19:17]wFMCommunicate OK [14:19:17]wFMCommunicate request_size=255 [14:19:17]MH_SAM_APDU [14:19: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 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 F8 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 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E6 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AD [14:19:17]Write to MH i2c: E2 02 01 53 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 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 F8 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 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E6 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AD 00 00 88 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 03 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [14:19:18]RAPDU: 90 00 [14:19:18]wFMCommunicate OK [14:19:18]wFMCommunicate request_size=10 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 0D 02 02 05 68 F6 FE F7 FC [14:19:18]Write to MH i2c: E2 0D 00 54 0D 80 0D 02 02 05 00 68 F6 FE F7 FC 00 00 34 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 03 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [14:19:18]RAPDU: 90 00 [14:19:18]wFMCommunicate OK [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 0D 03 02 [14:19:18]Write to MH i2c: E2 08 00 55 0D 80 0D 03 02 00 00 00 00 DD [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 0B 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 0B 00 55 0D 00 43 BC 6F A2 1E 4F 0D 8C 90 00 F4 [14:19:18]RAPDU: 43 BC 6F A2 1E 4F 0D 8C 90 00 [14:19:18]wFMCommunicate OK [14:19:18]SAM_PROTO_SignData done [14:19:18]FM_MakeSignedData done [14:19:18]CreateOFDProtocolMessage [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 11 00 00 [14:19:18]Write to MH i2c: E2 08 00 56 0D 80 11 00 00 00 00 00 00 DD [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 56 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [14:19: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:19:18]wFMCommunicate OK [14:19:18]CreateOFDProtocolMessage done [14:19:18]OFDSenderStorePacket 70649 [14:19:18]StoreOFDPacket docnum=70649 [14:19: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 AF 13 07 01 72 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 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 F8 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 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E6 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AD 68 F6 FE F7 FC 43 BC 6F A2 1E 4F 0D 8C [14:19:18]CheckFolder [14:19:18]dirname=/storage/ofd_packets [14:19:18]CheckFolder done [14:19:18]ProducePacketName [14:19:18]name=ofd_packets/00070649 [14:19:18]NVStorageSaveData ofd_packets/00070649 [14:19:18]File name is /storage/ofd_packets/00070649 [14:19:18]Write 301 bytes [14:19:18]NVStorageSaveData done [14:19:18]OFDSenderStorePacket done [14:19:18]KKMCreateOFDPacket done [14:19:18]NVStorageSaveData kkm_last_timestamp [14:19:18]File name is /storage/kkm_last_timestamp [14:19:18]Write 4 bytes [14:19:18]NVStorageSaveData done [14:19:18]ExternCall_PrintAddStr [14:19:18]wPrintStart [14:19:18]Write to MH i2c: 01 00 00 57 0D 64 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 FF 0F 79 [14:19:18]RasterBufferAndPrint [14:19:18]line Счет N : (1)2886426 [14:19:18]line ИНН: 02508201610067 [14:19:18]line Контрольно-Кассовый Чек [14:19:18]line ПРОДАЖА [14:19:18]line ТРК (МРК, ГНК) : 33 [14:19:18]line Товар: 2710124500 [14:19:18]line Аи-95-К-5 [14:19:18]line 16.180 * 74.20 [14:19:18]line = 1200.56 [14:19:18]line НДС 12% НСП 1% [14:19:18]line > о реализуемом товаре [14:19:18]line ИТОГО: 1200.56 [14:19:18]line НСП 1% : 10.62 [14:19:18]line НДС 12% : 127.49 [14:19:18]line Наличными: 0.00 [14:19:18]line Безнал.: 1200.56 [14:19:18]line Место: АЗС № 85 "Партнер Нефть" [14:19:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:19:18]line СНО: Общий режим [14:19:18]line Чек 165 23.10.2024 14:19 [14:19:18]line Смена: 196 ФФД: 1.0 [14:19:18]line ЗНМ: 0300000167 [14:19:18]line РНМ: 0000000000156251 [14:19:18]line Версия ККМ: v1.0 [14:19:18]line Платежная система: Mbank [14:19:18]line ФМ: 0000000000963346 [14:19:18]line ФД: 70649 [14:19:18]line ФПД: 190666332108796 [14:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141918&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70649&fm=190666332108796&tin=02508201610067®Number=0000000000156251&sum=120056 [14:19:18]OFD Sender: Processing packet 70649 [packets to send 18, broken 17] [14:19:18]ProducePacketName [14:19:18]name=ofd_packets/00070649 [14:19:18]OFD Sender: To server: pG, [14:19:18]CommunicateWithHost lk.salyk.kg:30040 [14:19:18]ConnectInit lk.salyk.kg [14:19:18]written 0, free lines is 4095 [14:19:18]Connected sock=10 [14:19: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 AF 13 07 01 72 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 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 F8 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 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E6 05 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AD 68 F6 FE F7 FC 43 BC 6F A2 1E 4F 0D 8C [14:19: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 8B 29 47 00 D9 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 F9 13 01 00 F4 03 04 00 83 AF 18 67 B6 04 01 00 00 84 D5 14 42 57 6F 20 D0 [14:19:19]CommunicateWithHost err = 0 [14:19:19]CheckOFDResponse [14:19:19]1017 (14) - 77093643461234 [14:19:19]1041 (16) - 0000000000963346 [14:19:19]1040 (4) - 70649 [14:19:19]1012 (4) - 23.10.2024 08:10 [14:19:19]1206 (1) - 0 [14:19:19]OFD Sender: Remove packet 70649 [14:19:19]ProducePacketName [14:19:19]name=ofd_packets/00070649 [14:19:19]NVStorageDeleteData [14:19:19]Write to MH i2c: 01 00 00 80 0D 8D [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 07 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 1D 0D BE [14:19:19]RasterBufferAndPrint [14:19:19]line [14:19:19]line [14:19:19]line [14:19:19]line [14:19:19]line [14:19:19]written 0, free lines is 3363 [14:19:19]MH_Cut [14:19:19]Write to MH i2c: D1 01 00 87 0D 01 66 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: D1 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: D1 01 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: D1 01 00 87 0D 00 65 [14:19:19]Write to MH i2c: 01 00 00 88 0D 95 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]OFD Sender: No OFD packet to send [14:19:19]*** Cut start [14:19:19]*** Partial cut [14:19:19]*** CUTSNS_PIN = 1 [14:19:19]*** CUTSNS_PIN = 0 [14:19:20]*** Brake cut motor [14:19:20]Read from MH i2c: 01 [14:19:20]MH_I2C_Read... [14:19:20]*** Stop cut motor [14:19:20]*** Cut end [14:19:20]Read from MH i2c: 01 07 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 FF 0F AA [14:19:20]process_action close_receipt done [14:19:20]requested_data is exist [14:19:20]produce_requested_data [14:19:20]requested_item fm.sn is exist - process it [14:19:20]wFMCommunicate request_size=4 [14:19:20]MH_SAM_APDU [14:19:20]CAPDU: 80 11 00 00 [14:19:20]Write to MH i2c: E2 08 00 89 0D 80 11 00 00 00 00 00 00 10 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:20]Read from MH i2c: E2 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 17 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 17 00 89 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [14:19: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:19:20]wFMCommunicate OK [14:19:20]requested_item fd.num is exist - process it [14:19:20]SAM_PROTO_GetFieldsCounters [14:19:20]wFMCommunicate request_size=4 [14:19:20]MH_SAM_APDU [14:19:20]CAPDU: 80 13 00 00 [14:19:20]Write to MH i2c: E2 08 00 8A 0D 80 13 00 00 00 00 00 00 13 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:20]Read from MH i2c: E2 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 62 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 62 00 8A 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 F9 13 01 00 0E 04 04 00 C4 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 EE [14:19: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 F9 13 01 00 0E 04 04 00 C4 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 [14:19:20]wFMCommunicate OK [14:19:20]SAM_PROTO_GetFieldsCounters done [14:19:20]requested_item shift.num is exist - process it [14:19:20]requested_item shift.opened is exist - process it [14:19:20]req_shift_opened [14:19:20]FM_GetShiftState [14:19:20]SAM_PROTO_GetShiftState [14:19:20]wFMCommunicate request_size=4 [14:19:20]MH_SAM_APDU [14:19:20]CAPDU: 80 13 01 00 [14:19:20]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 [14:19:20]MH_I2C_Read... [14:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:20]Read from MH i2c: E2 0E 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A2 [14:19:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:19:20]wFMCommunicate OK [14:19:20]SAM_PROTO_GetShiftState done [14:19:20]FM_GetShiftState done [14:19:20]req_shift_opened done [14:19:20]requested_item shift.open_date is exist - process it [14:19:20]req_shift_open_date [14:19:20]req_shift_open_date done [14:19:20]produce_requested_data done [14:19:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70649,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:19:20]process_action_free close_receipt [14:19:20]json_value_free [14:19:20]json_value_free done [14:19:20]process_json_proto returns [14:19:20]Send response to host [14:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70649,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:19:20]free response buf [14:19:20]execute_script done [14:19:20]execute_script returns [14:19:20]free content buf [14:19:20]Sock 9.Close socket [14:19:20]Sock 9.Thread stoped [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:24]accept exits with 7 [14:21:24]New connection [14:21:24]New thread 3067034980 created [14:21:24]Thread 3066891620 joined [14:21:24]Waiting for new connection... [14:21:24] Sock 7.Parse request [14:21:24]Sock 7.Check first char [14:21:24]Sock 7.First char is OK [14:21:24]request: POST /json_proto HTTP/1.0 [14:21:24]Method: POST [14:21:24]URL: /json_proto [14:21:24]Method is POST - this is cgi request [14:21:24]url: /json_proto [14:21:24]query_string will be loaded in cgi processing [14:21:24]execute_cgi json_proto POST (null) [14:21:24]execute_cgi path=json_proto method=POST [14:21:24]POST find Content-Length [14:21:24]Host: 172.17.50.3:8080 [14:21:24]Content-Length: 678 [14:21:24]Content-Type: application/json [14:21:24] [14:21:24]POST finish read [14:21:24]Found Content-Length = 678 [14:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886427", "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" ] } } [14:21:24]execute_script... [14:21: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)2886427", "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" ] } } [14:21:24]POST & json_proto [14:21:24]process_json_proto [14:21:24]json parsed OK: [14:21:24]protocol is kg_v1.0 [14:21:24]action value=close_receipt [14:21:24]process_action close_receipt [14:21:24]cmd_close_receipt [14:21:24]MH_GetDate [14:21:24]Write to MH i2c: F0 00 00 8C 0D 88 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: F0 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: F0 09 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: F0 09 00 8C 0D 00 66 06 19 67 6B 98 1E 66 04 [14:21:24]GetLastDocTimeStamp 1729693158 [14:21:24]current date 1729693286 [14:21:24]FM_GetShiftState [14:21:24]SAM_PROTO_GetShiftState [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 13 01 00 [14:21:24]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A4 [14:21:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_GetShiftState done [14:21:24]FM_GetShiftState done [14:21:24]opened in 1729642435 [14:21:24]opened+sec_in_day 1729728835 [14:21:24]quantity*price = 50010 [14:21:24]sum+1 = 50012 [14:21:24]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 СНО: Общий режим Чек 166 23.10.2024 14:21 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70650 ФПД: 276529712997530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70650&fm=276529712997530&tin=02508201610067®Number=0000000000156251&sum=50000 [14:21:25]StoreToDocumentArchive [14:21:25]shift 196 fd 70650 [14:21:25]save to /storage/0196/doc_00070650 [14:21:25]save last doc name /storage/0196/doc_00070650 to /storage/kkm_last_doc_name [14:21:25]save OK [14:21:25]Clear old archive folders... [14:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:25]tlvbuf is 00122900 [14:21:25]SAM_PROTO_ClearQueue [14:21:25]wFMCommunicate request_size=4 [14:21:25]MH_SAM_APDU [14:21:25]CAPDU: 80 09 00 00 [14:21:25]Write to MH i2c: E2 08 00 9A 0D 80 09 00 00 00 00 00 00 19 [14:21:25]Write i2c OK [14:21:25]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [14:21:26]RAPDU: 90 00 [14:21:26]wFMCommunicate OK [14:21:26]SAM_PROTO_ClearQueue done [14:21:26]KKMCreateOFDPacket [14:21:26]OFDProtocolAddRootSTLVToBuf [14:21:26]FM_MakeSignedData [14:21:26]FM_MakeSignedData [14:21:26]SAM_PROTO_SignData [14:21:26]wFMCommunicate request_size=4 [14:21:26]MH_SAM_APDU [14:21:26]CAPDU: 80 0D 01 02 [14:21:26]Write to MH i2c: E2 08 00 9B 0D 80 0D 01 02 00 00 00 00 21 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [14:21:26]RAPDU: 90 00 [14:21:26]wFMCommunicate OK [14:21:26]wFMCommunicate request_size=255 [14:21:26]MH_SAM_APDU [14:21: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 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 A6 00 00 00 F4 03 04 00 66 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB [14:21:26]Write to MH i2c: E2 02 01 9C 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 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 A6 00 00 00 F4 03 04 00 66 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 00 00 E1 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [14:21:26]RAPDU: 90 00 [14:21:26]wFMCommunicate OK [14:21:26]wFMCommunicate request_size=10 [14:21:26]MH_SAM_APDU [14:21:26]CAPDU: 80 0D 02 02 05 80 97 50 24 9A [14:21:26]Write to MH i2c: E2 0D 00 9D 0D 80 0D 02 02 05 00 80 97 50 24 9A 00 00 53 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [14:21:26]RAPDU: 90 00 [14:21:26]wFMCommunicate OK [14:21:26]wFMCommunicate request_size=4 [14:21:26]MH_SAM_APDU [14:21:26]CAPDU: 80 0D 03 02 [14:21:26]Write to MH i2c: E2 08 00 9E 0D 80 0D 03 02 00 00 00 00 26 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 0B 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 0B 00 9E 0D 00 01 8F 75 53 3C C1 61 E1 90 00 BE [14:21:26]RAPDU: 01 8F 75 53 3C C1 61 E1 90 00 [14:21:26]wFMCommunicate OK [14:21:26]SAM_PROTO_SignData done [14:21:26]FM_MakeSignedData done [14:21:26]CreateOFDProtocolMessage [14:21:26]wFMCommunicate request_size=4 [14:21:26]MH_SAM_APDU [14:21:26]CAPDU: 80 11 00 00 [14:21:26]Write to MH i2c: E2 08 00 9F 0D 80 11 00 00 00 00 00 00 26 [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:26]Read from MH i2c: E2 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 17 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: E2 17 00 9F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [14:21: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:21:26]wFMCommunicate OK [14:21:26]CreateOFDProtocolMessage done [14:21:26]OFDSenderStorePacket 70650 [14:21:26]StoreOFDPacket docnum=70650 [14:21: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 53 2F 07 01 3E 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 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 A6 00 00 00 F4 03 04 00 66 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 80 97 50 24 9A 01 8F 75 53 3C C1 61 E1 [14:21:26]CheckFolder [14:21:26]dirname=/storage/ofd_packets [14:21:26]CheckFolder done [14:21:26]ProducePacketName [14:21:26]name=ofd_packets/00070650 [14:21:26]NVStorageSaveData ofd_packets/00070650 [14:21:26]File name is /storage/ofd_packets/00070650 [14:21:26]Write 301 bytes [14:21:26]NVStorageSaveData done [14:21:26]OFDSenderStorePacket done [14:21:26]KKMCreateOFDPacket done [14:21:26]NVStorageSaveData kkm_last_timestamp [14:21:26]File name is /storage/kkm_last_timestamp [14:21:26]Write 4 bytes [14:21:26]NVStorageSaveData done [14:21:26]ExternCall_PrintAddStr [14:21:26]wPrintStart [14:21:26]Write to MH i2c: 01 00 00 A0 0D AD [14:21:26]Write i2c OK [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 07 00 [14:21:26]MH_I2C_Read... [14:21:26]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [14:21:26]RasterBufferAndPrint [14:21:26]line Счет N : (1)2886427 [14:21:26]line ИНН: 02508201610067 [14:21:26]line Контрольно-Кассовый Чек [14:21:26]line ПРОДАЖА [14:21:26]line ТРК (МРК, ГНК) : 13 [14:21:26]line Товар: 2710124500 [14:21:26]line Аи-95-К-5 [14:21:26]line 6.740 * 74.20 [14:21:26]line = 500.11 [14:21:26]line НДС 12% НСП 1% [14:21:26]line > о реализуемом товаре [14:21:26]line ОКРУГЛЕНИЕ: -0.11 [14:21:26]line ИТОГО: 500.00 [14:21:26]line Внесено: 500.00 [14:21:26]line СДАЧА: 0.00 [14:21:26]line НСП 1% : 4.43 [14:21:26]line НДС 12% : 53.11 [14:21:26]line Наличными: 500.00 [14:21:26]line Безнал.: 0.00 [14:21:26]line Место: АЗС № 85 "Партнер Нефть" [14:21:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:21:26]line СНО: Общий режим [14:21:26]line Чек 166 23.10.2024 14:21 [14:21:26]line Смена: 196 ФФД: 1.0 [14:21:26]line ЗНМ: 0300000167 [14:21:26]line РНМ: 0000000000156251 [14:21:26]line Версия ККМ: v1.0 [14:21:26]line ФМ: 0000000000963346 [14:21:26]line ФД: 70650 [14:21:26]line ФПД: 276529712997530 [14:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70650&fm=276529712997530&tin=02508201610067®Number=0000000000156251&sum=50000 [14:21:26]OFD Sender: Processing packet 70650 [packets to send 18, broken 17] [14:21:26]ProducePacketName [14:21:26]name=ofd_packets/00070650 [14:21:26]OFD Sender: To server: pG, [14:21:26]CommunicateWithHost lk.salyk.kg:30040 [14:21:26]ConnectInit lk.salyk.kg [14:21:26]written 0, free lines is 4095 [14:21:26]Connected sock=10 [14:21: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 53 2F 07 01 3E 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 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 A6 00 00 00 F4 03 04 00 66 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 FB 80 97 50 24 9A 01 8F 75 53 3C C1 61 E1 [14:21: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 CA 15 47 00 FA 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 FA 13 01 00 F4 03 04 00 03 B0 18 67 B6 04 01 00 00 20 EE FA AC DC 38 1B 36 [14:21:27]CommunicateWithHost err = 0 [14:21:27]CheckOFDResponse [14:21:27]1017 (14) - 77093643461234 [14:21:27]1041 (16) - 0000000000963346 [14:21:27]1040 (4) - 70650 [14:21:27]1012 (4) - 23.10.2024 08:12 [14:21:27]1206 (1) - 0 [14:21:27]OFD Sender: Remove packet 70650 [14:21:27]ProducePacketName [14:21:27]name=ofd_packets/00070650 [14:21:27]NVStorageDeleteData [14:21:27]Write to MH i2c: 01 00 00 CB 0D D8 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: 01 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: 01 07 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FA 0C E5 [14:21:27]RasterBufferAndPrint [14:21:27]line [14:21:27]line [14:21:27]line [14:21:27]line [14:21:27]line [14:21:27]written 0, free lines is 3329 [14:21:27]MH_Cut [14:21:27]Write to MH i2c: D1 01 00 D2 0D 01 B1 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: D1 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: D1 01 00 [14:21:27]MH_I2C_Read... [14:21:27]Read from MH i2c: D1 01 00 D2 0D 00 B0 [14:21:27]Write to MH i2c: 01 00 00 D3 0D E0 [14:21:27]Write i2c OK [14:21:27]MH_I2C_Read... [14:21:27]OFD Sender: No OFD packet to send [14:21:28]*** Cut start [14:21:28]*** Partial cut [14:21:28]*** CUTSNS_PIN = 1 [14:21:28]*** CUTSNS_PIN = 0 [14:21:28]*** Brake cut motor [14:21:28]Read from MH i2c: 01 [14:21:28]MH_I2C_Read... [14:21:28]*** Stop cut motor [14:21:28]*** Cut end [14:21:28]Read from MH i2c: 01 07 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 FF 0F F5 [14:21:28]process_action close_receipt done [14:21:28]requested_data is exist [14:21:28]produce_requested_data [14:21:28]requested_item fm.sn is exist - process it [14:21:28]wFMCommunicate request_size=4 [14:21:28]MH_SAM_APDU [14:21:28]CAPDU: 80 11 00 00 [14:21:28]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [14:21:28]Write i2c OK [14:21:28]MH_I2C_Read... [14:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:28]Read from MH i2c: E2 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 17 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [14:21: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:21:28]wFMCommunicate OK [14:21:28]requested_item fd.num is exist - process it [14:21:28]SAM_PROTO_GetFieldsCounters [14:21:28]wFMCommunicate request_size=4 [14:21:28]MH_SAM_APDU [14:21:28]CAPDU: 80 13 00 00 [14:21:28]Write to MH i2c: E2 08 00 D5 0D 80 13 00 00 00 00 00 00 5E [14:21:28]Write i2c OK [14:21:28]MH_I2C_Read... [14:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:28]Read from MH i2c: E2 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 62 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 62 00 D5 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 FA 13 01 00 0E 04 04 00 C4 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 3D [14:21: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 FA 13 01 00 0E 04 04 00 C4 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 [14:21:28]wFMCommunicate OK [14:21:28]SAM_PROTO_GetFieldsCounters done [14:21:28]requested_item shift.num is exist - process it [14:21:28]requested_item shift.opened is exist - process it [14:21:28]req_shift_opened [14:21:28]FM_GetShiftState [14:21:28]SAM_PROTO_GetShiftState [14:21:28]wFMCommunicate request_size=4 [14:21:28]MH_SAM_APDU [14:21:28]CAPDU: 80 13 01 00 [14:21:28]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [14:21:28]Write i2c OK [14:21:28]MH_I2C_Read... [14:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:28]Read from MH i2c: E2 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 0E 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 ED [14:21:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:21:28]wFMCommunicate OK [14:21:28]SAM_PROTO_GetShiftState done [14:21:28]FM_GetShiftState done [14:21:28]req_shift_opened done [14:21:28]requested_item shift.open_date is exist - process it [14:21:28]req_shift_open_date [14:21:28]req_shift_open_date done [14:21:28]produce_requested_data done [14:21:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70650,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:21:28]process_action_free close_receipt [14:21:28]json_value_free [14:21:28]json_value_free done [14:21:28]process_json_proto returns [14:21:28]Send response to host [14:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70650,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:21:28]free response buf [14:21:28]execute_script done [14:21:28]execute_script returns [14:21:28]free content buf [14:21:28]Sock 7.Close socket [14:21:28]Sock 7.Thread stoped [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]accept exits with 9 [14:22:12]New connection [14:22:12]New thread 3066891620 created [14:22:12]Thread 3067034980 joined [14:22:12]Waiting for new connection... [14:22:12] Sock 9.Parse request [14:22:12]Sock 9.Check first char [14:22:12]Sock 9.First char is OK [14:22:12]request: POST /json_proto HTTP/1.0 [14:22:12]Method: POST [14:22:12]URL: /json_proto [14:22:12]Method is POST - this is cgi request [14:22:12]url: /json_proto [14:22:12]query_string will be loaded in cgi processing [14:22:12]execute_cgi json_proto POST (null) [14:22:12]execute_cgi path=json_proto method=POST [14:22:12]POST find Content-Length [14:22:12]Host: 172.17.50.3:8080 [14:22:12]Content-Length: 680 [14:22:12]Content-Type: application/json [14:22:12] [14:22:12]POST finish read [14:22:12]Found Content-Length = 680 [14:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886428", "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" : 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" ] } } [14:22:12]execute_script... [14:22: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)2886428", "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" : 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" ] } } [14:22:12]POST & json_proto [14:22:12]process_json_proto [14:22:12]json parsed OK: [14:22:12]protocol is kg_v1.0 [14:22:12]action value=close_receipt [14:22:12]process_action close_receipt [14:22:12]cmd_close_receipt [14:22:12]MH_GetDate [14:22:12]Write to MH i2c: F0 00 00 D7 0D D3 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 09 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 09 00 D7 0D 00 96 06 19 67 6B 98 1E 66 7F [14:22:12]GetLastDocTimeStamp 1729693286 [14:22:12]current date 1729693334 [14:22:12]FM_GetShiftState [14:22:12]SAM_PROTO_GetShiftState [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 13 01 00 [14:22:12]Write to MH i2c: E2 08 00 D8 0D 80 13 01 00 00 00 00 00 62 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0E 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0E 00 D8 0D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EF [14:22:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_GetShiftState done [14:22:12]FM_GetShiftState done [14:22:12]opened in 1729642435 [14:22:12]opened+sec_in_day 1729728835 [14:22:12]quantity*price = 180060 [14:22:12]sum+1 = 180062 [14:22:12]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 СНО: Общий режим Чек 167 23.10.2024 14:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70651 ФПД: 229376353564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70651&fm=229376353564&tin=02508201610067®Number=0000000000156251&sum=180000 [14:22:13]StoreToDocumentArchive [14:22:13]shift 196 fd 70651 [14:22:13]save to /storage/0196/doc_00070651 [14:22:13]save last doc name /storage/0196/doc_00070651 to /storage/kkm_last_doc_name [14:22:13]save OK [14:22:13]Clear old archive folders... [14:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:13]tlvbuf is 00133A80 [14:22:13]SAM_PROTO_ClearQueue [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 09 00 00 [14:22:13]Write to MH i2c: E2 08 00 E5 0D 80 09 00 00 00 00 00 00 64 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 03 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [14:22:13]RAPDU: 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_ClearQueue done [14:22:13]KKMCreateOFDPacket [14:22:13]OFDProtocolAddRootSTLVToBuf [14:22:13]FM_MakeSignedData [14:22:13]FM_MakeSignedData [14:22:13]SAM_PROTO_SignData [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 0D 01 02 [14:22:13]Write to MH i2c: E2 08 00 E6 0D 80 0D 01 02 00 00 00 00 6C [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 03 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [14:22:13]RAPDU: 90 00 [14:22:13]wFMCommunicate OK [14:22:13]wFMCommunicate request_size=255 [14:22:13]MH_SAM_APDU [14:22: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 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 A7 00 00 00 F4 03 04 00 96 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 35 67 E5 [14:22:13]Write to MH i2c: E2 02 01 E7 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 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 A7 00 00 00 F4 03 04 00 96 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 35 67 E5 00 00 7F [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=7 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 02 02 02 65 1C [14:22:14]Write to MH i2c: E2 0A 00 E8 0D 80 0D 02 02 02 00 65 1C 00 00 F4 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 03 02 [14:22:14]Write to MH i2c: E2 08 00 E9 0D 80 0D 03 02 00 00 00 00 71 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0B 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0B 00 E9 0D 00 96 A2 54 AD D8 BA C3 2E 90 00 2E [14:22:14]RAPDU: 96 A2 54 AD D8 BA C3 2E 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_SignData done [14:22:14]FM_MakeSignedData done [14:22:14]CreateOFDProtocolMessage [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 11 00 00 [14:22:14]Write to MH i2c: E2 08 00 EA 0D 80 11 00 00 00 00 00 00 71 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 EA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C3 [14:22: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:22:14]wFMCommunicate OK [14:22:14]CreateOFDProtocolMessage done [14:22:14]OFDSenderStorePacket 70651 [14:22:14]StoreOFDPacket docnum=70651 [14:22: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 A7 42 04 01 C6 8F 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 A7 00 00 00 F4 03 04 00 96 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 35 67 E5 65 1C 96 A2 54 AD D8 BA C3 2E [14:22:14]CheckFolder [14:22:14]dirname=/storage/ofd_packets [14:22:14]CheckFolder done [14:22:14]ProducePacketName [14:22:14]name=ofd_packets/00070651 [14:22:14]NVStorageSaveData ofd_packets/00070651 [14:22:14]File name is /storage/ofd_packets/00070651 [14:22:14]Write 298 bytes [14:22:14]NVStorageSaveData done [14:22:14]OFDSenderStorePacket done [14:22:14]KKMCreateOFDPacket done [14:22:14]NVStorageSaveData kkm_last_timestamp [14:22:14]File name is /storage/kkm_last_timestamp [14:22:14]Write 4 bytes [14:22:14]NVStorageSaveData done [14:22:14]ExternCall_PrintAddStr [14:22:14]wPrintStart [14:22:14]Write to MH i2c: 01 00 00 EB 0D F8 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [14:22:14]RasterBufferAndPrint [14:22:14]line Счет N : (1)2886428 [14:22:14]line ИНН: 02508201610067 [14:22:14]line Контрольно-Кассовый Чек [14:22:14]line ПРОДАЖА [14:22:14]line ТРК (МРК, ГНК) : 51 [14:22:14]line Товар: 2710194210 [14:22:14]line ДТ-К-5 [14:22:14]line 23.630 * 76.20 [14:22:14]line = 1800.61 [14:22:14]line НДС 12% НСП 1% [14:22:14]line > о реализуемом товаре [14:22:14]line ОКРУГЛЕНИЕ: -0.61 [14:22:14]line ИТОГО: 1800.00 [14:22:14]line Внесено: 1800.00 [14:22:14]line СДАЧА: 0.00 [14:22:14]line НСП 1% : 15.93 [14:22:14]line НДС 12% : 191.21 [14:22:14]line Наличными: 1800.00 [14:22:14]line Безнал.: 0.00 [14:22:14]line Место: АЗС № 85 "Партнер Нефть" [14:22:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:22:14]line СНО: Общий режим [14:22:14]line Чек 167 23.10.2024 14:22 [14:22:14]line Смена: 196 ФФД: 1.0 [14:22:14]line ЗНМ: 0300000167 [14:22:14]line РНМ: 0000000000156251 [14:22:14]line Версия ККМ: v1.0 [14:22:14]line ФМ: 0000000000963346 [14:22:14]line ФД: 70651 [14:22:14]line ФПД: 229376353564 [14:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70651&fm=229376353564&tin=02508201610067®Number=0000000000156251&sum=180000 [14:22:14]written 0, free lines is 4095 [14:22:14]OFD Sender: Processing packet 70651 [packets to send 18, broken 17] [14:22:14]ProducePacketName [14:22:14]name=ofd_packets/00070651 [14:22:14]OFD Sender: To server: pG, [14:22:14]CommunicateWithHost lk.salyk.kg:30040 [14:22:14]ConnectInit lk.salyk.kg [14:22:14]Connected sock=10 [14:22: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 A7 42 04 01 C6 8F 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 A7 00 00 00 F4 03 04 00 96 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 00 35 67 E5 65 1C 96 A2 54 AD D8 BA C3 2E [14:22: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 48 3D 47 00 6D 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 FB 13 01 00 F4 03 04 00 33 B0 18 67 B6 04 01 00 00 AF A5 B5 32 10 A7 12 46 [14:22:15]CommunicateWithHost err = 0 [14:22:15]CheckOFDResponse [14:22:15]1017 (14) - 77093643461234 [14:22:15]1041 (16) - 0000000000963346 [14:22:15]1040 (4) - 70651 [14:22:15]1012 (4) - 23.10.2024 08:13 [14:22:15]1206 (1) - 0 [14:22:15]OFD Sender: Remove packet 70651 [14:22:15]ProducePacketName [14:22:15]name=ofd_packets/00070651 [14:22:15]NVStorageDeleteData [14:22:15]Write to MH i2c: 01 00 00 16 0E 24 [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 07 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 F6 0C 2D [14:22:15]RasterBufferAndPrint [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]written 0, free lines is 3324 [14:22:15]MH_Cut [14:22:15]Write to MH i2c: D1 01 00 1D 0E 01 FD [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 01 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 01 00 1D 0E 00 FC [14:22:15]Write to MH i2c: 01 00 00 1E 0E 2C [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]OFD Sender: No OFD packet to send [14:22:15]*** Cut start [14:22:15]*** Partial cut [14:22:15]*** CUTSNS_PIN = 1 [14:22:15]*** CUTSNS_PIN = 0 [14:22:16]*** Brake cut motor [14:22:16]Read from MH i2c: 01 [14:22:16]MH_I2C_Read... [14:22:16]*** Stop cut motor [14:22:16]*** Cut end [14:22:16]Read from MH i2c: 01 07 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [14:22:16]process_action close_receipt done [14:22:16]requested_data is exist [14:22:16]produce_requested_data [14:22:16]requested_item fm.sn is exist - process it [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 11 00 00 [14:22:16]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 17 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [14:22: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:22:16]wFMCommunicate OK [14:22:16]requested_item fd.num is exist - process it [14:22:16]SAM_PROTO_GetFieldsCounters [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 13 00 00 [14:22:16]Write to MH i2c: E2 08 00 20 0E 80 13 00 00 00 00 00 00 AA [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 62 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 62 00 20 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 FB 13 01 00 0E 04 04 00 C4 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 8D [14:22: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 FB 13 01 00 0E 04 04 00 C4 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 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_GetFieldsCounters done [14:22:16]requested_item shift.num is exist - process it [14:22:16]requested_item shift.opened is exist - process it [14:22:16]req_shift_opened [14:22:16]FM_GetShiftState [14:22:16]SAM_PROTO_GetShiftState [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 13 01 00 [14:22:16]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 39 [14:22:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_GetShiftState done [14:22:16]FM_GetShiftState done [14:22:16]req_shift_opened done [14:22:16]requested_item shift.open_date is exist - process it [14:22:16]req_shift_open_date [14:22:16]req_shift_open_date done [14:22:16]produce_requested_data done [14:22:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70651,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:22:16]process_action_free close_receipt [14:22:16]json_value_free [14:22:16]json_value_free done [14:22:16]process_json_proto returns [14:22:16]Send response to host [14:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70651,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:22:16]free response buf [14:22:16]execute_script done [14:22:16]execute_script returns [14:22:16]free content buf [14:22:16]Sock 9.Close socket [14:22:16]Sock 9.Thread stoped [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]accept exits with 7 [14:23:05]New connection [14:23:05]New thread 3067034980 created [14:23:05]Thread 3066891620 joined [14:23:05]Waiting for new connection... [14:23:05] Sock 7.Parse request [14:23:05]Sock 7.Check first char [14:23:05]Sock 7.First char is OK [14:23:05]request: POST /json_proto HTTP/1.0 [14:23:05]Method: POST [14:23:05]URL: /json_proto [14:23:05]Method is POST - this is cgi request [14:23:05]url: /json_proto [14:23:05]query_string will be loaded in cgi processing [14:23:05]execute_cgi json_proto POST (null) [14:23:05]execute_cgi path=json_proto method=POST [14:23:05]POST find Content-Length [14:23:05]Host: 172.17.50.3:8080 [14:23:05]Content-Length: 678 [14:23:05]Content-Type: application/json [14:23:05] [14:23:05]POST finish read [14:23:05]Found Content-Length = 678 [14:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886429", "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" ] } } [14:23:05]execute_script... [14:23: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)2886429", "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" ] } } [14:23:05]POST & json_proto [14:23:05]process_json_proto [14:23:05]json parsed OK: [14:23:05]protocol is kg_v1.0 [14:23:05]action value=close_receipt [14:23:05]process_action close_receipt [14:23:05]cmd_close_receipt [14:23:05]MH_GetDate [14:23:05]Write to MH i2c: F0 00 00 22 0E 1F [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: F0 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: F0 09 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: F0 09 00 22 0E 00 CA 06 19 67 6B 98 1E 66 FF [14:23:05]GetLastDocTimeStamp 1729693334 [14:23:05]current date 1729693386 [14:23:05]FM_GetShiftState [14:23:05]SAM_PROTO_GetShiftState [14:23:05]wFMCommunicate request_size=4 [14:23:05]MH_SAM_APDU [14:23:05]CAPDU: 80 13 01 00 [14:23:05]Write to MH i2c: E2 08 00 23 0E 80 13 01 00 00 00 00 00 AE [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:05]Read from MH i2c: E2 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 0E 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: E2 0E 00 23 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3B [14:23:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:23:05]wFMCommunicate OK [14:23:05]SAM_PROTO_GetShiftState done [14:23:05]FM_GetShiftState done [14:23:05]opened in 1729642435 [14:23:05]opened+sec_in_day 1729728835 [14:23:05]quantity*price = 50041 [14:23:05]sum+1 = 50042 [14:23:05]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 СНО: Общий режим Чек 168 23.10.2024 14:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70652 ФПД: 182799338612824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142306&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70652&fm=182799338612824&tin=02508201610067®Number=0000000000156251&sum=50000 [14:23:06]StoreToDocumentArchive [14:23:06]shift 196 fd 70652 [14:23:06]save to /storage/0196/doc_00070652 [14:23:06]save last doc name /storage/0196/doc_00070652 to /storage/kkm_last_doc_name [14:23:06]save OK [14:23:06]Clear old archive folders... [14:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:06]tlvbuf is 00121C20 [14:23:06]SAM_PROTO_ClearQueue [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 09 00 00 [14:23:06]Write to MH i2c: E2 08 00 30 0E 80 09 00 00 00 00 00 00 B0 [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [14:23:06]RAPDU: 90 00 [14:23:06]wFMCommunicate OK [14:23:06]SAM_PROTO_ClearQueue done [14:23:06]KKMCreateOFDPacket [14:23:06]OFDProtocolAddRootSTLVToBuf [14:23:06]FM_MakeSignedData [14:23:06]FM_MakeSignedData [14:23:06]SAM_PROTO_SignData [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 0D 01 02 [14:23:06]Write to MH i2c: E2 08 00 31 0E 80 0D 01 02 00 00 00 00 B8 [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [14:23:06]RAPDU: 90 00 [14:23:06]wFMCommunicate OK [14:23:06]wFMCommunicate request_size=255 [14:23:06]MH_SAM_APDU [14:23: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 A8 00 00 00 F4 03 04 00 CA 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 [14:23:06]Write to MH i2c: E2 02 01 32 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 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 A8 00 00 00 F4 03 04 00 CA 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 00 00 B3 [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [14:23:06]RAPDU: 90 00 [14:23:06]wFMCommunicate OK [14:23:06]wFMCommunicate request_size=10 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 0D 02 02 05 41 49 A4 A8 58 [14:23:06]Write to MH i2c: E2 0D 00 33 0E 80 0D 02 02 05 00 41 49 A4 A8 58 00 00 F3 [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [14:23:06]RAPDU: 90 00 [14:23:06]wFMCommunicate OK [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 0D 03 02 [14:23:06]Write to MH i2c: E2 08 00 34 0E 80 0D 03 02 00 00 00 00 BD [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0B 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0B 00 34 0E 00 8C 54 56 BB FF F9 E7 FB 90 00 89 [14:23:07]RAPDU: 8C 54 56 BB FF F9 E7 FB 90 00 [14:23:07]wFMCommunicate OK [14:23:07]SAM_PROTO_SignData done [14:23:07]FM_MakeSignedData done [14:23:07]CreateOFDProtocolMessage [14:23:07]wFMCommunicate request_size=4 [14:23:07]MH_SAM_APDU [14:23:07]CAPDU: 80 11 00 00 [14:23:07]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 17 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [14: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 [14:23:07]wFMCommunicate OK [14:23:07]CreateOFDProtocolMessage done [14:23:07]OFDSenderStorePacket 70652 [14:23:07]StoreOFDPacket docnum=70652 [14:23: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 EC 69 07 01 2D B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 CA 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 41 49 A4 A8 58 8C 54 56 BB FF F9 E7 FB [14:23:07]CheckFolder [14:23:07]dirname=/storage/ofd_packets [14:23:07]CheckFolder done [14:23:07]ProducePacketName [14:23:07]name=ofd_packets/00070652 [14:23:07]NVStorageSaveData ofd_packets/00070652 [14:23:07]File name is /storage/ofd_packets/00070652 [14:23:07]Write 301 bytes [14:23:07]NVStorageSaveData done [14:23:07]OFDSenderStorePacket done [14:23:07]KKMCreateOFDPacket done [14:23:07]NVStorageSaveData kkm_last_timestamp [14:23:07]File name is /storage/kkm_last_timestamp [14:23:07]Write 4 bytes [14:23:07]NVStorageSaveData done [14:23:07]ExternCall_PrintAddStr [14:23:07]wPrintStart [14:23:07]Write to MH i2c: 01 00 00 36 0E 44 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 07 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 07 00 36 0E 00 00 00 00 00 FF 0F 59 [14:23:07]RasterBufferAndPrint [14:23:07]line Счет N : (1)2886429 [14:23:07]line ИНН: 02508201610067 [14:23:07]line Контрольно-Кассовый Чек [14:23:07]line ПРОДАЖА [14:23:07]line ТРК (МРК, ГНК) : 42 [14:23:07]line Товар: 2710124130 [14:23:07]line Аи-92-К-5 [14:23:07]line 7.480 * 66.90 [14:23:07]line = 500.41 [14:23:07]line НДС 12% НСП 1% [14:23:07]line > о реализуемом товаре [14:23:07]line ОКРУГЛЕНИЕ: -0.41 [14:23:07]line ИТОГО: 500.00 [14:23:07]line Внесено: 500.00 [14:23:07]line СДАЧА: 0.00 [14:23:07]line НСП 1% : 4.43 [14:23:07]line НДС 12% : 53.14 [14:23:07]line Наличными: 500.00 [14:23:07]line Безнал.: 0.00 [14:23:07]line Место: АЗС № 85 "Партнер Нефть" [14:23:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:23:07]line СНО: Общий режим [14:23:07]line Чек 168 23.10.2024 14:23 [14:23:07]line Смена: 196 ФФД: 1.0 [14:23:07]line ЗНМ: 0300000167 [14:23:07]line РНМ: 0000000000156251 [14:23:07]line Версия ККМ: v1.0 [14:23:07]line ФМ: 0000000000963346 [14:23:07]line ФД: 70652 [14:23:07]line ФПД: 182799338612824 [14:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142306&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70652&fm=182799338612824&tin=02508201610067®Number=0000000000156251&sum=50000 [14:23:07]OFD Sender: Processing packet 70652 [packets to send 18, broken 17] [14:23:07]ProducePacketName [14:23:07]name=ofd_packets/00070652 [14:23:07]OFD Sender: To server: pG, [14:23:07]CommunicateWithHost lk.salyk.kg:30040 [14:23:07]ConnectInit lk.salyk.kg [14:23:07]written 0, free lines is 4095 [14:23:07]Connected sock=10 [14:23: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 EC 69 07 01 2D B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 CA 06 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 A6 41 49 A4 A8 58 8C 54 56 BB FF F9 E7 FB [14:23: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 13 30 47 00 5F 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 13 01 00 F4 03 04 00 68 B0 18 67 B6 04 01 00 00 31 28 AD E2 DB AF 17 75 [14:23:07]CommunicateWithHost err = 0 [14:23:07]CheckOFDResponse [14:23:07]1017 (14) - 77093643461234 [14:23:07]1041 (16) - 0000000000963346 [14:23:07]1040 (4) - 70652 [14:23:07]1012 (4) - 23.10.2024 08:14 [14:23:07]1206 (1) - 0 [14:23:07]OFD Sender: Remove packet 70652 [14:23:07]ProducePacketName [14:23:07]name=ofd_packets/00070652 [14:23:07]NVStorageDeleteData [14:23:07]Write to MH i2c: 01 00 00 61 0E 6F [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 07 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 07 00 61 0E 00 00 00 00 00 F6 0C 78 [14:23:07]RasterBufferAndPrint [14:23:07]line [14:23:07]line [14:23:07]line [14:23:07]line [14:23:07]line [14:23:07]written 0, free lines is 3324 [14:23:07]MH_Cut [14:23:07]Write to MH i2c: D1 01 00 68 0E 01 48 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: D1 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: D1 01 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: D1 01 00 68 0E 00 47 [14:23:07]Write to MH i2c: 01 00 00 69 0E 77 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:08]OFD Sender: No OFD packet to send [14:23:08]*** Cut start [14:23:08]*** Partial cut [14:23:08]*** CUTSNS_PIN = 1 [14:23:08]*** CUTSNS_PIN = 0 [14:23:08]*** Brake cut motor [14:23:09]Read from MH i2c: 01 [14:23:09]MH_I2C_Read... [14:23:09]*** Stop cut motor [14:23:09]*** Cut end [14:23:09]Read from MH i2c: 01 07 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 07 00 69 0E 00 00 00 00 00 FF 0F 8C [14:23:09]process_action close_receipt done [14:23:09]requested_data is exist [14:23:09]produce_requested_data [14:23:09]requested_item fm.sn is exist - process it [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 11 00 00 [14:23:09]Write to MH i2c: E2 08 00 6A 0E 80 11 00 00 00 00 00 00 F2 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 17 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 17 00 6A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 44 [14:23: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:23:09]wFMCommunicate OK [14:23:09]requested_item fd.num is exist - process it [14:23:09]SAM_PROTO_GetFieldsCounters [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 13 00 00 [14:23:09]Write to MH i2c: E2 08 00 6B 0E 80 13 00 00 00 00 00 00 F5 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 62 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 62 00 6B 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 FC 13 01 00 0E 04 04 00 C4 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 DC [14:23: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 FC 13 01 00 0E 04 04 00 C4 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 [14:23:09]wFMCommunicate OK [14:23:09]SAM_PROTO_GetFieldsCounters done [14:23:09]requested_item shift.num is exist - process it [14:23:09]requested_item shift.opened is exist - process it [14:23:09]req_shift_opened [14:23:09]FM_GetShiftState [14:23:09]SAM_PROTO_GetShiftState [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 13 01 00 [14:23:09]Write to MH i2c: E2 08 00 6C 0E 80 13 01 00 00 00 00 00 F7 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0E 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0E 00 6C 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 84 [14:23:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:23:09]wFMCommunicate OK [14:23:09]SAM_PROTO_GetShiftState done [14:23:09]FM_GetShiftState done [14:23:09]req_shift_opened done [14:23:09]requested_item shift.open_date is exist - process it [14:23:09]req_shift_open_date [14:23:09]req_shift_open_date done [14:23:09]produce_requested_data done [14:23:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70652,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:23:09]process_action_free close_receipt [14:23:09]json_value_free [14:23:09]json_value_free done [14:23:09]process_json_proto returns [14:23:09]Send response to host [14:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70652,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:23:09]free response buf [14:23:09]execute_script done [14:23:09]execute_script returns [14:23:09]free content buf [14:23:09]Sock 7.Close socket [14:23:09]Sock 7.Thread stoped [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:07]accept exits with 9 [14:30:07]New connection [14:30:07]New thread 3066891620 created [14:30:07]Thread 3067034980 joined [14:30:07]Waiting for new connection... [14:30:07] Sock 9.Parse request [14:30:07]Sock 9.Check first char [14:30:07]Sock 9.First char is OK [14:30:07]request: POST /json_proto HTTP/1.0 [14:30:07]Method: POST [14:30:07]URL: /json_proto [14:30:07]Method is POST - this is cgi request [14:30:07]url: /json_proto [14:30:07]query_string will be loaded in cgi processing [14:30:07]execute_cgi json_proto POST (null) [14:30:07]execute_cgi path=json_proto method=POST [14:30:07]POST find Content-Length [14:30:07]Host: 172.17.50.3:8080 [14:30:07]Content-Length: 683 [14:30:07]Content-Type: application/json [14:30:07] [14:30:07]POST finish read [14:30:07]Found Content-Length = 683 [14:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886430", "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" ] } } [14:30:07]execute_script... [14:30: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)2886430", "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" ] } } [14:30:07]POST & json_proto [14:30:07]process_json_proto [14:30:07]json parsed OK: [14:30:07]protocol is kg_v1.0 [14:30:07]action value=close_receipt [14:30:07]process_action close_receipt [14:30:07]cmd_close_receipt [14:30:07]MH_GetDate [14:30:07]Write to MH i2c: F0 00 00 6D 0E 6A [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 09 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 09 00 6D 0E 00 70 08 19 67 6B 98 1E 66 F2 [14:30:07]GetLastDocTimeStamp 1729693386 [14:30:07]current date 1729693808 [14:30:07]FM_GetShiftState [14:30:07]SAM_PROTO_GetShiftState [14:30:07]wFMCommunicate request_size=4 [14:30:07]MH_SAM_APDU [14:30:07]CAPDU: 80 13 01 00 [14:30:07]Write to MH i2c: E2 08 00 6E 0E 80 13 01 00 00 00 00 00 F9 [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:07]Read from MH i2c: E2 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 6E 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 86 [14:30:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:30:07]wFMCommunicate OK [14:30:07]SAM_PROTO_GetShiftState done [14:30:07]FM_GetShiftState done [14:30:07]opened in 1729642435 [14:30:07]opened+sec_in_day 1729728835 [14:30:07]quantity*price = 100015 [14:30:07]sum+1 = 100017 [14:30: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 СНО: Общий режим Чек 169 23.10.2024 14:30 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70653 ФПД: 117457495826821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143008&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70653&fm=117457495826821&tin=02508201610067®Number=0000000000156251&sum=100000 [14:30:08]StoreToDocumentArchive [14:30:08]shift 196 fd 70653 [14:30:08]save to /storage/0196/doc_00070653 [14:30:08]save last doc name /storage/0196/doc_00070653 to /storage/kkm_last_doc_name [14:30:08]save OK [14:30:08]Clear old archive folders... [14:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:08]tlvbuf is 001505D0 [14:30:08]SAM_PROTO_ClearQueue [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 09 00 00 [14:30:08]Write to MH i2c: E2 08 00 7B 0E 80 09 00 00 00 00 00 00 FB [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_ClearQueue done [14:30:08]KKMCreateOFDPacket [14:30:08]OFDProtocolAddRootSTLVToBuf [14:30:08]FM_MakeSignedData [14:30:08]FM_MakeSignedData [14:30:08]SAM_PROTO_SignData [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 01 02 [14:30:08]Write to MH i2c: E2 08 00 7C 0E 80 0D 01 02 00 00 00 00 03 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=255 [14:30:08]MH_SAM_APDU [14:30: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 A9 00 00 00 F4 03 04 00 70 08 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A [14:30:08]Write to MH i2c: E2 02 01 7D 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 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 A9 00 00 00 F4 03 04 00 70 08 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A 00 00 66 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=10 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 02 02 05 D3 B4 50 A1 85 [14:30:08]Write to MH i2c: E2 0D 00 7E 0E 80 0D 02 02 05 00 D3 B4 50 A1 85 00 00 0D [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 03 02 [14:30:08]Write to MH i2c: E2 08 00 7F 0E 80 0D 03 02 00 00 00 00 08 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]OFD Sender: No OFD packet to send [14:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0B 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0B 00 7F 0E 00 95 D4 0B 51 40 DC CF EC 90 00 A5 [14:30:08]RAPDU: 95 D4 0B 51 40 DC CF EC 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_SignData done [14:30:08]FM_MakeSignedData done [14:30:08]CreateOFDProtocolMessage [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 11 00 00 [14:30:08]Write to MH i2c: E2 08 00 80 0E 80 11 00 00 00 00 00 00 08 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 80 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [14: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 [14:30:08]wFMCommunicate OK [14:30:08]CreateOFDProtocolMessage done [14:30:08]OFDSenderStorePacket 70653 [14:30:08]StoreOFDPacket docnum=70653 [14:30: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 F3 07 01 30 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 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 A9 00 00 00 F4 03 04 00 70 08 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A D3 B4 50 A1 85 95 D4 0B 51 40 DC CF EC [14:30:08]CheckFolder [14:30:08]dirname=/storage/ofd_packets [14:30:08]CheckFolder done [14:30:08]ProducePacketName [14:30:08]name=ofd_packets/00070653 [14:30:08]NVStorageSaveData ofd_packets/00070653 [14:30:08]File name is /storage/ofd_packets/00070653 [14:30:08]Write 301 bytes [14:30:08]NVStorageSaveData done [14:30:08]OFDSenderStorePacket done [14:30:08]KKMCreateOFDPacket done [14:30:08]NVStorageSaveData kkm_last_timestamp [14:30:08]File name is /storage/kkm_last_timestamp [14:30:08]Write 4 bytes [14:30:08]NVStorageSaveData done [14:30:08]ExternCall_PrintAddStr [14:30:08]wPrintStart [14:30:08]Write to MH i2c: 01 00 00 81 0E 8F [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 07 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 07 00 81 0E 00 00 00 00 00 FF 0F A4 [14:30:08]RasterBufferAndPrint [14:30:08]line Счет N : (1)2886430 [14:30:08]line ИНН: 02508201610067 [14:30:08]line Контрольно-Кассовый Чек [14:30:08]line ПРОДАЖА [14:30:08]line ТРК (МРК, ГНК) : 22 [14:30:08]line Товар: 2710124130 [14:30:08]line Аи-92-К-5 [14:30:08]line 14.950 * 66.90 [14:30:08]line = 1000.16 [14:30:08]line НДС 12% НСП 1% [14:30:08]line > о реализуемом товаре [14:30:08]line ОКРУГЛЕНИЕ: -0.16 [14:30:08]line ИТОГО: 1000.00 [14:30:08]line Внесено: 1000.00 [14:30:08]line СДАЧА: 0.00 [14:30:08]line НСП 1% : 8.85 [14:30:08]line НДС 12% : 106.21 [14:30:08]line Наличными: 1000.00 [14:30:08]line Безнал.: 0.00 [14:30:08]line Место: АЗС № 85 "Партнер Нефть" [14:30:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:30:08]OFD Sender: Processing packet 70653 [packets to send 18, broken 17] [14:30:08]ProducePacketName [14:30:08]name=ofd_packets/00070653 [14:30:08]OFD Sender: To server: pG, [14:30:08]CommunicateWithHost lk.salyk.kg:30040 [14:30:08]ConnectInit lk.salyk.kg [14:30:08]line СНО: Общий режим [14:30:08]line Чек 169 23.10.2024 14:30 [14:30:08]line Смена: 196 ФФД: 1.0 [14:30:08]line ЗНМ: 0300000167 [14:30:08]line РНМ: 0000000000156251 [14:30:08]line Версия ККМ: v1.0 [14:30:08]line ФМ: 0000000000963346 [14:30:08]line ФД: 70653 [14:30:08]line ФПД: 117457495826821 [14:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143008&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70653&fm=117457495826821&tin=02508201610067®Number=0000000000156251&sum=100000 [14:30:09]Connected sock=10 [14:30: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 F3 07 01 30 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 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 A9 00 00 00 F4 03 04 00 70 08 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 6A D3 B4 50 A1 85 95 D4 0B 51 40 DC CF EC [14:30:09]written 0, free lines is 4095 [14:30: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 B2 85 47 00 EC 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 FD 13 01 00 F4 03 04 00 0D B2 18 67 B6 04 01 00 00 24 29 11 0E 66 E2 68 1E [14:30:09]CommunicateWithHost err = 0 [14:30:09]CheckOFDResponse [14:30:09]1017 (14) - 77093643461234 [14:30:09]1041 (16) - 0000000000963346 [14:30:09]1040 (4) - 70653 [14:30:09]1012 (4) - 23.10.2024 08:21 [14:30:09]1206 (1) - 0 [14:30:09]OFD Sender: Remove packet 70653 [14:30:09]ProducePacketName [14:30:09]name=ofd_packets/00070653 [14:30:09]NVStorageDeleteData [14:30:09]Write to MH i2c: 01 00 00 AC 0E BA [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 07 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 EF 0C BC [14:30:09]RasterBufferAndPrint [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]written 0, free lines is 3317 [14:30:09]MH_Cut [14:30:09]Write to MH i2c: D1 01 00 B3 0E 01 93 [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 01 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 01 00 B3 0E 00 92 [14:30:09]Write to MH i2c: 01 00 00 B4 0E C2 [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]OFD Sender: No OFD packet to send [14:30:10]*** Cut start [14:30:10]*** Partial cut [14:30:10]*** CUTSNS_PIN = 1 [14:30:10]*** CUTSNS_PIN = 0 [14:30:10]*** Brake cut motor [14:30:10]Read from MH i2c: 01 [14:30:10]MH_I2C_Read... [14:30:10]*** Stop cut motor [14:30:10]*** Cut end [14:30:10]Read from MH i2c: 01 07 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: 01 07 00 B4 0E 00 00 00 00 00 FF 0F D7 [14:30:10]process_action close_receipt done [14:30:10]requested_data is exist [14:30:10]produce_requested_data [14:30:10]requested_item fm.sn is exist - process it [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 11 00 00 [14:30:10]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 B5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [14: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 [14:30:10]wFMCommunicate OK [14:30:10]requested_item fd.num is exist - process it [14:30:10]SAM_PROTO_GetFieldsCounters [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 13 00 00 [14:30:10]Write to MH i2c: E2 08 00 B6 0E 80 13 00 00 00 00 00 00 40 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:11]Read from MH i2c: E2 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 62 00 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 62 00 B6 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 FD 13 01 00 0E 04 04 00 C4 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 2B [14:30: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 FD 13 01 00 0E 04 04 00 C4 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 [14:30:11]wFMCommunicate OK [14:30:11]SAM_PROTO_GetFieldsCounters done [14:30:11]requested_item shift.num is exist - process it [14:30:11]requested_item shift.opened is exist - process it [14:30:11]req_shift_opened [14:30:11]FM_GetShiftState [14:30:11]SAM_PROTO_GetShiftState [14:30:11]wFMCommunicate request_size=4 [14:30:11]MH_SAM_APDU [14:30:11]CAPDU: 80 13 01 00 [14:30:11]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [14:30:11]Write i2c OK [14:30:11]MH_I2C_Read... [14:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:11]Read from MH i2c: E2 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 0E 00 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CF [14:30:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:30:11]wFMCommunicate OK [14:30:11]SAM_PROTO_GetShiftState done [14:30:11]FM_GetShiftState done [14:30:11]req_shift_opened done [14:30:11]requested_item shift.open_date is exist - process it [14:30:11]req_shift_open_date [14:30:11]req_shift_open_date done [14:30:11]produce_requested_data done [14:30:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70653,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:30:11]process_action_free close_receipt [14:30:11]json_value_free [14:30:11]json_value_free done [14:30:11]process_json_proto returns [14:30:11]Send response to host [14:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70653,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:30:11]free response buf [14:30:11]execute_script done [14:30:11]execute_script returns [14:30:11]free content buf [14:30:11]Sock 9.Close socket [14:30:11]Sock 9.Thread stoped [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:55]accept exits with 7 [14:33:55]New connection [14:33:55]New thread 3067034980 created [14:33:55]Thread 3066891620 joined [14:33:55]Waiting for new connection... [14:33:55] Sock 7.Parse request [14:33:55]Sock 7.Check first char [14:33:55]Sock 7.First char is OK [14:33:55]request: POST /json_proto HTTP/1.0 [14:33:55]Method: POST [14:33:55]URL: /json_proto [14:33:55]Method is POST - this is cgi request [14:33:55]url: /json_proto [14:33:55]query_string will be loaded in cgi processing [14:33:55]execute_cgi json_proto POST (null) [14:33:55]execute_cgi path=json_proto method=POST [14:33:55]POST find Content-Length [14:33:55]Host: 172.17.50.3:8080 [14:33:55]Content-Length: 678 [14:33:55]Content-Type: application/json [14:33:55] [14:33:55]POST finish read [14:33:55]Found Content-Length = 678 [14:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886431", "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" ] } } [14:33:55]execute_script... [14:33: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)2886431", "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" ] } } [14:33:55]POST & json_proto [14:33:55]process_json_proto [14:33:55]json parsed OK: [14:33:55]protocol is kg_v1.0 [14:33:55]action value=close_receipt [14:33:55]process_action close_receipt [14:33:55]cmd_close_receipt [14:33:55]MH_GetDate [14:33:55]Write to MH i2c: F0 00 00 B8 0E B5 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 09 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 09 00 B8 0E 00 55 09 19 67 6B 98 1E 66 23 [14:33:55]GetLastDocTimeStamp 1729693808 [14:33:55]current date 1729694037 [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D1 [14:33:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]opened in 1729642435 [14:33:55]opened+sec_in_day 1729728835 [14:33:55]quantity*price = 50041 [14:33:55]sum+1 = 50042 [14:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 170 23.10.2024 14:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70654 ФПД: 25487551480367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70654&fm=25487551480367&tin=02508201610067®Number=0000000000156251&sum=50000 [14:33:57]StoreToDocumentArchive [14:33:57]shift 196 fd 70654 [14:33:57]save to /storage/0196/doc_00070654 [14:33:57]save last doc name /storage/0196/doc_00070654 to /storage/kkm_last_doc_name [14:33:57]save OK [14:33:57]Clear old archive folders... [14:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:57]tlvbuf is 0012A3C0 [14:33:57]SAM_PROTO_ClearQueue [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 09 00 00 [14:33:57]Write to MH i2c: E2 08 00 C6 0E 80 09 00 00 00 00 00 00 46 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_ClearQueue done [14:33:57]KKMCreateOFDPacket [14:33:57]OFDProtocolAddRootSTLVToBuf [14:33:57]FM_MakeSignedData [14:33:57]FM_MakeSignedData [14:33:57]SAM_PROTO_SignData [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 01 02 [14:33:57]Write to MH i2c: E2 08 00 C7 0E 80 0D 01 02 00 00 00 00 4E [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=255 [14:33:57]MH_SAM_APDU [14:33: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 AA 00 00 00 F4 03 04 00 55 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 [14:33:57]Write to MH i2c: E2 02 01 C8 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 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 AA 00 00 00 F4 03 04 00 55 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 00 00 4C [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=10 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 02 02 05 2E 48 73 C2 2F [14:33:57]Write to MH i2c: E2 0D 00 C9 0E 80 0D 02 02 05 00 2E 48 73 C2 2F 00 00 35 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 03 02 [14:33:57]Write to MH i2c: E2 08 00 CA 0E 80 0D 03 02 00 00 00 00 53 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0B 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0B 00 CA 0E 00 11 F8 A2 47 5E AC E0 9E 90 00 CE [14:33:57]RAPDU: 11 F8 A2 47 5E AC E0 9E 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_SignData done [14:33:57]FM_MakeSignedData done [14:33:57]CreateOFDProtocolMessage [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 11 00 00 [14:33:57]Write to MH i2c: E2 08 00 CB 0E 80 11 00 00 00 00 00 00 53 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 17 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 17 00 CB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [14:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:33:57]wFMCommunicate OK [14:33:57]CreateOFDProtocolMessage done [14:33:57]OFDSenderStorePacket 70654 [14:33:57]StoreOFDPacket docnum=70654 [14:33: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 7F 5F 07 01 25 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 55 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 2E 48 73 C2 2F 11 F8 A2 47 5E AC E0 9E [14:33:57]CheckFolder [14:33:57]dirname=/storage/ofd_packets [14:33:57]CheckFolder done [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00070654 [14:33:57]NVStorageSaveData ofd_packets/00070654 [14:33:57]File name is /storage/ofd_packets/00070654 [14:33:57]Write 301 bytes [14:33:57]NVStorageSaveData done [14:33:57]OFDSenderStorePacket done [14:33:57]KKMCreateOFDPacket done [14:33:57]NVStorageSaveData kkm_last_timestamp [14:33:57]File name is /storage/kkm_last_timestamp [14:33:57]Write 4 bytes [14:33:57]NVStorageSaveData done [14:33:57]ExternCall_PrintAddStr [14:33:57]wPrintStart [14:33:57]Write to MH i2c: 01 00 00 CC 0E DA [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 FF 0F EF [14:33:57]RasterBufferAndPrint [14:33:57]line Счет N : (1)2886431 [14:33:57]line ИНН: 02508201610067 [14:33:57]line Контрольно-Кассовый Чек [14:33:57]line ПРОДАЖА [14:33:57]line ТРК (МРК, ГНК) : 22 [14:33:57]line Товар: 2710124130 [14:33:57]line Аи-92-К-5 [14:33:57]line 7.480 * 66.90 [14:33:57]line = 500.41 [14:33:57]line НДС 12% НСП 1% [14:33:57]line > о реализуемом товаре [14:33:57]line ОКРУГЛЕНИЕ: -0.41 [14:33:57]line ИТОГО: 500.00 [14:33:57]line Внесено: 500.00 [14:33:57]line СДАЧА: 0.00 [14:33:57]line НСП 1% : 4.43 [14:33:57]line НДС 12% : 53.14 [14:33:57]line Наличными: 500.00 [14:33:57]line Безнал.: 0.00 [14:33:57]line Место: АЗС № 85 "Партнер Нефть" [14:33:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:33:57]line СНО: Общий режим [14:33:57]line Чек 170 23.10.2024 14:33 [14:33:57]line Смена: 196 ФФД: 1.0 [14:33:57]line ЗНМ: 0300000167 [14:33:57]line РНМ: 0000000000156251 [14:33:57]line Версия ККМ: v1.0 [14:33:57]line ФМ: 0000000000963346 [14:33:57]line ФД: 70654 [14:33:57]line ФПД: 25487551480367 [14:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70654&fm=25487551480367&tin=02508201610067®Number=0000000000156251&sum=50000 [14:33:57]OFD Sender: Processing packet 70654 [packets to send 18, broken 17] [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00070654 [14:33:57]OFD Sender: To server: pG, [14:33:57]CommunicateWithHost lk.salyk.kg:30040 [14:33:57]ConnectInit lk.salyk.kg [14:33:57]written 0, free lines is 4095 [14:33:58]Connected sock=10 [14:33: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 7F 5F 07 01 25 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 55 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 17 2E 48 73 C2 2F 11 F8 A2 47 5E AC E0 9E [14:33: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 C8 48 47 00 C1 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 FE 13 01 00 F4 03 04 00 F2 B2 18 67 B6 04 01 00 00 46 AC 7C 3F 05 7E 47 36 [14:33:58]CommunicateWithHost err = 0 [14:33:58]CheckOFDResponse [14:33:58]1017 (14) - 77093643461234 [14:33:58]1041 (16) - 0000000000963346 [14:33:58]1040 (4) - 70654 [14:33:58]1012 (4) - 23.10.2024 08:25 [14:33:58]1206 (1) - 0 [14:33:58]OFD Sender: Remove packet 70654 [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00070654 [14:33:58]NVStorageDeleteData [14:33:58]Write to MH i2c: 01 00 00 F7 0E 05 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 01 0D 1A [14:33:58]RasterBufferAndPrint [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]written 0, free lines is 3335 [14:33:58]MH_Cut [14:33:58]Write to MH i2c: D1 01 00 FE 0E 01 DE [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 01 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 01 00 FE 0E 00 DD [14:33:58]Write to MH i2c: 01 00 00 FF 0E 0D [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]OFD Sender: No OFD packet to send [14:33:59]*** Cut start [14:33:59]*** Partial cut [14:33:59]*** CUTSNS_PIN = 1 [14:33:59]*** CUTSNS_PIN = 0 [14:33:59]*** Brake cut motor [14:33:59]Read from MH i2c: 01 [14:33:59]MH_I2C_Read... [14:33:59]*** Stop cut motor [14:33:59]*** Cut end [14:33:59]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 FF 0E 00 00 00 00 00 FF 0F 22 [14:33:59]process_action close_receipt done [14:33:59]requested_data is exist [14:33:59]produce_requested_data [14:33:59]requested_item fm.sn is exist - process it [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 11 00 00 [14:33:59]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 17 00 [14:33:59]MH_I2C_Read... [14:33:59]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 [14: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 [14:33:59]wFMCommunicate OK [14:33:59]requested_item fd.num is exist - process it [14:33:59]SAM_PROTO_GetFieldsCounters [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 00 00 [14:33:59]Write to MH i2c: E2 08 00 01 0F 80 13 00 00 00 00 00 00 8C [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 01 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 FE 13 01 00 0E 04 04 00 C4 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 7B [14:33: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 FE 13 01 00 0E 04 04 00 C4 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 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetFieldsCounters done [14:33:59]requested_item shift.num is exist - process it [14:33:59]requested_item shift.opened is exist - process it [14:33:59]req_shift_opened [14:33:59]FM_GetShiftState [14:33:59]SAM_PROTO_GetShiftState [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 01 00 [14:33:59]Write to MH i2c: E2 08 00 02 0F 80 13 01 00 00 00 00 00 8E [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:00]Read from MH i2c: E2 0E 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 0E 00 02 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1B [14:34:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:34:00]wFMCommunicate OK [14:34:00]SAM_PROTO_GetShiftState done [14:34:00]FM_GetShiftState done [14:34:00]req_shift_opened done [14:34:00]requested_item shift.open_date is exist - process it [14:34:00]req_shift_open_date [14:34:00]req_shift_open_date done [14:34:00]produce_requested_data done [14:34:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70654,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:34:00]process_action_free close_receipt [14:34:00]json_value_free [14:34:00]json_value_free done [14:34:00]process_json_proto returns [14:34:00]Send response to host [14:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70654,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:34:00]free response buf [14:34:00]execute_script done [14:34:00]execute_script returns [14:34:00]free content buf [14:34:00]Sock 7.Close socket [14:34:00]Sock 7.Thread stoped [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:37]accept exits with 9 [14:36:37]New connection [14:36:37]New thread 3066891620 created [14:36:37]Thread 3067034980 joined [14:36:37]Waiting for new connection... [14:36:37] Sock 9.Parse request [14:36:37]Sock 9.Check first char [14:36:37]Sock 9.First char is OK [14:36:37]request: POST /json_proto HTTP/1.0 [14:36:37]Method: POST [14:36:37]URL: /json_proto [14:36:37]Method is POST - this is cgi request [14:36:37]url: /json_proto [14:36:37]query_string will be loaded in cgi processing [14:36:37]execute_cgi json_proto POST (null) [14:36:37]execute_cgi path=json_proto method=POST [14:36:37]POST find Content-Length [14:36:37]Host: 172.17.50.3:8080 [14:36:37]Content-Length: 683 [14:36:37]Content-Type: application/json [14:36:37] [14:36:37]POST finish read [14:36:37]Found Content-Length = 683 [14:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886432", "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" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:37]execute_script... [14:36: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)2886432", "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" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:37]POST & json_proto [14:36:37]process_json_proto [14:36:37]json parsed OK: [14:36:37]protocol is kg_v1.0 [14:36:37]action value=close_receipt [14:36:37]process_action close_receipt [14:36:37]cmd_close_receipt [14:36:37]MH_GetDate [14:36:37]Write to MH i2c: F0 00 00 03 0F 01 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 09 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 09 00 03 0F 00 F6 09 19 67 6B 98 1E 66 10 [14:36:37]GetLastDocTimeStamp 1729694037 [14:36:37]current date 1729694198 [14:36:37]FM_GetShiftState [14:36:37]SAM_PROTO_GetShiftState [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 13 01 00 [14:36:37]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [14:36:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_GetShiftState done [14:36:37]FM_GetShiftState done [14:36:37]opened in 1729642435 [14:36:37]opened+sec_in_day 1729728835 [14:36:37]quantity*price = 120018 [14:36:37]sum+1 = 120020 [14:36:37]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 СНО: Общий режим Чек 171 23.10.2024 14:36 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70655 ФПД: 191763216151298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70655&fm=191763216151298&tin=02508201610067®Number=0000000000156251&sum=120000 [14:36:38]StoreToDocumentArchive [14:36:38]shift 196 fd 70655 [14:36:38]save to /storage/0196/doc_00070655 [14:36:38]save last doc name /storage/0196/doc_00070655 to /storage/kkm_last_doc_name [14:36:38]save OK [14:36:38]Clear old archive folders... [14:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:38]tlvbuf is B6ED5760 [14:36:38]SAM_PROTO_ClearQueue [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 09 00 00 [14:36:38]Write to MH i2c: E2 08 00 11 0F 80 09 00 00 00 00 00 00 92 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_ClearQueue done [14:36:38]KKMCreateOFDPacket [14:36:38]OFDProtocolAddRootSTLVToBuf [14:36:38]FM_MakeSignedData [14:36:38]FM_MakeSignedData [14:36:38]SAM_PROTO_SignData [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 01 02 [14:36:38]Write to MH i2c: E2 08 00 12 0F 80 0D 01 02 00 00 00 00 9A [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=255 [14:36:38]MH_SAM_APDU [14: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 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 AB 00 00 00 F4 03 04 00 F6 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AE [14:36:38]Write to MH i2c: E2 02 01 13 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 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 AB 00 00 00 F4 03 04 00 F6 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AE 00 00 D9 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=10 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 05 68 5A 61 33 02 [14:36:38]Write to MH i2c: E2 0D 00 14 0F 80 0D 02 02 05 00 68 5A 61 33 02 00 00 FF [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]OFD Sender: No OFD packet to send [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 03 02 [14:36:38]Write to MH i2c: E2 08 00 15 0F 80 0D 03 02 00 00 00 00 9F [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0B 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0B 00 15 0F 00 17 8C 1C FE 8B 24 A6 E3 90 00 95 [14:36:39]RAPDU: 17 8C 1C FE 8B 24 A6 E3 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_SignData done [14:36:39]FM_MakeSignedData done [14:36:39]CreateOFDProtocolMessage [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 11 00 00 [14:36:39]Write to MH i2c: E2 08 00 16 0F 80 11 00 00 00 00 00 00 9F [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 16 0F 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:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:36:39]wFMCommunicate OK [14:36:39]CreateOFDProtocolMessage done [14:36:39]OFDSenderStorePacket 70655 [14:36:39]StoreOFDPacket docnum=70655 [14:36: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 9C B6 07 01 17 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 F6 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AE 68 5A 61 33 02 17 8C 1C FE 8B 24 A6 E3 [14:36:39]CheckFolder [14:36:39]dirname=/storage/ofd_packets [14:36:39]CheckFolder done [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00070655 [14:36:39]NVStorageSaveData ofd_packets/00070655 [14:36:39]File name is /storage/ofd_packets/00070655 [14:36:39]Write 301 bytes [14:36:39]NVStorageSaveData done [14:36:39]OFDSenderStorePacket done [14:36:39]KKMCreateOFDPacket done [14:36:39]NVStorageSaveData kkm_last_timestamp [14:36:39]File name is /storage/kkm_last_timestamp [14:36:39]Write 4 bytes [14:36:39]NVStorageSaveData done [14:36:39]ExternCall_PrintAddStr [14:36:39]wPrintStart [14:36:39]Write to MH i2c: 01 00 00 17 0F 26 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 17 0F 00 00 00 00 00 FF 0F 3B [14:36:39]RasterBufferAndPrint [14:36:39]line Счет N : (1)2886432 [14:36:39]line ИНН: 02508201610067 [14:36:39]line Контрольно-Кассовый Чек [14:36:39]line ПРОДАЖА [14:36:39]line ТРК (МРК, ГНК) : 12 [14:36:39]line Товар: 2710124130 [14:36:39]line Аи-92-К-5 [14:36:39]line 17.940 * 66.90 [14:36:39]line = 1200.19 [14:36:39]line НДС 12% НСП 1% [14:36:39]line > о реализуемом товаре [14:36:39]line ОКРУГЛЕНИЕ: -0.19 [14:36:39]line ИТОГО: 1200.00 [14:36:39]line Внесено: 1200.00 [14:36:39]line СДАЧА: 0.00 [14:36:39]line НСП 1% : 10.62 [14:36:39]line НДС 12% : 127.45 [14:36:39]line Наличными: 1200.00 [14:36:39]line Безнал.: 0.00 [14:36:39]line Место: АЗС № 85 "Партнер Нефть" [14:36:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:36:39]line СНО: Общий режим [14:36:39]line Чек 171 23.10.2024 14:36 [14:36:39]line Смена: 196 ФФД: 1.0 [14:36:39]line ЗНМ: 0300000167 [14:36:39]line РНМ: 0000000000156251 [14:36:39]line Версия ККМ: v1.0 [14:36:39]line ФМ: 0000000000963346 [14:36:39]line ФД: 70655 [14:36:39]line ФПД: 191763216151298 [14:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70655&fm=191763216151298&tin=02508201610067®Number=0000000000156251&sum=120000 [14:36:39]OFD Sender: Processing packet 70655 [packets to send 18, broken 17] [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00070655 [14:36:39]OFD Sender: To server: pG, [14:36:39]CommunicateWithHost lk.salyk.kg:30040 [14:36:39]ConnectInit lk.salyk.kg [14:36:39]written 0, free lines is 4095 [14:36:39]Connected sock=10 [14:36: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 9C B6 07 01 17 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 F6 09 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 13 01 00 35 04 06 00 AE 68 5A 61 33 02 17 8C 1C FE 8B 24 A6 E3 [14: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 80 28 47 00 55 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 FF 13 01 00 F4 03 04 00 94 B3 18 67 B6 04 01 00 00 B3 04 41 24 FB E7 73 0E [14:36:39]CommunicateWithHost err = 0 [14:36:39]CheckOFDResponse [14:36:39]1017 (14) - 77093643461234 [14:36:39]1041 (16) - 0000000000963346 [14:36:39]1040 (4) - 70655 [14:36:39]1012 (4) - 23.10.2024 08:28 [14:36:39]1206 (1) - 0 [14:36:39]OFD Sender: Remove packet 70655 [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00070655 [14:36:39]NVStorageDeleteData [14:36:39]Write to MH i2c: 01 00 00 42 0F 51 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 EF 0C 53 [14:36:39]RasterBufferAndPrint [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]written 0, free lines is 3317 [14:36:39]MH_Cut [14:36:39]Write to MH i2c: D1 01 00 49 0F 01 2A [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 49 0F 00 29 [14:36:39]Write to MH i2c: 01 00 00 4A 0F 59 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:40]OFD Sender: No OFD packet to send [14:36:40]*** Cut start [14:36:40]*** Partial cut [14:36:40]*** CUTSNS_PIN = 1 [14:36:40]*** CUTSNS_PIN = 0 [14:36:40]*** Brake cut motor [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]*** Stop cut motor [14:36:41]*** Cut end [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 4A 0F 00 00 00 00 00 FF 0F 6E [14:36:41]process_action close_receipt done [14:36:41]requested_data is exist [14:36:41]produce_requested_data [14:36:41]requested_item fm.sn is exist - process it [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 11 00 00 [14:36:41]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 [14:36:41]MH_I2C_Read... [14:36:41]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 [14:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:36:41]wFMCommunicate OK [14:36:41]requested_item fd.num is exist - process it [14:36:41]SAM_PROTO_GetFieldsCounters [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 00 00 [14:36:41]Write to MH i2c: E2 08 00 4C 0F 80 13 00 00 00 00 00 00 D7 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 4C 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 FF 13 01 00 0E 04 04 00 C4 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 CA [14:36: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 FF 13 01 00 0E 04 04 00 C4 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 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetFieldsCounters done [14:36:41]requested_item shift.num is exist - process it [14:36:41]requested_item shift.opened is exist - process it [14:36:41]req_shift_opened [14:36:41]FM_GetShiftState [14:36:41]SAM_PROTO_GetShiftState [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 01 00 [14:36:41]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 66 [14:36:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetShiftState done [14:36:41]FM_GetShiftState done [14:36:41]req_shift_opened done [14:36:41]requested_item shift.open_date is exist - process it [14:36:41]req_shift_open_date [14:36:41]req_shift_open_date done [14:36:41]produce_requested_data done [14:36:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70655,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:36:41]process_action_free close_receipt [14:36:41]json_value_free [14:36:41]json_value_free done [14:36:41]process_json_proto returns [14:36:41]Send response to host [14:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70655,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:36:41]free response buf [14:36:41]execute_script done [14:36:41]execute_script returns [14:36:41]free content buf [14:36:41]Sock 9.Close socket [14:36:41]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:17]accept exits with 7 [14:41:17]New connection [14:41:17]New thread 3067034980 created [14:41:17]Thread 3066891620 joined [14:41:17]Waiting for new connection... [14:41:17] Sock 7.Parse request [14:41:17]Sock 7.Check first char [14:41:17]Sock 7.First char is OK [14:41:17]request: POST /json_proto HTTP/1.0 [14:41:17]Method: POST [14:41:17]URL: /json_proto [14:41:17]Method is POST - this is cgi request [14:41:17]url: /json_proto [14:41:17]query_string will be loaded in cgi processing [14:41:17]execute_cgi json_proto POST (null) [14:41:17]execute_cgi path=json_proto method=POST [14:41:17]POST find Content-Length [14:41:17]Host: 172.17.50.3:8080 [14:41:17]Content-Length: 730 [14:41:17]Content-Type: application/json [14:41:17] [14:41:17]POST finish read [14:41:17]Found Content-Length = 730 [14:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)135006", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:17]execute_script... [14:41:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)135006", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:17]POST & json_proto [14:41:17]process_json_proto [14:41:17]json parsed OK: [14:41:17]protocol is kg_v1.0 [14:41:17]action value=close_receipt [14:41:17]process_action close_receipt [14:41:17]cmd_close_receipt [14:41:17]MH_GetDate [14:41:17]Write to MH i2c: F0 00 00 4E 0F 4C [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: F0 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: F0 09 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: F0 09 00 4E 0F 00 0F 0B 19 67 6B 98 1E 66 76 [14:41:17]GetLastDocTimeStamp 1729694198 [14:41:17]current date 1729694479 [14:41:17]FM_GetShiftState [14:41:17]SAM_PROTO_GetShiftState [14:41:17]wFMCommunicate request_size=4 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 13 01 00 [14:41:17]Write to MH i2c: E2 08 00 4F 0F 80 13 01 00 00 00 00 00 DB [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 0E 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 0E 00 4F 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 68 [14:41:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:41:17]wFMCommunicate OK [14:41:17]SAM_PROTO_GetShiftState done [14:41:17]FM_GetShiftState done [14:41:17]opened in 1729642435 [14:41:17]opened+sec_in_day 1729728835 [14:41:17]quantity*price = 9500 [14:41:17]sum+1 = 9501 [14:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 172 23.10.2024 14:41 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70656 ФПД: 195137517041456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70656&fm=195137517041456&tin=02508201610067®Number=0000000000156251&sum=9500 0 [14:41:18]StoreToDocumentArchive [14:41:18]shift 196 fd 70656 [14:41:18]save to /storage/0196/doc_00070656 [14:41:18]save last doc name /storage/0196/doc_00070656 to /storage/kkm_last_doc_name [14:41:18]save OK [14:41:18]Clear old archive folders... [14:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=309 [14:41:18]tlvbuf is B6ED5A20 [14:41:18]SAM_PROTO_ClearQueue [14:41:18]wFMCommunicate request_size=4 [14:41:18]MH_SAM_APDU [14:41:18]CAPDU: 80 09 00 00 [14:41:18]Write to MH i2c: E2 08 00 5C 0F 80 09 00 00 00 00 00 00 DD [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:18]Read from MH i2c: E2 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 03 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [14:41:18]RAPDU: 90 00 [14:41:18]wFMCommunicate OK [14:41:18]SAM_PROTO_ClearQueue done [14:41:18]KKMCreateOFDPacket [14:41:18]OFDProtocolAddRootSTLVToBuf [14:41:18]FM_MakeSignedData [14:41:18]FM_MakeSignedData [14:41:18]SAM_PROTO_SignData [14:41:18]wFMCommunicate request_size=4 [14:41:18]MH_SAM_APDU [14:41:18]CAPDU: 80 0D 01 02 [14:41:18]Write to MH i2c: E2 08 00 5D 0F 80 0D 01 02 00 00 00 00 E5 [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:18]Read from MH i2c: E2 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 03 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [14:41:18]RAPDU: 90 00 [14:41:18]wFMCommunicate OK [14:41:18]wFMCommunicate request_size=255 [14:41:18]MH_SAM_APDU [14:41:18]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0F 0B 19 67 0E 04 04 00 C4 00 00 00 [14:41:18]Write to MH i2c: E2 02 01 5E 0F 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0F 0B 19 67 0E 04 04 00 C4 00 00 00 00 00 9C [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]wFMCommunicate request_size=68 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B1 79 FE 62 B7 30 [14:41:19]Write to MH i2c: E2 47 00 5F 0F 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B1 79 FE 62 B7 30 00 00 7B [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]wFMCommunicate request_size=4 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 03 02 [14:41:19]Write to MH i2c: E2 08 00 60 0F 80 0D 03 02 00 00 00 00 EA [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 0B 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 0B 00 60 0F 00 6B D5 F7 3E 5A 34 8E C3 90 00 3F [14:41:19]RAPDU: 6B D5 F7 3E 5A 34 8E C3 90 00 [14:41:19]wFMCommunicate OK [14:41:19]SAM_PROTO_SignData done [14:41:19]FM_MakeSignedData done [14:41:19]CreateOFDProtocolMessage [14:41:19]wFMCommunicate request_size=4 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 11 00 00 [14:41:19]Write to MH i2c: E2 08 00 61 0F 80 11 00 00 00 00 00 00 EA [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 17 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 17 00 61 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [14:41: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:41:19]wFMCommunicate OK [14:41:19]CreateOFDProtocolMessage done [14:41:19]OFDSenderStorePacket 70656 [14:41:19]StoreOFDPacket docnum=70656 [14:41: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 49 01 00 00 F6 B7 41 01 E0 AF 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0F 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B1 79 FE 62 B7 30 6B D5 F7 3E 5A 34 8E C3 [14:41:19]CheckFolder [14:41:19]dirname=/storage/ofd_packets [14:41:19]CheckFolder done [14:41:19]ProducePacketName [14:41:19]name=ofd_packets/00070656 [14:41:19]NVStorageSaveData ofd_packets/00070656 [14:41:19]File name is /storage/ofd_packets/00070656 [14:41:19]Write 359 bytes [14:41:19]NVStorageSaveData done [14:41:19]OFDSenderStorePacket done [14:41:19]KKMCreateOFDPacket done [14:41:19]NVStorageSaveData kkm_last_timestamp [14:41:19]File name is /storage/kkm_last_timestamp [14:41:19]Write 4 bytes [14:41:19]NVStorageSaveData done [14:41:19]ExternCall_PrintAddStr [14:41:19]wPrintStart [14:41:19]Write to MH i2c: 01 00 00 62 0F 71 [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 07 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 07 00 62 0F 00 00 00 00 00 FF 0F 86 [14:41:19]RasterBufferAndPrint [14:41:19]line Счет N : (3)135006 [14:41:19]line ИНН: 02508201610067 [14:41:19]line Контрольно-Кассовый Чек [14:41:19]line ПРОДАЖА [14:41:19]line Товар: 4870235681383 [14:41:19]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [14:41:19]line 1.000 * 95.00 [14:41:19]line = 95.00 [14:41:19]line НДС 12% НСП 1% [14:41:19]line > о реализуемом товаре [14:41:19]line ИТОГО: 95.00 [14:41:19]line НСП 1% : 0.84 [14:41:19]line НДС 12% : 10.09 [14:41:19]line Наличными: 95.00 [14:41:19]line Безнал.: 0.00 [14:41:19]line Место: АЗС № 85 "Партнер Нефть" [14:41:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:41:19]line СНО: Общий режим [14:41:19]line Чек 172 23.10.2024 14:41 [14:41:19]line Смена: 196 ФФД: 1.0 [14:41:19]line ЗНМ: 0300000167 [14:41:19]line РНМ: 0000000000156251 [14:41:19]line Версия ККМ: v1.0 [14:41:19]line ФМ: 0000000000963346 [14:41:19]line ФД: 70656 [14:41:19]line ФПД: 195137517041456 [14:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70656&fm=195137517041456&tin=02508201610067®Number=0000000000156251&sum=9500 [14:41:19]line 0 [14:41:19]written 0, free lines is 4095 [14:41:19]OFD Sender: Processing packet 70656 [packets to send 18, broken 17] [14:41:19]ProducePacketName [14:41:19]name=ofd_packets/00070656 [14:41:19]OFD Sender: To server: pG, [14:41:19]CommunicateWithHost lk.salyk.kg:30040 [14:41:19]ConnectInit lk.salyk.kg [14:41:19]Connected sock=10 [14:41: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 49 01 00 00 F6 B7 41 01 E0 AF 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 0F 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B1 79 FE 62 B7 30 6B D5 F7 3E 5A 34 8E C3 [14:41: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 68 42 47 00 91 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 00 14 01 00 F4 03 04 00 AC B4 18 67 B6 04 01 00 00 B9 F9 A3 D6 4C D2 FE 57 [14:41:19]CommunicateWithHost err = 0 [14:41:19]CheckOFDResponse [14:41:19]1017 (14) - 77093643461234 [14:41:19]1041 (16) - 0000000000963346 [14:41:19]1040 (4) - 70656 [14:41:19]1012 (4) - 23.10.2024 08:32 [14:41:19]1206 (1) - 0 [14:41:19]OFD Sender: Remove packet 70656 [14:41:19]ProducePacketName [14:41:19]name=ofd_packets/00070656 [14:41:19]NVStorageDeleteData [14:41:19]Write to MH i2c: 01 00 00 8B 0F 9A [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 07 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FA 0C A7 [14:41:19]RasterBufferAndPrint [14:41:19]line [14:41:19]line [14:41:19]line [14:41:19]line [14:41:19]line [14:41:19]written 0, free lines is 3329 [14:41:19]MH_Cut [14:41:19]Write to MH i2c: D1 01 00 92 0F 01 73 [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: D1 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: D1 01 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: D1 01 00 92 0F 00 72 [14:41:19]Write to MH i2c: 01 00 00 93 0F A2 [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:20]OFD Sender: No OFD packet to send [14:41:20]*** Cut start [14:41:20]*** Partial cut [14:41:20]*** CUTSNS_PIN = 1 [14:41:20]*** CUTSNS_PIN = 0 [14:41:20]*** Brake cut motor [14:41:21]Read from MH i2c: 01 [14:41:21]MH_I2C_Read... [14:41:21]*** Stop cut motor [14:41:21]*** Cut end [14:41:21]Read from MH i2c: 01 07 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [14:41:21]process_action close_receipt done [14:41:21]requested_data is exist [14:41:21]produce_requested_data [14:41:21]requested_item fm.sn is exist - process it [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 11 00 00 [14:41:21]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 17 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [14:41: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:41:21]wFMCommunicate OK [14:41:21]requested_item fd.num is exist - process it [14:41:21]SAM_PROTO_GetFieldsCounters [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 13 00 00 [14:41:21]Write to MH i2c: E2 08 00 95 0F 80 13 00 00 00 00 00 00 20 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 62 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 62 00 95 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 00 14 01 00 0E 04 04 00 C4 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 18 [14:41: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 00 14 01 00 0E 04 04 00 C4 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 [14:41:21]wFMCommunicate OK [14:41:21]SAM_PROTO_GetFieldsCounters done [14:41:21]requested_item shift.num is exist - process it [14:41:21]requested_item shift.opened is exist - process it [14:41:21]req_shift_opened [14:41:21]FM_GetShiftState [14:41:21]SAM_PROTO_GetShiftState [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 13 01 00 [14:41:21]Write to MH i2c: E2 08 00 96 0F 80 13 01 00 00 00 00 00 22 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 0E 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 0E 00 96 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AF [14:41:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:41:21]wFMCommunicate OK [14:41:21]SAM_PROTO_GetShiftState done [14:41:21]FM_GetShiftState done [14:41:21]req_shift_opened done [14:41:21]requested_item shift.open_date is exist - process it [14:41:21]req_shift_open_date [14:41:21]req_shift_open_date done [14:41:21]produce_requested_data done [14:41:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70656,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:41:21]process_action_free close_receipt [14:41:21]json_value_free [14:41:21]json_value_free done [14:41:21]process_json_proto returns [14:41:21]Send response to host [14:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70656,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:41:21]free response buf [14:41:21]execute_script done [14:41:21]execute_script returns [14:41:21]free content buf [14:41:21]Sock 7.Close socket [14:41:21]Sock 7.Thread stoped [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:41:57]accept exits with 9 [14:41:57]New connection [14:41:57]New thread 3066891620 created [14:41:57]Thread 3067034980 joined [14:41:57]Waiting for new connection... [14:41:57] Sock 9.Parse request [14:41:57]Sock 9.Check first char [14:41:57]Sock 9.First char is OK [14:41:57]request: POST /json_proto HTTP/1.0 [14:41:57]Method: POST [14:41:57]URL: /json_proto [14:41:57]Method is POST - this is cgi request [14:41:57]url: /json_proto [14:41:57]query_string will be loaded in cgi processing [14:41:57]execute_cgi json_proto POST (null) [14:41:57]execute_cgi path=json_proto method=POST [14:41:57]POST find Content-Length [14:41:57]Host: 172.17.50.3:8080 [14:41:57]Content-Length: 678 [14:41:57]Content-Type: application/json [14:41:57] [14:41:57]POST finish read [14:41:57]Found Content-Length = 678 [14:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886433", "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" ] } } [14:41:57]execute_script... [14:41: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)2886433", "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" ] } } [14:41:57]POST & json_proto [14:41:57]process_json_proto [14:41:57]json parsed OK: [14:41:57]protocol is kg_v1.0 [14:41:57]action value=close_receipt [14:41:57]process_action close_receipt [14:41:57]cmd_close_receipt [14:41:57]MH_GetDate [14:41:57]Write to MH i2c: F0 00 00 97 0F 95 [14:41:57]Write i2c OK [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 09 00 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: F0 09 00 97 0F 00 36 0B 19 67 6B 98 1E 66 E6 [14:41:57]GetLastDocTimeStamp 1729694479 [14:41:57]current date 1729694518 [14:41:57]FM_GetShiftState [14:41:57]SAM_PROTO_GetShiftState [14:41:57]wFMCommunicate request_size=4 [14:41:57]MH_SAM_APDU [14:41:57]CAPDU: 80 13 01 00 [14:41:57]Write to MH i2c: E2 08 00 98 0F 80 13 01 00 00 00 00 00 24 [14:41:57]Write i2c OK [14:41:57]MH_I2C_Read... [14:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:57]Read from MH i2c: E2 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: E2 0E 00 [14:41:57]MH_I2C_Read... [14:41:57]Read from MH i2c: E2 0E 00 98 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B1 [14:41:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:41:57]wFMCommunicate OK [14:41:57]SAM_PROTO_GetShiftState done [14:41:57]FM_GetShiftState done [14:41:57]opened in 1729642435 [14:41:57]opened+sec_in_day 1729728835 [14:41:57]quantity*price = 50041 [14:41:57]sum+1 = 50042 [14:41:57]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 СНО: Общий режим Чек 173 23.10.2024 14:41 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70657 ФПД: 227450141796622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70657&fm=227450141796622&tin=02508201610067®Number=0000000000156251&sum=50000 [14:41:58]StoreToDocumentArchive [14:41:58]shift 196 fd 70657 [14:41:58]save to /storage/0196/doc_00070657 [14:41:58]save last doc name /storage/0196/doc_00070657 to /storage/kkm_last_doc_name [14:41:58]save OK [14:41:58]Clear old archive folders... [14:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:58]tlvbuf is 00162DD0 [14:41:58]SAM_PROTO_ClearQueue [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 09 00 00 [14:41:58]Write to MH i2c: E2 08 00 A5 0F 80 09 00 00 00 00 00 00 26 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [14:41:58]RAPDU: 90 00 [14:41:58]wFMCommunicate OK [14:41:58]SAM_PROTO_ClearQueue done [14:41:58]KKMCreateOFDPacket [14:41:58]OFDProtocolAddRootSTLVToBuf [14:41:58]FM_MakeSignedData [14:41:58]FM_MakeSignedData [14:41:58]SAM_PROTO_SignData [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 0D 01 02 [14:41:58]Write to MH i2c: E2 08 00 A6 0F 80 0D 01 02 00 00 00 00 2E [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [14:41:58]RAPDU: 90 00 [14:41:58]wFMCommunicate OK [14:41:58]wFMCommunicate request_size=255 [14:41:58]MH_SAM_APDU [14:41: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 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 AD 00 00 00 F4 03 04 00 36 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CE [14:41:58]Write to MH i2c: E2 02 01 A7 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 AD 00 00 00 F4 03 04 00 36 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CE 00 00 CD [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:58]Read from MH i2c: E2 03 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [14:41:58]RAPDU: 90 00 [14:41:58]wFMCommunicate OK [14:41:58]wFMCommunicate request_size=10 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 0D 02 02 05 DD 5C E7 E9 0E [14:41:58]Write to MH i2c: E2 0D 00 A8 0F 80 0D 02 02 05 00 DD 5C E7 E9 0E 00 00 52 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [14:41:58]RAPDU: 90 00 [14:41:58]wFMCommunicate OK [14:41:58]wFMCommunicate request_size=4 [14:41:58]MH_SAM_APDU [14:41:58]CAPDU: 80 0D 03 02 [14:41:58]Write to MH i2c: E2 08 00 A9 0F 80 0D 03 02 00 00 00 00 33 [14:41:58]Write i2c OK [14:41:58]MH_I2C_Read... [14:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:58]Read from MH i2c: E2 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 0B 00 [14:41:58]MH_I2C_Read... [14:41:58]Read from MH i2c: E2 0B 00 A9 0F 00 33 F4 A1 DC A1 05 15 CF 90 00 62 [14:41:58]RAPDU: 33 F4 A1 DC A1 05 15 CF 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_SignData done [14:41:59]FM_MakeSignedData done [14:41:59]CreateOFDProtocolMessage [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 11 00 00 [14:41:59]Write to MH i2c: E2 08 00 AA 0F 80 11 00 00 00 00 00 00 33 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 17 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 17 00 AA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [14:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:41:59]wFMCommunicate OK [14:41:59]CreateOFDProtocolMessage done [14:41:59]OFDSenderStorePacket 70657 [14:41:59]StoreOFDPacket docnum=70657 [14:41: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 C3 25 07 01 6C 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 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 AD 00 00 00 F4 03 04 00 36 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CE DD 5C E7 E9 0E 33 F4 A1 DC A1 05 15 CF [14:41:59]CheckFolder [14:41:59]dirname=/storage/ofd_packets [14:41:59]CheckFolder done [14:41:59]ProducePacketName [14:41:59]name=ofd_packets/00070657 [14:41:59]NVStorageSaveData ofd_packets/00070657 [14:41:59]File name is /storage/ofd_packets/00070657 [14:41:59]Write 301 bytes [14:41:59]NVStorageSaveData done [14:41:59]OFDSenderStorePacket done [14:41:59]KKMCreateOFDPacket done [14:41:59]NVStorageSaveData kkm_last_timestamp [14:41:59]File name is /storage/kkm_last_timestamp [14:41:59]Write 4 bytes [14:41:59]NVStorageSaveData done [14:41:59]ExternCall_PrintAddStr [14:41:59]wPrintStart [14:41:59]Write to MH i2c: 01 00 00 AB 0F BA [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [14:41:59]RasterBufferAndPrint [14:41:59]line Счет N : (1)2886433 [14:41:59]line ИНН: 02508201610067 [14:41:59]line Контрольно-Кассовый Чек [14:41:59]line ПРОДАЖА [14:41:59]line ТРК (МРК, ГНК) : 22 [14:41:59]line Товар: 2710124130 [14:41:59]line Аи-92-К-5 [14:41:59]line 7.480 * 66.90 [14:41:59]line = 500.41 [14:41:59]line НДС 12% НСП 1% [14:41:59]line > о реализуемом товаре [14:41:59]line ОКРУГЛЕНИЕ: -0.41 [14:41:59]line ИТОГО: 500.00 [14:41:59]line Внесено: 500.00 [14:41:59]line СДАЧА: 0.00 [14:41:59]line НСП 1% : 4.43 [14:41:59]line НДС 12% : 53.14 [14:41:59]line Наличными: 500.00 [14:41:59]line Безнал.: 0.00 [14:41:59]line Место: АЗС № 85 "Партнер Нефть" [14:41:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:41:59]line СНО: Общий режим [14:41:59]line Чек 173 23.10.2024 14:41 [14:41:59]line Смена: 196 ФФД: 1.0 [14:41:59]line ЗНМ: 0300000167 [14:41:59]line РНМ: 0000000000156251 [14:41:59]line Версия ККМ: v1.0 [14:41:59]line ФМ: 0000000000963346 [14:41:59]line ФД: 70657 [14:41:59]line ФПД: 227450141796622 [14:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70657&fm=227450141796622&tin=02508201610067®Number=0000000000156251&sum=50000 [14:41:59]OFD Sender: Processing packet 70657 [packets to send 18, broken 17] [14:41:59]ProducePacketName [14:41:59]name=ofd_packets/00070657 [14:41:59]OFD Sender: To server: pG, [14:41:59]CommunicateWithHost lk.salyk.kg:30040 [14:41:59]ConnectInit lk.salyk.kg [14:41:59]written 0, free lines is 4095 [14:41:59]Connected sock=10 [14:41: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 C3 25 07 01 6C 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 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 AD 00 00 00 F4 03 04 00 36 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CE DD 5C E7 E9 0E 33 F4 A1 DC A1 05 15 CF [14:41:59]Write to MH i2c: 01 00 00 D6 0F E5 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: 01 07 00 D6 0F 00 00 00 00 00 FD 0C F5 [14:41:59]RasterBufferAndPrint [14:41:59]line [14:41:59]line [14:41:59]line [14:41:59]line [14:41:59]line [14:41:59]written 0, free lines is 3331 [14:41:59]MH_Cut [14:41:59]Write to MH i2c: D1 01 00 DD 0F 01 BE [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: D1 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: D1 01 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: D1 01 00 DD 0F 00 BD [14:41:59]Write to MH i2c: 01 00 00 DE 0F ED [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41: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 82 83 47 00 3F 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 01 14 01 00 F4 03 04 00 D4 B4 18 67 B6 04 01 00 00 B5 52 D1 2D BE 33 5C 63 [14:41:59]CommunicateWithHost err = 0 [14:41:59]CheckOFDResponse [14:41:59]1017 (14) - 77093643461234 [14:41:59]1041 (16) - 0000000000963346 [14:41:59]1040 (4) - 70657 [14:41:59]1012 (4) - 23.10.2024 08:33 [14:41:59]1206 (1) - 0 [14:41:59]OFD Sender: Remove packet 70657 [14:41:59]ProducePacketName [14:41:59]name=ofd_packets/00070657 [14:41:59]NVStorageDeleteData [14:42:00]OFD Sender: No OFD packet to send [14:42:00]*** Cut start [14:42:00]*** Partial cut [14:42:00]*** CUTSNS_PIN = 1 [14:42:00]*** CUTSNS_PIN = 0 [14:42:00]*** Brake cut motor [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]*** Stop cut motor [14:42:01]*** Cut end [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [14:42:01]process_action close_receipt done [14:42:01]requested_data is exist [14:42:01]produce_requested_data [14:42:01]requested_item fm.sn is exist - process it [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 11 00 00 [14:42:01]Write to MH i2c: E2 08 00 DF 0F 80 11 00 00 00 00 00 00 68 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 [14:42:01]MH_I2C_Read... [14:42:01]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 [14:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:42:01]wFMCommunicate OK [14:42:01]requested_item fd.num is exist - process it [14:42:01]SAM_PROTO_GetFieldsCounters [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 13 00 00 [14:42:01]Write to MH i2c: E2 08 00 E0 0F 80 13 00 00 00 00 00 00 6B [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 62 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 62 00 E0 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 01 14 01 00 0E 04 04 00 C4 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 67 [14:42: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 01 14 01 00 0E 04 04 00 C4 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 [14:42:01]wFMCommunicate OK [14:42:01]SAM_PROTO_GetFieldsCounters done [14:42:01]requested_item shift.num is exist - process it [14:42:01]requested_item shift.opened is exist - process it [14:42:01]req_shift_opened [14:42:01]FM_GetShiftState [14:42:01]SAM_PROTO_GetShiftState [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 13 01 00 [14:42:01]Write to MH i2c: E2 08 00 E1 0F 80 13 01 00 00 00 00 00 6D [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0E 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0E 00 E1 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FA [14:42:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:42:01]wFMCommunicate OK [14:42:01]SAM_PROTO_GetShiftState done [14:42:01]FM_GetShiftState done [14:42:01]req_shift_opened done [14:42:01]requested_item shift.open_date is exist - process it [14:42:01]req_shift_open_date [14:42:01]req_shift_open_date done [14:42:01]produce_requested_data done [14:42:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70657,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:42:01]process_action_free close_receipt [14:42:01]json_value_free [14:42:01]json_value_free done [14:42:01]process_json_proto returns [14:42:01]Send response to host [14:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70657,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:42:01]free response buf [14:42:01]execute_script done [14:42:01]execute_script returns [14:42:01]free content buf [14:42:01]Sock 9.Close socket [14:42:01]Sock 9.Thread stoped [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:17]accept exits with 7 [14:42:17]New connection [14:42:17]New thread 3067034980 created [14:42:17]Thread 3066891620 joined [14:42:17]Waiting for new connection... [14:42:17] Sock 7.Parse request [14:42:17]Sock 7.Check first char [14:42:17]Sock 7.First char is OK [14:42:17]request: POST /json_proto HTTP/1.0 [14:42:17]Method: POST [14:42:17]URL: /json_proto [14:42:17]Method is POST - this is cgi request [14:42:17]url: /json_proto [14:42:17]query_string will be loaded in cgi processing [14:42:17]execute_cgi json_proto POST (null) [14:42:17]execute_cgi path=json_proto method=POST [14:42:17]POST find Content-Length [14:42:17]Host: 172.17.50.3:8080 [14:42:17]Content-Length: 678 [14:42:17]Content-Type: application/json [14:42:17] [14:42:17]POST finish read [14:42:17]Found Content-Length = 678 [14:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886434", "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" ] } } [14:42:17]execute_script... [14:42: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)2886434", "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" ] } } [14:42:17]POST & json_proto [14:42:17]process_json_proto [14:42:17]json parsed OK: [14:42:17]protocol is kg_v1.0 [14:42:17]action value=close_receipt [14:42:17]process_action close_receipt [14:42:17]cmd_close_receipt [14:42:17]MH_GetDate [14:42:17]Write to MH i2c: F0 00 00 E2 0F E0 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 09 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 09 00 E2 0F 00 4A 0B 19 67 6B 98 1E 66 45 [14:42:17]GetLastDocTimeStamp 1729694518 [14:42:17]current date 1729694538 [14:42:17]FM_GetShiftState [14:42:17]SAM_PROTO_GetShiftState [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 01 00 [14:42:17]Write to MH i2c: E2 08 00 E3 0F 80 13 01 00 00 00 00 00 6F [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 E3 0F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FC [14:42:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetShiftState done [14:42:17]FM_GetShiftState done [14:42:17]opened in 1729642435 [14:42:17]opened+sec_in_day 1729728835 [14:42:17]quantity*price = 50010 [14:42:17]sum+1 = 50012 [14:42:17]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 СНО: Общий режим Чек 174 23.10.2024 14:42 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70658 ФПД: 143763308608249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144218&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70658&fm=143763308608249&tin=02508201610067®Number=0000000000156251&sum=50000 [14:42:18]StoreToDocumentArchive [14:42:18]shift 196 fd 70658 [14:42:18]save to /storage/0196/doc_00070658 [14:42:18]save last doc name /storage/0196/doc_00070658 to /storage/kkm_last_doc_name [14:42:18]save OK [14:42:18]Clear old archive folders... [14:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:18]tlvbuf is 00133BE0 [14:42:18]SAM_PROTO_ClearQueue [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 09 00 00 [14:42:18]Write to MH i2c: E2 08 00 F0 0F 80 09 00 00 00 00 00 00 71 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_ClearQueue done [14:42:18]KKMCreateOFDPacket [14:42:18]OFDProtocolAddRootSTLVToBuf [14:42:18]FM_MakeSignedData [14:42:18]FM_MakeSignedData [14:42:18]SAM_PROTO_SignData [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 0D 01 02 [14:42:18]Write to MH i2c: E2 08 00 F1 0F 80 0D 01 02 00 00 00 00 79 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]wFMCommunicate request_size=255 [14:42:18]MH_SAM_APDU [14:42: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 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 AE 00 00 00 F4 03 04 00 4A 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 [14:42:18]Write to MH i2c: E2 02 01 F2 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 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 AE 00 00 00 F4 03 04 00 4A 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 00 00 BA [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]wFMCommunicate request_size=10 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 0D 02 02 05 C0 80 F0 FA F9 [14:42:18]Write to MH i2c: E2 0D 00 F3 0F 80 0D 02 02 05 00 C0 80 F0 FA F9 00 00 A9 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 0D 03 02 [14:42:18]Write to MH i2c: E2 08 00 F4 0F 80 0D 03 02 00 00 00 00 7E [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0B 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0B 00 F4 0F 00 ED AD E3 30 3B 4B 55 B2 90 00 B9 [14:42:18]RAPDU: ED AD E3 30 3B 4B 55 B2 90 00 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_SignData done [14:42:18]FM_MakeSignedData done [14:42:18]CreateOFDProtocolMessage [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 11 00 00 [14:42:18]Write to MH i2c: E2 08 00 F5 0F 80 11 00 00 00 00 00 00 7E [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 F5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [14:42: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:42:19]wFMCommunicate OK [14:42:19]CreateOFDProtocolMessage done [14:42:19]OFDSenderStorePacket 70658 [14:42:19]StoreOFDPacket docnum=70658 [14:42: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 37 FC 07 01 5C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AE 00 00 00 F4 03 04 00 4A 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 C0 80 F0 FA F9 ED AD E3 30 3B 4B 55 B2 [14:42:19]CheckFolder [14:42:19]dirname=/storage/ofd_packets [14:42:19]CheckFolder done [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00070658 [14:42:19]NVStorageSaveData ofd_packets/00070658 [14:42:19]File name is /storage/ofd_packets/00070658 [14:42:19]Write 301 bytes [14:42:19]NVStorageSaveData done [14:42:19]OFDSenderStorePacket done [14:42:19]KKMCreateOFDPacket done [14:42:19]NVStorageSaveData kkm_last_timestamp [14:42:19]File name is /storage/kkm_last_timestamp [14:42:19]Write 4 bytes [14:42:19]NVStorageSaveData done [14:42:19]ExternCall_PrintAddStr [14:42:19]wPrintStart [14:42:19]Write to MH i2c: 01 00 00 F6 0F 05 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 FF 0F 1A [14:42:19]RasterBufferAndPrint [14:42:19]line Счет N : (1)2886434 [14:42:19]line ИНН: 02508201610067 [14:42:19]line Контрольно-Кассовый Чек [14:42:19]line ПРОДАЖА [14:42:19]line ТРК (МРК, ГНК) : 13 [14:42:19]line Товар: 2710124500 [14:42:19]line Аи-95-К-5 [14:42:19]line 6.740 * 74.20 [14:42:19]line = 500.11 [14:42:19]line НДС 12% НСП 1% [14:42:19]line > о реализуемом товаре [14:42:19]line ОКРУГЛЕНИЕ: -0.11 [14:42:19]line ИТОГО: 500.00 [14:42:19]line Внесено: 500.00 [14:42:19]line СДАЧА: 0.00 [14:42:19]line НСП 1% : 4.43 [14:42:19]line НДС 12% : 53.11 [14:42:19]line Наличными: 500.00 [14:42:19]line Безнал.: 0.00 [14:42:19]line Место: АЗС № 85 "Партнер Нефть" [14:42:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:42:19]line СНО: Общий режим [14:42:19]line Чек 174 23.10.2024 14:42 [14:42:19]line Смена: 196 ФФД: 1.0 [14:42:19]line ЗНМ: 0300000167 [14:42:19]line РНМ: 0000000000156251 [14:42:19]line Версия ККМ: v1.0 [14:42:19]line ФМ: 0000000000963346 [14:42:19]line ФД: 70658 [14:42:19]line ФПД: 143763308608249 [14:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144218&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70658&fm=143763308608249&tin=02508201610067®Number=0000000000156251&sum=50000 [14:42:19]written 0, free lines is 4095 [14:42:19]OFD Sender: Processing packet 70658 [packets to send 18, broken 17] [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00070658 [14:42:19]OFD Sender: To server: pG, [14:42:19]CommunicateWithHost lk.salyk.kg:30040 [14:42:19]ConnectInit lk.salyk.kg [14:42:19]Connected sock=10 [14:42: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 37 FC 07 01 5C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AE 00 00 00 F4 03 04 00 4A 0B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 C0 80 F0 FA F9 ED AD E3 30 3B 4B 55 B2 [14:42: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 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 02 14 01 00 F4 03 04 00 E8 B4 18 67 B6 04 01 00 00 A6 5B 62 63 2B FD 89 77 [14:42:19]CommunicateWithHost err = 0 [14:42:19]CheckOFDResponse [14:42:19]1017 (14) - 77093643461234 [14:42:19]1041 (16) - 0000000000963346 [14:42:19]1040 (4) - 70658 [14:42:19]1012 (4) - 23.10.2024 08:33 [14:42:19]1206 (1) - 0 [14:42:19]OFD Sender: Remove packet 70658 [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00070658 [14:42:19]NVStorageDeleteData [14:42:19]Write to MH i2c: 01 00 00 21 10 31 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 21 10 00 00 00 00 00 F1 0C 35 [14:42:19]RasterBufferAndPrint [14:42:19]line [14:42:19]line [14:42:19]line [14:42:19]line [14:42:19]line [14:42:19]written 0, free lines is 3319 [14:42:19]MH_Cut [14:42:19]Write to MH i2c: D1 01 00 28 10 01 0A [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: D1 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: D1 01 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: D1 01 00 28 10 00 09 [14:42:19]Write to MH i2c: 01 00 00 29 10 39 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]OFD Sender: No OFD packet to send [14:42:20]*** Cut start [14:42:20]*** Partial cut [14:42:20]*** CUTSNS_PIN = 1 [14:42:20]*** CUTSNS_PIN = 0 [14:42:20]*** Brake cut motor [14:42:20]Read from MH i2c: 01 [14:42:20]MH_I2C_Read... [14:42:20]*** Stop cut motor [14:42:20]*** Cut end [14:42:20]Read from MH i2c: 01 07 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [14:42:20]process_action close_receipt done [14:42:20]requested_data is exist [14:42:20]produce_requested_data [14:42:20]requested_item fm.sn is exist - process it [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 11 00 00 [14:42:20]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 17 00 [14:42:20]MH_I2C_Read... [14:42:20]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 [14:42: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:42:20]wFMCommunicate OK [14:42:20]requested_item fd.num is exist - process it [14:42:20]SAM_PROTO_GetFieldsCounters [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 13 00 00 [14:42:20]Write to MH i2c: E2 08 00 2B 10 80 13 00 00 00 00 00 00 B7 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 62 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 62 00 2B 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 02 14 01 00 0E 04 04 00 C4 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 B7 [14:42: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 02 14 01 00 0E 04 04 00 C4 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 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_GetFieldsCounters done [14:42:21]requested_item shift.num is exist - process it [14:42:21]requested_item shift.opened is exist - process it [14:42:21]req_shift_opened [14:42:21]FM_GetShiftState [14:42:21]SAM_PROTO_GetShiftState [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 13 01 00 [14:42:21]Write to MH i2c: E2 08 00 2C 10 80 13 01 00 00 00 00 00 B9 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0E 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0E 00 2C 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 46 [14:42:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_GetShiftState done [14:42:21]FM_GetShiftState done [14:42:21]req_shift_opened done [14:42:21]requested_item shift.open_date is exist - process it [14:42:21]req_shift_open_date [14:42:21]req_shift_open_date done [14:42:21]produce_requested_data done [14:42:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70658,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:42:21]process_action_free close_receipt [14:42:21]json_value_free [14:42:21]json_value_free done [14:42:21]process_json_proto returns [14:42:21]Send response to host [14:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70658,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:42:21]free response buf [14:42:21]execute_script done [14:42:21]execute_script returns [14:42:21]free content buf [14:42:21]Sock 7.Close socket [14:42:21]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:19]accept exits with 9 [14:45:19]New connection [14:45:19]New thread 3066891620 created [14:45:19]Thread 3067034980 joined [14:45:19]Waiting for new connection... [14:45:19] Sock 9.Parse request [14:45:19]Sock 9.Check first char [14:45:19]Sock 9.First char is OK [14:45:19]request: POST /json_proto HTTP/1.0 [14:45:19]Method: POST [14:45:19]URL: /json_proto [14:45:19]Method is POST - this is cgi request [14:45:19]url: /json_proto [14:45:19]query_string will be loaded in cgi processing [14:45:19]execute_cgi json_proto POST (null) [14:45:19]execute_cgi path=json_proto method=POST [14:45:19]POST find Content-Length [14:45:19]Host: 172.17.50.3:8080 [14:45:19]Content-Length: 683 [14:45:19]Content-Type: application/json [14:45:19] [14:45:19]POST finish read [14:45:19]Found Content-Length = 683 [14:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886435", "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" ] } } [14:45:19]execute_script... [14:45: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)2886435", "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" ] } } [14:45:19]POST & json_proto [14:45:19]process_json_proto [14:45:19]json parsed OK: [14:45:19]protocol is kg_v1.0 [14:45:19]action value=close_receipt [14:45:19]process_action close_receipt [14:45:19]cmd_close_receipt [14:45:19]MH_GetDate [14:45:19]Write to MH i2c: F0 00 00 2D 10 2C [14:45:19]Write i2c OK [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 09 00 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 09 00 2D 10 00 00 0C 19 67 6B 98 1E 66 48 [14:45:19]GetLastDocTimeStamp 1729694538 [14:45:19]current date 1729694720 [14:45:19]FM_GetShiftState [14:45:19]SAM_PROTO_GetShiftState [14:45:19]wFMCommunicate request_size=4 [14:45:19]MH_SAM_APDU [14:45:19]CAPDU: 80 13 01 00 [14:45:19]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [14:45:19]Write i2c OK [14:45:19]MH_I2C_Read... [14:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:19]Read from MH i2c: E2 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: E2 0E 00 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 48 [14:45:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:45:19]wFMCommunicate OK [14:45:19]SAM_PROTO_GetShiftState done [14:45:19]FM_GetShiftState done [14:45:19]opened in 1729642435 [14:45:19]opened+sec_in_day 1729728835 [14:45:19]quantity*price = 100015 [14:45:19]sum+1 = 100017 [14:45: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 СНО: Общий режим Чек 175 23.10.2024 14:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70659 ФПД: 46631090720487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70659&fm=46631090720487&tin=02508201610067®Number=0000000000156251&sum=100000 [14:45:20]StoreToDocumentArchive [14:45:20]shift 196 fd 70659 [14:45:20]save to /storage/0196/doc_00070659 [14:45:20]save last doc name /storage/0196/doc_00070659 to /storage/kkm_last_doc_name [14:45:20]save OK [14:45:20]Clear old archive folders... [14:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:20]tlvbuf is 00166260 [14:45:20]SAM_PROTO_ClearQueue [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 09 00 00 [14:45:20]Write to MH i2c: E2 08 00 3B 10 80 09 00 00 00 00 00 00 BD [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]SAM_PROTO_ClearQueue done [14:45:20]KKMCreateOFDPacket [14:45:20]OFDProtocolAddRootSTLVToBuf [14:45:20]FM_MakeSignedData [14:45:20]FM_MakeSignedData [14:45:20]SAM_PROTO_SignData [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 01 02 [14:45:20]Write to MH i2c: E2 08 00 3C 10 80 0D 01 02 00 00 00 00 C5 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=255 [14:45:20]MH_SAM_APDU [14:45: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 AF 00 00 00 F4 03 04 00 00 0C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A [14:45:20]Write to MH i2c: E2 02 01 3D 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 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 AF 00 00 00 F4 03 04 00 00 0C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 00 00 89 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=10 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 02 02 05 69 25 99 0E E7 [14:45:20]Write to MH i2c: E2 0D 00 3E 10 80 0D 02 02 05 00 69 25 99 0E E7 00 00 EE [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 03 02 [14:45:20]Write to MH i2c: E2 08 00 3F 10 80 0D 03 02 00 00 00 00 CA [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:21]Read from MH i2c: E2 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0B 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0B 00 3F 10 00 25 6A 1E 3D 09 29 14 E0 90 00 DB [14:45:21]RAPDU: 25 6A 1E 3D 09 29 14 E0 90 00 [14:45:21]wFMCommunicate OK [14:45:21]SAM_PROTO_SignData done [14:45:21]FM_MakeSignedData done [14:45:21]CreateOFDProtocolMessage [14:45:21]wFMCommunicate request_size=4 [14:45:21]MH_SAM_APDU [14:45:21]CAPDU: 80 11 00 00 [14:45:21]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:21]Read from MH i2c: E2 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 17 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 17 00 40 10 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:45: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:45:21]wFMCommunicate OK [14:45:21]CreateOFDProtocolMessage done [14:45:21]OFDSenderStorePacket 70659 [14:45:21]StoreOFDPacket docnum=70659 [14:45: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 22 5D 07 01 97 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 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 AF 00 00 00 F4 03 04 00 00 0C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 69 25 99 0E E7 25 6A 1E 3D 09 29 14 E0 [14:45:21]CheckFolder [14:45:21]dirname=/storage/ofd_packets [14:45:21]CheckFolder done [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00070659 [14:45:21]NVStorageSaveData ofd_packets/00070659 [14:45:21]File name is /storage/ofd_packets/00070659 [14:45:21]Write 301 bytes [14:45:21]NVStorageSaveData done [14:45:21]OFDSenderStorePacket done [14:45:21]KKMCreateOFDPacket done [14:45:21]NVStorageSaveData kkm_last_timestamp [14:45:21]File name is /storage/kkm_last_timestamp [14:45:21]Write 4 bytes [14:45:21]NVStorageSaveData done [14:45:21]ExternCall_PrintAddStr [14:45:21]wPrintStart [14:45:21]Write to MH i2c: 01 00 00 41 10 51 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 41 10 00 00 00 00 00 FF 0F 66 [14:45:21]RasterBufferAndPrint [14:45:21]line Счет N : (1)2886435 [14:45:21]line ИНН: 02508201610067 [14:45:21]line Контрольно-Кассовый Чек [14:45:21]line ПРОДАЖА [14:45:21]line ТРК (МРК, ГНК) : 22 [14:45:21]line Товар: 2710124130 [14:45:21]line Аи-92-К-5 [14:45:21]line 14.950 * 66.90 [14:45:21]line = 1000.16 [14:45:21]line НДС 12% НСП 1% [14:45:21]line > о реализуемом товаре [14:45:21]line ОКРУГЛЕНИЕ: -0.16 [14:45:21]line ИТОГО: 1000.00 [14:45:21]line Внесено: 1000.00 [14:45:21]line СДАЧА: 0.00 [14:45:21]line НСП 1% : 8.85 [14:45:21]line НДС 12% : 106.21 [14:45:21]line Наличными: 1000.00 [14:45:21]line Безнал.: 0.00 [14:45:21]line Место: АЗС № 85 "Партнер Нефть" [14:45:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:45:21]line СНО: Общий режим [14:45:21]line Чек 175 23.10.2024 14:45 [14:45:21]line Смена: 196 ФФД: 1.0 [14:45:21]line ЗНМ: 0300000167 [14:45:21]line РНМ: 0000000000156251 [14:45:21]line Версия ККМ: v1.0 [14:45:21]line ФМ: 0000000000963346 [14:45:21]line ФД: 70659 [14:45:21]line ФПД: 46631090720487 [14:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70659&fm=46631090720487&tin=02508201610067®Number=0000000000156251&sum=100000 [14:45:21]OFD Sender: Processing packet 70659 [packets to send 18, broken 17] [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00070659 [14:45:21]OFD Sender: To server: pG, [14:45:21]CommunicateWithHost lk.salyk.kg:30040 [14:45:21]ConnectInit lk.salyk.kg [14:45:21]written 0, free lines is 4095 [14:45:21]Connected sock=10 [14:45: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 22 5D 07 01 97 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 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 AF 00 00 00 F4 03 04 00 00 0C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 69 25 99 0E E7 25 6A 1E 3D 09 29 14 E0 [14:45: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 42 FB 47 00 CF 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 03 14 01 00 F4 03 04 00 9E B5 18 67 B6 04 01 00 00 26 47 DA FE C9 2A 39 9B [14:45:21]CommunicateWithHost err = 0 [14:45:21]CheckOFDResponse [14:45:21]1017 (14) - 77093643461234 [14:45:21]1041 (16) - 0000000000963346 [14:45:21]1040 (4) - 70659 [14:45:21]1012 (4) - 23.10.2024 08:36 [14:45:21]1206 (1) - 0 [14:45:21]OFD Sender: Remove packet 70659 [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00070659 [14:45:21]NVStorageDeleteData [14:45:21]Write to MH i2c: 01 00 00 6C 10 7C [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 6C 10 00 00 00 00 00 F3 0C 82 [14:45:21]RasterBufferAndPrint [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]written 0, free lines is 3321 [14:45:21]MH_Cut [14:45:21]Write to MH i2c: D1 01 00 73 10 01 55 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 01 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 01 00 73 10 00 54 [14:45:21]Write to MH i2c: 01 00 00 74 10 84 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:22]OFD Sender: No OFD packet to send [14:45:22]*** Cut start [14:45:22]*** Partial cut [14:45:22]*** CUTSNS_PIN = 1 [14:45:22]*** CUTSNS_PIN = 0 [14:45:22]*** Brake cut motor [14:45:23]Read from MH i2c: 01 [14:45:23]MH_I2C_Read... [14:45:23]*** Stop cut motor [14:45:23]*** Cut end [14:45:23]Read from MH i2c: 01 07 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [14:45:23]process_action close_receipt done [14:45:23]requested_data is exist [14:45:23]produce_requested_data [14:45:23]requested_item fm.sn is exist - process it [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 11 00 00 [14:45:23]Write to MH i2c: E2 08 00 75 10 80 11 00 00 00 00 00 00 FF [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 17 00 [14:45:23]MH_I2C_Read... [14:45:23]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 [14:45:23]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:23]wFMCommunicate OK [14:45:23]requested_item fd.num is exist - process it [14:45:23]SAM_PROTO_GetFieldsCounters [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 00 00 [14:45:23]Write to MH i2c: E2 08 00 76 10 80 13 00 00 00 00 00 00 02 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 62 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 62 00 76 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 03 14 01 00 0E 04 04 00 C4 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 06 [14:45: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 03 14 01 00 0E 04 04 00 C4 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 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetFieldsCounters done [14:45:23]requested_item shift.num is exist - process it [14:45:23]requested_item shift.opened is exist - process it [14:45:23]req_shift_opened [14:45:23]FM_GetShiftState [14:45:23]SAM_PROTO_GetShiftState [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 01 00 [14:45:23]Write to MH i2c: E2 08 00 77 10 80 13 01 00 00 00 00 00 04 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 77 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 91 [14:45:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetShiftState done [14:45:23]FM_GetShiftState done [14:45:23]req_shift_opened done [14:45:23]requested_item shift.open_date is exist - process it [14:45:23]req_shift_open_date [14:45:23]req_shift_open_date done [14:45:23]produce_requested_data done [14:45:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70659,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:45:23]process_action_free close_receipt [14:45:23]json_value_free [14:45:23]json_value_free done [14:45:23]process_json_proto returns [14:45:23]Send response to host [14:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70659,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:45:23]free response buf [14:45:23]execute_script done [14:45:23]execute_script returns [14:45:23]free content buf [14:45:23]Sock 9.Close socket [14:45:23]Sock 9.Thread stoped [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:40]accept exits with 7 [14:49:40]New connection [14:49:40]New thread 3067034980 created [14:49:40]Thread 3066891620 joined [14:49:40]Waiting for new connection... [14:49:40] Sock 7.Parse request [14:49:40]Sock 7.Check first char [14:49:40]Sock 7.First char is OK [14:49:40]request: POST /json_proto HTTP/1.0 [14:49:40]Method: POST [14:49:40]URL: /json_proto [14:49:40]Method is POST - this is cgi request [14:49:40]url: /json_proto [14:49:40]query_string will be loaded in cgi processing [14:49:40]execute_cgi json_proto POST (null) [14:49:40]execute_cgi path=json_proto method=POST [14:49:40]POST find Content-Length [14:49:40]Host: 172.17.50.3:8080 [14:49:40]Content-Length: 793 [14:49:40]Content-Type: application/json [14:49:40] [14:49:40]POST finish read [14:49:40]Found Content-Length = 793 [14:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886436", "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.470, "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:49:40]execute_script... [14:49:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886436", "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.470, "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:49:40]POST & json_proto [14:49:40]process_json_proto [14:49:40]json parsed OK: [14:49:40]protocol is kg_v1.0 [14:49:40]action value=close_receipt [14:49:40]process_action close_receipt [14:49:40]cmd_close_receipt [14:49:40]MH_GetDate [14:49:40]Write to MH i2c: F0 00 00 78 10 77 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 78 10 00 06 0D 19 67 6B 98 1E 66 9A [14:49:40]GetLastDocTimeStamp 1729694720 [14:49:40]current date 1729694982 [14:49:40]FM_GetShiftState [14:49:40]SAM_PROTO_GetShiftState [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 13 01 00 [14:49:40]Write to MH i2c: E2 08 00 79 10 80 13 01 00 00 00 00 00 06 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 79 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 93 [14:49:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:49:40]wFMCommunicate OK [14:49:40]SAM_PROTO_GetShiftState done [14:49:40]FM_GetShiftState done [14:49:40]opened in 1729642435 [14:49:40]opened+sec_in_day 1729728835 [14:49:40]quantity*price = 0 [14:49:40]sum+1 = 1 [14:49: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 СНО: Общий режим Чек 176 23.10.2024 14:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 70660 ФПД: 50098217774781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70660&fm=50098217774781&tin=02508201610067®Number=0000000000156251&sum=0 [14:49:41]StoreToDocumentArchive [14:49:41]shift 196 fd 70660 [14:49:41]save to /storage/0196/doc_00070660 [14:49:41]save last doc name /storage/0196/doc_00070660 to /storage/kkm_last_doc_name [14:49:41]save OK [14:49:41]Clear old archive folders... [14:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:41]tlvbuf is B6EBC350 [14:49:41]SAM_PROTO_ClearQueue [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 09 00 00 [14:49:41]Write to MH i2c: E2 08 00 86 10 80 09 00 00 00 00 00 00 08 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_ClearQueue done [14:49:41]KKMCreateOFDPacket [14:49:41]OFDProtocolAddRootSTLVToBuf [14:49:41]FM_MakeSignedData [14:49:41]FM_MakeSignedData [14:49:41]SAM_PROTO_SignData [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 01 02 [14:49:41]Write to MH i2c: E2 08 00 87 10 80 0D 01 02 00 00 00 00 10 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=255 [14:49:41]MH_SAM_APDU [14:49: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 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D [14:49:41]Write to MH i2c: E2 02 01 88 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 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 00 00 6F [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [14:49:42]RAPDU: 90 00 [14:49:42]wFMCommunicate OK [14:49:42]wFMCommunicate request_size=10 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 0D 02 02 05 90 66 79 6E BD [14:49:42]Write to MH i2c: E2 0D 00 89 10 80 0D 02 02 05 00 90 66 79 6E BD 00 00 B7 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 89 10 00 90 00 0D [14:49:42]RAPDU: 90 00 [14:49:42]wFMCommunicate OK [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 0D 03 02 [14:49:42]Write to MH i2c: E2 08 00 8A 10 80 0D 03 02 00 00 00 00 15 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0B 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0B 00 8A 10 00 C5 73 02 F3 8E 51 0F 5A 90 00 8B [14:49:42]RAPDU: C5 73 02 F3 8E 51 0F 5A 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_SignData done [14:49:42]FM_MakeSignedData done [14:49:42]CreateOFDProtocolMessage [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 11 00 00 [14:49:42]Write to MH i2c: E2 08 00 8B 10 80 11 00 00 00 00 00 00 15 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 17 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 17 00 8B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [14:49: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:49:42]wFMCommunicate OK [14:49:42]CreateOFDProtocolMessage done [14:49:42]OFDSenderStorePacket 70660 [14:49:42]StoreOFDPacket docnum=70660 [14:49: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 93 E3 07 01 8A C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 90 66 79 6E BD C5 73 02 F3 8E 51 0F 5A [14:49:42]CheckFolder [14:49:42]dirname=/storage/ofd_packets [14:49:42]CheckFolder done [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00070660 [14:49:42]NVStorageSaveData ofd_packets/00070660 [14:49:42]File name is /storage/ofd_packets/00070660 [14:49:42]Write 301 bytes [14:49:42]NVStorageSaveData done [14:49:42]OFDSenderStorePacket done [14:49:42]KKMCreateOFDPacket done [14:49:42]NVStorageSaveData kkm_last_timestamp [14:49:42]File name is /storage/kkm_last_timestamp [14:49:42]Write 4 bytes [14:49:42]NVStorageSaveData done [14:49:42]ExternCall_PrintAddStr [14:49:42]wPrintStart [14:49:42]Write to MH i2c: 01 00 00 8C 10 9C [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 8C 10 00 00 00 00 00 FF 0F B1 [14:49:42]RasterBufferAndPrint [14:49:42]line Счет N : (1)2886436 [14:49:42]line ИНН: 02508201610067 [14:49:42]line Контрольно-Кассовый Чек [14:49:42]line ПРОДАЖА [14:49:42]line ТРК (МРК, ГНК) : 42 [14:49:42]line Товар: 2710124130 [14:49:42]line Аи-92-К-5 [14:49:42]line 10.470 * 0.00 [14:49:42]line = 0.00 [14:49:42]line НДС 12% НСП 1% [14:49:42]line > о реализуемом товаре [14:49:42]line ИТОГО: 0.00 [14:49:42]line НСП 1% : 0.00 [14:49:42]line НДС 12% : 0.00 [14:49:42]line Наличными: 0.00 [14:49:42]line Безнал.: 0.00 [14:49:42]line Место: АЗС № 85 "Партнер Нефть" [14:49:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:49:42]line СНО: Общий режим [14:49:42]line Чек 176 23.10.2024 14:49 [14:49:42]line Смена: 196 ФФД: 1.0 [14:49:42]line ЗНМ: 0300000167 [14:49:42]line РНМ: 0000000000156251 [14:49:42]line Версия ККМ: v1.0 [14:49:42]line Талоны: Топливная Карта [14:49:42]line 31095 [14:49:42]line ФМ: 0000000000963346 [14:49:42]line ФД: 70660 [14:49:42]line ФПД: 50098217774781 [14:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70660&fm=50098217774781&tin=02508201610067®Number=0000000000156251&sum=0 [14:49:42]OFD Sender: Processing packet 70660 [packets to send 18, broken 17] [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00070660 [14:49:42]OFD Sender: To server: pG, [14:49:42]CommunicateWithHost lk.salyk.kg:30040 [14:49:42]ConnectInit lk.salyk.kg [14:49:42]written 0, free lines is 4095 [14:49:42]Connected sock=10 [14:49: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 93 E3 07 01 8A C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 90 66 79 6E BD C5 73 02 F3 8E 51 0F 5A [14:49: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 78 2F 47 00 D5 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 04 14 01 00 F4 03 04 00 A3 B6 18 67 B6 04 01 00 00 37 C7 10 E1 90 E2 96 04 [14:49:42]CommunicateWithHost err = 0 [14:49:42]CheckOFDResponse [14:49:42]1017 (14) - 77093643461234 [14:49:42]1041 (16) - 0000000000963346 [14:49:42]1040 (4) - 70660 [14:49:42]1012 (4) - 23.10.2024 08:41 [14:49:42]1206 (1) - 0 [14:49:42]OFD Sender: Remove packet 70660 [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00070660 [14:49:42]NVStorageDeleteData [14:49:43]Write to MH i2c: 01 00 00 B6 10 C6 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: 01 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: 01 07 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 F1 0C CA [14:49:43]RasterBufferAndPrint [14:49:43]line [14:49:43]line [14:49:43]line [14:49:43]line [14:49:43]line [14:49:43]written 0, free lines is 3319 [14:49:43]MH_Cut [14:49:43]Write to MH i2c: D1 01 00 BD 10 01 9F [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: D1 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: D1 01 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: D1 01 00 BD 10 00 9E [14:49:43]Write to MH i2c: 01 00 00 BE 10 CE [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]OFD Sender: No OFD packet to send [14:49:43]*** Cut start [14:49:43]*** Partial cut [14:49:43]*** CUTSNS_PIN = 1 [14:49:43]*** CUTSNS_PIN = 0 [14:49:44]*** Brake cut motor [14:49:44]Read from MH i2c: 01 [14:49:44]MH_I2C_Read... [14:49:44]*** Stop cut motor [14:49:44]*** Cut end [14:49:44]Read from MH i2c: 01 07 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 FF 0F E3 [14:49:44]process_action close_receipt done [14:49:44]requested_data is exist [14:49:44]produce_requested_data [14:49:44]requested_item fm.sn is exist - process it [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 11 00 00 [14:49:44]Write to MH i2c: E2 08 00 BF 10 80 11 00 00 00 00 00 00 49 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 BF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [14:49: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:49:44]wFMCommunicate OK [14:49:44]requested_item fd.num is exist - process it [14:49:44]SAM_PROTO_GetFieldsCounters [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 00 00 [14:49:44]Write to MH i2c: E2 08 00 C0 10 80 13 00 00 00 00 00 00 4C [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 C0 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 04 14 01 00 0E 04 04 00 C4 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 54 [14:49: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 04 14 01 00 0E 04 04 00 C4 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 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetFieldsCounters done [14:49:44]requested_item shift.num is exist - process it [14:49:44]requested_item shift.opened is exist - process it [14:49:44]req_shift_opened [14:49:44]FM_GetShiftState [14:49:44]SAM_PROTO_GetShiftState [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 01 00 [14:49:44]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DB [14:49:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetShiftState done [14:49:44]FM_GetShiftState done [14:49:44]req_shift_opened done [14:49:44]requested_item shift.open_date is exist - process it [14:49:44]req_shift_open_date [14:49:44]req_shift_open_date done [14:49:44]produce_requested_data done [14:49:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70660,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:49:44]process_action_free close_receipt [14:49:44]json_value_free [14:49:44]json_value_free done [14:49:44]process_json_proto returns [14:49:44]Send response to host [14:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70660,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:49:44]free response buf [14:49:44]execute_script done [14:49:44]execute_script returns [14:49:44]free content buf [14:49:44]Sock 7.Close socket [14:49:44]Sock 7.Thread stoped [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [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:45]accept exits with 9 [14:52:45]New connection [14:52:45]New thread 3066891620 created [14:52:45]Thread 3067034980 joined [14:52:45]Waiting for new connection... [14:52:45] Sock 9.Parse request [14:52:45]Sock 9.Check first char [14:52:45]Sock 9.First char is OK [14:52:45]request: POST /json_proto HTTP/1.0 [14:52:45]Method: POST [14:52:45]URL: /json_proto [14:52:45]Method is POST - this is cgi request [14:52:45]url: /json_proto [14:52:45]query_string will be loaded in cgi processing [14:52:45]execute_cgi json_proto POST (null) [14:52:45]execute_cgi path=json_proto method=POST [14:52:45]POST find Content-Length [14:52:45]Host: 172.17.50.3:8080 [14:52:45]Content-Length: 678 [14:52:45]Content-Type: application/json [14:52:45] [14:52:45]POST finish read [14:52:45]Found Content-Length = 678 [14:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886437", "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" : 4.950, "sum" : 331.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 331.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:45]execute_script... [14:52: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)2886437", "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" : 4.950, "sum" : 331.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 331.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:45]POST & json_proto [14:52:45]process_json_proto [14:52:45]json parsed OK: [14:52:45]protocol is kg_v1.0 [14:52:45]action value=close_receipt [14:52:45]process_action close_receipt [14:52:45]cmd_close_receipt [14:52:45]MH_GetDate [14:52:45]Write to MH i2c: F0 00 00 C2 10 C1 [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 09 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: F0 09 00 C2 10 00 BF 0D 19 67 6B 98 1E 66 9D [14:52:45]GetLastDocTimeStamp 1729694982 [14:52:45]current date 1729695167 [14:52:45]FM_GetShiftState [14:52:45]SAM_PROTO_GetShiftState [14:52:45]wFMCommunicate request_size=4 [14:52:45]MH_SAM_APDU [14:52:45]CAPDU: 80 13 01 00 [14:52:45]Write to MH i2c: E2 08 00 C3 10 80 13 01 00 00 00 00 00 50 [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:45]Read from MH i2c: E2 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: E2 0E 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: E2 0E 00 C3 10 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DD [14:52:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:52:45]wFMCommunicate OK [14:52:45]SAM_PROTO_GetShiftState done [14:52:45]FM_GetShiftState done [14:52:45]opened in 1729642435 [14:52:45]opened+sec_in_day 1729728835 [14:52:45]quantity*price = 33115 [14:52:45]sum+1 = 33117 [14:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 331.00 Внесено: 331.00 СДАЧА: 0.00 НСП 1% : 2.93 НДС 12% : 35.17 Наличными: 331.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 177 23.10.2024 14:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70661 ФПД: 130013058227613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70661&fm=130013058227613&tin=02508201610067®Number=0000000000156251&sum=33100 [14:52:46]StoreToDocumentArchive [14:52:46]shift 196 fd 70661 [14:52:46]save to /storage/0196/doc_00070661 [14:52:46]save last doc name /storage/0196/doc_00070661 to /storage/kkm_last_doc_name [14:52:46]save OK [14:52:46]Clear old archive folders... [14:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:46]tlvbuf is 00163680 [14:52:46]SAM_PROTO_ClearQueue [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 09 00 00 [14:52:46]Write to MH i2c: E2 08 00 D0 10 80 09 00 00 00 00 00 00 52 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]SAM_PROTO_ClearQueue done [14:52:46]KKMCreateOFDPacket [14:52:46]OFDProtocolAddRootSTLVToBuf [14:52:46]FM_MakeSignedData [14:52:46]FM_MakeSignedData [14:52:46]SAM_PROTO_SignData [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 0D 01 02 [14:52:46]Write to MH i2c: E2 08 00 D1 10 80 0D 01 02 00 00 00 00 5A [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [14:52:46]RAPDU: 90 00 [14:52:46]wFMCommunicate OK [14:52:46]wFMCommunicate request_size=255 [14:52:46]MH_SAM_APDU [14:52: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 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 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 BF 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 76 [14:52:46]Write to MH i2c: E2 02 01 D2 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 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 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 BF 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 76 00 00 BB [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 03 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [14:52:47]RAPDU: 90 00 [14:52:47]wFMCommunicate OK [14:52:47]wFMCommunicate request_size=10 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 0D 02 02 05 3F 06 26 DD 9D [14:52:47]Write to MH i2c: E2 0D 00 D3 10 80 0D 02 02 05 00 3F 06 26 DD 9D 00 00 4C [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 03 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [14:52:47]RAPDU: 90 00 [14:52:47]wFMCommunicate OK [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 0D 03 02 [14:52:47]Write to MH i2c: E2 08 00 D4 10 80 0D 03 02 00 00 00 00 5F [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0B 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0B 00 D4 10 00 FC B8 52 F9 24 08 80 FD 90 00 08 [14:52:47]RAPDU: FC B8 52 F9 24 08 80 FD 90 00 [14:52:47]wFMCommunicate OK [14:52:47]SAM_PROTO_SignData done [14:52:47]FM_MakeSignedData done [14:52:47]CreateOFDProtocolMessage [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 11 00 00 [14:52:47]Write to MH i2c: E2 08 00 D5 10 80 11 00 00 00 00 00 00 5F [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 17 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 17 00 D5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [14:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:52:47]wFMCommunicate OK [14:52:47]CreateOFDProtocolMessage done [14:52:47]OFDSenderStorePacket 70661 [14:52:47]StoreOFDPacket docnum=70661 [14:52: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 A8 30 07 01 02 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 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 BF 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 76 3F 06 26 DD 9D FC B8 52 F9 24 08 80 FD [14:52:47]CheckFolder [14:52:47]dirname=/storage/ofd_packets [14:52:47]CheckFolder done [14:52:47]ProducePacketName [14:52:47]name=ofd_packets/00070661 [14:52:47]NVStorageSaveData ofd_packets/00070661 [14:52:47]File name is /storage/ofd_packets/00070661 [14:52:47]Write 301 bytes [14:52:47]NVStorageSaveData done [14:52:47]OFDSenderStorePacket done [14:52:47]KKMCreateOFDPacket done [14:52:47]NVStorageSaveData kkm_last_timestamp [14:52:47]File name is /storage/kkm_last_timestamp [14:52:47]Write 4 bytes [14:52:47]NVStorageSaveData done [14:52:47]ExternCall_PrintAddStr [14:52:47]wPrintStart [14:52:47]Write to MH i2c: 01 00 00 D6 10 E6 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 07 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 FF 0F FB [14:52:47]RasterBufferAndPrint [14:52:47]line Счет N : (1)2886437 [14:52:47]line ИНН: 02508201610067 [14:52:47]line Контрольно-Кассовый Чек [14:52:47]line ПРОДАЖА [14:52:47]line ТРК (МРК, ГНК) : 22 [14:52:47]line Товар: 2710124130 [14:52:47]line Аи-92-К-5 [14:52:47]line 4.950 * 66.90 [14:52:47]line = 331.16 [14:52:47]line НДС 12% НСП 1% [14:52:47]line > о реализуемом товаре [14:52:47]line ОКРУГЛЕНИЕ: -0.16 [14:52:47]line ИТОГО: 331.00 [14:52:47]line Внесено: 331.00 [14:52:47]line СДАЧА: 0.00 [14:52:47]line НСП 1% : 2.93 [14:52:47]line НДС 12% : 35.17 [14:52:47]line Наличными: 331.00 [14:52:47]line Безнал.: 0.00 [14:52:47]line Место: АЗС № 85 "Партнер Нефть" [14:52:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:52:47]line СНО: Общий режим [14:52:47]line Чек 177 23.10.2024 14:52 [14:52:47]line Смена: 196 ФФД: 1.0 [14:52:47]line ЗНМ: 0300000167 [14:52:47]line РНМ: 0000000000156251 [14:52:47]line Версия ККМ: v1.0 [14:52:47]line ФМ: 0000000000963346 [14:52:47]line ФД: 70661 [14:52:47]line ФПД: 130013058227613 [14:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70661&fm=130013058227613&tin=02508201610067®Number=0000000000156251&sum=33100 [14:52:47]OFD Sender: Processing packet 70661 [packets to send 18, broken 17] [14:52:47]ProducePacketName [14:52:47]name=ofd_packets/00070661 [14:52:47]OFD Sender: To server: pG, [14:52:47]CommunicateWithHost lk.salyk.kg:30040 [14:52:47]ConnectInit lk.salyk.kg [14:52:47]written 0, free lines is 4095 [14:52:47]Connected sock=10 [14:52: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 A8 30 07 01 02 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 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 BF 0D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 76 3F 06 26 DD 9D FC B8 52 F9 24 08 80 FD [14:52: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 55 20 47 00 27 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 05 14 01 00 F4 03 04 00 5C B7 18 67 B6 04 01 00 00 FA 9D 6C F0 20 69 68 1A [14:52:47]CommunicateWithHost err = 0 [14:52:47]CheckOFDResponse [14:52:47]1017 (14) - 77093643461234 [14:52:47]1041 (16) - 0000000000963346 [14:52:47]1040 (4) - 70661 [14:52:47]1012 (4) - 23.10.2024 08:44 [14:52:47]1206 (1) - 0 [14:52:47]OFD Sender: Remove packet 70661 [14:52:47]ProducePacketName [14:52:47]name=ofd_packets/00070661 [14:52:47]NVStorageDeleteData [14:52:48]Write to MH i2c: 01 00 00 01 11 12 [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: 01 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: 01 07 00 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 E4 0C 09 [14:52:48]RasterBufferAndPrint [14:52:48]line [14:52:48]line [14:52:48]line [14:52:48]line [14:52:48]line [14:52:48]written 0, free lines is 3306 [14:52:48]MH_Cut [14:52:48]Write to MH i2c: D1 01 00 08 11 01 EB [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: D1 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: D1 01 00 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: D1 01 00 08 11 00 EA [14:52:48]Write to MH i2c: 01 00 00 09 11 1A [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:48]OFD Sender: No OFD packet to send [14:52:48]*** Cut start [14:52:48]*** Partial cut [14:52:48]*** CUTSNS_PIN = 1 [14:52:48]*** CUTSNS_PIN = 0 [14:52:49]*** Brake cut motor [14:52:49]Read from MH i2c: 01 [14:52:49]MH_I2C_Read... [14:52:49]*** Stop cut motor [14:52:49]*** Cut end [14:52:49]Read from MH i2c: 01 07 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 FF 0F 2F [14:52:49]process_action close_receipt done [14:52:49]requested_data is exist [14:52:49]produce_requested_data [14:52:49]requested_item fm.sn is exist - process it [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 11 00 00 [14:52:49]Write to MH i2c: E2 08 00 0A 11 80 11 00 00 00 00 00 00 95 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 0A 11 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:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:52:49]wFMCommunicate OK [14:52:49]requested_item fd.num is exist - process it [14:52:49]SAM_PROTO_GetFieldsCounters [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 13 00 00 [14:52:49]Write to MH i2c: E2 08 00 0B 11 80 13 00 00 00 00 00 00 98 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 62 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 62 00 0B 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 05 14 01 00 0E 04 04 00 C4 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 A4 [14:52: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 05 14 01 00 0E 04 04 00 C4 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 [14:52:49]wFMCommunicate OK [14:52:49]SAM_PROTO_GetFieldsCounters done [14:52:49]requested_item shift.num is exist - process it [14:52:49]requested_item shift.opened is exist - process it [14:52:49]req_shift_opened [14:52:49]FM_GetShiftState [14:52:49]SAM_PROTO_GetShiftState [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 13 01 00 [14:52:49]Write to MH i2c: E2 08 00 0C 11 80 13 01 00 00 00 00 00 9A [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 0E 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 0E 00 0C 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 27 [14:52:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:52:49]wFMCommunicate OK [14:52:49]SAM_PROTO_GetShiftState done [14:52:49]FM_GetShiftState done [14:52:49]req_shift_opened done [14:52:49]requested_item shift.open_date is exist - process it [14:52:49]req_shift_open_date [14:52:49]req_shift_open_date done [14:52:49]produce_requested_data done [14:52:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70661,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:52:49]process_action_free close_receipt [14:52:49]json_value_free [14:52:49]json_value_free done [14:52:49]process_json_proto returns [14:52:49]Send response to host [14:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70661,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:52:49]free response buf [14:52:49]execute_script done [14:52:49]execute_script returns [14:52:49]free content buf [14:52:49]Sock 9.Close socket [14:52:49]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]accept exits with 7 [14:57:43]New connection [14:57:43]New thread 3067034980 created [14:57:43]Thread 3066891620 joined [14:57:43]Waiting for new connection... [14:57:43] Sock 7.Parse request [14:57:43]Sock 7.Check first char [14:57:43]Sock 7.First char is OK [14:57:43]request: POST /json_proto HTTP/1.0 [14:57:43]Method: POST [14:57:43]URL: /json_proto [14:57:43]Method is POST - this is cgi request [14:57:43]url: /json_proto [14:57:43]query_string will be loaded in cgi processing [14:57:43]execute_cgi json_proto POST (null) [14:57:43]execute_cgi path=json_proto method=POST [14:57:43]POST find Content-Length [14:57:43]Host: 172.17.50.3:8080 [14:57:43]Content-Length: 770 [14:57:43]Content-Type: application/json [14:57:43] [14:57:43]POST finish read [14:57:43]Found Content-Length = 770 [14:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886438", "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 }]} ], "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:57:43]execute_script... [14:57: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)2886438", "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 }]} ], "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:57:43]POST & json_proto [14:57:43]process_json_proto [14:57:43]json parsed OK: [14:57:43]protocol is kg_v1.0 [14:57:43]action value=close_receipt [14:57:43]process_action close_receipt [14:57:43]cmd_close_receipt [14:57:43]MH_GetDate [14:57:43]Write to MH i2c: F0 00 00 0D 11 0D [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 09 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: F0 09 00 0D 11 00 E9 0E 19 67 6B 98 1E 66 14 [14:57:43]GetLastDocTimeStamp 1729695167 [14:57:43]current date 1729695465 [14:57:43]FM_GetShiftState [14:57:43]SAM_PROTO_GetShiftState [14:57:43]wFMCommunicate request_size=4 [14:57:43]MH_SAM_APDU [14:57:43]CAPDU: 80 13 01 00 [14:57:43]Write to MH i2c: E2 08 00 0E 11 80 13 01 00 00 00 00 00 9C [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:43]Read from MH i2c: E2 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 0E 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 29 [14:57:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:57:43]wFMCommunicate OK [14:57:43]SAM_PROTO_GetShiftState done [14:57:43]FM_GetShiftState done [14:57:43]opened in 1729642435 [14:57:43]opened+sec_in_day 1729728835 [14:57:43]quantity*price = 100021 [14:57:43]sum+1 = 100023 [14:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 178 23.10.2024 14:57 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70662 ФПД: 39624179083836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70662&fm=39624179083836&tin=02508201610067®Number=0000000000156251&sum=100022 [14:57:44]StoreToDocumentArchive [14:57:44]shift 196 fd 70662 [14:57:44]save to /storage/0196/doc_00070662 [14:57:44]save last doc name /storage/0196/doc_00070662 to /storage/kkm_last_doc_name [14:57:44]save OK [14:57:44]Clear old archive folders... [14:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:44]tlvbuf is B6ED5570 [14:57:44]SAM_PROTO_ClearQueue [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 09 00 00 [14:57:44]Write to MH i2c: E2 08 00 1B 11 80 09 00 00 00 00 00 00 9E [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]SAM_PROTO_ClearQueue done [14:57:44]KKMCreateOFDPacket [14:57:44]OFDProtocolAddRootSTLVToBuf [14:57:44]FM_MakeSignedData [14:57:44]FM_MakeSignedData [14:57:44]SAM_PROTO_SignData [14:57:44]wFMCommunicate request_size=4 [14:57:44]MH_SAM_APDU [14:57:44]CAPDU: 80 0D 01 02 [14:57:44]Write to MH i2c: E2 08 00 1C 11 80 0D 01 02 00 00 00 00 A6 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:44]Read from MH i2c: E2 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 [14:57:44]MH_I2C_Read... [14:57:44]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [14:57:44]RAPDU: 90 00 [14:57:44]wFMCommunicate OK [14:57:44]wFMCommunicate request_size=255 [14:57:44]MH_SAM_APDU [14:57: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 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 B2 00 00 00 F4 03 04 00 E9 0E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 24 [14:57:44]Write to MH i2c: E2 02 01 1D 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 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 B2 00 00 00 F4 03 04 00 E9 0E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 24 00 00 A4 [14:57:44]Write i2c OK [14:57:44]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]wFMCommunicate request_size=10 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 0D 02 02 05 09 B9 1E 6A 3C [14:57:45]Write to MH i2c: E2 0D 00 1E 11 80 0D 02 02 05 00 09 B9 1E 6A 3C 00 00 39 [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [14:57:45]RAPDU: 90 00 [14:57:45]wFMCommunicate OK [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 0D 03 02 [14:57:45]Write to MH i2c: E2 08 00 1F 11 80 0D 03 02 00 00 00 00 AB [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0B 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0B 00 1F 11 00 E1 FA 89 20 D8 2B 35 03 90 00 6B [14:57:45]RAPDU: E1 FA 89 20 D8 2B 35 03 90 00 [14:57:45]wFMCommunicate OK [14:57:45]SAM_PROTO_SignData done [14:57:45]FM_MakeSignedData done [14:57:45]CreateOFDProtocolMessage [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 11 00 00 [14:57:45]Write to MH i2c: E2 08 00 20 11 80 11 00 00 00 00 00 00 AB [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 17 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 17 00 20 11 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: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 [14:57:45]wFMCommunicate OK [14:57:45]CreateOFDProtocolMessage done [14:57:45]OFDSenderStorePacket 70662 [14:57:45]StoreOFDPacket docnum=70662 [14:57: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 4C 4B 07 01 E4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 E9 0E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 24 09 B9 1E 6A 3C E1 FA 89 20 D8 2B 35 03 [14:57:45]CheckFolder [14:57:45]dirname=/storage/ofd_packets [14:57:45]CheckFolder done [14:57:45]ProducePacketName [14:57:45]name=ofd_packets/00070662 [14:57:45]NVStorageSaveData ofd_packets/00070662 [14:57:45]File name is /storage/ofd_packets/00070662 [14:57:45]Write 301 bytes [14:57:45]NVStorageSaveData done [14:57:45]OFDSenderStorePacket done [14:57:45]KKMCreateOFDPacket done [14:57:45]NVStorageSaveData kkm_last_timestamp [14:57:45]File name is /storage/kkm_last_timestamp [14:57:45]Write 4 bytes [14:57:45]NVStorageSaveData done [14:57:45]ExternCall_PrintAddStr [14:57:45]wPrintStart [14:57:45]Write to MH i2c: 01 00 00 21 11 32 [14:57:45]OFD Sender: Processing packet 70662 [packets to send 18, broken 17] [14:57:45]ProducePacketName [14:57:45]name=ofd_packets/00070662 [14:57:45]OFD Sender: To server: pG, [14:57:45]CommunicateWithHost lk.salyk.kg:30040 [14:57:45]ConnectInit lk.salyk.kg [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: 01 07 00 21 11 00 00 00 00 00 FF 0F 47 [14:57:45]RasterBufferAndPrint [14:57:45]line Счет N : (1)2886438 [14:57:45]line ИНН: 02508201610067 [14:57:45]line Контрольно-Кассовый Чек [14:57:45]line ПРОДАЖА [14:57:45]line ТРК (МРК, ГНК) : 13 [14:57:45]line Товар: 2710124500 [14:57:45]line Аи-95-К-5 [14:57:45]line 13.480 * 74.20 [14:57:45]line = 1000.22 [14:57:45]line НДС 12% НСП 1% [14:57:45]line > о реализуемом товаре [14:57:45]line ИТОГО: 1000.22 [14:57:45]line НСП 1% : 8.85 [14:57:45]line НДС 12% : 106.22 [14:57:45]line Наличными: 0.00 [14:57:45]line Безнал.: 1000.22 [14:57:45]line Место: АЗС № 85 "Партнер Нефть" [14:57:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:57:45]line СНО: Общий режим [14:57:45]line Чек 178 23.10.2024 14:57 [14:57:45]line Смена: 196 ФФД: 1.0 [14:57:45]line ЗНМ: 0300000167 [14:57:45]line РНМ: 0000000000156251 [14:57:45]line Версия ККМ: v1.0 [14:57:45]line Платежная система: Mbank [14:57:45]line ФМ: 0000000000963346 [14:57:45]line ФД: 70662 [14:57:45]line ФПД: 39624179083836 [14:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70662&fm=39624179083836&tin=02508201610067®Number=0000000000156251&sum=100022 [14:57:45]Connected sock=10 [14:57: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 4C 4B 07 01 E4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 E9 0E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 24 09 B9 1E 6A 3C E1 FA 89 20 D8 2B 35 03 [14:57:45]written 0, free lines is 4095 [14:57: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 50 AB 47 00 2E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 86 B8 18 67 B6 04 01 00 00 41 64 28 8D 5C 48 27 63 [14:57:45]CommunicateWithHost err = 0 [14:57:45]CheckOFDResponse [14:57:45]1017 (14) - 77093643461234 [14:57:45]1041 (16) - 0000000000963346 [14:57:45]1040 (4) - 70662 [14:57:45]1012 (4) - 23.10.2024 08:49 [14:57:45]1206 (1) - 0 [14:57:45]OFD Sender: Remove packet 70662 [14:57:45]ProducePacketName [14:57:45]name=ofd_packets/00070662 [14:57:45]NVStorageDeleteData [14:57:46]Write to MH i2c: 01 00 00 4A 11 5B [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 07 0D 76 [14:57:46]RasterBufferAndPrint [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]line [14:57:46]written 0, free lines is 3341 [14:57:46]MH_Cut [14:57:46]Write to MH i2c: D1 01 00 51 11 01 34 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 01 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: D1 01 00 51 11 00 33 [14:57:46]Write to MH i2c: 01 00 00 52 11 63 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]OFD Sender: No OFD packet to send [14:57:46]*** Cut start [14:57:46]*** Partial cut [14:57:46]*** CUTSNS_PIN = 1 [14:57:46]*** CUTSNS_PIN = 0 [14:57:47]*** Brake cut motor [14:57:47]Read from MH i2c: 01 [14:57:47]MH_I2C_Read... [14:57:47]*** Stop cut motor [14:57:47]*** Cut end [14:57:47]Read from MH i2c: 01 07 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 FF 0F 78 [14:57:47]process_action close_receipt done [14:57:47]requested_data is exist [14:57:47]produce_requested_data [14:57:47]requested_item fm.sn is exist - process it [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 11 00 00 [14:57:47]Write to MH i2c: E2 08 00 53 11 80 11 00 00 00 00 00 00 DE [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 53 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [14: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 [14:57:47]wFMCommunicate OK [14:57:47]requested_item fd.num is exist - process it [14:57:47]SAM_PROTO_GetFieldsCounters [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 13 00 00 [14:57:47]Write to MH i2c: E2 08 00 54 11 80 13 00 00 00 00 00 00 E1 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 62 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 62 00 54 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 06 14 01 00 0E 04 04 00 C4 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 F1 [14:57: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 06 14 01 00 0E 04 04 00 C4 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 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_GetFieldsCounters done [14:57:47]requested_item shift.num is exist - process it [14:57:47]requested_item shift.opened is exist - process it [14:57:47]req_shift_opened [14:57:47]FM_GetShiftState [14:57:47]SAM_PROTO_GetShiftState [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 13 01 00 [14:57:47]Write to MH i2c: E2 08 00 55 11 80 13 01 00 00 00 00 00 E3 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 55 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 70 [14:57:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_GetShiftState done [14:57:47]FM_GetShiftState done [14:57:47]req_shift_opened done [14:57:47]requested_item shift.open_date is exist - process it [14:57:47]req_shift_open_date [14:57:47]req_shift_open_date done [14:57:47]produce_requested_data done [14:57:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70662,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:57:47]process_action_free close_receipt [14:57:47]json_value_free [14:57:47]json_value_free done [14:57:47]process_json_proto returns [14:57:47]Send response to host [14:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70662,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:57:47]free response buf [14:57:47]execute_script done [14:57:47]execute_script returns [14:57:47]free content buf [14:57:47]Sock 7.Close socket [14:57:47]Sock 7.Thread stoped [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:30]accept exits with 9 [14:58:30]New connection [14:58:30]New thread 3066891620 created [14:58:30]Thread 3067034980 joined [14:58:30]Waiting for new connection... [14:58:30] Sock 9.Parse request [14:58:30]Sock 9.Check first char [14:58:30]Sock 9.First char is OK [14:58:30]request: POST /json_proto HTTP/1.0 [14:58:30]Method: POST [14:58:30]URL: /json_proto [14:58:30]Method is POST - this is cgi request [14:58:30]url: /json_proto [14:58:30]query_string will be loaded in cgi processing [14:58:30]execute_cgi json_proto POST (null) [14:58:30]execute_cgi path=json_proto method=POST [14:58:30]POST find Content-Length [14:58:30]Host: 172.17.50.3:8080 [14:58:30]Content-Length: 678 [14:58:30]Content-Type: application/json [14:58:30] [14:58:30]POST finish read [14:58:30]Found Content-Length = 678 [14:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886439", "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" : 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" ] } } [14:58:30]execute_script... [14:58: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)2886439", "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" : 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" ] } } [14:58:30]POST & json_proto [14:58:30]process_json_proto [14:58:30]json parsed OK: [14:58:30]protocol is kg_v1.0 [14:58:30]action value=close_receipt [14:58:30]process_action close_receipt [14:58:30]cmd_close_receipt [14:58:30]MH_GetDate [14:58:30]Write to MH i2c: F0 00 00 56 11 56 [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: F0 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: F0 09 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: F0 09 00 56 11 00 17 0F 19 67 6B 98 1E 66 8C [14:58:30]GetLastDocTimeStamp 1729695465 [14:58:30]current date 1729695511 [14:58:30]FM_GetShiftState [14:58:30]SAM_PROTO_GetShiftState [14:58:30]wFMCommunicate request_size=4 [14:58:30]MH_SAM_APDU [14:58:30]CAPDU: 80 13 01 00 [14:58:30]Write to MH i2c: E2 08 00 57 11 80 13 01 00 00 00 00 00 E5 [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 0E 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 0E 00 57 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 72 [14:58:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:58:30]wFMCommunicate OK [14:58:30]SAM_PROTO_GetShiftState done [14:58:30]FM_GetShiftState done [14:58:30]opened in 1729642435 [14:58:30]opened+sec_in_day 1729728835 [14:58:30]quantity*price = 50010 [14:58:30]sum+1 = 50012 [14:58:30]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 СНО: Общий режим Чек 179 23.10.2024 14:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70663 ФПД: 80727183243558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70663&fm=80727183243558&tin=02508201610067®Number=0000000000156251&sum=50000 [14:58:31]StoreToDocumentArchive [14:58:31]shift 196 fd 70663 [14:58:31]save to /storage/0196/doc_00070663 [14:58:31]save last doc name /storage/0196/doc_00070663 to /storage/kkm_last_doc_name [14:58:31]save OK [14:58:31]Clear old archive folders... [14:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:31]tlvbuf is 0014B9B0 [14:58:31]SAM_PROTO_ClearQueue [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 09 00 00 [14:58:31]Write to MH i2c: E2 08 00 64 11 80 09 00 00 00 00 00 00 E7 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [14:58:31]RAPDU: 90 00 [14:58:31]wFMCommunicate OK [14:58:31]SAM_PROTO_ClearQueue done [14:58:31]KKMCreateOFDPacket [14:58:31]OFDProtocolAddRootSTLVToBuf [14:58:31]FM_MakeSignedData [14:58:31]FM_MakeSignedData [14:58:31]SAM_PROTO_SignData [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 0D 01 02 [14:58:31]Write to MH i2c: E2 08 00 65 11 80 0D 01 02 00 00 00 00 EF [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [14:58:31]RAPDU: 90 00 [14:58:31]wFMCommunicate OK [14:58:31]wFMCommunicate request_size=255 [14:58:31]MH_SAM_APDU [14:58: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 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 B3 00 00 00 F4 03 04 00 18 0F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 [14:58:31]Write to MH i2c: E2 02 01 66 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 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 B3 00 00 00 F4 03 04 00 18 0F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 00 00 D3 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [14:58:31]RAPDU: 90 00 [14:58:31]wFMCommunicate OK [14:58:31]wFMCommunicate request_size=10 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 0D 02 02 05 6B C3 14 B9 26 [14:58:31]Write to MH i2c: E2 0D 00 67 11 80 0D 02 02 05 00 6B C3 14 B9 26 00 00 1D [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [14:58:31]RAPDU: 90 00 [14:58:31]wFMCommunicate OK [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 0D 03 02 [14:58:31]Write to MH i2c: E2 08 00 68 11 80 0D 03 02 00 00 00 00 F4 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0B 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0B 00 68 11 00 A4 E6 69 AC 85 36 71 B4 90 00 74 [14:58:32]RAPDU: A4 E6 69 AC 85 36 71 B4 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_SignData done [14:58:32]FM_MakeSignedData done [14:58:32]CreateOFDProtocolMessage [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 11 00 00 [14:58:32]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [14:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:58:32]wFMCommunicate OK [14:58:32]CreateOFDProtocolMessage done [14:58:32]OFDSenderStorePacket 70663 [14:58:32]StoreOFDPacket docnum=70663 [14:58: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 99 A4 07 01 D4 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 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 B3 00 00 00 F4 03 04 00 18 0F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 6B C3 14 B9 26 A4 E6 69 AC 85 36 71 B4 [14:58:32]CheckFolder [14:58:32]dirname=/storage/ofd_packets [14:58:32]CheckFolder done [14:58:32]ProducePacketName [14:58:32]name=ofd_packets/00070663 [14:58:32]NVStorageSaveData ofd_packets/00070663 [14:58:32]File name is /storage/ofd_packets/00070663 [14:58:32]Write 301 bytes [14:58:32]NVStorageSaveData done [14:58:32]OFDSenderStorePacket done [14:58:32]KKMCreateOFDPacket done [14:58:32]NVStorageSaveData kkm_last_timestamp [14:58:32]File name is /storage/kkm_last_timestamp [14:58:32]Write 4 bytes [14:58:32]NVStorageSaveData done [14:58:32]ExternCall_PrintAddStr [14:58:32]wPrintStart [14:58:32]Write to MH i2c: 01 00 00 6A 11 7B [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 07 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 FF 0F 90 [14:58:32]RasterBufferAndPrint [14:58:32]line Счет N : (1)2886439 [14:58:32]line ИНН: 02508201610067 [14:58:32]line Контрольно-Кассовый Чек [14:58:32]line ПРОДАЖА [14:58:32]line ТРК (МРК, ГНК) : 43 [14:58:32]line Товар: 2710124500 [14:58:32]line Аи-95-К-5 [14:58:32]line 6.740 * 74.20 [14:58:32]line = 500.11 [14:58:32]line НДС 12% НСП 1% [14:58:32]line > о реализуемом товаре [14:58:32]line ОКРУГЛЕНИЕ: -0.11 [14:58:32]line ИТОГО: 500.00 [14:58:32]line Внесено: 500.00 [14:58:32]line СДАЧА: 0.00 [14:58:32]line НСП 1% : 4.43 [14:58:32]line НДС 12% : 53.11 [14:58:32]line Наличными: 500.00 [14:58:32]line Безнал.: 0.00 [14:58:32]line Место: АЗС № 85 "Партнер Нефть" [14:58:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:58:32]line СНО: Общий режим [14:58:32]line Чек 179 23.10.2024 14:58 [14:58:32]line Смена: 196 ФФД: 1.0 [14:58:32]line ЗНМ: 0300000167 [14:58:32]line РНМ: 0000000000156251 [14:58:32]line Версия ККМ: v1.0 [14:58:32]line ФМ: 0000000000963346 [14:58:32]line ФД: 70663 [14:58:32]line ФПД: 80727183243558 [14:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70663&fm=80727183243558&tin=02508201610067®Number=0000000000156251&sum=50000 [14:58:32]OFD Sender: Processing packet 70663 [packets to send 18, broken 17] [14:58:32]ProducePacketName [14:58:32]name=ofd_packets/00070663 [14:58:32]OFD Sender: To server: pG, [14:58:32]CommunicateWithHost lk.salyk.kg:30040 [14:58:32]ConnectInit lk.salyk.kg [14:58:32]written 0, free lines is 4095 [14:58:32]Connected sock=10 [14:58: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 99 A4 07 01 D4 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 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 B3 00 00 00 F4 03 04 00 18 0F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 6B C3 14 B9 26 A4 E6 69 AC 85 36 71 B4 [14:58: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 F3 47 00 A9 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 07 14 01 00 F4 03 04 00 B5 B8 18 67 B6 04 01 00 00 3A B4 4B 67 47 B0 3E 62 [14:58:32]CommunicateWithHost err = 0 [14:58:32]CheckOFDResponse [14:58:32]1017 (14) - 77093643461234 [14:58:32]1041 (16) - 0000000000963346 [14:58:32]1040 (4) - 70663 [14:58:32]1012 (4) - 23.10.2024 08:49 [14:58:32]1206 (1) - 0 [14:58:32]OFD Sender: Remove packet 70663 [14:58:32]ProducePacketName [14:58:32]name=ofd_packets/00070663 [14:58:32]NVStorageDeleteData [14:58:32]Write to MH i2c: 01 00 00 95 11 A6 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 07 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 DD 0C 96 [14:58:32]RasterBufferAndPrint [14:58:32]line [14:58:32]line [14:58:32]line [14:58:32]line [14:58:32]line [14:58:32]written 0, free lines is 3300 [14:58:32]MH_Cut [14:58:32]Write to MH i2c: D1 01 00 9C 11 01 7F [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: D1 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: D1 01 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: D1 01 00 9C 11 00 7E [14:58:32]Write to MH i2c: 01 00 00 9D 11 AE [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:33]OFD Sender: No OFD packet to send [14:58:33]*** Cut start [14:58:33]*** Partial cut [14:58:33]*** CUTSNS_PIN = 1 [14:58:33]*** CUTSNS_PIN = 0 [14:58:33]*** Brake cut motor [14:58:34]Read from MH i2c: 01 [14:58:34]*** Stop cut motor [14:58:34]*** Cut end [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 9D 11 00 00 00 00 00 FF 0F C3 [14:58:34]process_action close_receipt done [14:58:34]requested_data is exist [14:58:34]produce_requested_data [14:58:34]requested_item fm.sn is exist - process it [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 11 00 00 [14:58:34]Write to MH i2c: E2 08 00 9E 11 80 11 00 00 00 00 00 00 29 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 17 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 17 00 9E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [14:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:58:34]wFMCommunicate OK [14:58:34]requested_item fd.num is exist - process it [14:58:34]SAM_PROTO_GetFieldsCounters [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 00 00 [14:58:34]Write to MH i2c: E2 08 00 9F 11 80 13 00 00 00 00 00 00 2C [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 62 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 62 00 9F 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 07 14 01 00 0E 04 04 00 C4 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 40 [14:58: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 07 14 01 00 0E 04 04 00 C4 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 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetFieldsCounters done [14:58:34]requested_item shift.num is exist - process it [14:58:34]requested_item shift.opened is exist - process it [14:58:34]req_shift_opened [14:58:34]FM_GetShiftState [14:58:34]SAM_PROTO_GetShiftState [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 01 00 [14:58:34]Write to MH i2c: E2 08 00 A0 11 80 13 01 00 00 00 00 00 2E [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 A0 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BB [14:58:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetShiftState done [14:58:34]FM_GetShiftState done [14:58:34]req_shift_opened done [14:58:34]requested_item shift.open_date is exist - process it [14:58:34]req_shift_open_date [14:58:34]req_shift_open_date done [14:58:34]produce_requested_data done [14:58:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70663,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [14:58:34]process_action_free close_receipt [14:58:34]json_value_free [14:58:34]json_value_free done [14:58:34]process_json_proto returns [14:58:34]Send response to host [14:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70663,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [14:58:34]free response buf [14:58:34]execute_script done [14:58:34]execute_script returns [14:58:34]free content buf [14:58:34]Sock 9.Close socket [14:58:34]Sock 9.Thread stoped [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:12]accept exits with 7 [15:06:12]New connection [15:06:12]New thread 3067034980 created [15:06:12]Thread 3066891620 joined [15:06:12]Waiting for new connection... [15:06:12] Sock 7.Parse request [15:06:12]Sock 7.Check first char [15:06:12]Sock 7.First char is OK [15:06:12]request: POST /json_proto HTTP/1.0 [15:06:12]Method: POST [15:06:12]URL: /json_proto [15:06:12]Method is POST - this is cgi request [15:06:12]url: /json_proto [15:06:12]query_string will be loaded in cgi processing [15:06:12]execute_cgi json_proto POST (null) [15:06:12]execute_cgi path=json_proto method=POST [15:06:12]POST find Content-Length [15:06:12]Host: 172.17.50.3:8080 [15:06:12]Content-Length: 678 [15:06:12]Content-Type: application/json [15:06:12] [15:06:12]POST finish read [15:06:12]Found Content-Length = 678 [15:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886440", "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" ] } } [15:06:12]execute_script... [15:06: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)2886440", "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" ] } } [15:06:12]POST & json_proto [15:06:12]process_json_proto [15:06:12]json parsed OK: [15:06:12]protocol is kg_v1.0 [15:06:12]action value=close_receipt [15:06:12]process_action close_receipt [15:06:12]cmd_close_receipt [15:06:12]MH_GetDate [15:06:12]Write to MH i2c: F0 00 00 A1 11 A1 [15:06:12]Write i2c OK [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: F0 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: F0 09 00 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: F0 09 00 A1 11 00 E6 10 19 67 6B 98 1E 66 A7 [15:06:12]GetLastDocTimeStamp 1729695512 [15:06:12]current date 1729695974 [15:06:12]FM_GetShiftState [15:06:12]SAM_PROTO_GetShiftState [15:06:12]wFMCommunicate request_size=4 [15:06:12]MH_SAM_APDU [15:06:12]CAPDU: 80 13 01 00 [15:06:12]Write to MH i2c: E2 08 00 A2 11 80 13 01 00 00 00 00 00 30 [15:06:12]Write i2c OK [15:06:12]MH_I2C_Read... [15:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:12]Read from MH i2c: E2 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: E2 0E 00 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: E2 0E 00 A2 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BD [15:06:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:06:12]wFMCommunicate OK [15:06:12]SAM_PROTO_GetShiftState done [15:06:12]FM_GetShiftState done [15:06:12]opened in 1729642435 [15:06:12]opened+sec_in_day 1729728835 [15:06:12]quantity*price = 60009 [15:06:12]sum+1 = 60010 [15:06:12]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 СНО: Общий режим Чек 180 23.10.2024 15:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70664 ФПД: 66052608426135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70664&fm=66052608426135&tin=02508201610067®Number=0000000000156251&sum=60000 [15:06:13]StoreToDocumentArchive [15:06:13]shift 196 fd 70664 [15:06:13]save to /storage/0196/doc_00070664 [15:06:13]save last doc name /storage/0196/doc_00070664 to /storage/kkm_last_doc_name [15:06:13]save OK [15:06:13]Clear old archive folders... [15:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:13]tlvbuf is 0012AFA0 [15:06:13]SAM_PROTO_ClearQueue [15:06:13]wFMCommunicate request_size=4 [15:06:13]MH_SAM_APDU [15:06:13]CAPDU: 80 09 00 00 [15:06:13]Write to MH i2c: E2 08 00 AF 11 80 09 00 00 00 00 00 00 32 [15:06:13]Write i2c OK [15:06:13]MH_I2C_Read... [15:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:13]Read from MH i2c: E2 [15:06:13]MH_I2C_Read... [15:06:13]Read from MH i2c: E2 03 00 [15:06:13]MH_I2C_Read... [15:06:13]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [15:06:13]RAPDU: 90 00 [15:06:13]wFMCommunicate OK [15:06:13]SAM_PROTO_ClearQueue done [15:06:13]KKMCreateOFDPacket [15:06:13]OFDProtocolAddRootSTLVToBuf [15:06:13]FM_MakeSignedData [15:06:13]FM_MakeSignedData [15:06:13]SAM_PROTO_SignData [15:06:13]wFMCommunicate request_size=4 [15:06:13]MH_SAM_APDU [15:06:13]CAPDU: 80 0D 01 02 [15:06:13]Write to MH i2c: E2 08 00 B0 11 80 0D 01 02 00 00 00 00 3A [15:06:13]Write i2c OK [15:06:13]MH_I2C_Read... [15:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:13]Read from MH i2c: E2 [15:06:13]MH_I2C_Read... [15:06:13]Read from MH i2c: E2 03 00 [15:06:13]MH_I2C_Read... [15:06:13]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [15:06:13]RAPDU: 90 00 [15:06:13]wFMCommunicate OK [15:06:13]wFMCommunicate request_size=255 [15:06:13]MH_SAM_APDU [15:06: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 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 B4 00 00 00 F4 03 04 00 E6 10 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C [15:06:14]Write to MH i2c: E2 02 01 B1 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 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 B4 00 00 00 F4 03 04 00 E6 10 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C 00 00 E7 [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 03 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 03 00 B1 11 00 90 00 36 [15:06:14]RAPDU: 90 00 [15:06:14]wFMCommunicate OK [15:06:14]wFMCommunicate request_size=10 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 0D 02 02 05 13 12 43 00 97 [15:06:14]Write to MH i2c: E2 0D 00 B2 11 80 0D 02 02 05 00 13 12 43 00 97 00 00 46 [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 03 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 03 00 B2 11 00 90 00 37 [15:06:14]RAPDU: 90 00 [15:06:14]wFMCommunicate OK [15:06:14]wFMCommunicate request_size=4 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 0D 03 02 [15:06:14]Write to MH i2c: E2 08 00 B3 11 80 0D 03 02 00 00 00 00 3F [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 0B 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 0B 00 B3 11 00 F6 BF D3 4B 27 D8 CC F2 90 00 D0 [15:06:14]RAPDU: F6 BF D3 4B 27 D8 CC F2 90 00 [15:06:14]wFMCommunicate OK [15:06:14]SAM_PROTO_SignData done [15:06:14]FM_MakeSignedData done [15:06:14]CreateOFDProtocolMessage [15:06:14]wFMCommunicate request_size=4 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 11 00 00 [15:06:14]Write to MH i2c: E2 08 00 B4 11 80 11 00 00 00 00 00 00 3F [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 17 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 17 00 B4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [15: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 [15:06:14]wFMCommunicate OK [15:06:14]CreateOFDProtocolMessage done [15:06:14]OFDSenderStorePacket 70664 [15:06:14]StoreOFDPacket docnum=70664 [15:06: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 3E 47 07 01 EA 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 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 B4 00 00 00 F4 03 04 00 E6 10 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C 13 12 43 00 97 F6 BF D3 4B 27 D8 CC F2 [15:06:14]CheckFolder [15:06:14]dirname=/storage/ofd_packets [15:06:14]CheckFolder done [15:06:14]ProducePacketName [15:06:14]name=ofd_packets/00070664 [15:06:14]NVStorageSaveData ofd_packets/00070664 [15:06:14]File name is /storage/ofd_packets/00070664 [15:06:14]Write 301 bytes [15:06:14]NVStorageSaveData done [15:06:14]OFDSenderStorePacket done [15:06:14]KKMCreateOFDPacket done [15:06:14]NVStorageSaveData kkm_last_timestamp [15:06:14]File name is /storage/kkm_last_timestamp [15:06:14]Write 4 bytes [15:06:14]NVStorageSaveData done [15:06:14]ExternCall_PrintAddStr [15:06:14]wPrintStart [15:06:14]Write to MH i2c: 01 00 00 B5 11 C6 [15:06:14]OFD Sender: Processing packet 70664 [packets to send 18, broken 17] [15:06:14]ProducePacketName [15:06:14]name=ofd_packets/00070664 [15:06:14]OFD Sender: To server: pG, [15:06:14]CommunicateWithHost lk.salyk.kg:30040 [15:06:14]ConnectInit lk.salyk.kg [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: 01 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: 01 07 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 FF 0F DB [15:06:14]RasterBufferAndPrint [15:06:14]line Счет N : (1)2886440 [15:06:14]line ИНН: 02508201610067 [15:06:14]line Контрольно-Кассовый Чек [15:06:14]line ПРОДАЖА [15:06:14]line ТРК (МРК, ГНК) : 12 [15:06:14]line Товар: 2710124130 [15:06:14]line Аи-92-К-5 [15:06:14]line 8.970 * 66.90 [15:06:14]line = 600.09 [15:06:14]line НДС 12% НСП 1% [15:06:14]line > о реализуемом товаре [15:06:14]line ОКРУГЛЕНИЕ: -0.09 [15:06:14]line ИТОГО: 600.00 [15:06:14]line Внесено: 600.00 [15:06:14]line СДАЧА: 0.00 [15:06:14]line НСП 1% : 5.31 [15:06:14]line НДС 12% : 63.73 [15:06:14]line Наличными: 600.00 [15:06:14]line Безнал.: 0.00 [15:06:14]line Место: АЗС № 85 "Партнер Нефть" [15:06:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:06:14]line СНО: Общий режим [15:06:14]line Чек 180 23.10.2024 15:06 [15:06:14]line Смена: 196 ФФД: 1.0 [15:06:14]line ЗНМ: 0300000167 [15:06:14]line РНМ: 0000000000156251 [15:06:14]line Версия ККМ: v1.0 [15:06:14]line ФМ: 0000000000963346 [15:06:14]line ФД: 70664 [15:06:14]line ФПД: 66052608426135 [15:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70664&fm=66052608426135&tin=02508201610067®Number=0000000000156251&sum=60000 [15:06:14]Connected sock=10 [15:06: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 3E 47 07 01 EA 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 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 B4 00 00 00 F4 03 04 00 E6 10 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C 13 12 43 00 97 F6 BF D3 4B 27 D8 CC F2 [15:06:14]written 0, free lines is 4095 [15:06: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 FB A0 47 00 F2 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 08 14 01 00 F4 03 04 00 83 BA 18 67 B6 04 01 00 00 DC DA 54 59 74 9A AB B0 [15:06:14]CommunicateWithHost err = 0 [15:06:14]CheckOFDResponse [15:06:14]1017 (14) - 77093643461234 [15:06:14]1041 (16) - 0000000000963346 [15:06:14]1040 (4) - 70664 [15:06:14]1012 (4) - 23.10.2024 08:57 [15:06:14]1206 (1) - 0 [15:06:14]OFD Sender: Remove packet 70664 [15:06:14]ProducePacketName [15:06:14]name=ofd_packets/00070664 [15:06:14]NVStorageDeleteData [15:06:15]Write to MH i2c: 01 00 00 E0 11 F1 [15:06:15]Write i2c OK [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: 01 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: 01 07 00 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 EE 0C F2 [15:06:15]RasterBufferAndPrint [15:06:15]line [15:06:15]line [15:06:15]line [15:06:15]line [15:06:15]line [15:06:15]written 0, free lines is 3316 [15:06:15]MH_Cut [15:06:15]Write to MH i2c: D1 01 00 E7 11 01 CA [15:06:15]Write i2c OK [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: D1 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: D1 01 00 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: D1 01 00 E7 11 00 C9 [15:06:15]Write to MH i2c: 01 00 00 E8 11 F9 [15:06:15]Write i2c OK [15:06:15]MH_I2C_Read... [15:06:15]OFD Sender: No OFD packet to send [15:06:15]*** Cut start [15:06:15]*** Partial cut [15:06:15]*** CUTSNS_PIN = 1 [15:06:16]*** CUTSNS_PIN = 0 [15:06:16]*** Brake cut motor [15:06:16]Read from MH i2c: 01 [15:06:16]MH_I2C_Read... [15:06:16]*** Stop cut motor [15:06:16]*** Cut end [15:06:16]Read from MH i2c: 01 07 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: 01 07 00 E8 11 00 00 00 00 00 FF 0F 0E [15:06:16]process_action close_receipt done [15:06:16]requested_data is exist [15:06:16]produce_requested_data [15:06:16]requested_item fm.sn is exist - process it [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 11 00 00 [15:06:16]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 17 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 17 00 E9 11 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:06: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:06:16]wFMCommunicate OK [15:06:16]requested_item fd.num is exist - process it [15:06:16]SAM_PROTO_GetFieldsCounters [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 13 00 00 [15:06:16]Write to MH i2c: E2 08 00 EA 11 80 13 00 00 00 00 00 00 77 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 62 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 62 00 EA 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 08 14 01 00 0E 04 04 00 C4 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 8F [15:06: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 08 14 01 00 0E 04 04 00 C4 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 [15:06:16]wFMCommunicate OK [15:06:16]SAM_PROTO_GetFieldsCounters done [15:06:16]requested_item shift.num is exist - process it [15:06:16]requested_item shift.opened is exist - process it [15:06:16]req_shift_opened [15:06:16]FM_GetShiftState [15:06:16]SAM_PROTO_GetShiftState [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 13 01 00 [15:06:16]Write to MH i2c: E2 08 00 EB 11 80 13 01 00 00 00 00 00 79 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0E 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0E 00 EB 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 06 [15:06:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:06:16]wFMCommunicate OK [15:06:16]SAM_PROTO_GetShiftState done [15:06:16]FM_GetShiftState done [15:06:16]req_shift_opened done [15:06:16]requested_item shift.open_date is exist - process it [15:06:16]req_shift_open_date [15:06:16]req_shift_open_date done [15:06:16]produce_requested_data done [15:06:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70664,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:06:16]process_action_free close_receipt [15:06:16]json_value_free [15:06:16]json_value_free done [15:06:16]process_json_proto returns [15:06:16]Send response to host [15:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70664,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:06:16]free response buf [15:06:16]execute_script done [15:06:16]execute_script returns [15:06:16]free content buf [15:06:16]Sock 7.Close socket [15:06:16]Sock 7.Thread stoped [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:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]accept exits with 9 [15:09:05]New connection [15:09:05]New thread 3066891620 created [15:09:05]Thread 3067034980 joined [15:09:05]Waiting for new connection... [15:09:05] Sock 9.Parse request [15:09:05]Sock 9.Check first char [15:09:05]Sock 9.First char is OK [15:09:05]request: POST /json_proto HTTP/1.0 [15:09:05]Method: POST [15:09:05]URL: /json_proto [15:09:05]Method is POST - this is cgi request [15:09:05]url: /json_proto [15:09:05]query_string will be loaded in cgi processing [15:09:05]execute_cgi json_proto POST (null) [15:09:05]execute_cgi path=json_proto method=POST [15:09:05]POST find Content-Length [15:09:05]Host: 172.17.50.3:8080 [15:09:05]Content-Length: 683 [15:09:05]Content-Type: application/json [15:09:05] [15:09:05]POST finish read [15:09:05]Found Content-Length = 683 [15:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886441", "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" ] } } [15:09:05]execute_script... [15:09: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)2886441", "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" ] } } [15:09:05]POST & json_proto [15:09:05]process_json_proto [15:09:05]json parsed OK: [15:09:05]protocol is kg_v1.0 [15:09:05]action value=close_receipt [15:09:05]process_action close_receipt [15:09:05]cmd_close_receipt [15:09:05]MH_GetDate [15:09:05]Write to MH i2c: F0 00 00 EC 11 EC [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 09 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 09 00 EC 11 00 92 11 19 67 6B 98 1E 66 9F [15:09:05]GetLastDocTimeStamp 1729695974 [15:09:05]current date 1729696146 [15:09:05]FM_GetShiftState [15:09:05]SAM_PROTO_GetShiftState [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 13 01 00 [15:09:05]Write to MH i2c: E2 08 00 ED 11 80 13 01 00 00 00 00 00 7B [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 ED 11 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 08 [15:09:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:09:05]wFMCommunicate OK [15:09:05]SAM_PROTO_GetShiftState done [15:09:05]FM_GetShiftState done [15:09:05]opened in 1729642435 [15:09:05]opened+sec_in_day 1729728835 [15:09:05]quantity*price = 100015 [15:09:05]sum+1 = 100017 [15:09:05]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 СНО: Общий режим Чек 181 23.10.2024 15:09 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70665 ФПД: 57535647319673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70665&fm=57535647319673&tin=02508201610067®Number=0000000000156251&sum=100000 [15:09:06]StoreToDocumentArchive [15:09:06]shift 196 fd 70665 [15:09:06]save to /storage/0196/doc_00070665 [15:09:06]save last doc name /storage/0196/doc_00070665 to /storage/kkm_last_doc_name [15:09:06]save OK [15:09:06]Clear old archive folders... [15:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:06]tlvbuf is B6ED51F0 [15:09:06]SAM_PROTO_ClearQueue [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 09 00 00 [15:09:06]Write to MH i2c: E2 08 00 FA 11 80 09 00 00 00 00 00 00 7D [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [15:09:06]RAPDU: 90 00 [15:09:06]wFMCommunicate OK [15:09:06]SAM_PROTO_ClearQueue done [15:09:06]KKMCreateOFDPacket [15:09:06]OFDProtocolAddRootSTLVToBuf [15:09:06]FM_MakeSignedData [15:09:06]FM_MakeSignedData [15:09:06]SAM_PROTO_SignData [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 0D 01 02 [15:09:06]Write to MH i2c: E2 08 00 FB 11 80 0D 01 02 00 00 00 00 85 [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [15:09:06]RAPDU: 90 00 [15:09:06]wFMCommunicate OK [15:09:06]wFMCommunicate request_size=255 [15:09:06]MH_SAM_APDU [15:09: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 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 B5 00 00 00 F4 03 04 00 93 11 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 [15:09:06]Write to MH i2c: E2 02 01 FC 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 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 B5 00 00 00 F4 03 04 00 93 11 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 00 00 F7 [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [15:09:06]RAPDU: 90 00 [15:09:06]wFMCommunicate OK [15:09:06]wFMCommunicate request_size=10 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 0D 02 02 05 54 0F D2 06 79 [15:09:06]Write to MH i2c: E2 0D 00 FD 11 80 0D 02 02 05 00 54 0F D2 06 79 00 00 46 [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 03 00 FD 11 00 90 00 82 [15:09:06]RAPDU: 90 00 [15:09:06]wFMCommunicate OK [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 0D 03 02 [15:09:06]Write to MH i2c: E2 08 00 FE 11 80 0D 03 02 00 00 00 00 8A [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 0B 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 0B 00 FE 11 00 41 A0 50 5B 25 96 42 61 90 00 75 [15:09:06]RAPDU: 41 A0 50 5B 25 96 42 61 90 00 [15:09:06]wFMCommunicate OK [15:09:06]SAM_PROTO_SignData done [15:09:06]FM_MakeSignedData done [15:09:06]CreateOFDProtocolMessage [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 11 00 00 [15:09:06]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 17 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 17 00 FF 11 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: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 [15:09:07]wFMCommunicate OK [15:09:07]CreateOFDProtocolMessage done [15:09:07]OFDSenderStorePacket 70665 [15:09:07]StoreOFDPacket docnum=70665 [15: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 1B D6 07 01 12 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 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 B5 00 00 00 F4 03 04 00 93 11 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 54 0F D2 06 79 41 A0 50 5B 25 96 42 61 [15:09:07]CheckFolder [15:09:07]dirname=/storage/ofd_packets [15:09:07]CheckFolder done [15:09:07]ProducePacketName [15:09:07]name=ofd_packets/00070665 [15:09:07]NVStorageSaveData ofd_packets/00070665 [15:09:07]File name is /storage/ofd_packets/00070665 [15:09:07]Write 301 bytes [15:09:07]NVStorageSaveData done [15:09:07]OFDSenderStorePacket done [15:09:07]KKMCreateOFDPacket done [15:09:07]NVStorageSaveData kkm_last_timestamp [15:09:07]File name is /storage/kkm_last_timestamp [15:09:07]Write 4 bytes [15:09:07]NVStorageSaveData done [15:09:07]ExternCall_PrintAddStr [15:09:07]wPrintStart [15:09:07]Write to MH i2c: 01 00 00 00 12 12 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [15:09:07]RasterBufferAndPrint [15:09:07]line Счет N : (1)2886441 [15:09:07]line ИНН: 02508201610067 [15:09:07]line Контрольно-Кассовый Чек [15:09:07]line ПРОДАЖА [15:09:07]line ТРК (МРК, ГНК) : 42 [15:09:07]line Товар: 2710124130 [15:09:07]line Аи-92-К-5 [15:09:07]line 14.950 * 66.90 [15:09:07]line = 1000.16 [15:09:07]line НДС 12% НСП 1% [15:09:07]line > о реализуемом товаре [15:09:07]line ОКРУГЛЕНИЕ: -0.16 [15:09:07]line ИТОГО: 1000.00 [15:09:07]line Внесено: 1000.00 [15:09:07]line СДАЧА: 0.00 [15:09:07]line НСП 1% : 8.85 [15:09:07]line НДС 12% : 106.21 [15:09:07]line Наличными: 1000.00 [15:09:07]line Безнал.: 0.00 [15:09:07]line Место: АЗС № 85 "Партнер Нефть" [15:09:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:09:07]line СНО: Общий режим [15:09:07]line Чек 181 23.10.2024 15:09 [15:09:07]line Смена: 196 ФФД: 1.0 [15:09:07]line ЗНМ: 0300000167 [15:09:07]line РНМ: 0000000000156251 [15:09:07]line Версия ККМ: v1.0 [15:09:07]line ФМ: 0000000000963346 [15:09:07]line ФД: 70665 [15:09:07]line ФПД: 57535647319673 [15:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70665&fm=57535647319673&tin=02508201610067®Number=0000000000156251&sum=100000 [15:09:07]OFD Sender: Processing packet 70665 [packets to send 18, broken 17] [15:09:07]ProducePacketName [15:09:07]name=ofd_packets/00070665 [15:09:07]OFD Sender: To server: pG, [15:09:07]CommunicateWithHost lk.salyk.kg:30040 [15:09:07]ConnectInit lk.salyk.kg [15:09:07]written 0, free lines is 4095 [15:09:07]Connected sock=10 [15:09: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 1B D6 07 01 12 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 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 B5 00 00 00 F4 03 04 00 93 11 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 54 0F D2 06 79 41 A0 50 5B 25 96 42 61 [15:09: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 C7 93 47 00 E3 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 09 14 01 00 F4 03 04 00 30 BB 18 67 B6 04 01 00 00 88 00 B3 C0 FA 01 CF 36 [15:09:07]CommunicateWithHost err = 0 [15:09:07]CheckOFDResponse [15:09:07]1017 (14) - 77093643461234 [15:09:07]1041 (16) - 0000000000963346 [15:09:07]1040 (4) - 70665 [15:09:07]1012 (4) - 23.10.2024 09:00 [15:09:07]1206 (1) - 0 [15:09:07]OFD Sender: Remove packet 70665 [15:09:07]ProducePacketName [15:09:07]name=ofd_packets/00070665 [15:09:07]NVStorageDeleteData [15:09:07]Write to MH i2c: 01 00 00 2B 12 3D [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 E6 0C 36 [15:09:07]RasterBufferAndPrint [15:09:07]line [15:09:07]line [15:09:07]line [15:09:07]line [15:09:07]line [15:09:07]written 0, free lines is 3308 [15:09:07]MH_Cut [15:09:07]Write to MH i2c: D1 01 00 32 12 01 16 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: D1 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: D1 01 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: D1 01 00 32 12 00 15 [15:09:07]Write to MH i2c: 01 00 00 33 12 45 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:08]OFD Sender: No OFD packet to send [15:09:08]*** Cut start [15:09:08]*** Partial cut [15:09:08]*** CUTSNS_PIN = 1 [15:09:08]*** CUTSNS_PIN = 0 [15:09:08]*** Brake cut motor [15:09:09]Read from MH i2c: 01 [15:09:09]MH_I2C_Read... [15:09:09]*** Stop cut motor [15:09:09]*** Cut end [15:09:09]Read from MH i2c: 01 07 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: 01 07 00 33 12 00 00 00 00 00 FF 0F 5A [15:09:09]process_action close_receipt done [15:09:09]requested_data is exist [15:09:09]produce_requested_data [15:09:09]requested_item fm.sn is exist - process it [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 11 00 00 [15:09:09]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 17 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [15:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:09:09]wFMCommunicate OK [15:09:09]requested_item fd.num is exist - process it [15:09:09]SAM_PROTO_GetFieldsCounters [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 13 00 00 [15:09:09]Write to MH i2c: E2 08 00 35 12 80 13 00 00 00 00 00 00 C3 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 62 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 62 00 35 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 09 14 01 00 0E 04 04 00 C4 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 DF [15:09: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 09 14 01 00 0E 04 04 00 C4 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 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_GetFieldsCounters done [15:09:09]requested_item shift.num is exist - process it [15:09:09]requested_item shift.opened is exist - process it [15:09:09]req_shift_opened [15:09:09]FM_GetShiftState [15:09:09]SAM_PROTO_GetShiftState [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 13 01 00 [15:09:09]Write to MH i2c: E2 08 00 36 12 80 13 01 00 00 00 00 00 C5 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:09]Read from MH i2c: E2 0E 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 0E 00 36 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 52 [15:09:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_GetShiftState done [15:09:09]FM_GetShiftState done [15:09:09]req_shift_opened done [15:09:09]requested_item shift.open_date is exist - process it [15:09:09]req_shift_open_date [15:09:09]req_shift_open_date done [15:09:09]produce_requested_data done [15:09:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70665,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:09:09]process_action_free close_receipt [15:09:09]json_value_free [15:09:09]json_value_free done [15:09:09]process_json_proto returns [15:09:09]Send response to host [15:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70665,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:09:09]free response buf [15:09:09]execute_script done [15:09:09]execute_script returns [15:09:09]free content buf [15:09:09]Sock 9.Close socket [15:09:09]Sock 9.Thread stoped [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]accept exits with 7 [15:13:38]New connection [15:13:38]New thread 3067034980 created [15:13:38]Thread 3066891620 joined [15:13:38]Waiting for new connection... [15:13:38] Sock 7.Parse request [15:13:38]Sock 7.Check first char [15:13:38]Sock 7.First char is OK [15:13:38]request: POST /json_proto HTTP/1.0 [15:13:38]Method: POST [15:13:38]URL: /json_proto [15:13:38]Method is POST - this is cgi request [15:13:38]url: /json_proto [15:13:38]query_string will be loaded in cgi processing [15:13:38]execute_cgi json_proto POST (null) [15:13:38]execute_cgi path=json_proto method=POST [15:13:38]POST find Content-Length [15:13:38]Host: 172.17.50.3:8080 [15:13:38]Content-Length: 683 [15:13:38]Content-Type: application/json [15:13:38] [15:13:38]POST finish read [15:13:38]Found Content-Length = 683 [15:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886442", "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" ] } } [15:13:38]execute_script... [15: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)2886442", "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" ] } } [15:13:38]POST & json_proto [15:13:38]process_json_proto [15:13:38]json parsed OK: [15:13:38]protocol is kg_v1.0 [15:13:38]action value=close_receipt [15:13:38]process_action close_receipt [15:13:38]cmd_close_receipt [15:13:38]MH_GetDate [15:13:38]Write to MH i2c: F0 00 00 37 12 38 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 09 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 09 00 37 12 00 A3 12 19 67 6B 98 1E 66 FD [15:13:38]GetLastDocTimeStamp 1729696147 [15:13:38]current date 1729696419 [15:13:38]FM_GetShiftState [15:13:38]SAM_PROTO_GetShiftState [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 13 01 00 [15:13:38]Write to MH i2c: E2 08 00 38 12 80 13 01 00 00 00 00 00 C7 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0E 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0E 00 38 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 54 [15:13:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:13:38]wFMCommunicate OK [15:13:38]SAM_PROTO_GetShiftState done [15:13:38]FM_GetShiftState done [15:13:38]opened in 1729642435 [15:13:38]opened+sec_in_day 1729728835 [15:13:38]quantity*price = 200031 [15:13:38]sum+1 = 200032 [15:13:38]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 СНО: Общий режим Чек 182 23.10.2024 15:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70666 ФПД: 246037739523237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151339&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70666&fm=246037739523237&tin=02508201610067®Number=0000000000156251&sum=200000 [15:13:39]StoreToDocumentArchive [15:13:39]shift 196 fd 70666 [15:13:39]save to /storage/0196/doc_00070666 [15:13:39]save last doc name /storage/0196/doc_00070666 to /storage/kkm_last_doc_name [15:13:39]save OK [15:13:39]Clear old archive folders... [15:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:39]tlvbuf is B6ED5350 [15:13:39]SAM_PROTO_ClearQueue [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 09 00 00 [15:13:39]Write to MH i2c: E2 08 00 45 12 80 09 00 00 00 00 00 00 C9 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]SAM_PROTO_ClearQueue done [15:13:39]KKMCreateOFDPacket [15:13:39]OFDProtocolAddRootSTLVToBuf [15:13:39]FM_MakeSignedData [15:13:39]FM_MakeSignedData [15:13:39]SAM_PROTO_SignData [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 01 02 [15:13:39]Write to MH i2c: E2 08 00 46 12 80 0D 01 02 00 00 00 00 D1 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=255 [15:13:39]MH_SAM_APDU [15:13: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 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 B6 00 00 00 F4 03 04 00 A3 12 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF [15:13:39]Write to MH i2c: E2 02 01 47 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 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 B6 00 00 00 F4 03 04 00 A3 12 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF 00 00 49 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 47 12 00 90 00 CD [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=10 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 02 02 05 C5 20 10 CC A5 [15:13:39]Write to MH i2c: E2 0D 00 48 12 80 0D 02 02 05 00 C5 20 10 CC A5 00 00 44 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 48 12 00 90 00 CE [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 03 02 [15:13:39]Write to MH i2c: E2 08 00 49 12 80 0D 03 02 00 00 00 00 D6 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 0B 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 0B 00 49 12 00 D6 EF DB 4C D2 A4 F7 79 90 00 A9 [15:13:39]RAPDU: D6 EF DB 4C D2 A4 F7 79 90 00 [15:13:39]wFMCommunicate OK [15:13:39]SAM_PROTO_SignData done [15:13:39]FM_MakeSignedData done [15:13:39]CreateOFDProtocolMessage [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 11 00 00 [15:13:39]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 17 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 17 00 4A 12 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:13: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:13:39]wFMCommunicate OK [15:13:39]CreateOFDProtocolMessage done [15:13:39]OFDSenderStorePacket 70666 [15:13:39]StoreOFDPacket docnum=70666 [15:13: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 DE 3D 07 01 B2 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 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 B6 00 00 00 F4 03 04 00 A3 12 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF C5 20 10 CC A5 D6 EF DB 4C D2 A4 F7 79 [15:13:39]CheckFolder [15:13:39]dirname=/storage/ofd_packets [15:13:39]CheckFolder done [15:13:39]ProducePacketName [15:13:39]name=ofd_packets/00070666 [15:13:39]NVStorageSaveData ofd_packets/00070666 [15:13:39]File name is /storage/ofd_packets/00070666 [15:13:39]Write 301 bytes [15:13:39]NVStorageSaveData done [15:13:39]OFDSenderStorePacket done [15:13:39]KKMCreateOFDPacket done [15:13:39]NVStorageSaveData kkm_last_timestamp [15:13:39]File name is /storage/kkm_last_timestamp [15:13:39]Write 4 bytes [15:13:39]NVStorageSaveData done [15:13:39]ExternCall_PrintAddStr [15:13:39]wPrintStart [15:13:39]Write to MH i2c: 01 00 00 4B 12 5D [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [15:13:39]RasterBufferAndPrint [15:13:39]line Счет N : (1)2886442 [15:13:39]line ИНН: 02508201610067 [15:13:39]line Контрольно-Кассовый Чек [15:13:39]line ПРОДАЖА [15:13:39]line ТРК (МРК, ГНК) : 32 [15:13:39]line Товар: 2710124130 [15:13:39]line Аи-92-К-5 [15:13:39]line 29.900 * 66.90 [15:13:39]line = 2000.31 [15:13:39]line НДС 12% НСП 1% [15:13:39]line > о реализуемом товаре [15:13:39]line ОКРУГЛЕНИЕ: -0.31 [15:13:39]line ИТОГО: 2000.00 [15:13:39]line Внесено: 2000.00 [15:13:39]line СДАЧА: 0.00 [15:13:39]line НСП 1% : 17.70 [15:13:39]line НДС 12% : 212.42 [15:13:39]line Наличными: 2000.00 [15:13:39]line Безнал.: 0.00 [15:13:39]line Место: АЗС № 85 "Партнер Нефть" [15:13:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:13:39]line СНО: Общий режим [15:13:39]line Чек 182 23.10.2024 15:13 [15:13:39]line Смена: 196 ФФД: 1.0 [15:13:39]line ЗНМ: 0300000167 [15:13:39]line РНМ: 0000000000156251 [15:13:39]line Версия ККМ: v1.0 [15:13:39]line ФМ: 0000000000963346 [15:13:39]line ФД: 70666 [15:13:39]line ФПД: 246037739523237 [15:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151339&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70666&fm=246037739523237&tin=02508201610067®Number=0000000000156251&sum=200000 [15:13:40]OFD Sender: Processing packet 70666 [packets to send 18, broken 17] [15:13:40]ProducePacketName [15:13:40]name=ofd_packets/00070666 [15:13:40]OFD Sender: To server: pG, [15:13:40]CommunicateWithHost lk.salyk.kg:30040 [15:13:40]ConnectInit lk.salyk.kg [15:13:40]written 0, free lines is 4095 [15:13:40]Connected sock=10 [15: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 0F 01 00 00 DE 3D 07 01 B2 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 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 B6 00 00 00 F4 03 04 00 A3 12 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF C5 20 10 CC A5 D6 EF DB 4C D2 A4 F7 79 [15: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 E0 84 47 00 B8 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 41 BC 18 67 B6 04 01 00 00 0E 63 E9 F6 6E F6 8A 9B [15:13:40]CommunicateWithHost err = 0 [15:13:40]CheckOFDResponse [15:13:40]1017 (14) - 77093643461234 [15:13:40]1041 (16) - 0000000000963346 [15:13:40]1040 (4) - 70666 [15:13:40]1012 (4) - 23.10.2024 09:05 [15:13:40]1206 (1) - 0 [15:13:40]OFD Sender: Remove packet 70666 [15:13:40]ProducePacketName [15:13:40]name=ofd_packets/00070666 [15:13:40]NVStorageDeleteData [15:13:40]Write to MH i2c: 01 00 00 76 12 88 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 07 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 EF 0C 8A [15:13:40]RasterBufferAndPrint [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]written 0, free lines is 3317 [15:13:40]MH_Cut [15:13:40]Write to MH i2c: D1 01 00 7D 12 01 61 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 01 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 01 00 7D 12 00 60 [15:13:40]Write to MH i2c: 01 00 00 7E 12 90 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]OFD Sender: No OFD packet to send [15:13:41]*** Cut start [15:13:41]*** Partial cut [15:13:41]*** CUTSNS_PIN = 1 [15:13:41]*** CUTSNS_PIN = 0 [15:13:41]*** Brake cut motor [15:13:41]Read from MH i2c: 01 [15:13:41]MH_I2C_Read... [15:13:41]*** Stop cut motor [15:13:41]*** Cut end [15:13:41]Read from MH i2c: 01 07 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [15:13:41]process_action close_receipt done [15:13:41]requested_data is exist [15:13:41]produce_requested_data [15:13:41]requested_item fm.sn is exist - process it [15:13:41]wFMCommunicate request_size=4 [15:13:41]MH_SAM_APDU [15:13:41]CAPDU: 80 11 00 00 [15:13:41]Write to MH i2c: E2 08 00 7F 12 80 11 00 00 00 00 00 00 0B [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:41]Read from MH i2c: E2 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 17 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 17 00 7F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [15:13: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:13:41]wFMCommunicate OK [15:13:41]requested_item fd.num is exist - process it [15:13:41]SAM_PROTO_GetFieldsCounters [15:13:41]wFMCommunicate request_size=4 [15:13:41]MH_SAM_APDU [15:13:41]CAPDU: 80 13 00 00 [15:13:41]Write to MH i2c: E2 08 00 80 12 80 13 00 00 00 00 00 00 0E [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 62 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 62 00 80 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 0A 14 01 00 0E 04 04 00 C4 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 2E [15: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 0A 14 01 00 0E 04 04 00 C4 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 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetFieldsCounters done [15:13:42]requested_item shift.num is exist - process it [15:13:42]requested_item shift.opened is exist - process it [15:13:42]req_shift_opened [15:13:42]FM_GetShiftState [15:13:42]SAM_PROTO_GetShiftState [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 01 00 [15:13:42]Write to MH i2c: E2 08 00 81 12 80 13 01 00 00 00 00 00 10 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 81 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9D [15:13:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetShiftState done [15:13:42]FM_GetShiftState done [15:13:42]req_shift_opened done [15:13:42]requested_item shift.open_date is exist - process it [15:13:42]req_shift_open_date [15:13:42]req_shift_open_date done [15:13:42]produce_requested_data done [15:13:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70666,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:13:42]process_action_free close_receipt [15:13:42]json_value_free [15:13:42]json_value_free done [15:13:42]process_json_proto returns [15:13:42]Send response to host [15:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70666,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:13:42]free response buf [15:13:42]execute_script done [15:13:42]execute_script returns [15:13:42]free content buf [15:13:42]Sock 7.Close socket [15:13:42]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:36]accept exits with 9 [15:18:36]New connection [15:18:36]New thread 3066891620 created [15:18:36]Thread 3067034980 joined [15:18:36]Waiting for new connection... [15:18:36] Sock 9.Parse request [15:18:36]Sock 9.Check first char [15:18:36]Sock 9.First char is OK [15:18:36]request: POST /json_proto HTTP/1.0 [15:18:36]Method: POST [15:18:36]URL: /json_proto [15:18:36]Method is POST - this is cgi request [15:18:36]url: /json_proto [15:18:36]query_string will be loaded in cgi processing [15:18:36]execute_cgi json_proto POST (null) [15:18:36]execute_cgi path=json_proto method=POST [15:18:36]POST find Content-Length [15:18:36]Host: 172.17.50.3:8080 [15:18:36]Content-Length: 752 [15:18:36]Content-Type: application/json [15:18:36] [15:18:36]POST finish read [15:18:36]Found Content-Length = 752 [15:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886443", "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" : 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\u000A30048492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:36]execute_script... [15:18: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)2886443", "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" : 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\u000A30048492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:36]POST & json_proto [15:18:36]process_json_proto [15:18:36]json parsed OK: [15:18:36]protocol is kg_v1.0 [15:18:36]action value=close_receipt [15:18:36]process_action close_receipt [15:18:36]cmd_close_receipt [15:18:36]MH_GetDate [15:18:36]Write to MH i2c: F0 00 00 82 12 83 [15:18:36]Write i2c OK [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: F0 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: F0 09 00 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: F0 09 00 82 12 00 CE 13 19 67 6B 98 1E 66 74 [15:18:36]GetLastDocTimeStamp 1729696419 [15:18:36]current date 1729696718 [15:18:36]FM_GetShiftState [15:18:36]SAM_PROTO_GetShiftState [15:18:36]wFMCommunicate request_size=4 [15:18:36]MH_SAM_APDU [15:18:36]CAPDU: 80 13 01 00 [15:18:36]Write to MH i2c: E2 08 00 83 12 80 13 01 00 00 00 00 00 12 [15:18:36]Write i2c OK [15:18:36]MH_I2C_Read... [15:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:36]Read from MH i2c: E2 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 0E 00 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 0E 00 83 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9F [15:18:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:18:36]wFMCommunicate OK [15:18:36]SAM_PROTO_GetShiftState done [15:18:36]FM_GetShiftState done [15:18:36]opened in 1729642435 [15:18:36]opened+sec_in_day 1729728835 [15:18:36]quantity*price = 0 [15:18:36]sum+1 = 1 [15:18: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 СНО: Общий режим Чек 183 23.10.2024 15:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30048492 ФМ: 0000000000963346 ФД: 70667 ФПД: 18325336489304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70667&fm=18325336489304&tin=02508201610067®Number=0000000000156251&sum=0 [15:18:38]StoreToDocumentArchive [15:18:38]shift 196 fd 70667 [15:18:38]save to /storage/0196/doc_00070667 [15:18:38]save last doc name /storage/0196/doc_00070667 to /storage/kkm_last_doc_name [15:18:38]save OK [15:18:38]Clear old archive folders... [15:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:18:38]tlvbuf is 00133980 [15:18:38]SAM_PROTO_ClearQueue [15:18:38]wFMCommunicate request_size=4 [15:18:38]MH_SAM_APDU [15:18:38]CAPDU: 80 09 00 00 [15:18:38]Write to MH i2c: E2 08 00 90 12 80 09 00 00 00 00 00 00 14 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [15:18:38]RAPDU: 90 00 [15:18:38]wFMCommunicate OK [15:18:38]SAM_PROTO_ClearQueue done [15:18:38]KKMCreateOFDPacket [15:18:38]OFDProtocolAddRootSTLVToBuf [15:18:38]FM_MakeSignedData [15:18:38]FM_MakeSignedData [15:18:38]SAM_PROTO_SignData [15:18:38]wFMCommunicate request_size=4 [15:18:38]MH_SAM_APDU [15:18:38]CAPDU: 80 0D 01 02 [15:18:38]Write to MH i2c: E2 08 00 91 12 80 0D 01 02 00 00 00 00 1C [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [15:18:38]RAPDU: 90 00 [15:18:38]wFMCommunicate OK [15:18:38]wFMCommunicate request_size=255 [15:18:38]MH_SAM_APDU [15:18:38]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 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 B7 00 00 00 F4 03 04 00 CE 13 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 AA B3 2B [15:18:38]Write to MH i2c: E2 02 01 92 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 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 B7 00 00 00 F4 03 04 00 CE 13 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 AA B3 2B 00 00 E3 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [15:18:38]RAPDU: 90 00 [15:18:38]wFMCommunicate OK [15:18:38]wFMCommunicate request_size=7 [15:18:38]MH_SAM_APDU [15:18:38]CAPDU: 80 0D 02 02 02 FD 58 [15:18:38]Write to MH i2c: E2 0A 00 93 12 80 0D 02 02 02 00 FD 58 00 00 78 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 03 00 93 12 00 90 00 19 [15:18:38]RAPDU: 90 00 [15:18:38]wFMCommunicate OK [15:18:38]wFMCommunicate request_size=4 [15:18:38]MH_SAM_APDU [15:18:38]CAPDU: 80 0D 03 02 [15:18:38]Write to MH i2c: E2 08 00 94 12 80 0D 03 02 00 00 00 00 21 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 0B 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 0B 00 94 12 00 AD 21 12 60 88 3B D8 41 90 00 3E [15:18:38]RAPDU: AD 21 12 60 88 3B D8 41 90 00 [15:18:38]wFMCommunicate OK [15:18:38]SAM_PROTO_SignData done [15:18:38]FM_MakeSignedData done [15:18:38]CreateOFDProtocolMessage [15:18:38]wFMCommunicate request_size=4 [15:18:38]MH_SAM_APDU [15:18:38]CAPDU: 80 11 00 00 [15:18:38]Write to MH i2c: E2 08 00 95 12 80 11 00 00 00 00 00 00 21 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:38]Read from MH i2c: E2 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 17 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: E2 17 00 95 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [15:18:38]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:38]wFMCommunicate OK [15:18:38]CreateOFDProtocolMessage done [15:18:38]OFDSenderStorePacket 70667 [15:18:38]StoreOFDPacket docnum=70667 [15:18: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 0C 01 00 00 8A A3 04 01 D1 24 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 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 B7 00 00 00 F4 03 04 00 CE 13 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 AA B3 2B FD 58 AD 21 12 60 88 3B D8 41 [15:18:38]CheckFolder [15:18:38]dirname=/storage/ofd_packets [15:18:38]CheckFolder done [15:18:38]ProducePacketName [15:18:38]name=ofd_packets/00070667 [15:18:38]NVStorageSaveData ofd_packets/00070667 [15:18:38]File name is /storage/ofd_packets/00070667 [15:18:38]Write 298 bytes [15:18:38]NVStorageSaveData done [15:18:38]OFDSenderStorePacket done [15:18:38]KKMCreateOFDPacket done [15:18:38]NVStorageSaveData kkm_last_timestamp [15:18:38]File name is /storage/kkm_last_timestamp [15:18:38]Write 4 bytes [15:18:38]NVStorageSaveData done [15:18:38]ExternCall_PrintAddStr [15:18:38]wPrintStart [15:18:38]Write to MH i2c: 01 00 00 96 12 A8 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 07 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [15:18:38]RasterBufferAndPrint [15:18:38]line Счет N : (1)2886443 [15:18:38]line ИНН: 02508201610067 [15:18:38]line Контрольно-Кассовый Чек [15:18:38]line ПРОДАЖА [15:18:38]line ТРК (МРК, ГНК) : 61 [15:18:38]line Товар: 2710194210 [15:18:38]line ДТ-К-5 [15:18:38]line 40.000 * 0.00 [15:18:38]line = 0.00 [15:18:38]line НДС 12% НСП 1% [15:18:38]line > о реализуемом товаре [15:18:38]line ИТОГО: 0.00 [15:18:38]line НСП 1% : 0.00 [15:18:38]line НДС 12% : 0.00 [15:18:38]line Наличными: 0.00 [15:18:38]line Безнал.: 0.00 [15:18:38]line Место: АЗС № 85 "Партнер Нефть" [15:18:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:18:38]line СНО: Общий режим [15:18:38]line Чек 183 23.10.2024 15:18 [15:18:38]line Смена: 196 ФФД: 1.0 [15:18:38]line ЗНМ: 0300000167 [15:18:38]line РНМ: 0000000000156251 [15:18:38]line Версия ККМ: v1.0 [15:18:38]line Талоны: ТК ГПНА Online [15:18:38]line 30048492 [15:18:38]line ФМ: 0000000000963346 [15:18:38]line ФД: 70667 [15:18:38]line ФПД: 18325336489304 [15:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70667&fm=18325336489304&tin=02508201610067®Number=0000000000156251&sum=0 [15:18:38]OFD Sender: Processing packet 70667 [packets to send 18, broken 17] [15:18:38]ProducePacketName [15:18:38]name=ofd_packets/00070667 [15:18:38]OFD Sender: To server: pG, [15:18:38]CommunicateWithHost lk.salyk.kg:30040 [15:18:38]ConnectInit lk.salyk.kg [15:18:38]written 0, free lines is 4095 [15:18:39]Connected sock=7 [15:18: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 8A A3 04 01 D1 24 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 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 B7 00 00 00 F4 03 04 00 CE 13 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 AA B3 2B FD 58 AD 21 12 60 88 3B D8 41 [15:18: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 3A 73 47 00 CC 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 14 01 00 F4 03 04 00 6C BD 18 67 B6 04 01 00 00 76 7B 43 6D 40 C2 B7 81 [15:18:39]CommunicateWithHost err = 0 [15:18:39]CheckOFDResponse [15:18:39]1017 (14) - 77093643461234 [15:18:39]1041 (16) - 0000000000963346 [15:18:39]1040 (4) - 70667 [15:18:39]1012 (4) - 23.10.2024 09:10 [15:18:39]1206 (1) - 0 [15:18:39]OFD Sender: Remove packet 70667 [15:18:39]ProducePacketName [15:18:39]name=ofd_packets/00070667 [15:18:39]NVStorageDeleteData [15:18:39]Write to MH i2c: 01 00 00 C0 12 D2 [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: 01 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: 01 07 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 E7 0C CC [15:18:39]RasterBufferAndPrint [15:18:39]line [15:18:39]line [15:18:39]line [15:18:39]line [15:18:39]line [15:18:39]written 0, free lines is 3309 [15:18:39]MH_Cut [15:18:39]Write to MH i2c: D1 01 00 C7 12 01 AB [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: D1 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: D1 01 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: D1 01 00 C7 12 00 AA [15:18:39]Write to MH i2c: 01 00 00 C8 12 DA [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]OFD Sender: No OFD packet to send [15:18:40]*** Cut start [15:18:40]*** Partial cut [15:18:40]*** CUTSNS_PIN = 1 [15:18:40]*** CUTSNS_PIN = 0 [15:18:40]*** Brake cut motor [15:18:40]Read from MH i2c: 01 [15:18:40]MH_I2C_Read... [15:18:40]*** Stop cut motor [15:18:40]*** Cut end [15:18:40]Read from MH i2c: 01 07 00 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: 01 07 00 C8 12 00 00 00 00 00 FF 0F EF [15:18:40]process_action close_receipt done [15:18:40]requested_data is exist [15:18:40]produce_requested_data [15:18:40]requested_item fm.sn is exist - process it [15:18:40]wFMCommunicate request_size=4 [15:18:40]MH_SAM_APDU [15:18:40]CAPDU: 80 11 00 00 [15:18:40]Write to MH i2c: E2 08 00 C9 12 80 11 00 00 00 00 00 00 55 [15:18:40]Write i2c OK [15:18:40]MH_I2C_Read... [15:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:40]Read from MH i2c: E2 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 17 00 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 17 00 C9 12 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:40]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:40]wFMCommunicate OK [15:18:40]requested_item fd.num is exist - process it [15:18:40]SAM_PROTO_GetFieldsCounters [15:18:40]wFMCommunicate request_size=4 [15:18:40]MH_SAM_APDU [15:18:40]CAPDU: 80 13 00 00 [15:18:40]Write to MH i2c: E2 08 00 CA 12 80 13 00 00 00 00 00 00 58 [15:18:40]Write i2c OK [15:18:40]MH_I2C_Read... [15:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:40]Read from MH i2c: E2 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 62 00 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 62 00 CA 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 0B 14 01 00 0E 04 04 00 C4 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 7C [15:18: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 14 01 00 0E 04 04 00 C4 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 [15:18:40]wFMCommunicate OK [15:18:40]SAM_PROTO_GetFieldsCounters done [15:18:40]requested_item shift.num is exist - process it [15:18:40]requested_item shift.opened is exist - process it [15:18:40]req_shift_opened [15:18:40]FM_GetShiftState [15:18:40]SAM_PROTO_GetShiftState [15:18:40]wFMCommunicate request_size=4 [15:18:40]MH_SAM_APDU [15:18:40]CAPDU: 80 13 01 00 [15:18:40]Write to MH i2c: E2 08 00 CB 12 80 13 01 00 00 00 00 00 5A [15:18:40]Write i2c OK [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 [15:18:40]MH_I2C_Read... [15:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:40]Read from MH i2c: E2 0E 00 [15:18:40]MH_I2C_Read... [15:18:40]Read from MH i2c: E2 0E 00 CB 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E7 [15:18:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:18:40]wFMCommunicate OK [15:18:40]SAM_PROTO_GetShiftState done [15:18:40]FM_GetShiftState done [15:18:40]req_shift_opened done [15:18:40]requested_item shift.open_date is exist - process it [15:18:40]req_shift_open_date [15:18:40]req_shift_open_date done [15:18:40]produce_requested_data done [15:18:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70667,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:18:40]process_action_free close_receipt [15:18:40]json_value_free [15:18:40]json_value_free done [15:18:40]process_json_proto returns [15:18:40]Send response to host [15:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70667,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:18:40]free response buf [15:18:40]execute_script done [15:18:40]execute_script returns [15:18:40]free content buf [15:18:40]Sock 9.Close socket [15:18:40]Sock 9.Thread stoped [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:58]accept exits with 10 [15:22:58]New connection [15:22:58]New thread 3067034980 created [15:22:58]Thread 3066891620 joined [15:22:58]Waiting for new connection... [15:22:58] Sock 10.Parse request [15:22:58]Sock 10.Check first char [15:22:58]Sock 10.First char is OK [15:22:58]request: POST /json_proto HTTP/1.0 [15:22:58]Method: POST [15:22:58]URL: /json_proto [15:22:58]Method is POST - this is cgi request [15:22:58]url: /json_proto [15:22:58]query_string will be loaded in cgi processing [15:22:58]execute_cgi json_proto POST (null) [15:22:58]execute_cgi path=json_proto method=POST [15:22:58]POST find Content-Length [15:22:58]Host: 172.17.50.3:8080 [15:22:58]Content-Length: 798 [15:22:58]Content-Type: application/json [15:22:58] [15:22:58]POST finish read [15:22:58]Found Content-Length = 798 [15:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886445", "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" : 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\u000A4753550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:58]execute_script... [15:22: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)2886445", "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" : 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\u000A4753550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:58]POST & json_proto [15:22:58]process_json_proto [15:22:58]json parsed OK: [15:22:58]protocol is kg_v1.0 [15:22:58]action value=close_receipt [15:22:58]process_action close_receipt [15:22:58]cmd_close_receipt [15:22:58]MH_GetDate [15:22:58]Write to MH i2c: F0 00 00 CC 12 CD [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 09 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: F0 09 00 CC 12 00 D4 14 19 67 6B 98 1E 66 C5 [15:22:58]GetLastDocTimeStamp 1729696718 [15:22:58]current date 1729696980 [15:22:58]FM_GetShiftState [15:22:58]SAM_PROTO_GetShiftState [15:22:58]wFMCommunicate request_size=4 [15:22:58]MH_SAM_APDU [15:22:58]CAPDU: 80 13 01 00 [15:22:58]Write to MH i2c: E2 08 00 CD 12 80 13 01 00 00 00 00 00 5C [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:58]Read from MH i2c: E2 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0E 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0E 00 CD 12 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E9 [15:22:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:22:58]wFMCommunicate OK [15:22:58]SAM_PROTO_GetShiftState done [15:22:58]FM_GetShiftState done [15:22:58]opened in 1729642435 [15:22:58]opened+sec_in_day 1729728835 [15:22:58]quantity*price = 0 [15:22:58]sum+1 = 1 [15:22: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 СНО: Общий режим Чек 184 23.10.2024 15:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4753550 ФМ: 0000000000963346 ФД: 70668 ФПД: 177936485170897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70668&fm=177936485170897&tin=02508201610067®Number=0000000000156251&sum=0 [15:22:59]StoreToDocumentArchive [15:22:59]shift 196 fd 70668 [15:22:59]save to /storage/0196/doc_00070668 [15:22:59]save last doc name /storage/0196/doc_00070668 to /storage/kkm_last_doc_name [15:22:59]save OK [15:22:59]Clear old archive folders... [15:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:59]tlvbuf is 00165CC0 [15:22:59]SAM_PROTO_ClearQueue [15:22:59]wFMCommunicate request_size=4 [15:22:59]MH_SAM_APDU [15:22:59]CAPDU: 80 09 00 00 [15:22:59]Write to MH i2c: E2 08 00 DA 12 80 09 00 00 00 00 00 00 5E [15:22:59]Write i2c OK [15:22:59]MH_I2C_Read... [15:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:59]Read from MH i2c: E2 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 [15:22:59]MH_I2C_Read... [15:22:59]Read from MH i2c: E2 03 00 DA 12 00 90 00 60 [15:22:59]RAPDU: 90 00 [15:22:59]wFMCommunicate OK [15:22:59]SAM_PROTO_ClearQueue done [15:22:59]KKMCreateOFDPacket [15:22:59]OFDProtocolAddRootSTLVToBuf [15:22:59]FM_MakeSignedData [15:22:59]FM_MakeSignedData [15:22:59]SAM_PROTO_SignData [15:22:59]wFMCommunicate request_size=4 [15:22:59]MH_SAM_APDU [15:22:59]CAPDU: 80 0D 01 02 [15:22:59]Write to MH i2c: E2 08 00 DB 12 80 0D 01 02 00 00 00 00 66 [15:22:59]Write i2c OK [15:22:59]MH_I2C_Read... [15:23:00]OFD Sender: No OFD packet to send [15:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 DB 12 00 90 00 61 [15:23:00]RAPDU: 90 00 [15:23:00]wFMCommunicate OK [15:23:00]wFMCommunicate request_size=255 [15:23:00]MH_SAM_APDU [15:23:00]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 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 B8 00 00 00 F4 03 04 00 D4 14 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A1 D5 10 FD [15:23:00]Write to MH i2c: E2 02 01 DC 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 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 B8 00 00 00 F4 03 04 00 D4 14 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A1 D5 10 FD 00 00 EA [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 DC 12 00 90 00 62 [15:23:00]RAPDU: 90 00 [15:23:00]wFMCommunicate OK [15:23:00]wFMCommunicate request_size=7 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 0D 02 02 02 BE D1 [15:23:00]Write to MH i2c: E2 0A 00 DD 12 80 0D 02 02 02 00 BE D1 00 00 FC [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [15:23:00]RAPDU: 90 00 [15:23:00]wFMCommunicate OK [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 0D 03 02 [15:23:00]Write to MH i2c: E2 08 00 DE 12 80 0D 03 02 00 00 00 00 6B [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0B 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0B 00 DE 12 00 A1 AF DF D6 8F B5 A6 7C 90 00 D7 [15:23:00]RAPDU: A1 AF DF D6 8F B5 A6 7C 90 00 [15:23:00]wFMCommunicate OK [15:23:00]SAM_PROTO_SignData done [15:23:00]FM_MakeSignedData done [15:23:00]CreateOFDProtocolMessage [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 11 00 00 [15:23:00]Write to MH i2c: E2 08 00 DF 12 80 11 00 00 00 00 00 00 6B [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 DF 12 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:23: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:23:00]wFMCommunicate OK [15:23:00]CreateOFDProtocolMessage done [15:23:00]OFDSenderStorePacket 70668 [15:23:00]StoreOFDPacket docnum=70668 [15:23: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 F5 DC 04 01 B7 7F 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 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 B8 00 00 00 F4 03 04 00 D4 14 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A1 D5 10 FD BE D1 A1 AF DF D6 8F B5 A6 7C [15:23:00]CheckFolder [15:23:00]dirname=/storage/ofd_packets [15:23:00]CheckFolder done [15:23:00]ProducePacketName [15:23:00]name=ofd_packets/00070668 [15:23:00]NVStorageSaveData ofd_packets/00070668 [15:23:00]File name is /storage/ofd_packets/00070668 [15:23:00]Write 298 bytes [15:23:00]NVStorageSaveData done [15:23:00]OFDSenderStorePacket done [15:23:00]KKMCreateOFDPacket done [15:23:00]NVStorageSaveData kkm_last_timestamp [15:23:00]File name is /storage/kkm_last_timestamp [15:23:00]Write 4 bytes [15:23:00]NVStorageSaveData done [15:23:00]ExternCall_PrintAddStr [15:23:00]wPrintStart [15:23:00]Write to MH i2c: 01 00 00 E0 12 F2 [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 07 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 FF 0F 07 [15:23:00]RasterBufferAndPrint [15:23:00]line Счет N : (1)2886445 [15:23:00]line ИНН: 02508201610067 [15:23:00]line Контрольно-Кассовый Чек [15:23:00]line ПРОДАЖА [15:23:00]line ТРК (МРК, ГНК) : 51 [15:23:00]line Товар: 2710194210 [15:23:00]line ДТ-К-5 [15:23:00]line 30.000 * 0.00 [15:23:00]line = 0.00 [15:23:00]line НДС 12% НСП 1% [15:23:00]line > о реализуемом товаре [15:23:00]line ИТОГО: 0.00 [15:23:00]line НСП 1% : 0.00 [15:23:00]line НДС 12% : 0.00 [15:23:00]line Наличными: 0.00 [15:23:00]line Безнал.: 0.00 [15:23:00]line Место: АЗС № 85 "Партнер Нефть" [15:23:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:00]line СНО: Общий режим [15:23:00]line Чек 184 23.10.2024 15:23 [15:23:00]line Смена: 196 ФФД: 1.0 [15:23:00]line ЗНМ: 0300000167 [15:23:00]line РНМ: 0000000000156251 [15:23:00]line Версия ККМ: v1.0 [15:23:00]line Талоны: Топливные Талоны [15:23:00]line 4753550 [15:23:00]line ФМ: 0000000000963346 [15:23:00]line ФД: 70668 [15:23:00]line ФПД: 177936485170897 [15:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70668&fm=177936485170897&tin=02508201610067®Number=0000000000156251&sum=0 [15:23:00]OFD Sender: Processing packet 70668 [packets to send 18, broken 17] [15:23:00]ProducePacketName [15:23:00]name=ofd_packets/00070668 [15:23:00]OFD Sender: To server: pG, [15:23:00]CommunicateWithHost lk.salyk.kg:30040 [15:23:00]ConnectInit lk.salyk.kg [15:23:00]written 0, free lines is 4095 [15:23:00]Connected sock=9 [15:23: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 F5 DC 04 01 B7 7F 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 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 B8 00 00 00 F4 03 04 00 D4 14 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A1 D5 10 FD BE D1 A1 AF DF D6 8F B5 A6 7C [15:23: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 EC 4B 47 00 13 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 0C 14 01 00 F4 03 04 00 71 BE 18 67 B6 04 01 00 00 0E E5 2D AF 3B 34 D5 CD [15:23:01]CommunicateWithHost err = 0 [15:23:01]CheckOFDResponse [15:23:01]1017 (14) - 77093643461234 [15:23:01]1041 (16) - 0000000000963346 [15:23:01]1040 (4) - 70668 [15:23:01]1012 (4) - 23.10.2024 09:14 [15:23:01]1206 (1) - 0 [15:23:01]OFD Sender: Remove packet 70668 [15:23:01]ProducePacketName [15:23:01]name=ofd_packets/00070668 [15:23:01]NVStorageDeleteData [15:23:01]Write to MH i2c: 01 00 00 0A 13 1D [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 07 00 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 EE 0C 1E [15:23:01]RasterBufferAndPrint [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]line [15:23:01]written 0, free lines is 3315 [15:23:01]MH_Cut [15:23:01]Write to MH i2c: D1 01 00 11 13 01 F6 [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 01 00 [15:23:01]MH_I2C_Read... [15:23:01]Read from MH i2c: D1 01 00 11 13 00 F5 [15:23:01]Write to MH i2c: 01 00 00 12 13 25 [15:23:01]Write i2c OK [15:23:01]MH_I2C_Read... [15:23:01]OFD Sender: No OFD packet to send [15:23:01]*** Cut start [15:23:01]*** Partial cut [15:23:01]*** CUTSNS_PIN = 1 [15:23:01]*** CUTSNS_PIN = 0 [15:23:02]*** Brake cut motor [15:23:02]Read from MH i2c: 01 [15:23:02]MH_I2C_Read... [15:23:02]*** Stop cut motor [15:23:02]*** Cut end [15:23:02]Read from MH i2c: 01 07 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: 01 07 00 12 13 00 00 00 00 00 FF 0F 3A [15:23:02]process_action close_receipt done [15:23:02]requested_data is exist [15:23:02]produce_requested_data [15:23:02]requested_item fm.sn is exist - process it [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 11 00 00 [15:23:02]Write to MH i2c: E2 08 00 13 13 80 11 00 00 00 00 00 00 A0 [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 17 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 17 00 13 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [15:23: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:23:02]wFMCommunicate OK [15:23:02]requested_item fd.num is exist - process it [15:23:02]SAM_PROTO_GetFieldsCounters [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 13 00 00 [15:23:02]Write to MH i2c: E2 08 00 14 13 80 13 00 00 00 00 00 00 A3 [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 62 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 62 00 14 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 0C 14 01 00 0E 04 04 00 C4 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 CB [15:23: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 0C 14 01 00 0E 04 04 00 C4 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 [15:23:02]wFMCommunicate OK [15:23:02]SAM_PROTO_GetFieldsCounters done [15:23:02]requested_item shift.num is exist - process it [15:23:02]requested_item shift.opened is exist - process it [15:23:02]req_shift_opened [15:23:02]FM_GetShiftState [15:23:02]SAM_PROTO_GetShiftState [15:23:02]wFMCommunicate request_size=4 [15:23:02]MH_SAM_APDU [15:23:02]CAPDU: 80 13 01 00 [15:23:02]Write to MH i2c: E2 08 00 15 13 80 13 01 00 00 00 00 00 A5 [15:23:02]Write i2c OK [15:23:02]MH_I2C_Read... [15:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:02]Read from MH i2c: E2 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 0E 00 [15:23:02]MH_I2C_Read... [15:23:02]Read from MH i2c: E2 0E 00 15 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 32 [15:23:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:23:02]wFMCommunicate OK [15:23:02]SAM_PROTO_GetShiftState done [15:23:02]FM_GetShiftState done [15:23:02]req_shift_opened done [15:23:02]requested_item shift.open_date is exist - process it [15:23:02]req_shift_open_date [15:23:02]req_shift_open_date done [15:23:02]produce_requested_data done [15:23:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70668,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:23:02]process_action_free close_receipt [15:23:02]json_value_free [15:23:02]json_value_free done [15:23:02]process_json_proto returns [15:23:02]Send response to host [15:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70668,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:23:02]free response buf [15:23:02]execute_script done [15:23:02]execute_script returns [15:23:02]free content buf [15:23:02]Sock 10.Close socket [15:23:02]Sock 10.Thread stoped [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [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:55]accept exits with 7 [15:25:55]New connection [15:25:55]New thread 3066891620 created [15:25:55]Thread 3067034980 joined [15:25:55]Waiting for new connection... [15:25:55] Sock 7.Parse request [15:25:55]Sock 7.Check first char [15:25:55]Sock 7.First char is OK [15:25:55]request: POST /json_proto HTTP/1.0 [15:25:55]Method: POST [15:25:55]URL: /json_proto [15:25:55]Method is POST - this is cgi request [15:25:55]url: /json_proto [15:25:55]query_string will be loaded in cgi processing [15:25:55]execute_cgi json_proto POST (null) [15:25:55]execute_cgi path=json_proto method=POST [15:25:55]POST find Content-Length [15:25:55]Host: 172.17.50.3:8080 [15:25:55]Content-Length: 678 [15:25:55]Content-Type: application/json [15:25:55] [15:25:55]POST finish read [15:25:55]Found Content-Length = 678 [15:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886446", "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" ] } } [15:25:55]execute_script... [15:25: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)2886446", "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" ] } } [15:25:55]POST & json_proto [15:25:55]process_json_proto [15:25:55]json parsed OK: [15:25:55]protocol is kg_v1.0 [15:25:55]action value=close_receipt [15:25:55]process_action close_receipt [15:25:55]cmd_close_receipt [15:25:55]MH_GetDate [15:25:55]Write to MH i2c: F0 00 00 16 13 18 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 09 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 09 00 16 13 00 84 15 19 67 6B 98 1E 66 C1 [15:25:55]GetLastDocTimeStamp 1729696980 [15:25:55]current date 1729697156 [15:25:55]FM_GetShiftState [15:25:55]SAM_PROTO_GetShiftState [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 13 01 00 [15:25:55]Write to MH i2c: E2 08 00 17 13 80 13 01 00 00 00 00 00 A7 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0E 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0E 00 17 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 34 [15:25:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:25:55]wFMCommunicate OK [15:25:55]SAM_PROTO_GetShiftState done [15:25:55]FM_GetShiftState done [15:25:55]opened in 1729642435 [15:25:55]opened+sec_in_day 1729728835 [15:25:55]quantity*price = 34052 [15:25:55]sum+1 = 34053 [15:25:55]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 СНО: Общий режим Чек 185 23.10.2024 15:25 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70669 ФПД: 145847525479878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152556&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70669&fm=145847525479878&tin=02508201610067®Number=0000000000156251&sum=34000 [15:25:56]StoreToDocumentArchive [15:25:56]shift 196 fd 70669 [15:25:56]save to /storage/0196/doc_00070669 [15:25:56]save last doc name /storage/0196/doc_00070669 to /storage/kkm_last_doc_name [15:25:56]save OK [15:25:56]Clear old archive folders... [15:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:56]tlvbuf is B6ED52D0 [15:25:56]SAM_PROTO_ClearQueue [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 09 00 00 [15:25:56]Write to MH i2c: E2 08 00 24 13 80 09 00 00 00 00 00 00 A9 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 24 13 00 90 00 AB [15:25:56]RAPDU: 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_ClearQueue done [15:25:56]KKMCreateOFDPacket [15:25:56]OFDProtocolAddRootSTLVToBuf [15:25:56]FM_MakeSignedData [15:25:56]FM_MakeSignedData [15:25:56]SAM_PROTO_SignData [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 0D 01 02 [15:25:56]Write to MH i2c: E2 08 00 25 13 80 0D 01 02 00 00 00 00 B1 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [15:25:56]RAPDU: 90 00 [15:25:56]wFMCommunicate OK [15:25:56]wFMCommunicate request_size=255 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B9 00 00 00 F4 03 04 00 84 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 [15:25:56]Write to MH i2c: E2 02 01 26 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 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 B9 00 00 00 F4 03 04 00 84 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 00 00 AF [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 26 13 00 90 00 AD [15:25:56]RAPDU: 90 00 [15:25:56]wFMCommunicate OK [15:25:56]wFMCommunicate request_size=10 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 0D 02 02 05 A5 C5 F2 95 C6 [15:25:56]Write to MH i2c: E2 0D 00 27 13 80 0D 02 02 05 00 A5 C5 F2 95 C6 00 00 75 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [15:25:56]RAPDU: 90 00 [15:25:56]wFMCommunicate OK [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 0D 03 02 [15:25:56]Write to MH i2c: E2 08 00 28 13 80 0D 03 02 00 00 00 00 B6 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0B 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0B 00 28 13 00 FC 48 E0 12 87 9E CE 09 90 00 E9 [15:25:56]RAPDU: FC 48 E0 12 87 9E CE 09 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_SignData done [15:25:56]FM_MakeSignedData done [15:25:56]CreateOFDProtocolMessage [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 11 00 00 [15:25:56]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 17 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 17 00 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [15:25:56]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:56]wFMCommunicate OK [15:25:56]CreateOFDProtocolMessage done [15:25:56]OFDSenderStorePacket 70669 [15:25:56]StoreOFDPacket docnum=70669 [15:25: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 22 B5 07 01 78 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 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 B9 00 00 00 F4 03 04 00 84 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 A5 C5 F2 95 C6 FC 48 E0 12 87 9E CE 09 [15:25:56]CheckFolder [15:25:56]dirname=/storage/ofd_packets [15:25:56]CheckFolder done [15:25:56]ProducePacketName [15:25:56]name=ofd_packets/00070669 [15:25:56]NVStorageSaveData ofd_packets/00070669 [15:25:56]File name is /storage/ofd_packets/00070669 [15:25:56]Write 301 bytes [15:25:56]NVStorageSaveData done [15:25:56]OFDSenderStorePacket done [15:25:56]KKMCreateOFDPacket done [15:25:56]NVStorageSaveData kkm_last_timestamp [15:25:56]File name is /storage/kkm_last_timestamp [15:25:56]Write 4 bytes [15:25:56]NVStorageSaveData done [15:25:56]ExternCall_PrintAddStr [15:25:56]wPrintStart [15:25:56]Write to MH i2c: 01 00 00 2A 13 3D [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 07 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 FF 0F 52 [15:25:56]RasterBufferAndPrint [15:25:56]line Счет N : (1)2886446 [15:25:56]line ИНН: 02508201610067 [15:25:56]line Контрольно-Кассовый Чек [15:25:56]line ПРОДАЖА [15:25:56]line ТРК (МРК, ГНК) : 12 [15:25:56]line Товар: 2710124130 [15:25:56]line Аи-92-К-5 [15:25:56]line 5.090 * 66.90 [15:25:56]line = 340.52 [15:25:56]line НДС 12% НСП 1% [15:25:56]line > о реализуемом товаре [15:25:56]line ОКРУГЛЕНИЕ: -0.52 [15:25:56]line ИТОГО: 340.00 [15:25:56]line Внесено: 340.00 [15:25:56]line СДАЧА: 0.00 [15:25:56]line НСП 1% : 3.01 [15:25:56]line НДС 12% : 36.16 [15:25:56]line Наличными: 340.00 [15:25:56]line Безнал.: 0.00 [15:25:56]line Место: АЗС № 85 "Партнер Нефть" [15:25:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:25:56]line СНО: Общий режим [15:25:56]line Чек 185 23.10.2024 15:25 [15:25:56]line Смена: 196 ФФД: 1.0 [15:25:56]line ЗНМ: 0300000167 [15:25:56]line РНМ: 0000000000156251 [15:25:56]line Версия ККМ: v1.0 [15:25:56]line ФМ: 0000000000963346 [15:25:56]line ФД: 70669 [15:25:56]line ФПД: 145847525479878 [15:25:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152556&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70669&fm=145847525479878&tin=02508201610067®Number=0000000000156251&sum=34000 [15:25:57]OFD Sender: Processing packet 70669 [packets to send 18, broken 17] [15:25:57]ProducePacketName [15:25:57]name=ofd_packets/00070669 [15:25:57]OFD Sender: To server: pG, [15:25:57]CommunicateWithHost lk.salyk.kg:30040 [15:25:57]ConnectInit lk.salyk.kg [15:25:57]written 0, free lines is 4095 [15:25:57]Connected sock=10 [15:25: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 22 B5 07 01 78 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 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 B9 00 00 00 F4 03 04 00 84 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 A5 C5 F2 95 C6 FC 48 E0 12 87 9E CE 09 [15:25: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 48 2A 47 00 D1 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 0D 14 01 00 F4 03 04 00 22 BF 18 67 B6 04 01 00 00 FA 5C EC 7C 54 C8 91 87 [15:25:57]CommunicateWithHost err = 0 [15:25:57]CheckOFDResponse [15:25:57]1017 (14) - 77093643461234 [15:25:57]1041 (16) - 0000000000963346 [15:25:57]1040 (4) - 70669 [15:25:57]1012 (4) - 23.10.2024 09:17 [15:25:57]1206 (1) - 0 [15:25:57]OFD Sender: Remove packet 70669 [15:25:57]ProducePacketName [15:25:57]name=ofd_packets/00070669 [15:25:57]NVStorageDeleteData [15:25:57]Write to MH i2c: 01 00 00 55 13 68 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: 01 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: 01 07 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 EC 0C 67 [15:25:57]RasterBufferAndPrint [15:25:57]line [15:25:57]line [15:25:57]line [15:25:57]line [15:25:57]line [15:25:57]written 0, free lines is 3314 [15:25:57]MH_Cut [15:25:57]Write to MH i2c: D1 01 00 5C 13 01 41 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: D1 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: D1 01 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: D1 01 00 5C 13 00 40 [15:25:57]Write to MH i2c: 01 00 00 5D 13 70 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]OFD Sender: No OFD packet to send [15:25:58]*** Cut start [15:25:58]*** Partial cut [15:25:58]*** CUTSNS_PIN = 1 [15:25:58]*** CUTSNS_PIN = 0 [15:25:58]*** Brake cut motor [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]*** Stop cut motor [15:25:58]*** Cut end [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 5D 13 00 00 00 00 00 FF 0F 85 [15:25:58]process_action close_receipt done [15:25:58]requested_data is exist [15:25:58]produce_requested_data [15:25:58]requested_item fm.sn is exist - process it [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 11 00 00 [15:25:58]Write to MH i2c: E2 08 00 5E 13 80 11 00 00 00 00 00 00 EB [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 17 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 17 00 5E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [15:25: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:25:59]wFMCommunicate OK [15:25:59]requested_item fd.num is exist - process it [15:25:59]SAM_PROTO_GetFieldsCounters [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 13 00 00 [15:25:59]Write to MH i2c: E2 08 00 5F 13 80 13 00 00 00 00 00 00 EE [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 62 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 62 00 5F 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 0D 14 01 00 0E 04 04 00 C4 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 1A [15:25: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 0D 14 01 00 0E 04 04 00 C4 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 [15:25:59]wFMCommunicate OK [15:25:59]SAM_PROTO_GetFieldsCounters done [15:25:59]requested_item shift.num is exist - process it [15:25:59]requested_item shift.opened is exist - process it [15:25:59]req_shift_opened [15:25:59]FM_GetShiftState [15:25:59]SAM_PROTO_GetShiftState [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 13 01 00 [15:25:59]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7D [15:25:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:25:59]wFMCommunicate OK [15:25:59]SAM_PROTO_GetShiftState done [15:25:59]FM_GetShiftState done [15:25:59]req_shift_opened done [15:25:59]requested_item shift.open_date is exist - process it [15:25:59]req_shift_open_date [15:25:59]req_shift_open_date done [15:25:59]produce_requested_data done [15:25:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70669,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:25:59]process_action_free close_receipt [15:25:59]json_value_free [15:25:59]json_value_free done [15:25:59]process_json_proto returns [15:25:59]Send response to host [15:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70669,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:25:59]free response buf [15:25:59]execute_script done [15:25:59]execute_script returns [15:25:59]free content buf [15:25:59]Sock 7.Close socket [15:25:59]Sock 7.Thread stoped [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:29]accept exits with 9 [15:26:29]New connection [15:26:29]New thread 3067034980 created [15:26:29]Thread 3066891620 joined [15:26:29]Waiting for new connection... [15:26:29] Sock 9.Parse request [15:26:29]Sock 9.Check first char [15:26:29]Sock 9.First char is OK [15:26:29]request: POST /json_proto HTTP/1.0 [15:26:29]Method: POST [15:26:29]URL: /json_proto [15:26:29]Method is POST - this is cgi request [15:26:29]url: /json_proto [15:26:29]query_string will be loaded in cgi processing [15:26:29]execute_cgi json_proto POST (null) [15:26:29]execute_cgi path=json_proto method=POST [15:26:29]POST find Content-Length [15:26:29]Host: 172.17.50.3:8080 [15:26:29]Content-Length: 683 [15:26:29]Content-Type: application/json [15:26:29] [15:26:29]POST finish read [15:26:29]Found Content-Length = 683 [15:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886449", "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" ] } } [15:26:29]execute_script... [15:26: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)2886449", "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" ] } } [15:26:29]POST & json_proto [15:26:29]process_json_proto [15:26:29]json parsed OK: [15:26:29]protocol is kg_v1.0 [15:26:29]action value=close_receipt [15:26:29]process_action close_receipt [15:26:29]cmd_close_receipt [15:26:29]MH_GetDate [15:26:29]Write to MH i2c: F0 00 00 61 13 63 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 09 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 09 00 61 13 00 A7 15 19 67 6B 98 1E 66 2F [15:26:29]GetLastDocTimeStamp 1729697156 [15:26:29]current date 1729697191 [15:26:29]FM_GetShiftState [15:26:29]SAM_PROTO_GetShiftState [15:26:29]wFMCommunicate request_size=4 [15:26:29]MH_SAM_APDU [15:26:29]CAPDU: 80 13 01 00 [15:26:29]Write to MH i2c: E2 08 00 62 13 80 13 01 00 00 00 00 00 F2 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:29]Read from MH i2c: E2 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 62 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7F [15:26:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:29]wFMCommunicate OK [15:26:29]SAM_PROTO_GetShiftState done [15:26:29]FM_GetShiftState done [15:26:29]opened in 1729642435 [15:26:29]opened+sec_in_day 1729728835 [15:26:29]quantity*price = 100021 [15:26:29]sum+1 = 100023 [15:26: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 СНО: Общий режим Чек 186 23.10.2024 15:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70670 ФПД: 217836295464865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70670&fm=217836295464865&tin=02508201610067®Number=0000000000156251&sum=100000 [15:26:30]StoreToDocumentArchive [15:26:30]shift 196 fd 70670 [15:26:30]save to /storage/0196/doc_00070670 [15:26:30]save last doc name /storage/0196/doc_00070670 to /storage/kkm_last_doc_name [15:26:30]save OK [15:26:30]Clear old archive folders... [15:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:30]tlvbuf is B6ED52A0 [15:26:30]SAM_PROTO_ClearQueue [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 09 00 00 [15:26:30]Write to MH i2c: E2 08 00 6F 13 80 09 00 00 00 00 00 00 F4 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_ClearQueue done [15:26:30]KKMCreateOFDPacket [15:26:30]OFDProtocolAddRootSTLVToBuf [15:26:30]FM_MakeSignedData [15:26:30]FM_MakeSignedData [15:26:30]SAM_PROTO_SignData [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 01 02 [15:26:30]Write to MH i2c: E2 08 00 70 13 80 0D 01 02 00 00 00 00 FC [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=255 [15:26:30]MH_SAM_APDU [15:26: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 BA 00 00 00 F4 03 04 00 A7 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 [15:26:30]Write to MH i2c: E2 02 01 71 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 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 BA 00 00 00 F4 03 04 00 A7 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 00 00 45 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 71 13 00 90 00 F8 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=10 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 02 02 05 1E F7 02 A7 A1 [15:26:30]Write to MH i2c: E2 0D 00 72 13 80 0D 02 02 05 00 1E F7 02 A7 A1 00 00 68 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 72 13 00 90 00 F9 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 03 02 [15:26:30]Write to MH i2c: E2 08 00 73 13 80 0D 03 02 00 00 00 00 01 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0B 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0B 00 73 13 00 93 4D BF A1 C4 C4 D9 E6 90 00 89 [15:26:30]RAPDU: 93 4D BF A1 C4 C4 D9 E6 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_SignData done [15:26:30]FM_MakeSignedData done [15:26:30]CreateOFDProtocolMessage [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 11 00 00 [15:26:30]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 17 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [15:26: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:26:31]wFMCommunicate OK [15:26:31]CreateOFDProtocolMessage done [15:26:31]OFDSenderStorePacket 70670 [15:26:31]StoreOFDPacket docnum=70670 [15:26: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 F7 2B 07 01 5E 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 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 BA 00 00 00 F4 03 04 00 A7 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 1E F7 02 A7 A1 93 4D BF A1 C4 C4 D9 E6 [15:26:31]CheckFolder [15:26:31]dirname=/storage/ofd_packets [15:26:31]CheckFolder done [15:26:31]ProducePacketName [15:26:31]name=ofd_packets/00070670 [15:26:31]NVStorageSaveData ofd_packets/00070670 [15:26:31]File name is /storage/ofd_packets/00070670 [15:26:31]Write 301 bytes [15:26:31]NVStorageSaveData done [15:26:31]OFDSenderStorePacket done [15:26:31]KKMCreateOFDPacket done [15:26:31]NVStorageSaveData kkm_last_timestamp [15:26:31]File name is /storage/kkm_last_timestamp [15:26:31]Write 4 bytes [15:26:31]NVStorageSaveData done [15:26:31]ExternCall_PrintAddStr [15:26:31]wPrintStart [15:26:31]Write to MH i2c: 01 00 00 75 13 88 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 75 13 00 00 00 00 00 FF 0F 9D [15:26:31]RasterBufferAndPrint [15:26:31]line Счет N : (1)2886449 [15:26:31]line ИНН: 02508201610067 [15:26:31]line Контрольно-Кассовый Чек [15:26:31]line ПРОДАЖА [15:26:31]line ТРК (МРК, ГНК) : 43 [15:26:31]line Товар: 2710124500 [15:26:31]line Аи-95-К-5 [15:26:31]line 13.480 * 74.20 [15:26:31]line = 1000.22 [15:26:31]line НДС 12% НСП 1% [15:26:31]line > о реализуемом товаре [15:26:31]line ОКРУГЛЕНИЕ: -0.22 [15:26:31]line ИТОГО: 1000.00 [15:26:31]line Внесено: 1000.00 [15:26:31]line СДАЧА: 0.00 [15:26:31]line НСП 1% : 8.85 [15:26:31]line НДС 12% : 106.22 [15:26:31]line Наличными: 1000.00 [15:26:31]line Безнал.: 0.00 [15:26:31]line Место: АЗС № 85 "Партнер Нефть" [15:26:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:26:31]line СНО: Общий режим [15:26:31]line Чек 186 23.10.2024 15:26 [15:26:31]line Смена: 196 ФФД: 1.0 [15:26:31]line ЗНМ: 0300000167 [15:26:31]line РНМ: 0000000000156251 [15:26:31]line Версия ККМ: v1.0 [15:26:31]line ФМ: 0000000000963346 [15:26:31]line ФД: 70670 [15:26:31]line ФПД: 217836295464865 [15:26:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70670&fm=217836295464865&tin=02508201610067®Number=0000000000156251&sum=100000 [15:26:31]OFD Sender: Processing packet 70670 [packets to send 18, broken 17] [15:26:31]ProducePacketName [15:26:31]name=ofd_packets/00070670 [15:26:31]OFD Sender: To server: pG, [15:26:31]CommunicateWithHost lk.salyk.kg:30040 [15:26:31]ConnectInit lk.salyk.kg [15:26:31]written 0, free lines is 4095 [15:26:31]Connected sock=10 [15:26: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 F7 2B 07 01 5E 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 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 BA 00 00 00 F4 03 04 00 A7 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 1E F7 02 A7 A1 93 4D BF A1 C4 C4 D9 E6 [15:26: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 89 A5 47 00 40 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 0E 14 01 00 F4 03 04 00 44 BF 18 67 B6 04 01 00 00 C6 88 64 63 C0 B0 09 0F [15:26:31]CommunicateWithHost err = 0 [15:26:31]CheckOFDResponse [15:26:31]1017 (14) - 77093643461234 [15:26:31]1041 (16) - 0000000000963346 [15:26:31]1040 (4) - 70670 [15:26:31]1012 (4) - 23.10.2024 09:17 [15:26:31]1206 (1) - 0 [15:26:31]OFD Sender: Remove packet 70670 [15:26:31]ProducePacketName [15:26:31]name=ofd_packets/00070670 [15:26:31]NVStorageDeleteData [15:26:31]Write to MH i2c: 01 00 00 A0 13 B3 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 A0 13 00 00 00 00 00 F1 0C B7 [15:26:31]RasterBufferAndPrint [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]written 0, free lines is 3319 [15:26:31]MH_Cut [15:26:31]Write to MH i2c: D1 01 00 A7 13 01 8C [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 01 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 01 00 A7 13 00 8B [15:26:31]Write to MH i2c: 01 00 00 A8 13 BB [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:32]OFD Sender: No OFD packet to send [15:26:32]*** Cut start [15:26:32]*** Partial cut [15:26:32]*** CUTSNS_PIN = 1 [15:26:32]*** CUTSNS_PIN = 0 [15:26:32]*** Brake cut motor [15:26:33]Read from MH i2c: 01 [15:26:33]MH_I2C_Read... [15:26:33]*** Stop cut motor [15:26:33]*** Cut end [15:26:33]Read from MH i2c: 01 07 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 FF 0F D0 [15:26:33]process_action close_receipt done [15:26:33]requested_data is exist [15:26:33]produce_requested_data [15:26:33]requested_item fm.sn is exist - process it [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 11 00 00 [15:26:33]Write to MH i2c: E2 08 00 A9 13 80 11 00 00 00 00 00 00 36 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 A9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [15:26: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:26:33]wFMCommunicate OK [15:26:33]requested_item fd.num is exist - process it [15:26:33]SAM_PROTO_GetFieldsCounters [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 13 00 00 [15:26:33]Write to MH i2c: E2 08 00 AA 13 80 13 00 00 00 00 00 00 39 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 62 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 62 00 AA 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 0E 14 01 00 0E 04 04 00 C4 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 69 [15:26: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 0E 14 01 00 0E 04 04 00 C4 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 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_GetFieldsCounters done [15:26:33]requested_item shift.num is exist - process it [15:26:33]requested_item shift.opened is exist - process it [15:26:33]req_shift_opened [15:26:33]FM_GetShiftState [15:26:33]SAM_PROTO_GetShiftState [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 13 01 00 [15:26:33]Write to MH i2c: E2 08 00 AB 13 80 13 01 00 00 00 00 00 3B [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:33]Read from MH i2c: E2 0E 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0E 00 AB 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C8 [15:26:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_GetShiftState done [15:26:33]FM_GetShiftState done [15:26:33]req_shift_opened done [15:26:33]requested_item shift.open_date is exist - process it [15:26:33]req_shift_open_date [15:26:33]req_shift_open_date done [15:26:33]produce_requested_data done [15:26:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70670,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:26:33]process_action_free close_receipt [15:26:33]json_value_free [15:26:33]json_value_free done [15:26:33]process_json_proto returns [15:26:33]Send response to host [15:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70670,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:26:33]free response buf [15:26:33]execute_script done [15:26:33]execute_script returns [15:26:33]free content buf [15:26:33]Sock 9.Close socket [15:26:33]Sock 9.Thread stoped [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:49]accept exits with 7 [15:26:49]New connection [15:26:49]New thread 3066891620 created [15:26:49]Thread 3067034980 joined [15:26:49]Waiting for new connection... [15:26:49] Sock 7.Parse request [15:26:49]Sock 7.Check first char [15:26:49]Sock 7.First char is OK [15:26:49]request: POST /json_proto HTTP/1.0 [15:26:49]Method: POST [15:26:49]URL: /json_proto [15:26:49]Method is POST - this is cgi request [15:26:49]url: /json_proto [15:26:49]query_string will be loaded in cgi processing [15:26:49]execute_cgi json_proto POST (null) [15:26:49]execute_cgi path=json_proto method=POST [15:26:49]POST find Content-Length [15:26:49]Host: 172.17.50.3:8080 [15:26:49]Content-Length: 678 [15:26:49]Content-Type: application/json [15:26:49] [15:26:49]POST finish read [15:26:49]Found Content-Length = 678 [15:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886448", "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.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:49]execute_script... [15:26: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)2886448", "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.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:49]POST & json_proto [15:26:49]process_json_proto [15:26:49]json parsed OK: [15:26:49]protocol is kg_v1.0 [15:26:49]action value=close_receipt [15:26:49]process_action close_receipt [15:26:49]cmd_close_receipt [15:26:49]MH_GetDate [15:26:49]Write to MH i2c: F0 00 00 AC 13 AE [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 09 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 09 00 AC 13 00 BB 15 19 67 6B 98 1E 66 8E [15:26:49]GetLastDocTimeStamp 1729697191 [15:26:49]current date 1729697211 [15:26:49]FM_GetShiftState [15:26:49]SAM_PROTO_GetShiftState [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 13 01 00 [15:26:49]Write to MH i2c: E2 08 00 AD 13 80 13 01 00 00 00 00 00 3D [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 AD 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CA [15:26:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_GetShiftState done [15:26:49]FM_GetShiftState done [15:26:49]opened in 1729642435 [15:26:49]opened+sec_in_day 1729728835 [15:26:49]quantity*price = 37062 [15:26:49]sum+1 = 37064 [15:26:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 187 23.10.2024 15:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70671 ФПД: 89769345155312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70671&fm=89769345155312&tin=02508201610067®Number=0000000000156251&sum=37000 [15:26:51]StoreToDocumentArchive [15:26:51]shift 196 fd 70671 [15:26:51]save to /storage/0196/doc_00070671 [15:26:51]save last doc name /storage/0196/doc_00070671 to /storage/kkm_last_doc_name [15:26:51]save OK [15:26:51]Clear old archive folders... [15:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:51]tlvbuf is B6ED52C0 [15:26:51]SAM_PROTO_ClearQueue [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 09 00 00 [15:26:51]Write to MH i2c: E2 08 00 BA 13 80 09 00 00 00 00 00 00 3F [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BA 13 00 90 00 41 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_ClearQueue done [15:26:51]KKMCreateOFDPacket [15:26:51]OFDProtocolAddRootSTLVToBuf [15:26:51]FM_MakeSignedData [15:26:51]FM_MakeSignedData [15:26:51]SAM_PROTO_SignData [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 01 02 [15:26:51]Write to MH i2c: E2 08 00 BB 13 80 0D 01 02 00 00 00 00 47 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BB 13 00 90 00 42 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=255 [15:26:51]MH_SAM_APDU [15:26: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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 BB 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 51 [15:26:51]Write to MH i2c: E2 02 01 BC 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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 BB 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 51 00 00 C3 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BC 13 00 90 00 43 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=10 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 02 02 05 A5 0D EE 00 F0 [15:26:51]Write to MH i2c: E2 0D 00 BD 13 80 0D 02 02 05 00 A5 0D EE 00 F0 00 00 E4 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BD 13 00 90 00 44 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 03 02 [15:26:51]Write to MH i2c: E2 08 00 BE 13 80 0D 03 02 00 00 00 00 4C [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0B 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0B 00 BE 13 00 E4 0A 66 30 09 CC E5 B9 90 00 44 [15:26:51]RAPDU: E4 0A 66 30 09 CC E5 B9 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_SignData done [15:26:51]FM_MakeSignedData done [15:26:51]CreateOFDProtocolMessage [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 11 00 00 [15:26:51]Write to MH i2c: E2 08 00 BF 13 80 11 00 00 00 00 00 00 4C [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 BF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [15:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:26:51]wFMCommunicate OK [15:26:51]CreateOFDProtocolMessage done [15:26:51]OFDSenderStorePacket 70671 [15:26:51]StoreOFDPacket docnum=70671 [15:26: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 C5 32 07 01 76 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 BB 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 51 A5 0D EE 00 F0 E4 0A 66 30 09 CC E5 B9 [15:26:51]CheckFolder [15:26:51]dirname=/storage/ofd_packets [15:26:51]CheckFolder done [15:26:51]ProducePacketName [15:26:51]name=ofd_packets/00070671 [15:26:51]NVStorageSaveData ofd_packets/00070671 [15:26:51]File name is /storage/ofd_packets/00070671 [15:26:51]Write 301 bytes [15:26:51]NVStorageSaveData done [15:26:51]OFDSenderStorePacket done [15:26:51]KKMCreateOFDPacket done [15:26:51]NVStorageSaveData kkm_last_timestamp [15:26:51]File name is /storage/kkm_last_timestamp [15:26:51]Write 4 bytes [15:26:51]NVStorageSaveData done [15:26:51]ExternCall_PrintAddStr [15:26:51]wPrintStart [15:26:51]Write to MH i2c: 01 00 00 C0 13 D3 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 C0 13 00 00 00 00 00 FF 0F E8 [15:26:51]RasterBufferAndPrint [15:26:51]line Счет N : (1)2886448 [15:26:51]line ИНН: 02508201610067 [15:26:51]line Контрольно-Кассовый Чек [15:26:51]line ПРОДАЖА [15:26:51]line ТРК (МРК, ГНК) : 32 [15:26:51]line Товар: 2710124130 [15:26:51]line Аи-92-К-5 [15:26:51]line 5.540 * 66.90 [15:26:51]line = 370.63 [15:26:51]line НДС 12% НСП 1% [15:26:51]line > о реализуемом товаре [15:26:51]line ОКРУГЛЕНИЕ: -0.63 [15:26:51]line ИТОГО: 370.00 [15:26:51]line Внесено: 370.00 [15:26:51]line СДАЧА: 0.00 [15:26:51]line НСП 1% : 3.28 [15:26:51]line НДС 12% : 39.36 [15:26:51]line Наличными: 370.00 [15:26:51]line Безнал.: 0.00 [15:26:51]line Место: АЗС № 85 "Партнер Нефть" [15:26:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:26:51]line СНО: Общий режим [15:26:51]line Чек 187 23.10.2024 15:26 [15:26:51]line Смена: 196 ФФД: 1.0 [15:26:51]line ЗНМ: 0300000167 [15:26:51]line РНМ: 0000000000156251 [15:26:51]line Версия ККМ: v1.0 [15:26:51]line ФМ: 0000000000963346 [15:26:51]line ФД: 70671 [15:26:51]line ФПД: 89769345155312 [15:26:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152651&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70671&fm=89769345155312&tin=02508201610067®Number=0000000000156251&sum=37000 [15:26:51]OFD Sender: Processing packet 70671 [packets to send 18, broken 17] [15:26:51]ProducePacketName [15:26:51]name=ofd_packets/00070671 [15:26:51]OFD Sender: To server: pG, [15:26:51]CommunicateWithHost lk.salyk.kg:30040 [15:26:51]ConnectInit lk.salyk.kg [15:26:51]written 0, free lines is 4095 [15:26:52]Connected sock=10 [15:26: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 C5 32 07 01 76 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 BB 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 51 A5 0D EE 00 F0 E4 0A 66 30 09 CC E5 B9 [15:26: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 CA 9B 47 00 20 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 0F 14 01 00 F4 03 04 00 59 BF 18 67 B6 04 01 00 00 78 2D 13 B4 24 CB 70 E2 [15:26:52]CommunicateWithHost err = 0 [15:26:52]CheckOFDResponse [15:26:52]1017 (14) - 77093643461234 [15:26:52]1041 (16) - 0000000000963346 [15:26:52]1040 (4) - 70671 [15:26:52]1012 (4) - 23.10.2024 09:18 [15:26:52]1206 (1) - 0 [15:26:52]OFD Sender: Remove packet 70671 [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00070671 [15:26:52]NVStorageDeleteData [15:26:52]Write to MH i2c: 01 00 00 EB 13 FE [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 EB 13 00 00 00 00 00 EA 0C FB [15:26:52]RasterBufferAndPrint [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]written 0, free lines is 3312 [15:26:52]MH_Cut [15:26:52]Write to MH i2c: D1 01 00 F2 13 01 D7 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 F2 13 00 D6 [15:26:52]Write to MH i2c: 01 00 00 F3 13 06 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]OFD Sender: No OFD packet to send [15:26:53]*** Cut start [15:26:53]*** Partial cut [15:26:53]*** CUTSNS_PIN = 1 [15:26:53]*** CUTSNS_PIN = 0 [15:26:53]*** Brake cut motor [15:26:53]Read from MH i2c: 01 [15:26:53]MH_I2C_Read... [15:26:53]*** Stop cut motor [15:26:53]*** Cut end [15:26:53]Read from MH i2c: 01 07 00 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: 01 07 00 F3 13 00 00 00 00 00 FF 0F 1B [15:26:53]process_action close_receipt done [15:26:53]requested_data is exist [15:26:53]produce_requested_data [15:26:53]requested_item fm.sn is exist - process it [15:26:53]wFMCommunicate request_size=4 [15:26:53]MH_SAM_APDU [15:26:53]CAPDU: 80 11 00 00 [15:26:53]Write to MH i2c: E2 08 00 F4 13 80 11 00 00 00 00 00 00 81 [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:53]Read from MH i2c: E2 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: E2 17 00 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: E2 17 00 F4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [15:26: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:26:53]wFMCommunicate OK [15:26:53]requested_item fd.num is exist - process it [15:26:53]SAM_PROTO_GetFieldsCounters [15:26:53]wFMCommunicate request_size=4 [15:26:53]MH_SAM_APDU [15:26:53]CAPDU: 80 13 00 00 [15:26:53]Write to MH i2c: E2 08 00 F5 13 80 13 00 00 00 00 00 00 84 [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:53]Read from MH i2c: E2 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: E2 62 00 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: E2 62 00 F5 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 0F 14 01 00 0E 04 04 00 C4 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 B8 [15:26: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 0F 14 01 00 0E 04 04 00 C4 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 [15:26:53]wFMCommunicate OK [15:26:53]SAM_PROTO_GetFieldsCounters done [15:26:53]requested_item shift.num is exist - process it [15:26:53]requested_item shift.opened is exist - process it [15:26:53]req_shift_opened [15:26:53]FM_GetShiftState [15:26:53]SAM_PROTO_GetShiftState [15:26:53]wFMCommunicate request_size=4 [15:26:53]MH_SAM_APDU [15:26:53]CAPDU: 80 13 01 00 [15:26:53]Write to MH i2c: E2 08 00 F6 13 80 13 01 00 00 00 00 00 86 [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:54]Read from MH i2c: E2 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 0E 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 0E 00 F6 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 13 [15:26:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:54]wFMCommunicate OK [15:26:54]SAM_PROTO_GetShiftState done [15:26:54]FM_GetShiftState done [15:26:54]req_shift_opened done [15:26:54]requested_item shift.open_date is exist - process it [15:26:54]req_shift_open_date [15:26:54]req_shift_open_date done [15:26:54]produce_requested_data done [15:26:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70671,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:26:54]process_action_free close_receipt [15:26:54]json_value_free [15:26:54]json_value_free done [15:26:54]process_json_proto returns [15:26:54]Send response to host [15:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70671,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:26:54]free response buf [15:26:54]execute_script done [15:26:54]execute_script returns [15:26:54]free content buf [15:26:54]Sock 7.Close socket [15:26:54]Sock 7.Thread stoped [15:26:54]accept exits with 9 [15:26:54]New connection [15:26:54]New thread 3067034980 created [15:26:54]Thread 3066891620 joined [15:26:54]Waiting for new connection... [15:26:54] Sock 9.Parse request [15:26:54]Sock 9.Check first char [15:26:54]Sock 9.First char is OK [15:26:54]request: POST /json_proto HTTP/1.0 [15:26:54]Method: POST [15:26:54]URL: /json_proto [15:26:54]Method is POST - this is cgi request [15:26:54]url: /json_proto [15:26:54]query_string will be loaded in cgi processing [15:26:54]execute_cgi json_proto POST (null) [15:26:54]execute_cgi path=json_proto method=POST [15:26:54]POST find Content-Length [15:26:54]Host: 172.17.50.3:8080 [15:26:54]Content-Length: 675 [15:26:54]Content-Type: application/json [15:26:54] [15:26:54]POST finish read [15:26:54]Found Content-Length = 675 [15:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886447", "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.940, "sum" : 300.23, "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" ] } } [15:26:54]execute_script... [15: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)2886447", "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.940, "sum" : 300.23, "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" ] } } [15:26:54]POST & json_proto [15:26:54]process_json_proto [15:26:54]json parsed OK: [15:26:54]protocol is kg_v1.0 [15:26:54]action value=close_receipt [15:26:54]process_action close_receipt [15:26:54]cmd_close_receipt [15:26:54]MH_GetDate [15:26:54]Write to MH i2c: F0 00 00 F7 13 F9 [15:26:54]Write i2c OK [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: F0 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: F0 09 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: F0 09 00 F7 13 00 C0 15 19 67 6B 98 1E 66 DE [15:26:54]GetLastDocTimeStamp 1729697211 [15:26:54]current date 1729697216 [15:26:54]FM_GetShiftState [15:26:54]SAM_PROTO_GetShiftState [15:26:54]wFMCommunicate request_size=4 [15:26:54]MH_SAM_APDU [15:26:54]CAPDU: 80 13 01 00 [15:26:54]Write to MH i2c: E2 08 00 F8 13 80 13 01 00 00 00 00 00 88 [15:26:54]Write i2c OK [15:26:54]MH_I2C_Read... [15:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:54]Read from MH i2c: E2 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 0E 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 0E 00 F8 13 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 15 [15:26:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:54]wFMCommunicate OK [15:26:54]SAM_PROTO_GetShiftState done [15:26:54]FM_GetShiftState done [15:26:54]opened in 1729642435 [15:26:54]opened+sec_in_day 1729728835 [15:26:54]quantity*price = 30022 [15:26:54]sum+1 = 30024 [15:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 188 23.10.2024 15:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70672 ФПД: 167110446261093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70672&fm=167110446261093&tin=02508201610067®Number=0000000000156251&sum=30000 [15:26:55]StoreToDocumentArchive [15:26:55]shift 196 fd 70672 [15:26:55]save to /storage/0196/doc_00070672 [15:26:55]save last doc name /storage/0196/doc_00070672 to /storage/kkm_last_doc_name [15:26:55]save OK [15:26:55]Clear old archive folders... [15:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:26:55]tlvbuf is B6EBCAA0 [15:26:55]SAM_PROTO_ClearQueue [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 09 00 00 [15:26:55]Write to MH i2c: E2 08 00 05 14 80 09 00 00 00 00 00 00 8B [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 03 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [15:26:55]RAPDU: 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_ClearQueue done [15:26:55]KKMCreateOFDPacket [15:26:55]OFDProtocolAddRootSTLVToBuf [15:26:55]FM_MakeSignedData [15:26:55]FM_MakeSignedData [15:26:55]SAM_PROTO_SignData [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 0D 01 02 [15:26:55]Write to MH i2c: E2 08 00 06 14 80 0D 01 02 00 00 00 00 93 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 03 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [15:26:55]RAPDU: 90 00 [15:26:55]wFMCommunicate OK [15:26:55]wFMCommunicate request_size=255 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 C0 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 97 FC 6E C9 [15:26:55]Write to MH i2c: E2 02 01 07 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 C0 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 97 FC 6E C9 00 00 93 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 03 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [15:26:56]RAPDU: 90 00 [15:26:56]wFMCommunicate OK [15:26:56]wFMCommunicate request_size=7 [15:26:56]MH_SAM_APDU [15:26:56]CAPDU: 80 0D 02 02 02 A3 65 [15:26:56]Write to MH i2c: E2 0A 00 08 14 80 0D 02 02 02 00 A3 65 00 00 A2 [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:56]Read from MH i2c: E2 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 03 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [15:26:56]RAPDU: 90 00 [15:26:56]wFMCommunicate OK [15:26:56]wFMCommunicate request_size=4 [15:26:56]MH_SAM_APDU [15:26:56]CAPDU: 80 0D 03 02 [15:26:56]Write to MH i2c: E2 08 00 09 14 80 0D 03 02 00 00 00 00 98 [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:56]Read from MH i2c: E2 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 0B 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 0B 00 09 14 00 30 24 91 2F 98 A9 02 E8 90 00 D8 [15:26:56]RAPDU: 30 24 91 2F 98 A9 02 E8 90 00 [15:26:56]wFMCommunicate OK [15:26:56]SAM_PROTO_SignData done [15:26:56]FM_MakeSignedData done [15:26:56]CreateOFDProtocolMessage [15:26:56]wFMCommunicate request_size=4 [15:26:56]MH_SAM_APDU [15:26:56]CAPDU: 80 11 00 00 [15:26:56]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:56]Read from MH i2c: E2 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 17 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [15: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 [15:26:56]wFMCommunicate OK [15:26:56]CreateOFDProtocolMessage done [15:26:56]OFDSenderStorePacket 70672 [15:26:56]StoreOFDPacket docnum=70672 [15: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 0C 01 00 00 88 C2 04 01 9F 97 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 C0 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 97 FC 6E C9 A3 65 30 24 91 2F 98 A9 02 E8 [15:26:56]CheckFolder [15:26:56]dirname=/storage/ofd_packets [15:26:56]CheckFolder done [15:26:56]ProducePacketName [15:26:56]name=ofd_packets/00070672 [15:26:56]NVStorageSaveData ofd_packets/00070672 [15:26:56]File name is /storage/ofd_packets/00070672 [15:26:56]Write 298 bytes [15:26:56]NVStorageSaveData done [15:26:56]OFDSenderStorePacket done [15:26:56]KKMCreateOFDPacket done [15:26:56]NVStorageSaveData kkm_last_timestamp [15:26:56]File name is /storage/kkm_last_timestamp [15:26:56]Write 4 bytes [15:26:56]NVStorageSaveData done [15:26:56]ExternCall_PrintAddStr [15:26:56]wPrintStart [15:26:56]Write to MH i2c: 01 00 00 0B 14 1F [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: 01 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: 01 07 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [15:26:56]RasterBufferAndPrint [15:26:56]line Счет N : (1)2886447 [15:26:56]line ИНН: 02508201610067 [15:26:56]line Контрольно-Кассовый Чек [15:26:56]line ПРОДАЖА [15:26:56]line ТРК (МРК, ГНК) : 51 [15:26:56]line Товар: 2710194210 [15:26:56]line ДТ-К-5 [15:26:56]line 3.940 * 76.20 [15:26:56]line = 300.23 [15:26:56]line НДС 12% НСП 1% [15:26:56]line > о реализуемом товаре [15:26:56]line ОКРУГЛЕНИЕ: -0.23 [15:26:56]line ИТОГО: 300.00 [15:26:56]line Внесено: 300.00 [15:26:56]line СДАЧА: 0.00 [15:26:56]line НСП 1% : 2.66 [15:26:56]line НДС 12% : 31.88 [15:26:56]line Наличными: 300.00 [15:26:56]line Безнал.: 0.00 [15:26:56]line Место: АЗС № 85 "Партнер Нефть" [15:26:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:26:56]line СНО: Общий режим [15:26:56]line Чек 188 23.10.2024 15:26 [15:26:56]line Смена: 196 ФФД: 1.0 [15:26:56]line ЗНМ: 0300000167 [15:26:56]line РНМ: 0000000000156251 [15:26:56]line Версия ККМ: v1.0 [15:26:56]line ФМ: 0000000000963346 [15:26:56]line ФД: 70672 [15:26:56]line ФПД: 167110446261093 [15:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70672&fm=167110446261093&tin=02508201610067®Number=0000000000156251&sum=30000 [15:26:56]OFD Sender: Processing packet 70672 [packets to send 18, broken 17] [15:26:56]ProducePacketName [15:26:56]name=ofd_packets/00070672 [15:26:56]OFD Sender: To server: pG, [15:26:56]CommunicateWithHost lk.salyk.kg:30040 [15:26:56]ConnectInit lk.salyk.kg [15:26:56]written 0, free lines is 4095 [15:26:56]Connected sock=10 [15: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 0C 01 00 00 88 C2 04 01 9F 97 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 C0 15 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 97 FC 6E C9 A3 65 30 24 91 2F 98 A9 02 E8 [15:26: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 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 10 14 01 00 F4 03 04 00 5D BF 18 67 B6 04 01 00 00 52 EF 66 8D BA DB 40 25 [15:26:57]CommunicateWithHost err = 0 [15:26:57]CheckOFDResponse [15:26:57]1017 (14) - 77093643461234 [15:26:57]1041 (16) - 0000000000963346 [15:26:57]1040 (4) - 70672 [15:26:57]1012 (4) - 23.10.2024 09:18 [15:26:57]1206 (1) - 0 [15:26:57]OFD Sender: Remove packet 70672 [15:26:57]ProducePacketName [15:26:57]name=ofd_packets/00070672 [15:26:57]NVStorageDeleteData [15:26:57]Write to MH i2c: 01 00 00 36 14 4A [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 36 14 00 00 00 00 00 EC 0C 49 [15:26:57]RasterBufferAndPrint [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]written 0, free lines is 3320 [15:26:57]MH_Cut [15:26:57]Write to MH i2c: D1 01 00 3D 14 01 23 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: D1 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: D1 01 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: D1 01 00 3D 14 00 22 [15:26:57]Write to MH i2c: 01 00 00 3E 14 52 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]OFD Sender: No OFD packet to send [15:26:57]*** Cut start [15:26:57]*** Partial cut [15:26:57]*** CUTSNS_PIN = 1 [15:26:58]*** CUTSNS_PIN = 0 [15:26:58]*** Brake cut motor [15:26:58]Read from MH i2c: 01 [15:26:58]MH_I2C_Read... [15:26:58]*** Stop cut motor [15:26:58]*** Cut end [15:26:58]Read from MH i2c: 01 07 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: 01 07 00 3E 14 00 00 00 00 00 FF 0F 67 [15:26:58]process_action close_receipt done [15:26:58]requested_data is exist [15:26:58]produce_requested_data [15:26:58]requested_item fm.sn is exist - process it [15:26:58]wFMCommunicate request_size=4 [15:26:58]MH_SAM_APDU [15:26:58]CAPDU: 80 11 00 00 [15:26:58]Write to MH i2c: E2 08 00 3F 14 80 11 00 00 00 00 00 00 CD [15:26:58]Write i2c OK [15:26:58]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 17 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 17 00 3F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [15: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 [15:26:58]wFMCommunicate OK [15:26:58]requested_item fd.num is exist - process it [15:26:58]SAM_PROTO_GetFieldsCounters [15:26:58]wFMCommunicate request_size=4 [15:26:58]MH_SAM_APDU [15:26:58]CAPDU: 80 13 00 00 [15:26:58]Write to MH i2c: E2 08 00 40 14 80 13 00 00 00 00 00 00 D0 [15:26:58]Write i2c OK [15:26:58]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 62 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 62 00 40 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 10 14 01 00 0E 04 04 00 C4 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 08 [15: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 10 14 01 00 0E 04 04 00 C4 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 [15:26:58]wFMCommunicate OK [15:26:58]SAM_PROTO_GetFieldsCounters done [15:26:58]requested_item shift.num is exist - process it [15:26:58]requested_item shift.opened is exist - process it [15:26:58]req_shift_opened [15:26:58]FM_GetShiftState [15:26:58]SAM_PROTO_GetShiftState [15:26:58]wFMCommunicate request_size=4 [15:26:58]MH_SAM_APDU [15:26:58]CAPDU: 80 13 01 00 [15:26:58]Write to MH i2c: E2 08 00 41 14 80 13 01 00 00 00 00 00 D2 [15:26:58]Write i2c OK [15:26:58]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 0E 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 0E 00 41 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5F [15:26:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:26:58]wFMCommunicate OK [15:26:58]SAM_PROTO_GetShiftState done [15:26:58]FM_GetShiftState done [15:26:58]req_shift_opened done [15:26:58]requested_item shift.open_date is exist - process it [15:26:58]req_shift_open_date [15:26:58]req_shift_open_date done [15:26:58]produce_requested_data done [15:26:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70672,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:26:58]process_action_free close_receipt [15:26:58]json_value_free [15:26:58]json_value_free done [15:26:58]process_json_proto returns [15:26:58]Send response to host [15:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70672,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:26:58]free response buf [15:26:58]execute_script done [15:26:58]execute_script returns [15:26:58]free content buf [15:26:58]Sock 9.Close socket [15:26:58]Sock 9.Thread stoped [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]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:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:31]accept exits with 7 [15:40:31]New connection [15:40:31]New thread 3066891620 created [15:40:31]Thread 3067034980 joined [15:40:31]Waiting for new connection... [15:40:31] Sock 7.Parse request [15:40:31]Sock 7.Check first char [15:40:31]Sock 7.First char is OK [15:40:31]request: POST /json_proto HTTP/1.0 [15:40:31]Method: POST [15:40:31]URL: /json_proto [15:40:31]Method is POST - this is cgi request [15:40:31]url: /json_proto [15:40:31]query_string will be loaded in cgi processing [15:40:31]execute_cgi json_proto POST (null) [15:40:31]execute_cgi path=json_proto method=POST [15:40:31]POST find Content-Length [15:40:31]Host: 172.17.50.3:8080 [15:40:31]Content-Length: 790 [15:40:31]Content-Type: application/json [15:40:31] [15:40:31]POST finish read [15:40:31]Found Content-Length = 790 [15:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886450", "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" : 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\u000A97608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:31]execute_script... [15:40: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)2886450", "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" : 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\u000A97608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:31]POST & json_proto [15:40:31]process_json_proto [15:40:31]json parsed OK: [15:40:31]protocol is kg_v1.0 [15:40:31]action value=close_receipt [15:40:31]process_action close_receipt [15:40:31]cmd_close_receipt [15:40:31]MH_GetDate [15:40:31]Write to MH i2c: F0 00 00 42 14 45 [15:40:31]Write i2c OK [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 09 00 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 09 00 42 14 00 F0 18 19 67 6B 98 1E 66 5D [15:40:31]GetLastDocTimeStamp 1729697216 [15:40:31]current date 1729698032 [15:40:31]FM_GetShiftState [15:40:31]SAM_PROTO_GetShiftState [15:40:31]wFMCommunicate request_size=4 [15:40:31]MH_SAM_APDU [15:40:31]CAPDU: 80 13 01 00 [15:40:31]Write to MH i2c: E2 08 00 43 14 80 13 01 00 00 00 00 00 D4 [15:40:31]Write i2c OK [15:40:31]MH_I2C_Read... [15:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:31]Read from MH i2c: E2 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: E2 0E 00 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: E2 0E 00 43 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 61 [15:40:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:40:31]wFMCommunicate OK [15:40:31]SAM_PROTO_GetShiftState done [15:40:31]FM_GetShiftState done [15:40:31]opened in 1729642435 [15:40:31]opened+sec_in_day 1729728835 [15:40:31]quantity*price = 0 [15:40:31]sum+1 = 1 [15:40: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 СНО: Общий режим Чек 189 23.10.2024 15:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 97608 ФМ: 0000000000963346 ФД: 70673 ФПД: 143931860529133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154032&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70673&fm=143931860529133&tin=02508201610067®Number=0000000000156251&sum=0 [15:40:32]StoreToDocumentArchive [15:40:32]shift 196 fd 70673 [15:40:32]save to /storage/0196/doc_00070673 [15:40:32]save last doc name /storage/0196/doc_00070673 to /storage/kkm_last_doc_name [15:40:32]save OK [15:40:32]Clear old archive folders... [15:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:40:32]tlvbuf is 0017F330 [15:40:32]SAM_PROTO_ClearQueue [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 09 00 00 [15:40:32]Write to MH i2c: E2 08 00 50 14 80 09 00 00 00 00 00 00 D6 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_ClearQueue done [15:40:32]KKMCreateOFDPacket [15:40:32]OFDProtocolAddRootSTLVToBuf [15:40:32]FM_MakeSignedData [15:40:32]FM_MakeSignedData [15:40:32]SAM_PROTO_SignData [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 0D 01 02 [15:40:32]Write to MH i2c: E2 08 00 51 14 80 0D 01 02 00 00 00 00 DE [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]wFMCommunicate request_size=255 [15:40:32]MH_SAM_APDU [15:40: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 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 BD 00 00 00 F4 03 04 00 F0 18 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 E7 BF 6B [15:40:32]Write to MH i2c: E2 02 01 52 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 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 BD 00 00 00 F4 03 04 00 F0 18 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 E7 BF 6B 00 00 65 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 52 14 00 90 00 DA [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]wFMCommunicate request_size=7 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 0D 02 02 02 2F ED [15:40:32]Write to MH i2c: E2 0A 00 53 14 80 0D 02 02 02 00 2F ED 00 00 01 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 53 14 00 90 00 DB [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 0D 03 02 [15:40:32]Write to MH i2c: E2 08 00 54 14 80 0D 03 02 00 00 00 00 E3 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0B 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0B 00 54 14 00 4B 8B 70 EB 67 66 14 3D 90 00 33 [15:40:32]RAPDU: 4B 8B 70 EB 67 66 14 3D 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_SignData done [15:40:32]FM_MakeSignedData done [15:40:32]CreateOFDProtocolMessage [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 11 00 00 [15:40:32]Write to MH i2c: E2 08 00 55 14 80 11 00 00 00 00 00 00 E3 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 17 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 17 00 55 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [15:40:32]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:32]wFMCommunicate OK [15:40:32]CreateOFDProtocolMessage done [15:40:32]OFDSenderStorePacket 70673 [15:40:32]StoreOFDPacket docnum=70673 [15:40: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 25 4D 04 01 63 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 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 BD 00 00 00 F4 03 04 00 F0 18 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 E7 BF 6B 2F ED 4B 8B 70 EB 67 66 14 3D [15:40:32]CheckFolder [15:40:32]dirname=/storage/ofd_packets [15:40:32]CheckFolder done [15:40:32]ProducePacketName [15:40:32]name=ofd_packets/00070673 [15:40:32]NVStorageSaveData ofd_packets/00070673 [15:40:32]File name is /storage/ofd_packets/00070673 [15:40:32]Write 298 bytes [15:40:32]NVStorageSaveData done [15:40:32]OFDSenderStorePacket done [15:40:32]KKMCreateOFDPacket done [15:40:32]NVStorageSaveData kkm_last_timestamp [15:40:32]File name is /storage/kkm_last_timestamp [15:40:32]Write 4 bytes [15:40:32]NVStorageSaveData done [15:40:32]ExternCall_PrintAddStr [15:40:32]wPrintStart [15:40:32]Write to MH i2c: 01 00 00 56 14 6A [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: 01 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: 01 07 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: 01 07 00 56 14 00 00 00 00 00 FF 0F 7F [15:40:32]RasterBufferAndPrint [15:40:32]line Счет N : (1)2886450 [15:40:32]line ИНН: 02508201610067 [15:40:32]line Контрольно-Кассовый Чек [15:40:32]line ПРОДАЖА [15:40:32]line ТРК (МРК, ГНК) : 61 [15:40:32]line Товар: 2710194210 [15:40:32]line ДТ-К-5 [15:40:32]line 20.000 * 0.00 [15:40:32]line = 0.00 [15:40:32]line НДС 12% НСП 1% [15:40:32]line > о реализуемом товаре [15:40:32]line ИТОГО: 0.00 [15:40:32]line НСП 1% : 0.00 [15:40:32]line НДС 12% : 0.00 [15:40:32]line Наличными: 0.00 [15:40:32]line Безнал.: 0.00 [15:40:32]line Место: АЗС № 85 "Партнер Нефть" [15:40:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:40:32]line СНО: Общий режим [15:40:32]line Чек 189 23.10.2024 15:40 [15:40:32]line Смена: 196 ФФД: 1.0 [15:40:32]line ЗНМ: 0300000167 [15:40:32]line РНМ: 0000000000156251 [15:40:32]line Версия ККМ: v1.0 [15:40:32]line Талоны: Топливная Карта [15:40:32]line 97608 [15:40:32]line ФМ: 0000000000963346 [15:40:32]line ФД: 70673 [15:40:32]line ФПД: 143931860529133 [15:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154032&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70673&fm=143931860529133&tin=02508201610067®Number=0000000000156251&sum=0 [15:40:33]OFD Sender: Processing packet 70673 [packets to send 18, broken 17] [15:40:33]ProducePacketName [15:40:33]name=ofd_packets/00070673 [15:40:33]OFD Sender: To server: pG, [15:40:33]CommunicateWithHost lk.salyk.kg:30040 [15:40:33]ConnectInit lk.salyk.kg [15:40:33]written 0, free lines is 4095 [15:40:33]Connected sock=10 [15:40: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 25 4D 04 01 63 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 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 BD 00 00 00 F4 03 04 00 F0 18 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 E7 BF 6B 2F ED 4B 8B 70 EB 67 66 14 3D [15:40: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 D4 86 47 00 88 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 11 14 01 00 F4 03 04 00 8E C2 18 67 B6 04 01 00 00 A3 28 99 4F 11 AD 3B E4 [15:40:33]CommunicateWithHost err = 0 [15:40:33]CheckOFDResponse [15:40:33]1017 (14) - 77093643461234 [15:40:33]1041 (16) - 0000000000963346 [15:40:33]1040 (4) - 70673 [15:40:33]1012 (4) - 23.10.2024 09:31 [15:40:33]1206 (1) - 0 [15:40:33]OFD Sender: Remove packet 70673 [15:40:33]ProducePacketName [15:40:33]name=ofd_packets/00070673 [15:40:33]NVStorageDeleteData [15:40:33]Write to MH i2c: 01 00 00 80 14 94 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: 01 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: 01 07 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 0B 0D B3 [15:40:33]RasterBufferAndPrint [15:40:33]line [15:40:33]line [15:40:33]line [15:40:33]line [15:40:33]line [15:40:33]written 0, free lines is 3345 [15:40:33]MH_Cut [15:40:33]Write to MH i2c: D1 01 00 87 14 01 6D [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: D1 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: D1 01 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: D1 01 00 87 14 00 6C [15:40:33]Write to MH i2c: 01 00 00 88 14 9C [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]OFD Sender: No OFD packet to send [15:40:34]*** Cut start [15:40:34]*** Partial cut [15:40:34]*** CUTSNS_PIN = 1 [15:40:34]*** CUTSNS_PIN = 0 [15:40:34]*** Brake cut motor [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]*** Stop cut motor [15:40:34]*** Cut end [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 88 14 00 00 00 00 00 FF 0F B1 [15:40:34]process_action close_receipt done [15:40:34]requested_data is exist [15:40:34]produce_requested_data [15:40:34]requested_item fm.sn is exist - process it [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 89 14 80 11 00 00 00 00 00 00 17 [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:35]Read from MH i2c: E2 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 17 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 17 00 89 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [15:40:35]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:35]wFMCommunicate OK [15:40:35]requested_item fd.num is exist - process it [15:40:35]SAM_PROTO_GetFieldsCounters [15:40:35]wFMCommunicate request_size=4 [15:40:35]MH_SAM_APDU [15:40:35]CAPDU: 80 13 00 00 [15:40:35]Write to MH i2c: E2 08 00 8A 14 80 13 00 00 00 00 00 00 1A [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:35]Read from MH i2c: E2 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 62 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 62 00 8A 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 11 14 01 00 0E 04 04 00 C4 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 56 [15:40: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 11 14 01 00 0E 04 04 00 C4 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 [15:40:35]wFMCommunicate OK [15:40:35]SAM_PROTO_GetFieldsCounters done [15:40:35]requested_item shift.num is exist - process it [15:40:35]requested_item shift.opened is exist - process it [15:40:35]req_shift_opened [15:40:35]FM_GetShiftState [15:40:35]SAM_PROTO_GetShiftState [15:40:35]wFMCommunicate request_size=4 [15:40:35]MH_SAM_APDU [15:40:35]CAPDU: 80 13 01 00 [15:40:35]Write to MH i2c: E2 08 00 8B 14 80 13 01 00 00 00 00 00 1C [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:35]Read from MH i2c: E2 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 0E 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: E2 0E 00 8B 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A9 [15:40:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:40:35]wFMCommunicate OK [15:40:35]SAM_PROTO_GetShiftState done [15:40:35]FM_GetShiftState done [15:40:35]req_shift_opened done [15:40:35]requested_item shift.open_date is exist - process it [15:40:35]req_shift_open_date [15:40:35]req_shift_open_date done [15:40:35]produce_requested_data done [15:40:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70673,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:40:35]process_action_free close_receipt [15:40:35]json_value_free [15:40:35]json_value_free done [15:40:35]process_json_proto returns [15:40:35]Send response to host [15:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70673,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:40:35]free response buf [15:40:35]execute_script done [15:40:35]execute_script returns [15:40:35]free content buf [15:40:35]Sock 7.Close socket [15:40:35]Sock 7.Thread stoped [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:58]accept exits with 9 [15:46:58]New connection [15:46:58]New thread 3067034980 created [15:46:58]Thread 3066891620 joined [15:46:58]Waiting for new connection... [15:46:58] Sock 9.Parse request [15:46:58]Sock 9.Check first char [15:46:58]Sock 9.First char is OK [15:46:58]request: POST /json_proto HTTP/1.0 [15:46:58]Method: POST [15:46:58]URL: /json_proto [15:46:58]Method is POST - this is cgi request [15:46:58]url: /json_proto [15:46:58]query_string will be loaded in cgi processing [15:46:58]execute_cgi json_proto POST (null) [15:46:58]execute_cgi path=json_proto method=POST [15:46:58]POST find Content-Length [15:46:58]Host: 172.17.50.3:8080 [15:46:58]Content-Length: 801 [15:46:58]Content-Type: application/json [15:46:58] [15:46:58]POST finish read [15:46:58]Found Content-Length = 801 [15:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886451", "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\u000A4219215", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:58]execute_script... [15:46: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)2886451", "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\u000A4219215", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:58]POST & json_proto [15:46:58]process_json_proto [15:46:58]json parsed OK: [15:46:58]protocol is kg_v1.0 [15:46:58]action value=close_receipt [15:46:58]process_action close_receipt [15:46:58]cmd_close_receipt [15:46:58]MH_GetDate [15:46:58]Write to MH i2c: F0 00 00 8C 14 8F [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 09 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 09 00 8C 14 00 74 1A 19 67 6B 98 1E 66 2D [15:46:58]GetLastDocTimeStamp 1729698032 [15:46:58]current date 1729698420 [15:46:58]FM_GetShiftState [15:46:58]SAM_PROTO_GetShiftState [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 13 01 00 [15:46:58]Write to MH i2c: E2 08 00 8D 14 80 13 01 00 00 00 00 00 1E [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 8D 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AB [15:46:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_GetShiftState done [15:46:58]FM_GetShiftState done [15:46:58]opened in 1729642435 [15:46:58]opened+sec_in_day 1729728835 [15:46:58]quantity*price = 0 [15:46:58]sum+1 = 1 [15:46: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 СНО: Общий режим Чек 190 23.10.2024 15:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4219215 ФМ: 0000000000963346 ФД: 70674 ФПД: 117489264847089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154700&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70674&fm=117489264847089&tin=02508201610067®Number=0000000000156251&sum=0 [15:46:59]StoreToDocumentArchive [15:46:59]shift 196 fd 70674 [15:46:59]save to /storage/0196/doc_00070674 [15:46:59]save last doc name /storage/0196/doc_00070674 to /storage/kkm_last_doc_name [15:46:59]save OK [15:46:59]Clear old archive folders... [15:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:59]tlvbuf is 00179570 [15:46:59]SAM_PROTO_ClearQueue [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 09 00 00 [15:46:59]Write to MH i2c: E2 08 00 9A 14 80 09 00 00 00 00 00 00 20 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_ClearQueue done [15:46:59]KKMCreateOFDPacket [15:46:59]OFDProtocolAddRootSTLVToBuf [15:46:59]FM_MakeSignedData [15:46:59]FM_MakeSignedData [15:46:59]SAM_PROTO_SignData [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 0D 01 02 [15:46:59]Write to MH i2c: E2 08 00 9B 14 80 0D 01 02 00 00 00 00 28 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]wFMCommunicate request_size=255 [15:46:59]MH_SAM_APDU [15:46: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 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 BE 00 00 00 F4 03 04 00 74 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A [15:46:59]Write to MH i2c: E2 02 01 9C 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 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 BE 00 00 00 F4 03 04 00 74 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A 00 00 84 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]wFMCommunicate request_size=10 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 0D 02 02 05 DB 19 E5 68 F1 [15:46:59]Write to MH i2c: E2 0D 00 9D 14 80 0D 02 02 05 00 DB 19 E5 68 F1 00 00 67 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 9D 14 00 90 00 25 [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 0D 03 02 [15:46:59]Write to MH i2c: E2 08 00 9E 14 80 0D 03 02 00 00 00 00 2D [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 0B 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 0B 00 9E 14 00 93 5C 00 E7 45 B1 44 05 90 00 43 [15:47:00]RAPDU: 93 5C 00 E7 45 B1 44 05 90 00 [15:47:00]wFMCommunicate OK [15:47:00]SAM_PROTO_SignData done [15:47:00]FM_MakeSignedData done [15:47:00]CreateOFDProtocolMessage [15:47:00]wFMCommunicate request_size=4 [15:47:00]MH_SAM_APDU [15:47:00]CAPDU: 80 11 00 00 [15:47:00]Write to MH i2c: E2 08 00 9F 14 80 11 00 00 00 00 00 00 2D [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 17 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 17 00 9F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [15:47: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:47:00]wFMCommunicate OK [15:47:00]CreateOFDProtocolMessage done [15:47:00]OFDSenderStorePacket 70674 [15:47:00]StoreOFDPacket docnum=70674 [15:47: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 26 F0 07 01 07 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 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 BE 00 00 00 F4 03 04 00 74 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A DB 19 E5 68 F1 93 5C 00 E7 45 B1 44 05 [15:47:00]CheckFolder [15:47:00]dirname=/storage/ofd_packets [15:47:00]CheckFolder done [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00070674 [15:47:00]NVStorageSaveData ofd_packets/00070674 [15:47:00]File name is /storage/ofd_packets/00070674 [15:47:00]Write 301 bytes [15:47:00]NVStorageSaveData done [15:47:00]OFDSenderStorePacket done [15:47:00]KKMCreateOFDPacket done [15:47:00]NVStorageSaveData kkm_last_timestamp [15:47:00]File name is /storage/kkm_last_timestamp [15:47:00]Write 4 bytes [15:47:00]NVStorageSaveData done [15:47:00]ExternCall_PrintAddStr [15:47:00]wPrintStart [15:47:00]Write to MH i2c: 01 00 00 A0 14 B4 [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 A0 14 00 00 00 00 00 FF 0F C9 [15:47:00]RasterBufferAndPrint [15:47:00]line Счет N : (1)2886451 [15:47:00]line ИНН: 02508201610067 [15:47:00]line Контрольно-Кассовый Чек [15:47:00]line ПРОДАЖА [15:47:00]line ТРК (МРК, ГНК) : 42 [15:47:00]line Товар: 2710124130 [15:47:00]line Аи-92-К-5 [15:47:00]line 10.000 * 0.00 [15:47:00]line = 0.00 [15:47:00]line НДС 12% НСП 1% [15:47:00]line > о реализуемом товаре [15:47:00]line ИТОГО: 0.00 [15:47:00]line НСП 1% : 0.00 [15:47:00]line НДС 12% : 0.00 [15:47:00]line Наличными: 0.00 [15:47:00]line Безнал.: 0.00 [15:47:00]line Место: АЗС № 85 "Партнер Нефть" [15:47:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:47:00]line СНО: Общий режим [15:47:00]line Чек 190 23.10.2024 15:47 [15:47:00]line Смена: 196 ФФД: 1.0 [15:47:00]line ЗНМ: 0300000167 [15:47:00]line РНМ: 0000000000156251 [15:47:00]line Версия ККМ: v1.0 [15:47:00]line Талоны: Топливные Талоны [15:47:00]line 4219215 [15:47:00]line ФМ: 0000000000963346 [15:47:00]line ФД: 70674 [15:47:00]line ФПД: 117489264847089 [15:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154700&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70674&fm=117489264847089&tin=02508201610067®Number=0000000000156251&sum=0 [15:47:00]OFD Sender: Processing packet 70674 [packets to send 18, broken 17] [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00070674 [15:47:00]OFD Sender: To server: pG, [15:47:00]CommunicateWithHost lk.salyk.kg:30040 [15:47:00]ConnectInit lk.salyk.kg [15:47:00]written 0, free lines is 4095 [15:47:00]Connected sock=10 [15:47: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 26 F0 07 01 07 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 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 BE 00 00 00 F4 03 04 00 74 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A DB 19 E5 68 F1 93 5C 00 E7 45 B1 44 05 [15:47: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 05 EA 47 00 A4 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 11 C4 18 67 B6 04 01 00 00 D2 65 04 71 FC 44 10 D3 [15:47:00]CommunicateWithHost err = 0 [15:47:00]CheckOFDResponse [15:47:00]1017 (14) - 77093643461234 [15:47:00]1041 (16) - 0000000000963346 [15:47:00]1040 (4) - 70674 [15:47:00]1012 (4) - 23.10.2024 09:38 [15:47:00]1206 (1) - 0 [15:47:00]OFD Sender: Remove packet 70674 [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00070674 [15:47:00]NVStorageDeleteData [15:47:00]Write to MH i2c: 01 00 00 CA 14 DE [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 00 0D F2 [15:47:00]RasterBufferAndPrint [15:47:00]line [15:47:00]line [15:47:00]line [15:47:00]line [15:47:00]line [15:47:00]written 0, free lines is 3334 [15:47:00]MH_Cut [15:47:00]Write to MH i2c: D1 01 00 D1 14 01 B7 [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: D1 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: D1 01 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: D1 01 00 D1 14 00 B6 [15:47:00]Write to MH i2c: 01 00 00 D2 14 E6 [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:01]OFD Sender: No OFD packet to send [15:47:01]*** Cut start [15:47:01]*** Partial cut [15:47:01]*** CUTSNS_PIN = 1 [15:47:01]*** CUTSNS_PIN = 0 [15:47:01]*** Brake cut motor [15:47:02]Read from MH i2c: 01 [15:47:02]MH_I2C_Read... [15:47:02]*** Stop cut motor [15:47:02]*** Cut end [15:47:02]Read from MH i2c: 01 07 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: 01 07 00 D2 14 00 00 00 00 00 FF 0F FB [15:47:02]process_action close_receipt done [15:47:02]requested_data is exist [15:47:02]produce_requested_data [15:47:02]requested_item fm.sn is exist - process it [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 11 00 00 [15:47:02]Write to MH i2c: E2 08 00 D3 14 80 11 00 00 00 00 00 00 61 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 17 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 17 00 D3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [15:47: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:47:02]wFMCommunicate OK [15:47:02]requested_item fd.num is exist - process it [15:47:02]SAM_PROTO_GetFieldsCounters [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 13 00 00 [15:47:02]Write to MH i2c: E2 08 00 D4 14 80 13 00 00 00 00 00 00 64 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 62 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 62 00 D4 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 12 14 01 00 0E 04 04 00 C4 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 A4 [15:47: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 12 14 01 00 0E 04 04 00 C4 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 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_GetFieldsCounters done [15:47:02]requested_item shift.num is exist - process it [15:47:02]requested_item shift.opened is exist - process it [15:47:02]req_shift_opened [15:47:02]FM_GetShiftState [15:47:02]SAM_PROTO_GetShiftState [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 13 01 00 [15:47:02]Write to MH i2c: E2 08 00 D5 14 80 13 01 00 00 00 00 00 66 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 D5 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F3 [15:47:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_GetShiftState done [15:47:02]FM_GetShiftState done [15:47:02]req_shift_opened done [15:47:02]requested_item shift.open_date is exist - process it [15:47:02]req_shift_open_date [15:47:02]req_shift_open_date done [15:47:02]produce_requested_data done [15:47:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70674,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:47:02]process_action_free close_receipt [15:47:02]json_value_free [15:47:02]json_value_free done [15:47:02]process_json_proto returns [15:47:02]Send response to host [15:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70674,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:47:02]free response buf [15:47:02]execute_script done [15:47:02]execute_script returns [15:47:02]free content buf [15:47:02]Sock 9.Close socket [15:47:02]Sock 9.Thread stoped [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:00]accept exits with 7 [15:48:00]New connection [15:48:00]New thread 3066891620 created [15:48:00]Thread 3067034980 joined [15:48:00]Waiting for new connection... [15:48:00] Sock 7.Parse request [15:48:00]Sock 7.Check first char [15:48:00]Sock 7.First char is OK [15:48:00]request: POST /json_proto HTTP/1.0 [15:48:00]Method: POST [15:48:00]URL: /json_proto [15:48:00]Method is POST - this is cgi request [15:48:00]url: /json_proto [15:48:00]query_string will be loaded in cgi processing [15:48:00]execute_cgi json_proto POST (null) [15:48:00]execute_cgi path=json_proto method=POST [15:48:00]POST find Content-Length [15:48:00]Host: 172.17.50.3:8080 [15:48:00]Content-Length: 680 [15:48:00]Content-Type: application/json [15:48:00] [15:48:00]POST finish read [15:48:00]Found Content-Length = 680 [15:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886452", "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:48:00]execute_script... [15:48: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)2886452", "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:48:00]POST & json_proto [15:48:00]process_json_proto [15:48:00]json parsed OK: [15:48:00]protocol is kg_v1.0 [15:48:00]action value=close_receipt [15:48:00]process_action close_receipt [15:48:00]cmd_close_receipt [15:48:00]MH_GetDate [15:48:00]Write to MH i2c: F0 00 00 D6 14 D9 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: F0 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: F0 09 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: F0 09 00 D6 14 00 B2 1A 19 67 6B 98 1E 66 B5 [15:48:00]GetLastDocTimeStamp 1729698420 [15:48:00]current date 1729698482 [15:48:00]FM_GetShiftState [15:48:00]SAM_PROTO_GetShiftState [15:48:00]wFMCommunicate request_size=4 [15:48:00]MH_SAM_APDU [15:48:00]CAPDU: 80 13 01 00 [15:48:00]Write to MH i2c: E2 08 00 D7 14 80 13 01 00 00 00 00 00 68 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 0E 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 0E 00 D7 14 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F5 [15:48:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:48:00]wFMCommunicate OK [15:48:00]SAM_PROTO_GetShiftState done [15:48:00]FM_GetShiftState done [15:48:00]opened in 1729642435 [15:48:00]opened+sec_in_day 1729728835 [15:48:00]quantity*price = 100050 [15:48:00]sum+1 = 100052 [15:48:00]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 СНО: Общий режим Чек 191 23.10.2024 15:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70675 ФПД: 64441263367015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154802&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70675&fm=64441263367015&tin=02508201610067®Number=0000000000156251&sum=100000 [15:48:01]StoreToDocumentArchive [15:48:01]shift 196 fd 70675 [15:48:01]save to /storage/0196/doc_00070675 [15:48:01]save last doc name /storage/0196/doc_00070675 to /storage/kkm_last_doc_name [15:48:01]save OK [15:48:01]Clear old archive folders... [15:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:01]tlvbuf is 00165930 [15:48:01]SAM_PROTO_ClearQueue [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 09 00 00 [15:48:01]Write to MH i2c: E2 08 00 E4 14 80 09 00 00 00 00 00 00 6A [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 E4 14 00 90 00 6C [15:48:01]RAPDU: 90 00 [15:48:01]wFMCommunicate OK [15:48:01]SAM_PROTO_ClearQueue done [15:48:01]KKMCreateOFDPacket [15:48:01]OFDProtocolAddRootSTLVToBuf [15:48:01]FM_MakeSignedData [15:48:01]FM_MakeSignedData [15:48:01]SAM_PROTO_SignData [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 0D 01 02 [15:48:01]Write to MH i2c: E2 08 00 E5 14 80 0D 01 02 00 00 00 00 72 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 E5 14 00 90 00 6D [15:48:01]RAPDU: 90 00 [15:48:01]wFMCommunicate OK [15:48:01]wFMCommunicate request_size=255 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 BF 00 00 00 F4 03 04 00 B2 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3A 9B E6 9C [15:48:01]Write to MH i2c: E2 02 01 E6 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 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 BF 00 00 00 F4 03 04 00 B2 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3A 9B E6 9C 00 00 3F [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [15:48:01]RAPDU: 90 00 [15:48:01]wFMCommunicate OK [15:48:01]wFMCommunicate request_size=7 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 0D 02 02 02 A3 67 [15:48:01]Write to MH i2c: E2 0A 00 E7 14 80 0D 02 02 02 00 A3 67 00 00 83 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 03 00 E7 14 00 90 00 6F [15:48:01]RAPDU: 90 00 [15:48:01]wFMCommunicate OK [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 0D 03 02 [15:48:01]Write to MH i2c: E2 08 00 E8 14 80 0D 03 02 00 00 00 00 77 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 0B 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 0B 00 E8 14 00 6E FE 89 42 16 B0 22 DC 90 00 73 [15:48:01]RAPDU: 6E FE 89 42 16 B0 22 DC 90 00 [15:48:01]wFMCommunicate OK [15:48:01]SAM_PROTO_SignData done [15:48:01]FM_MakeSignedData done [15:48:01]CreateOFDProtocolMessage [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 11 00 00 [15:48:01]Write to MH i2c: E2 08 00 E9 14 80 11 00 00 00 00 00 00 77 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 E9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [15:48:01]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:01]wFMCommunicate OK [15:48:01]CreateOFDProtocolMessage done [15:48:01]OFDSenderStorePacket 70675 [15:48:01]StoreOFDPacket docnum=70675 [15:48: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 0C 01 00 00 B0 B8 04 01 30 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 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 BF 00 00 00 F4 03 04 00 B2 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3A 9B E6 9C A3 67 6E FE 89 42 16 B0 22 DC [15:48:01]CheckFolder [15:48:01]dirname=/storage/ofd_packets [15:48:01]CheckFolder done [15:48:01]ProducePacketName [15:48:01]name=ofd_packets/00070675 [15:48:01]NVStorageSaveData ofd_packets/00070675 [15:48:01]File name is /storage/ofd_packets/00070675 [15:48:01]Write 298 bytes [15:48:01]NVStorageSaveData done [15:48:01]OFDSenderStorePacket done [15:48:01]KKMCreateOFDPacket done [15:48:01]NVStorageSaveData kkm_last_timestamp [15:48:01]File name is /storage/kkm_last_timestamp [15:48:01]Write 4 bytes [15:48:01]NVStorageSaveData done [15:48:01]ExternCall_PrintAddStr [15:48:01]wPrintStart [15:48:01]Write to MH i2c: 01 00 00 EA 14 FE [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 FF 0F 13 [15:48:01]RasterBufferAndPrint [15:48:01]line Счет N : (1)2886452 [15:48:01]line ИНН: 02508201610067 [15:48:01]line Контрольно-Кассовый Чек [15:48:01]line ПРОДАЖА [15:48:01]line ТРК (МРК, ГНК) : 51 [15:48:01]line Товар: 2710194210 [15:48:01]line ДТ-К-5 [15:48:01]line 13.130 * 76.20 [15:48:01]line = 1000.51 [15:48:01]line НДС 12% НСП 1% [15:48:01]line > о реализуемом товаре [15:48:01]line ОКРУГЛЕНИЕ: -0.51 [15:48:01]line ИТОГО: 1000.00 [15:48:01]line Внесено: 1000.00 [15:48:01]line СДАЧА: 0.00 [15:48:01]line НСП 1% : 8.85 [15:48:01]line НДС 12% : 106.25 [15:48:01]line Наличными: 1000.00 [15:48:01]line Безнал.: 0.00 [15:48:01]line Место: АЗС № 85 "Партнер Нефть" [15:48:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:48:01]line СНО: Общий режим [15:48:01]line Чек 191 23.10.2024 15:48 [15:48:01]line Смена: 196 ФФД: 1.0 [15:48:01]line ЗНМ: 0300000167 [15:48:01]line РНМ: 0000000000156251 [15:48:01]line Версия ККМ: v1.0 [15:48:01]line ФМ: 0000000000963346 [15:48:01]line ФД: 70675 [15:48:02]line ФПД: 64441263367015 [15:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154802&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70675&fm=64441263367015&tin=02508201610067®Number=0000000000156251&sum=100000 [15:48:02]OFD Sender: Processing packet 70675 [packets to send 18, broken 17] [15:48:02]ProducePacketName [15:48:02]name=ofd_packets/00070675 [15:48:02]OFD Sender: To server: pG, [15:48:02]CommunicateWithHost lk.salyk.kg:30040 [15:48:02]ConnectInit lk.salyk.kg [15:48:02]written 0, free lines is 4095 [15:48:02]Connected sock=10 [15:48: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 0C 01 00 00 B0 B8 04 01 30 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 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 BF 00 00 00 F4 03 04 00 B2 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3A 9B E6 9C A3 67 6E FE 89 42 16 B0 22 DC [15:48: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 2F D2 47 00 89 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 13 14 01 00 F4 03 04 00 4F C4 18 67 B6 04 01 00 00 19 A5 63 98 09 41 82 C1 [15:48:02]CommunicateWithHost err = 0 [15:48:02]CheckOFDResponse [15:48:02]1017 (14) - 77093643461234 [15:48:02]1041 (16) - 0000000000963346 [15:48:02]1040 (4) - 70675 [15:48:02]1012 (4) - 23.10.2024 09:39 [15:48:02]1206 (1) - 0 [15:48:02]OFD Sender: Remove packet 70675 [15:48:02]ProducePacketName [15:48:02]name=ofd_packets/00070675 [15:48:02]NVStorageDeleteData [15:48:02]Write to MH i2c: 01 00 00 15 15 2A [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: 01 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: 01 07 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 ED 0C 2A [15:48:02]RasterBufferAndPrint [15:48:02]line [15:48:02]line [15:48:02]line [15:48:02]line [15:48:02]line [15:48:02]written 0, free lines is 3315 [15:48:02]MH_Cut [15:48:02]Write to MH i2c: D1 01 00 1C 15 01 03 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: D1 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: D1 01 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: D1 01 00 1C 15 00 02 [15:48:02]Write to MH i2c: 01 00 00 1D 15 32 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:03]OFD Sender: No OFD packet to send [15:48:03]*** Cut start [15:48:03]*** Partial cut [15:48:03]*** CUTSNS_PIN = 1 [15:48:03]*** CUTSNS_PIN = 0 [15:48:03]*** Brake cut motor [15:48:04]Read from MH i2c: 01 [15:48:04]MH_I2C_Read... [15:48:04]*** Stop cut motor [15:48:04]*** Cut end [15:48:04]Read from MH i2c: 01 07 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 FF 0F 47 [15:48:04]process_action close_receipt done [15:48:04]requested_data is exist [15:48:04]produce_requested_data [15:48:04]requested_item fm.sn is exist - process it [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 11 00 00 [15:48:04]Write to MH i2c: E2 08 00 1E 15 80 11 00 00 00 00 00 00 AD [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 1E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [15: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 [15:48:04]wFMCommunicate OK [15:48:04]requested_item fd.num is exist - process it [15:48:04]SAM_PROTO_GetFieldsCounters [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 13 00 00 [15:48:04]Write to MH i2c: E2 08 00 1F 15 80 13 00 00 00 00 00 00 B0 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 62 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 62 00 1F 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 13 14 01 00 0E 04 04 00 C4 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 F4 [15: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 13 14 01 00 0E 04 04 00 C4 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 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_GetFieldsCounters done [15:48:04]requested_item shift.num is exist - process it [15:48:04]requested_item shift.opened is exist - process it [15:48:04]req_shift_opened [15:48:04]FM_GetShiftState [15:48:04]SAM_PROTO_GetShiftState [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 13 01 00 [15:48:04]Write to MH i2c: E2 08 00 20 15 80 13 01 00 00 00 00 00 B2 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0E 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0E 00 20 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3F [15:48:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_GetShiftState done [15:48:04]FM_GetShiftState done [15:48:04]req_shift_opened done [15:48:04]requested_item shift.open_date is exist - process it [15:48:04]req_shift_open_date [15:48:04]req_shift_open_date done [15:48:04]produce_requested_data done [15:48:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70675,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:48:04]process_action_free close_receipt [15:48:04]json_value_free [15:48:04]json_value_free done [15:48:04]process_json_proto returns [15:48:04]Send response to host [15:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70675,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:48:04]free response buf [15:48:04]execute_script done [15:48:04]execute_script returns [15:48:04]free content buf [15:48:04]Sock 7.Close socket [15:48:04]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:11]accept exits with 9 [15:49:11]New connection [15:49:11]New thread 3067034980 created [15:49:11]Thread 3066891620 joined [15:49:11]Waiting for new connection... [15:49:11] Sock 9.Parse request [15:49:11]Sock 9.Check first char [15:49:11]Sock 9.First char is OK [15:49:11]request: POST /json_proto HTTP/1.0 [15:49:11]Method: POST [15:49:11]URL: /json_proto [15:49:11]Method is POST - this is cgi request [15:49:11]url: /json_proto [15:49:11]query_string will be loaded in cgi processing [15:49:11]execute_cgi json_proto POST (null) [15:49:11]execute_cgi path=json_proto method=POST [15:49:11]POST find Content-Length [15:49:11]Host: 172.17.50.3:8080 [15:49:11]Content-Length: 689 [15:49:11]Content-Type: application/json [15:49:11] [15:49:11]POST finish read [15:49:11]Found Content-Length = 689 [15:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886454", "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" ] } } [15:49:11]execute_script... [15:49: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)2886454", "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" ] } } [15:49:11]POST & json_proto [15:49:11]process_json_proto [15:49:11]json parsed OK: [15:49:11]protocol is kg_v1.0 [15:49:11]action value=close_receipt [15:49:11]process_action close_receipt [15:49:11]cmd_close_receipt [15:49:11]MH_GetDate [15:49:11]Write to MH i2c: F0 00 00 21 15 25 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: F0 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: F0 09 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: F0 09 00 21 15 00 F9 1A 19 67 6B 98 1E 66 48 [15:49:11]GetLastDocTimeStamp 1729698482 [15:49:11]current date 1729698553 [15:49:11]FM_GetShiftState [15:49:11]SAM_PROTO_GetShiftState [15:49:11]wFMCommunicate request_size=4 [15:49:11]MH_SAM_APDU [15:49:11]CAPDU: 80 13 01 00 [15:49:11]Write to MH i2c: E2 08 00 22 15 80 13 01 00 00 00 00 00 B4 [15:49:11]Write i2c OK [15:49:11]MH_I2C_Read... [15:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:11]Read from MH i2c: E2 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0E 00 [15:49:11]MH_I2C_Read... [15:49:11]Read from MH i2c: E2 0E 00 22 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 41 [15:49:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:49:11]wFMCommunicate OK [15:49:11]SAM_PROTO_GetShiftState done [15:49:11]FM_GetShiftState done [15:49:11]opened in 1729642435 [15:49:11]opened+sec_in_day 1729728835 [15:49:11]quantity*price = 100051 [15:49:11]sum+1 = 100052 [15:49:11]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 СНО: Общий режим Чек 192 23.10.2024 15:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70676 ФПД: 10381657940264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70676&fm=10381657940264&tin=02508201610067®Number=0000000000156251&sum=100000 [15:49:12]StoreToDocumentArchive [15:49:12]shift 196 fd 70676 [15:49:12]save to /storage/0196/doc_00070676 [15:49:12]save last doc name /storage/0196/doc_00070676 to /storage/kkm_last_doc_name [15:49:12]save OK [15:49:12]Clear old archive folders... [15:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:49:12]tlvbuf is B6F6C6D0 [15:49:12]SAM_PROTO_ClearQueue [15:49:12]wFMCommunicate request_size=4 [15:49:12]MH_SAM_APDU [15:49:12]CAPDU: 80 09 00 00 [15:49:12]Write to MH i2c: E2 08 00 2F 15 80 09 00 00 00 00 00 00 B6 [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:12]Read from MH i2c: E2 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: E2 03 00 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: E2 03 00 2F 15 00 90 00 B8 [15:49:12]RAPDU: 90 00 [15:49:12]wFMCommunicate OK [15:49:12]SAM_PROTO_ClearQueue done [15:49:12]KKMCreateOFDPacket [15:49:12]OFDProtocolAddRootSTLVToBuf [15:49:12]FM_MakeSignedData [15:49:12]FM_MakeSignedData [15:49:12]SAM_PROTO_SignData [15:49:12]wFMCommunicate request_size=4 [15:49:12]MH_SAM_APDU [15:49:12]CAPDU: 80 0D 01 02 [15:49:12]Write to MH i2c: E2 08 00 30 15 80 0D 01 02 00 00 00 00 BE [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:12]Read from MH i2c: E2 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: E2 03 00 [15:49:12]MH_I2C_Read... [15:49:12]Read from MH i2c: E2 03 00 30 15 00 90 00 B9 [15:49:12]RAPDU: 90 00 [15:49:12]wFMCommunicate OK [15:49:12]wFMCommunicate request_size=255 [15:49:12]MH_SAM_APDU [15:49:12]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 C0 00 00 00 F4 03 04 00 F9 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [15:49:12]Write to MH i2c: E2 02 01 31 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 C0 00 00 00 F4 03 04 00 F9 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 50 [15:49:12]Write i2c OK [15:49:12]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 03 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [15:49:13]RAPDU: 90 00 [15:49:13]wFMCommunicate OK [15:49:13]wFMCommunicate request_size=16 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 09 71 2B 08 A1 28 [15:49:13]Write to MH i2c: E2 13 00 32 15 80 0D 02 02 0B 00 00 35 04 06 00 09 71 2B 08 A1 28 00 00 8C [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]OFD Sender: No OFD packet to send [15:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 03 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [15:49:13]RAPDU: 90 00 [15:49:13]wFMCommunicate OK [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 0D 03 02 [15:49:13]Write to MH i2c: E2 08 00 33 15 80 0D 03 02 00 00 00 00 C3 [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 0B 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 0B 00 33 15 00 EF EE 7A 1B 00 A6 BE 14 90 00 AE [15:49:13]RAPDU: EF EE 7A 1B 00 A6 BE 14 90 00 [15:49:13]wFMCommunicate OK [15:49:13]SAM_PROTO_SignData done [15:49:13]FM_MakeSignedData done [15:49:13]CreateOFDProtocolMessage [15:49:13]wFMCommunicate request_size=4 [15:49:13]MH_SAM_APDU [15:49:13]CAPDU: 80 11 00 00 [15:49:13]Write to MH i2c: E2 08 00 34 15 80 11 00 00 00 00 00 00 C3 [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:13]Read from MH i2c: E2 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: E2 17 00 34 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [15:49: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:49:13]wFMCommunicate OK [15:49:13]CreateOFDProtocolMessage done [15:49:13]OFDSenderStorePacket 70676 [15:49:13]StoreOFDPacket docnum=70676 [15:49: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 15 01 00 00 DB 33 0D 01 64 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 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 C0 00 00 00 F4 03 04 00 F9 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 71 2B 08 A1 28 EF EE 7A 1B 00 A6 BE 14 [15:49:13]CheckFolder [15:49:13]dirname=/storage/ofd_packets [15:49:13]CheckFolder done [15:49:13]ProducePacketName [15:49:13]name=ofd_packets/00070676 [15:49:13]NVStorageSaveData ofd_packets/00070676 [15:49:13]File name is /storage/ofd_packets/00070676 [15:49:13]Write 307 bytes [15:49:13]NVStorageSaveData done [15:49:13]OFDSenderStorePacket done [15:49:13]KKMCreateOFDPacket done [15:49:13]NVStorageSaveData kkm_last_timestamp [15:49:13]File name is /storage/kkm_last_timestamp [15:49:13]Write 4 bytes [15:49:13]NVStorageSaveData done [15:49:13]ExternCall_PrintAddStr [15:49:13]wPrintStart [15:49:13]Write to MH i2c: 01 00 00 35 15 4A [15:49:13]Write i2c OK [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: 01 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: 01 07 00 [15:49:13]MH_I2C_Read... [15:49:13]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [15:49:13]RasterBufferAndPrint [15:49:13]line Счет N : (1)2886454 [15:49:13]line ИНН: 02508201610067 [15:49:13]line Контрольно-Кассовый Чек [15:49:13]line ПРОДАЖА [15:49:13]line ТРК (МРК, ГНК) : 11 [15:49:13]line Товар: 2710194240 [15:49:13]line D-ENERGY Дт-К-2 [15:49:13]line 12.960 * 77.20 [15:49:13]line = 1000.51 [15:49:13]line НДС 12% НСП 1% [15:49:13]line > о реализуемом товаре [15:49:13]line ОКРУГЛЕНИЕ: -0.51 [15:49:13]line ИТОГО: 1000.00 [15:49:13]line Внесено: 1000.00 [15:49:13]line СДАЧА: 0.00 [15:49:13]line НСП 1% : 8.85 [15:49:13]line НДС 12% : 106.25 [15:49:13]line Наличными: 1000.00 [15:49:13]line Безнал.: 0.00 [15:49:13]line Место: АЗС № 85 "Партнер Нефть" [15:49:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:49:13]line СНО: Общий режим [15:49:13]line Чек 192 23.10.2024 15:49 [15:49:13]line Смена: 196 ФФД: 1.0 [15:49:13]line ЗНМ: 0300000167 [15:49:13]line РНМ: 0000000000156251 [15:49:13]line Версия ККМ: v1.0 [15:49:13]line ФМ: 0000000000963346 [15:49:13]line ФД: 70676 [15:49:13]line ФПД: 10381657940264 [15:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70676&fm=10381657940264&tin=02508201610067®Number=0000000000156251&sum=100000 [15:49:13]OFD Sender: Processing packet 70676 [packets to send 18, broken 17] [15:49:13]ProducePacketName [15:49:13]name=ofd_packets/00070676 [15:49:13]OFD Sender: To server: pG, [15:49:13]CommunicateWithHost lk.salyk.kg:30040 [15:49:13]ConnectInit lk.salyk.kg [15:49:13]written 0, free lines is 4095 [15:49:13]Connected sock=10 [15:49: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 15 01 00 00 DB 33 0D 01 64 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 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 C0 00 00 00 F4 03 04 00 F9 1A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 71 2B 08 A1 28 EF EE 7A 1B 00 A6 BE 14 [15:49: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 70 21 47 00 54 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 14 14 01 00 F4 03 04 00 96 C4 18 67 B6 04 01 00 00 25 3A 30 FA 9C A8 F7 78 [15:49:14]CommunicateWithHost err = 0 [15:49:14]CheckOFDResponse [15:49:14]1017 (14) - 77093643461234 [15:49:14]1041 (16) - 0000000000963346 [15:49:14]1040 (4) - 70676 [15:49:14]1012 (4) - 23.10.2024 09:40 [15:49:14]1206 (1) - 0 [15:49:14]OFD Sender: Remove packet 70676 [15:49:14]ProducePacketName [15:49:14]name=ofd_packets/00070676 [15:49:14]NVStorageDeleteData [15:49:14]Write to MH i2c: 01 00 00 60 15 75 [15:49:14]Write i2c OK [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: 01 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: 01 07 00 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 F8 0C 80 [15:49:14]RasterBufferAndPrint [15:49:14]line [15:49:14]line [15:49:14]line [15:49:14]line [15:49:14]line [15:49:14]written 0, free lines is 3327 [15:49:14]MH_Cut [15:49:14]Write to MH i2c: D1 01 00 67 15 01 4E [15:49:14]Write i2c OK [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: D1 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: D1 01 00 [15:49:14]MH_I2C_Read... [15:49:14]Read from MH i2c: D1 01 00 67 15 00 4D [15:49:14]Write to MH i2c: 01 00 00 68 15 7D [15:49:14]Write i2c OK [15:49:14]MH_I2C_Read... [15:49:14]OFD Sender: No OFD packet to send [15:49:14]*** Cut start [15:49:14]*** Partial cut [15:49:14]*** CUTSNS_PIN = 1 [15:49:14]*** CUTSNS_PIN = 0 [15:49:15]*** Brake cut motor [15:49:15]Read from MH i2c: 01 [15:49:15]MH_I2C_Read... [15:49:15]*** Stop cut motor [15:49:15]*** Cut end [15:49:15]Read from MH i2c: 01 07 00 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 FF 0F 92 [15:49:15]process_action close_receipt done [15:49:15]requested_data is exist [15:49:15]produce_requested_data [15:49:15]requested_item fm.sn is exist - process it [15:49:15]wFMCommunicate request_size=4 [15:49:15]MH_SAM_APDU [15:49:15]CAPDU: 80 11 00 00 [15:49:15]Write to MH i2c: E2 08 00 69 15 80 11 00 00 00 00 00 00 F8 [15:49:15]Write i2c OK [15:49:15]MH_I2C_Read... [15:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:15]Read from MH i2c: E2 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 17 00 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 17 00 69 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [15:49: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:49:15]wFMCommunicate OK [15:49:15]requested_item fd.num is exist - process it [15:49:15]SAM_PROTO_GetFieldsCounters [15:49:15]wFMCommunicate request_size=4 [15:49:15]MH_SAM_APDU [15:49:15]CAPDU: 80 13 00 00 [15:49:15]Write to MH i2c: E2 08 00 6A 15 80 13 00 00 00 00 00 00 FB [15:49:15]Write i2c OK [15:49:15]MH_I2C_Read... [15:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:15]Read from MH i2c: E2 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 62 00 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 62 00 6A 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 14 14 01 00 0E 04 04 00 C4 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 43 [15:49: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 14 14 01 00 0E 04 04 00 C4 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 [15:49:15]wFMCommunicate OK [15:49:15]SAM_PROTO_GetFieldsCounters done [15:49:15]requested_item shift.num is exist - process it [15:49:15]requested_item shift.opened is exist - process it [15:49:15]req_shift_opened [15:49:15]FM_GetShiftState [15:49:15]SAM_PROTO_GetShiftState [15:49:15]wFMCommunicate request_size=4 [15:49:15]MH_SAM_APDU [15:49:15]CAPDU: 80 13 01 00 [15:49:15]Write to MH i2c: E2 08 00 6B 15 80 13 01 00 00 00 00 00 FD [15:49:15]Write i2c OK [15:49:15]MH_I2C_Read... [15:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:15]Read from MH i2c: E2 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 0E 00 [15:49:15]MH_I2C_Read... [15:49:15]Read from MH i2c: E2 0E 00 6B 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8A [15:49:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:49:15]wFMCommunicate OK [15:49:15]SAM_PROTO_GetShiftState done [15:49:15]FM_GetShiftState done [15:49:15]req_shift_opened done [15:49:15]requested_item shift.open_date is exist - process it [15:49:15]req_shift_open_date [15:49:15]req_shift_open_date done [15:49:15]produce_requested_data done [15:49:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70676,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:49:15]process_action_free close_receipt [15:49:15]json_value_free [15:49:15]json_value_free done [15:49:15]process_json_proto returns [15:49:15]Send response to host [15:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70676,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:49:15]free response buf [15:49:15]execute_script done [15:49:15]execute_script returns [15:49:15]free content buf [15:49:15]Sock 9.Close socket [15:49:15]Sock 9.Thread stoped [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:30]accept exits with 7 [15:50:30]New connection [15:50:30]New thread 3066891620 created [15:50:30]Thread 3067034980 joined [15:50:30]Waiting for new connection... [15:50:30] Sock 7.Parse request [15:50:30]Sock 7.Check first char [15:50:30]Sock 7.First char is OK [15:50:30]request: POST /json_proto HTTP/1.0 [15:50:30]Method: POST [15:50:30]URL: /json_proto [15:50:30]Method is POST - this is cgi request [15:50:30]url: /json_proto [15:50:30]query_string will be loaded in cgi processing [15:50:30]execute_cgi json_proto POST (null) [15:50:30]execute_cgi path=json_proto method=POST [15:50:30]POST find Content-Length [15:50:30]Host: 172.17.50.3:8080 [15:50:30]Content-Length: 680 [15:50:30]Content-Type: application/json [15:50:30] [15:50:30]POST finish read [15:50:30]Found Content-Length = 680 [15:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886455", "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:50:30]execute_script... [15:50: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)2886455", "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:50:30]POST & json_proto [15:50:30]process_json_proto [15:50:30]json parsed OK: [15:50:30]protocol is kg_v1.0 [15:50:30]action value=close_receipt [15:50:30]process_action close_receipt [15:50:30]cmd_close_receipt [15:50:30]MH_GetDate [15:50:30]Write to MH i2c: F0 00 00 6C 15 70 [15:50:30]Write i2c OK [15:50:30]MH_I2C_Read... [15:50:30]Read from MH i2c: F0 [15:50:30]MH_I2C_Read... [15:50:30]Read from MH i2c: F0 09 00 [15:50:30]MH_I2C_Read... [15:50:30]Read from MH i2c: F0 09 00 6C 15 00 47 1B 19 67 6B 98 1E 66 E2 [15:50:30]GetLastDocTimeStamp 1729698553 [15:50:30]current date 1729698631 [15:50:30]FM_GetShiftState [15:50:30]SAM_PROTO_GetShiftState [15:50:30]wFMCommunicate request_size=4 [15:50:30]MH_SAM_APDU [15:50:30]CAPDU: 80 13 01 00 [15:50:30]Write to MH i2c: E2 08 00 6D 15 80 13 01 00 00 00 00 00 FF [15:50:30]Write i2c OK [15:50:30]MH_I2C_Read... [15:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:30]Read from MH i2c: E2 [15:50:30]MH_I2C_Read... [15:50:30]Read from MH i2c: E2 0E 00 [15:50:30]MH_I2C_Read... [15:50:30]Read from MH i2c: E2 0E 00 6D 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8C [15:50:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:50:30]wFMCommunicate OK [15:50:30]SAM_PROTO_GetShiftState done [15:50:30]FM_GetShiftState done [15:50:30]opened in 1729642435 [15:50:30]opened+sec_in_day 1729728835 [15:50:30]quantity*price = 100050 [15:50:30]sum+1 = 100052 [15:50:30]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 СНО: Общий режим Чек 193 23.10.2024 15:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70677 ФПД: 51457327474911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155031&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70677&fm=51457327474911&tin=02508201610067®Number=0000000000156251&sum=100000 [15:50:31]StoreToDocumentArchive [15:50:31]shift 196 fd 70677 [15:50:31]save to /storage/0196/doc_00070677 [15:50:31]save last doc name /storage/0196/doc_00070677 to /storage/kkm_last_doc_name [15:50:31]save OK [15:50:31]Clear old archive folders... [15:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:31]tlvbuf is 00145F80 [15:50:31]SAM_PROTO_ClearQueue [15:50:31]wFMCommunicate request_size=4 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 09 00 00 [15:50:31]Write to MH i2c: E2 08 00 7A 15 80 09 00 00 00 00 00 00 01 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 7A 15 00 90 00 03 [15:50:31]RAPDU: 90 00 [15:50:31]wFMCommunicate OK [15:50:31]SAM_PROTO_ClearQueue done [15:50:31]KKMCreateOFDPacket [15:50:31]OFDProtocolAddRootSTLVToBuf [15:50:31]FM_MakeSignedData [15:50:31]FM_MakeSignedData [15:50:31]SAM_PROTO_SignData [15:50:31]wFMCommunicate request_size=4 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 0D 01 02 [15:50:31]Write to MH i2c: E2 08 00 7B 15 80 0D 01 02 00 00 00 00 09 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [15:50:31]RAPDU: 90 00 [15:50:31]wFMCommunicate OK [15:50:31]wFMCommunicate request_size=255 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 C1 00 00 00 F4 03 04 00 47 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E CC D7 B9 [15:50:31]Write to MH i2c: E2 02 01 7C 15 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 C1 00 00 00 F4 03 04 00 47 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E CC D7 B9 00 00 A3 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [15:50:31]RAPDU: 90 00 [15:50:31]wFMCommunicate OK [15:50:31]wFMCommunicate request_size=7 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 0D 02 02 02 A8 DF [15:50:31]Write to MH i2c: E2 0A 00 7D 15 80 0D 02 02 02 00 A8 DF 00 00 97 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [15:50:31]RAPDU: 90 00 [15:50:31]wFMCommunicate OK [15:50:31]wFMCommunicate request_size=4 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 0D 03 02 [15:50:31]Write to MH i2c: E2 08 00 7E 15 80 0D 03 02 00 00 00 00 0E [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 0B 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 0B 00 7E 15 00 6C 60 01 DC A9 8F AA 38 90 00 D2 [15:50:31]RAPDU: 6C 60 01 DC A9 8F AA 38 90 00 [15:50:31]wFMCommunicate OK [15:50:31]SAM_PROTO_SignData done [15:50:31]FM_MakeSignedData done [15:50:31]CreateOFDProtocolMessage [15:50:31]wFMCommunicate request_size=4 [15:50:31]MH_SAM_APDU [15:50:31]CAPDU: 80 11 00 00 [15:50:31]Write to MH i2c: E2 08 00 7F 15 80 11 00 00 00 00 00 00 0E [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:31]Read from MH i2c: E2 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 17 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: E2 17 00 7F 15 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:50: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:50:31]wFMCommunicate OK [15:50:31]CreateOFDProtocolMessage done [15:50:31]OFDSenderStorePacket 70677 [15:50:31]StoreOFDPacket docnum=70677 [15:50: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 F5 4F 04 01 4C E9 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 C1 00 00 00 F4 03 04 00 47 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E CC D7 B9 A8 DF 6C 60 01 DC A9 8F AA 38 [15:50:31]CheckFolder [15:50:31]dirname=/storage/ofd_packets [15:50:31]CheckFolder done [15:50:31]ProducePacketName [15:50:31]name=ofd_packets/00070677 [15:50:31]NVStorageSaveData ofd_packets/00070677 [15:50:31]File name is /storage/ofd_packets/00070677 [15:50:31]Write 298 bytes [15:50:31]NVStorageSaveData done [15:50:31]OFDSenderStorePacket done [15:50:31]KKMCreateOFDPacket done [15:50:31]NVStorageSaveData kkm_last_timestamp [15:50:31]File name is /storage/kkm_last_timestamp [15:50:31]Write 4 bytes [15:50:31]NVStorageSaveData done [15:50:31]ExternCall_PrintAddStr [15:50:31]wPrintStart [15:50:31]Write to MH i2c: 01 00 00 80 15 95 [15:50:31]Write i2c OK [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: 01 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: 01 07 00 [15:50:31]MH_I2C_Read... [15:50:31]Read from MH i2c: 01 07 00 80 15 00 00 00 00 00 FF 0F AA [15:50:31]RasterBufferAndPrint [15:50:31]line Счет N : (1)2886455 [15:50:31]line ИНН: 02508201610067 [15:50:31]line Контрольно-Кассовый Чек [15:50:31]line ПРОДАЖА [15:50:31]line ТРК (МРК, ГНК) : 61 [15:50:31]line Товар: 2710194210 [15:50:31]line ДТ-К-5 [15:50:31]line 13.130 * 76.20 [15:50:31]line = 1000.51 [15:50:31]line НДС 12% НСП 1% [15:50:31]line > о реализуемом товаре [15:50:31]line ОКРУГЛЕНИЕ: -0.51 [15:50:31]line ИТОГО: 1000.00 [15:50:31]line Внесено: 1000.00 [15:50:31]line СДАЧА: 0.00 [15:50:31]line НСП 1% : 8.85 [15:50:31]line НДС 12% : 106.25 [15:50:31]line Наличными: 1000.00 [15:50:31]line Безнал.: 0.00 [15:50:31]line Место: АЗС № 85 "Партнер Нефть" [15:50:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:50:31]line СНО: Общий режим [15:50:31]line Чек 193 23.10.2024 15:50 [15:50:31]line Смена: 196 ФФД: 1.0 [15:50:31]line ЗНМ: 0300000167 [15:50:31]line РНМ: 0000000000156251 [15:50:31]line Версия ККМ: v1.0 [15:50:31]line ФМ: 0000000000963346 [15:50:31]line ФД: 70677 [15:50:31]line ФПД: 51457327474911 [15:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155031&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70677&fm=51457327474911&tin=02508201610067®Number=0000000000156251&sum=100000 [15:50:31]OFD Sender: Processing packet 70677 [packets to send 18, broken 17] [15:50:31]ProducePacketName [15:50:31]name=ofd_packets/00070677 [15:50:31]OFD Sender: To server: pG, [15:50:31]CommunicateWithHost lk.salyk.kg:30040 [15:50:31]ConnectInit lk.salyk.kg [15:50:31]written 0, free lines is 4095 [15:50:32]Connected sock=10 [15:50: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 F5 4F 04 01 4C E9 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 C1 00 00 00 F4 03 04 00 47 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E CC D7 B9 A8 DF 6C 60 01 DC A9 8F AA 38 [15:50: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 FE 27 47 00 85 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 15 14 01 00 F4 03 04 00 E5 C4 18 67 B6 04 01 00 00 BE C7 46 29 69 4D 2D D6 [15:50:32]CommunicateWithHost err = 0 [15:50:32]CheckOFDResponse [15:50:32]1017 (14) - 77093643461234 [15:50:32]1041 (16) - 0000000000963346 [15:50:32]1040 (4) - 70677 [15:50:32]1012 (4) - 23.10.2024 09:41 [15:50:32]1206 (1) - 0 [15:50:32]OFD Sender: Remove packet 70677 [15:50:32]ProducePacketName [15:50:32]name=ofd_packets/00070677 [15:50:32]NVStorageDeleteData [15:50:32]Write to MH i2c: 01 00 00 AB 15 C0 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 07 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 E1 0C B4 [15:50:32]RasterBufferAndPrint [15:50:32]line [15:50:32]line [15:50:32]line [15:50:32]line [15:50:32]line [15:50:32]written 0, free lines is 3302 [15:50:32]MH_Cut [15:50:32]Write to MH i2c: D1 01 00 B2 15 01 99 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: D1 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: D1 01 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: D1 01 00 B2 15 00 98 [15:50:32]Write to MH i2c: 01 00 00 B3 15 C8 [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]OFD Sender: No OFD packet to send [15:50:33]*** Cut start [15:50:33]*** Partial cut [15:50:33]*** CUTSNS_PIN = 1 [15:50:33]*** CUTSNS_PIN = 0 [15:50:33]*** Brake cut motor [15:50:33]Read from MH i2c: 01 [15:50:33]MH_I2C_Read... [15:50:33]*** Stop cut motor [15:50:33]*** Cut end [15:50:33]Read from MH i2c: 01 07 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: 01 07 00 B3 15 00 00 00 00 00 FF 0F DD [15:50:33]process_action close_receipt done [15:50:33]requested_data is exist [15:50:33]produce_requested_data [15:50:33]requested_item fm.sn is exist - process it [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 11 00 00 [15:50:33]Write to MH i2c: E2 08 00 B4 15 80 11 00 00 00 00 00 00 43 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 17 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 17 00 B4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [15: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 [15:50:33]wFMCommunicate OK [15:50:33]requested_item fd.num is exist - process it [15:50:33]SAM_PROTO_GetFieldsCounters [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 13 00 00 [15:50:33]Write to MH i2c: E2 08 00 B5 15 80 13 00 00 00 00 00 00 46 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 62 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 62 00 B5 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 15 14 01 00 0E 04 04 00 C4 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 92 [15:50: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 14 01 00 0E 04 04 00 C4 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 [15:50:33]wFMCommunicate OK [15:50:33]SAM_PROTO_GetFieldsCounters done [15:50:33]requested_item shift.num is exist - process it [15:50:33]requested_item shift.opened is exist - process it [15:50:33]req_shift_opened [15:50:33]FM_GetShiftState [15:50:33]SAM_PROTO_GetShiftState [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 13 01 00 [15:50:33]Write to MH i2c: E2 08 00 B6 15 80 13 01 00 00 00 00 00 48 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:34]Read from MH i2c: E2 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 0E 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 0E 00 B6 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D5 [15:50:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:50:34]wFMCommunicate OK [15:50:34]SAM_PROTO_GetShiftState done [15:50:34]FM_GetShiftState done [15:50:34]req_shift_opened done [15:50:34]requested_item shift.open_date is exist - process it [15:50:34]req_shift_open_date [15:50:34]req_shift_open_date done [15:50:34]produce_requested_data done [15:50:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70677,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:50:34]process_action_free close_receipt [15:50:34]json_value_free [15:50:34]json_value_free done [15:50:34]process_json_proto returns [15:50:34]Send response to host [15:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70677,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:50:34]free response buf [15:50:34]execute_script done [15:50:34]execute_script returns [15:50:34]free content buf [15:50:34]Sock 7.Close socket [15:50:34]Sock 7.Thread stoped [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]accept exits with 9 [15:50:52]New connection [15:50:52]New thread 3067034980 created [15:50:52]Thread 3066891620 joined [15:50:52]Waiting for new connection... [15:50:52] Sock 9.Parse request [15:50:52]Sock 9.Check first char [15:50:52]Sock 9.First char is OK [15:50:52]request: POST /json_proto HTTP/1.0 [15:50:52]Method: POST [15:50:52]URL: /json_proto [15:50:52]Method is POST - this is cgi request [15:50:52]url: /json_proto [15:50:52]query_string will be loaded in cgi processing [15:50:52]execute_cgi json_proto POST (null) [15:50:52]execute_cgi path=json_proto method=POST [15:50:52]POST find Content-Length [15:50:52]Host: 172.17.50.3:8080 [15:50:52]Content-Length: 678 [15:50:52]Content-Type: application/json [15:50:52] [15:50:52]POST finish read [15:50:52]Found Content-Length = 678 [15:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886456", "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" ] } } [15:50:52]execute_script... [15:50: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)2886456", "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" ] } } [15:50:52]POST & json_proto [15:50:52]process_json_proto [15:50:52]json parsed OK: [15:50:52]protocol is kg_v1.0 [15:50:52]action value=close_receipt [15:50:52]process_action close_receipt [15:50:52]cmd_close_receipt [15:50:52]MH_GetDate [15:50:52]Write to MH i2c: F0 00 00 B7 15 BB [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: F0 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: F0 09 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: F0 09 00 B7 15 00 5D 1B 19 67 6B 98 1E 66 43 [15:50:52]GetLastDocTimeStamp 1729698631 [15:50:52]current date 1729698653 [15:50:52]FM_GetShiftState [15:50:52]SAM_PROTO_GetShiftState [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 13 01 00 [15:50:52]Write to MH i2c: E2 08 00 B8 15 80 13 01 00 00 00 00 00 4A [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 0E 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 0E 00 B8 15 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D7 [15:50:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:50:52]wFMCommunicate OK [15:50:52]SAM_PROTO_GetShiftState done [15:50:52]FM_GetShiftState done [15:50:52]opened in 1729642435 [15:50:52]opened+sec_in_day 1729728835 [15:50:52]quantity*price = 50041 [15:50:52]sum+1 = 50042 [15:50:52]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 СНО: Общий режим Чек 194 23.10.2024 15:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70678 ФПД: 23852318049762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70678&fm=23852318049762&tin=02508201610067®Number=0000000000156251&sum=50000 [15:50:53]StoreToDocumentArchive [15:50:53]shift 196 fd 70678 [15:50:53]save to /storage/0196/doc_00070678 [15:50:53]save last doc name /storage/0196/doc_00070678 to /storage/kkm_last_doc_name [15:50:53]save OK [15:50:53]Clear old archive folders... [15:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:53]tlvbuf is 001658F0 [15:50:53]SAM_PROTO_ClearQueue [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 09 00 00 [15:50:53]Write to MH i2c: E2 08 00 C5 15 80 09 00 00 00 00 00 00 4C [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 C5 15 00 90 00 4E [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]SAM_PROTO_ClearQueue done [15:50:53]KKMCreateOFDPacket [15:50:53]OFDProtocolAddRootSTLVToBuf [15:50:53]FM_MakeSignedData [15:50:53]FM_MakeSignedData [15:50:53]SAM_PROTO_SignData [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 0D 01 02 [15:50:53]Write to MH i2c: E2 08 00 C6 15 80 0D 01 02 00 00 00 00 54 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 C6 15 00 90 00 4F [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]wFMCommunicate request_size=255 [15:50:53]MH_SAM_APDU [15:50: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 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 C2 00 00 00 F4 03 04 00 5D 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 [15:50:53]Write to MH i2c: E2 02 01 C7 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 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 C2 00 00 00 F4 03 04 00 5D 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 00 00 9B [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 C7 15 00 90 00 50 [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]wFMCommunicate request_size=10 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 0D 02 02 05 B1 8C F1 C5 E2 [15:50:53]Write to MH i2c: E2 0D 00 C8 15 80 0D 02 02 05 00 B1 8C F1 C5 E2 00 00 36 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [15:50:53]RAPDU: 90 00 [15:50:53]wFMCommunicate OK [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 0D 03 02 [15:50:53]Write to MH i2c: E2 08 00 C9 15 80 0D 03 02 00 00 00 00 59 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0B 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0B 00 C9 15 00 CA DD 85 4F 5A BC D0 4D 90 00 08 [15:50:53]RAPDU: CA DD 85 4F 5A BC D0 4D 90 00 [15:50:53]wFMCommunicate OK [15:50:53]SAM_PROTO_SignData done [15:50:53]FM_MakeSignedData done [15:50:53]CreateOFDProtocolMessage [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 11 00 00 [15:50:53]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 17 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [15:50: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:50:53]wFMCommunicate OK [15:50:53]CreateOFDProtocolMessage done [15:50:53]OFDSenderStorePacket 70678 [15:50:53]StoreOFDPacket docnum=70678 [15:50: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 A0 EA 07 01 46 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 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 C2 00 00 00 F4 03 04 00 5D 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 B1 8C F1 C5 E2 CA DD 85 4F 5A BC D0 4D [15:50:53]CheckFolder [15:50:53]dirname=/storage/ofd_packets [15:50:53]CheckFolder done [15:50:53]ProducePacketName [15:50:53]name=ofd_packets/00070678 [15:50:53]NVStorageSaveData ofd_packets/00070678 [15:50:53]File name is /storage/ofd_packets/00070678 [15:50:53]Write 301 bytes [15:50:53]NVStorageSaveData done [15:50:53]OFDSenderStorePacket done [15:50:53]KKMCreateOFDPacket done [15:50:53]NVStorageSaveData kkm_last_timestamp [15:50:53]File name is /storage/kkm_last_timestamp [15:50:53]Write 4 bytes [15:50:53]NVStorageSaveData done [15:50:53]ExternCall_PrintAddStr [15:50:53]wPrintStart [15:50:53]Write to MH i2c: 01 00 00 CB 15 E0 [15:50:53]OFD Sender: Processing packet 70678 [packets to send 18, broken 17] [15:50:53]ProducePacketName [15:50:53]name=ofd_packets/00070678 [15:50:53]OFD Sender: To server: pG, [15:50:53]CommunicateWithHost lk.salyk.kg:30040 [15:50:53]ConnectInit lk.salyk.kg [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 07 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: 01 07 00 CB 15 00 00 00 00 00 FF 0F F5 [15:50:53]RasterBufferAndPrint [15:50:53]line Счет N : (1)2886456 [15:50:53]line ИНН: 02508201610067 [15:50:53]line Контрольно-Кассовый Чек [15:50:53]line ПРОДАЖА [15:50:53]line ТРК (МРК, ГНК) : 32 [15:50:53]line Товар: 2710124130 [15:50:53]line Аи-92-К-5 [15:50:53]line 7.480 * 66.90 [15:50:53]line = 500.41 [15:50:53]line НДС 12% НСП 1% [15:50:53]line > о реализуемом товаре [15:50:53]line ОКРУГЛЕНИЕ: -0.41 [15:50:53]line ИТОГО: 500.00 [15:50:53]line Внесено: 500.00 [15:50:53]line СДАЧА: 0.00 [15:50:53]line НСП 1% : 4.43 [15:50:53]line НДС 12% : 53.14 [15:50:53]line Наличными: 500.00 [15:50:53]line Безнал.: 0.00 [15:50:53]line Место: АЗС № 85 "Партнер Нефть" [15:50:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:50:53]line СНО: Общий режим [15:50:53]line Чек 194 23.10.2024 15:50 [15:50:53]line Смена: 196 ФФД: 1.0 [15:50:53]line ЗНМ: 0300000167 [15:50:53]line РНМ: 0000000000156251 [15:50:53]line Версия ККМ: v1.0 [15:50:53]line ФМ: 0000000000963346 [15:50:53]line ФД: 70678 [15:50:53]line ФПД: 23852318049762 [15:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70678&fm=23852318049762&tin=02508201610067®Number=0000000000156251&sum=50000 [15:50:54]Connected sock=10 [15:50: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 A0 EA 07 01 46 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 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 C2 00 00 00 F4 03 04 00 5D 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 B1 8C F1 C5 E2 CA DD 85 4F 5A BC D0 4D [15:50:54]written 0, free lines is 4095 [15:50: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 C2 95 47 00 82 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 16 14 01 00 F4 03 04 00 FB C4 18 67 B6 04 01 00 00 A5 BF DE C1 83 BB 19 2D [15:50:54]CommunicateWithHost err = 0 [15:50:54]CheckOFDResponse [15:50:54]1017 (14) - 77093643461234 [15:50:54]1041 (16) - 0000000000963346 [15:50:54]1040 (4) - 70678 [15:50:54]1012 (4) - 23.10.2024 09:42 [15:50:54]1206 (1) - 0 [15:50:54]OFD Sender: Remove packet 70678 [15:50:54]ProducePacketName [15:50:54]name=ofd_packets/00070678 [15:50:54]NVStorageDeleteData [15:50:54]Write to MH i2c: 01 00 00 F6 15 0B [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 F6 15 00 00 00 00 00 E4 0C 02 [15:50:54]RasterBufferAndPrint [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]line [15:50:54]written 0, free lines is 3306 [15:50:54]MH_Cut [15:50:54]Write to MH i2c: D1 01 00 FD 15 01 E4 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 01 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: D1 01 00 FD 15 00 E3 [15:50:54]Write to MH i2c: 01 00 00 FE 15 13 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]OFD Sender: No OFD packet to send [15:50:55]*** Cut start [15:50:55]*** Partial cut [15:50:55]*** CUTSNS_PIN = 1 [15:50:55]*** CUTSNS_PIN = 0 [15:50:55]*** Brake cut motor [15:50:55]Read from MH i2c: 01 [15:50:55]MH_I2C_Read... [15:50:55]*** Stop cut motor [15:50:55]*** Cut end [15:50:55]Read from MH i2c: 01 07 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 FF 0F 28 [15:50:55]process_action close_receipt done [15:50:55]requested_data is exist [15:50:55]produce_requested_data [15:50:55]requested_item fm.sn is exist - process it [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 11 00 00 [15:50:55]Write to MH i2c: E2 08 00 FF 15 80 11 00 00 00 00 00 00 8E [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 17 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 17 00 FF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [15:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:50:55]wFMCommunicate OK [15:50:55]requested_item fd.num is exist - process it [15:50:55]SAM_PROTO_GetFieldsCounters [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 13 00 00 [15:50:55]Write to MH i2c: E2 08 00 00 16 80 13 00 00 00 00 00 00 92 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 62 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 62 00 00 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 16 14 01 00 0E 04 04 00 C4 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 E2 [15:50: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 16 14 01 00 0E 04 04 00 C4 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 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_GetFieldsCounters done [15:50:56]requested_item shift.num is exist - process it [15:50:56]requested_item shift.opened is exist - process it [15:50:56]req_shift_opened [15:50:56]FM_GetShiftState [15:50:56]SAM_PROTO_GetShiftState [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 13 01 00 [15:50:56]Write to MH i2c: E2 08 00 01 16 80 13 01 00 00 00 00 00 94 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 01 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 21 [15:50:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_GetShiftState done [15:50:56]FM_GetShiftState done [15:50:56]req_shift_opened done [15:50:56]requested_item shift.open_date is exist - process it [15:50:56]req_shift_open_date [15:50:56]req_shift_open_date done [15:50:56]produce_requested_data done [15:50:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70678,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:50:56]process_action_free close_receipt [15:50:56]json_value_free [15:50:56]json_value_free done [15:50:56]process_json_proto returns [15:50:56]Send response to host [15:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70678,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:50:56]free response buf [15:50:56]execute_script done [15:50:56]execute_script returns [15:50:56]free content buf [15:50:56]Sock 9.Close socket [15:50:56]Sock 9.Thread stoped [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:38]accept exits with 7 [15:52:38]New connection [15:52:38]New thread 3066891620 created [15:52:38]Thread 3067034980 joined [15:52:38]Waiting for new connection... [15:52:38] Sock 7.Parse request [15:52:38]Sock 7.Check first char [15:52:38]Sock 7.First char is OK [15:52:38]request: POST /json_proto HTTP/1.0 [15:52:38]Method: POST [15:52:38]URL: /json_proto [15:52:38]Method is POST - this is cgi request [15:52:38]url: /json_proto [15:52:38]query_string will be loaded in cgi processing [15:52:38]execute_cgi json_proto POST (null) [15:52:38]execute_cgi path=json_proto method=POST [15:52:38]POST find Content-Length [15:52:38]Host: 172.17.50.3:8080 [15:52:38]Content-Length: 770 [15:52:38]Content-Type: application/json [15:52:38] [15:52:38]POST finish read [15:52:38]Found Content-Length = 770 [15:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886457", "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" : 47.150, "sum" : 3498.53, "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" : 3498.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:38]execute_script... [15:52: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)2886457", "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" : 47.150, "sum" : 3498.53, "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" : 3498.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:38]POST & json_proto [15:52:38]process_json_proto [15:52:38]json parsed OK: [15:52:38]protocol is kg_v1.0 [15:52:38]action value=close_receipt [15:52:38]process_action close_receipt [15:52:38]cmd_close_receipt [15:52:38]MH_GetDate [15:52:38]Write to MH i2c: F0 00 00 02 16 07 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: F0 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: F0 09 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: F0 09 00 02 16 00 C8 1B 19 67 6B 98 1E 66 FA [15:52:38]GetLastDocTimeStamp 1729698653 [15:52:38]current date 1729698760 [15:52:38]FM_GetShiftState [15:52:38]SAM_PROTO_GetShiftState [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 13 01 00 [15:52:38]Write to MH i2c: E2 08 00 03 16 80 13 01 00 00 00 00 00 96 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0E 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0E 00 03 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 23 [15:52:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:52:38]wFMCommunicate OK [15:52:38]SAM_PROTO_GetShiftState done [15:52:38]FM_GetShiftState done [15:52:38]opened in 1729642435 [15:52:38]opened+sec_in_day 1729728835 [15:52:38]quantity*price = 349853 [15:52:38]sum+1 = 349854 [15:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3498.53 НСП 1% : 30.96 НДС 12% : 371.52 Наличными: 0.00 Безнал.: 3498.53 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 195 23.10.2024 15:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70679 ФПД: 78814826457418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155240&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70679&fm=78814826457418&tin=02508201610067®Number=0000000000156251&sum=349853 [15:52:39]StoreToDocumentArchive [15:52:39]shift 196 fd 70679 [15:52:39]save to /storage/0196/doc_00070679 [15:52:39]save last doc name /storage/0196/doc_00070679 to /storage/kkm_last_doc_name [15:52:39]save OK [15:52:39]Clear old archive folders... [15:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:39]tlvbuf is B6EBC320 [15:52:39]SAM_PROTO_ClearQueue [15:52:39]wFMCommunicate request_size=4 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 09 00 00 [15:52:39]Write to MH i2c: E2 08 00 10 16 80 09 00 00 00 00 00 00 98 [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 10 16 00 90 00 9A [15:52:39]RAPDU: 90 00 [15:52:39]wFMCommunicate OK [15:52:39]SAM_PROTO_ClearQueue done [15:52:39]KKMCreateOFDPacket [15:52:39]OFDProtocolAddRootSTLVToBuf [15:52:39]FM_MakeSignedData [15:52:39]FM_MakeSignedData [15:52:39]SAM_PROTO_SignData [15:52:39]wFMCommunicate request_size=4 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 0D 01 02 [15:52:39]Write to MH i2c: E2 08 00 11 16 80 0D 01 02 00 00 00 00 A0 [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 11 16 00 90 00 9B [15:52:39]RAPDU: 90 00 [15:52:39]wFMCommunicate OK [15:52:39]wFMCommunicate request_size=255 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2E B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 56 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 56 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C8 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 47 [15:52:40]Write to MH i2c: E2 02 01 12 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 2E B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 56 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 56 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C8 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 47 00 00 C0 [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 03 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 03 00 12 16 00 90 00 9C [15:52:40]RAPDU: 90 00 [15:52:40]wFMCommunicate OK [15:52:40]wFMCommunicate request_size=10 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 0D 02 02 05 AE 81 BB E9 4A [15:52:40]Write to MH i2c: E2 0D 00 13 16 80 0D 02 02 05 00 AE 81 BB E9 4A 00 00 CA [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 03 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 03 00 13 16 00 90 00 9D [15:52:40]RAPDU: 90 00 [15:52:40]wFMCommunicate OK [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 0D 03 02 [15:52:40]Write to MH i2c: E2 08 00 14 16 80 0D 03 02 00 00 00 00 A5 [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 0B 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 0B 00 14 16 00 36 47 7A F9 0D F7 AA 7E 90 00 C2 [15:52:40]RAPDU: 36 47 7A F9 0D F7 AA 7E 90 00 [15:52:40]wFMCommunicate OK [15:52:40]SAM_PROTO_SignData done [15:52:40]FM_MakeSignedData done [15:52:40]CreateOFDProtocolMessage [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 11 00 00 [15:52:40]Write to MH i2c: E2 08 00 15 16 80 11 00 00 00 00 00 00 A5 [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 15 16 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:52:40]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:40]wFMCommunicate OK [15:52:40]CreateOFDProtocolMessage done [15:52:40]OFDSenderStorePacket 70679 [15:52:40]StoreOFDPacket docnum=70679 [15:52: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 FD 27 07 01 8B 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 2E B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 56 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 56 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C8 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 47 AE 81 BB E9 4A 36 47 7A F9 0D F7 AA 7E [15:52:40]CheckFolder [15:52:40]dirname=/storage/ofd_packets [15:52:40]CheckFolder done [15:52:40]ProducePacketName [15:52:40]name=ofd_packets/00070679 [15:52:40]NVStorageSaveData ofd_packets/00070679 [15:52:40]File name is /storage/ofd_packets/00070679 [15:52:40]Write 301 bytes [15:52:40]NVStorageSaveData done [15:52:40]OFDSenderStorePacket done [15:52:40]KKMCreateOFDPacket done [15:52:40]NVStorageSaveData kkm_last_timestamp [15:52:40]File name is /storage/kkm_last_timestamp [15:52:40]Write 4 bytes [15:52:40]NVStorageSaveData done [15:52:40]ExternCall_PrintAddStr [15:52:40]wPrintStart [15:52:40]Write to MH i2c: 01 00 00 16 16 2C [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 07 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 FF 0F 41 [15:52:40]RasterBufferAndPrint [15:52:40]line Счет N : (1)2886457 [15:52:40]line ИНН: 02508201610067 [15:52:40]line Контрольно-Кассовый Чек [15:52:40]line ПРОДАЖА [15:52:40]line ТРК (МРК, ГНК) : 43 [15:52:40]line Товар: 2710124500 [15:52:40]line Аи-95-К-5 [15:52:40]line 47.150 * 74.20 [15:52:40]line = 3498.53 [15:52:40]line НДС 12% НСП 1% [15:52:40]line > о реализуемом товаре [15:52:40]line ИТОГО: 3498.53 [15:52:40]line НСП 1% : 30.96 [15:52:40]line НДС 12% : 371.52 [15:52:40]line Наличными: 0.00 [15:52:40]line Безнал.: 3498.53 [15:52:40]line Место: АЗС № 85 "Партнер Нефть" [15:52:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:52:40]line СНО: Общий режим [15:52:40]line Чек 195 23.10.2024 15:52 [15:52:40]line Смена: 196 ФФД: 1.0 [15:52:40]line ЗНМ: 0300000167 [15:52:40]line РНМ: 0000000000156251 [15:52:40]line Версия ККМ: v1.0 [15:52:40]line Платежная система: Mbank [15:52:40]line ФМ: 0000000000963346 [15:52:40]line ФД: 70679 [15:52:40]line ФПД: 78814826457418 [15:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155240&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70679&fm=78814826457418&tin=02508201610067®Number=0000000000156251&sum=349853 [15:52:40]OFD Sender: Processing packet 70679 [packets to send 18, broken 17] [15:52:40]ProducePacketName [15:52:40]name=ofd_packets/00070679 [15:52:40]OFD Sender: To server: pG, [15:52:40]CommunicateWithHost lk.salyk.kg:30040 [15:52:40]ConnectInit lk.salyk.kg [15:52:40]written 0, free lines is 4095 [15:52:40]Connected sock=10 [15:52: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 FD 27 07 01 8B 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 2E B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 56 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 56 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C8 1B 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 47 AE 81 BB E9 4A 36 47 7A F9 0D F7 AA 7E [15:52: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 EB A1 47 00 10 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 14 01 00 F4 03 04 00 65 C5 18 67 B6 04 01 00 00 4A DB 0B C9 5A B4 22 A7 [15:52:41]CommunicateWithHost err = 0 [15:52:41]CheckOFDResponse [15:52:41]1017 (14) - 77093643461234 [15:52:41]1041 (16) - 0000000000963346 [15:52:41]1040 (4) - 70679 [15:52:41]1012 (4) - 23.10.2024 09:44 [15:52:41]1206 (1) - 0 [15:52:41]OFD Sender: Remove packet 70679 [15:52:41]ProducePacketName [15:52:41]name=ofd_packets/00070679 [15:52:41]NVStorageDeleteData [15:52:41]Write to MH i2c: 01 00 00 3F 16 55 [15:52:41]Write i2c OK [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: 01 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: 01 07 00 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: 01 07 00 3F 16 00 00 00 00 00 18 0D 81 [15:52:41]RasterBufferAndPrint [15:52:41]line [15:52:41]line [15:52:41]line [15:52:41]line [15:52:41]line [15:52:41]written 0, free lines is 3359 [15:52:41]MH_Cut [15:52:41]Write to MH i2c: D1 01 00 46 16 01 2E [15:52:41]Write i2c OK [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: D1 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: D1 01 00 [15:52:41]MH_I2C_Read... [15:52:41]Read from MH i2c: D1 01 00 46 16 00 2D [15:52:41]Write to MH i2c: 01 00 00 47 16 5D [15:52:41]Write i2c OK [15:52:41]MH_I2C_Read... [15:52:41]OFD Sender: No OFD packet to send [15:52:41]*** Cut start [15:52:41]*** Partial cut [15:52:41]*** CUTSNS_PIN = 1 [15:52:41]*** CUTSNS_PIN = 0 [15:52:42]*** Brake cut motor [15:52:42]Read from MH i2c: 01 [15:52:42]MH_I2C_Read... [15:52:42]*** Stop cut motor [15:52:42]*** Cut end [15:52:42]Read from MH i2c: 01 07 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: 01 07 00 47 16 00 00 00 00 00 FF 0F 72 [15:52:42]process_action close_receipt done [15:52:42]requested_data is exist [15:52:42]produce_requested_data [15:52:42]requested_item fm.sn is exist - process it [15:52:42]wFMCommunicate request_size=4 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 11 00 00 [15:52:42]Write to MH i2c: E2 08 00 48 16 80 11 00 00 00 00 00 00 D8 [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 [15:52:42]MH_I2C_Read... [15:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:42]Read from MH i2c: E2 17 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 17 00 48 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [15:52:42]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:42]wFMCommunicate OK [15:52:42]requested_item fd.num is exist - process it [15:52:42]SAM_PROTO_GetFieldsCounters [15:52:42]wFMCommunicate request_size=4 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 13 00 00 [15:52:42]Write to MH i2c: E2 08 00 49 16 80 13 00 00 00 00 00 00 DB [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:42]Read from MH i2c: E2 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 62 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 62 00 49 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 17 14 01 00 0E 04 04 00 C4 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 2F [15:52: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 17 14 01 00 0E 04 04 00 C4 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 [15:52:42]wFMCommunicate OK [15:52:42]SAM_PROTO_GetFieldsCounters done [15:52:42]requested_item shift.num is exist - process it [15:52:42]requested_item shift.opened is exist - process it [15:52:42]req_shift_opened [15:52:42]FM_GetShiftState [15:52:42]SAM_PROTO_GetShiftState [15:52:42]wFMCommunicate request_size=4 [15:52:42]MH_SAM_APDU [15:52:42]CAPDU: 80 13 01 00 [15:52:42]Write to MH i2c: E2 08 00 4A 16 80 13 01 00 00 00 00 00 DD [15:52:42]Write i2c OK [15:52:42]MH_I2C_Read... [15:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:42]Read from MH i2c: E2 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 0E 00 [15:52:42]MH_I2C_Read... [15:52:42]Read from MH i2c: E2 0E 00 4A 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6A [15:52:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:52:42]wFMCommunicate OK [15:52:42]SAM_PROTO_GetShiftState done [15:52:42]FM_GetShiftState done [15:52:42]req_shift_opened done [15:52:42]requested_item shift.open_date is exist - process it [15:52:42]req_shift_open_date [15:52:42]req_shift_open_date done [15:52:42]produce_requested_data done [15:52:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70679,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:52:42]process_action_free close_receipt [15:52:42]json_value_free [15:52:42]json_value_free done [15:52:42]process_json_proto returns [15:52:42]Send response to host [15:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70679,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:52:42]free response buf [15:52:42]execute_script done [15:52:42]execute_script returns [15:52:42]free content buf [15:52:42]Sock 7.Close socket [15:52:42]Sock 7.Thread stoped [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:17]accept exits with 9 [15:54:17]New connection [15:54:17]New thread 3067034980 created [15:54:17]Thread 3066891620 joined [15:54:17]Waiting for new connection... [15:54:17] Sock 9.Parse request [15:54:17]Sock 9.Check first char [15:54:17]Sock 9.First char is OK [15:54:17]request: POST /json_proto HTTP/1.0 [15:54:17]Method: POST [15:54:17]URL: /json_proto [15:54:17]Method is POST - this is cgi request [15:54:17]url: /json_proto [15:54:17]query_string will be loaded in cgi processing [15:54:17]execute_cgi json_proto POST (null) [15:54:17]execute_cgi path=json_proto method=POST [15:54:17]POST find Content-Length [15:54:17]Host: 172.17.50.3:8080 [15:54:17]Content-Length: 678 [15:54:17]Content-Type: application/json [15:54:17] [15:54:17]POST finish read [15:54:17]Found Content-Length = 678 [15:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886458", "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" ] } } [15:54:17]execute_script... [15:54: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)2886458", "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" ] } } [15:54:17]POST & json_proto [15:54:17]process_json_proto [15:54:17]json parsed OK: [15:54:17]protocol is kg_v1.0 [15:54:17]action value=close_receipt [15:54:17]process_action close_receipt [15:54:17]cmd_close_receipt [15:54:17]MH_GetDate [15:54:17]Write to MH i2c: F0 00 00 4B 16 50 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: F0 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: F0 09 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: F0 09 00 4B 16 00 2B 1C 19 67 6B 98 1E 66 A7 [15:54:17]GetLastDocTimeStamp 1729698760 [15:54:17]current date 1729698859 [15:54:17]FM_GetShiftState [15:54:17]SAM_PROTO_GetShiftState [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 01 00 [15:54:17]Write to MH i2c: E2 08 00 4C 16 80 13 01 00 00 00 00 00 DF [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 4C 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6C [15:54:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_GetShiftState done [15:54:17]FM_GetShiftState done [15:54:17]opened in 1729642435 [15:54:17]opened+sec_in_day 1729728835 [15:54:17]quantity*price = 50041 [15:54:17]sum+1 = 50042 [15:54: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 СНО: Общий режим Чек 196 23.10.2024 15:54 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70680 ФПД: 143540153208425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70680&fm=143540153208425&tin=02508201610067®Number=0000000000156251&sum=50000 [15:54:18]StoreToDocumentArchive [15:54:18]shift 196 fd 70680 [15:54:18]save to /storage/0196/doc_00070680 [15:54:18]save last doc name /storage/0196/doc_00070680 to /storage/kkm_last_doc_name [15:54:18]save OK [15:54:18]Clear old archive folders... [15:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:18]tlvbuf is 001658B0 [15:54:18]SAM_PROTO_ClearQueue [15:54:18]wFMCommunicate request_size=4 [15:54:18]MH_SAM_APDU [15:54:18]CAPDU: 80 09 00 00 [15:54:18]Write to MH i2c: E2 08 00 59 16 80 09 00 00 00 00 00 00 E1 [15:54:18]Write i2c OK [15:54:18]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 59 16 00 90 00 E3 [15:54:19]RAPDU: 90 00 [15:54:19]wFMCommunicate OK [15:54:19]SAM_PROTO_ClearQueue done [15:54:19]KKMCreateOFDPacket [15:54:19]OFDProtocolAddRootSTLVToBuf [15:54:19]FM_MakeSignedData [15:54:19]FM_MakeSignedData [15:54:19]SAM_PROTO_SignData [15:54:19]wFMCommunicate request_size=4 [15:54:19]MH_SAM_APDU [15:54:19]CAPDU: 80 0D 01 02 [15:54:19]Write to MH i2c: E2 08 00 5A 16 80 0D 01 02 00 00 00 00 E9 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 5A 16 00 90 00 E4 [15:54:19]RAPDU: 90 00 [15:54:19]wFMCommunicate OK [15:54:19]wFMCommunicate request_size=255 [15:54:19]MH_SAM_APDU [15:54: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 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 2B 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 [15:54:19]Write to MH i2c: E2 02 01 5B 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 C4 00 00 00 F4 03 04 00 2B 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 00 00 70 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 5B 16 00 90 00 E5 [15:54:19]RAPDU: 90 00 [15:54:19]wFMCommunicate OK [15:54:19]wFMCommunicate request_size=10 [15:54:19]MH_SAM_APDU [15:54:19]CAPDU: 80 0D 02 02 05 8C 8B D7 CE 69 [15:54:19]Write to MH i2c: E2 0D 00 5C 16 80 0D 02 02 05 00 8C 8B D7 CE 69 00 00 1B [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [15:54:19]RAPDU: 90 00 [15:54:19]wFMCommunicate OK [15:54:19]wFMCommunicate request_size=4 [15:54:19]MH_SAM_APDU [15:54:19]CAPDU: 80 0D 03 02 [15:54:19]Write to MH i2c: E2 08 00 5D 16 80 0D 03 02 00 00 00 00 EE [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 0B 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 0B 00 5D 16 00 BF E9 D8 EB EB F7 41 30 90 00 AD [15:54:19]RAPDU: BF E9 D8 EB EB F7 41 30 90 00 [15:54:19]wFMCommunicate OK [15:54:19]SAM_PROTO_SignData done [15:54:19]FM_MakeSignedData done [15:54:19]CreateOFDProtocolMessage [15:54:19]wFMCommunicate request_size=4 [15:54:19]MH_SAM_APDU [15:54:19]CAPDU: 80 11 00 00 [15:54:19]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:19]Read from MH i2c: E2 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 17 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [15: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 [15:54:19]wFMCommunicate OK [15:54:19]CreateOFDProtocolMessage done [15:54:19]OFDSenderStorePacket 70680 [15:54:19]StoreOFDPacket docnum=70680 [15:54: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 FB ED 07 01 2E 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 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 2B 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 8C 8B D7 CE 69 BF E9 D8 EB EB F7 41 30 [15:54:19]CheckFolder [15:54:19]dirname=/storage/ofd_packets [15:54:19]CheckFolder done [15:54:19]ProducePacketName [15:54:19]name=ofd_packets/00070680 [15:54:19]NVStorageSaveData ofd_packets/00070680 [15:54:19]File name is /storage/ofd_packets/00070680 [15:54:19]Write 301 bytes [15:54:19]NVStorageSaveData done [15:54:19]OFDSenderStorePacket done [15:54:19]KKMCreateOFDPacket done [15:54:19]NVStorageSaveData kkm_last_timestamp [15:54:19]File name is /storage/kkm_last_timestamp [15:54:19]Write 4 bytes [15:54:19]NVStorageSaveData done [15:54:19]ExternCall_PrintAddStr [15:54:19]wPrintStart [15:54:19]Write to MH i2c: 01 00 00 5F 16 75 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 07 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 07 00 5F 16 00 00 00 00 00 FF 0F 8A [15:54:19]RasterBufferAndPrint [15:54:19]line Счет N : (1)2886458 [15:54:19]line ИНН: 02508201610067 [15:54:19]line Контрольно-Кассовый Чек [15:54:19]line ПРОДАЖА [15:54:19]line ТРК (МРК, ГНК) : 22 [15:54:19]line Товар: 2710124130 [15:54:19]line Аи-92-К-5 [15:54:19]line 7.480 * 66.90 [15:54:19]line = 500.41 [15:54:19]line НДС 12% НСП 1% [15:54:19]line > о реализуемом товаре [15:54:19]line ОКРУГЛЕНИЕ: -0.41 [15:54:19]line ИТОГО: 500.00 [15:54:19]line Внесено: 500.00 [15:54:19]line СДАЧА: 0.00 [15:54:19]line НСП 1% : 4.43 [15:54:19]line НДС 12% : 53.14 [15:54:19]line Наличными: 500.00 [15:54:19]line Безнал.: 0.00 [15:54:19]line Место: АЗС № 85 "Партнер Нефть" [15:54:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:54:19]line СНО: Общий режим [15:54:19]line Чек 196 23.10.2024 15:54 [15:54:19]line Смена: 196 ФФД: 1.0 [15:54:19]line ЗНМ: 0300000167 [15:54:19]line РНМ: 0000000000156251 [15:54:19]line Версия ККМ: v1.0 [15:54:19]line ФМ: 0000000000963346 [15:54:19]line ФД: 70680 [15:54:19]line ФПД: 143540153208425 [15:54:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70680&fm=143540153208425&tin=02508201610067®Number=0000000000156251&sum=50000 [15:54:19]written 0, free lines is 4095 [15:54:19]OFD Sender: Processing packet 70680 [packets to send 18, broken 17] [15:54:19]ProducePacketName [15:54:19]name=ofd_packets/00070680 [15:54:19]OFD Sender: To server: pG, [15:54:19]CommunicateWithHost lk.salyk.kg:30040 [15:54:19]ConnectInit lk.salyk.kg [15:54:19]Connected sock=10 [15:54: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 FB ED 07 01 2E 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 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 2B 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 82 8C 8B D7 CE 69 BF E9 D8 EB EB F7 41 30 [15:54: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 F5 6E 47 00 A8 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 18 14 01 00 F4 03 04 00 C8 C5 18 67 B6 04 01 00 00 09 8F 46 F0 F5 2A AD 18 [15:54:19]CommunicateWithHost err = 0 [15:54:19]CheckOFDResponse [15:54:19]1017 (14) - 77093643461234 [15:54:19]1041 (16) - 0000000000963346 [15:54:19]1040 (4) - 70680 [15:54:19]1012 (4) - 23.10.2024 09:45 [15:54:19]1206 (1) - 0 [15:54:19]OFD Sender: Remove packet 70680 [15:54:19]ProducePacketName [15:54:19]name=ofd_packets/00070680 [15:54:19]NVStorageDeleteData [15:54:19]Write to MH i2c: 01 00 00 8A 16 A0 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 07 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: 01 07 00 8A 16 00 00 00 00 00 ED 0C A0 [15:54:19]RasterBufferAndPrint [15:54:19]line [15:54:19]line [15:54:19]line [15:54:19]line [15:54:19]line [15:54:19]written 0, free lines is 3315 [15:54:19]MH_Cut [15:54:19]Write to MH i2c: D1 01 00 91 16 01 79 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: D1 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: D1 01 00 [15:54:19]MH_I2C_Read... [15:54:19]Read from MH i2c: D1 01 00 91 16 00 78 [15:54:19]Write to MH i2c: 01 00 00 92 16 A8 [15:54:19]Write i2c OK [15:54:19]MH_I2C_Read... [15:54:20]OFD Sender: No OFD packet to send [15:54:20]*** Cut start [15:54:20]*** Partial cut [15:54:20]*** CUTSNS_PIN = 1 [15:54:20]*** CUTSNS_PIN = 0 [15:54:20]*** Brake cut motor [15:54:21]Read from MH i2c: 01 [15:54:21]MH_I2C_Read... [15:54:21]*** Stop cut motor [15:54:21]*** Cut end [15:54:21]Read from MH i2c: 01 07 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: 01 07 00 92 16 00 00 00 00 00 FF 0F BD [15:54:21]process_action close_receipt done [15:54:21]requested_data is exist [15:54:21]produce_requested_data [15:54:21]requested_item fm.sn is exist - process it [15:54:21]wFMCommunicate request_size=4 [15:54:21]MH_SAM_APDU [15:54:21]CAPDU: 80 11 00 00 [15:54:21]Write to MH i2c: E2 08 00 93 16 80 11 00 00 00 00 00 00 23 [15:54:21]Write i2c OK [15:54:21]MH_I2C_Read... [15:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:21]Read from MH i2c: E2 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 17 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 17 00 93 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [15:54: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:54:21]wFMCommunicate OK [15:54:21]requested_item fd.num is exist - process it [15:54:21]SAM_PROTO_GetFieldsCounters [15:54:21]wFMCommunicate request_size=4 [15:54:21]MH_SAM_APDU [15:54:21]CAPDU: 80 13 00 00 [15:54:21]Write to MH i2c: E2 08 00 94 16 80 13 00 00 00 00 00 00 26 [15:54:21]Write i2c OK [15:54:21]MH_I2C_Read... [15:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:21]Read from MH i2c: E2 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 62 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 62 00 94 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 18 14 01 00 0E 04 04 00 C4 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 7E [15:54: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 18 14 01 00 0E 04 04 00 C4 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 [15:54:21]wFMCommunicate OK [15:54:21]SAM_PROTO_GetFieldsCounters done [15:54:21]requested_item shift.num is exist - process it [15:54:21]requested_item shift.opened is exist - process it [15:54:21]req_shift_opened [15:54:21]FM_GetShiftState [15:54:21]SAM_PROTO_GetShiftState [15:54:21]wFMCommunicate request_size=4 [15:54:21]MH_SAM_APDU [15:54:21]CAPDU: 80 13 01 00 [15:54:21]Write to MH i2c: E2 08 00 95 16 80 13 01 00 00 00 00 00 28 [15:54:21]Write i2c OK [15:54:21]MH_I2C_Read... [15:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:21]Read from MH i2c: E2 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 0E 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 0E 00 95 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B5 [15:54:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:54:21]wFMCommunicate OK [15:54:21]SAM_PROTO_GetShiftState done [15:54:21]FM_GetShiftState done [15:54:21]req_shift_opened done [15:54:21]requested_item shift.open_date is exist - process it [15:54:21]req_shift_open_date [15:54:21]req_shift_open_date done [15:54:21]produce_requested_data done [15:54:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70680,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:54:21]process_action_free close_receipt [15:54:21]json_value_free [15:54:21]json_value_free done [15:54:21]process_json_proto returns [15:54:21]Send response to host [15:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70680,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:54:21]free response buf [15:54:21]execute_script done [15:54:21]execute_script returns [15:54:21]free content buf [15:54:21]Sock 9.Close socket [15:54:21]Sock 9.Thread stoped [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:07]accept exits with 7 [15:56:07]New connection [15:56:07]New thread 3066891620 created [15:56:07]Thread 3067034980 joined [15:56:07]Waiting for new connection... [15:56:07] Sock 7.Parse request [15:56:07]Sock 7.Check first char [15:56:07]Sock 7.First char is OK [15:56:07]request: POST /json_proto HTTP/1.0 [15:56:07]Method: POST [15:56:07]URL: /json_proto [15:56:07]Method is POST - this is cgi request [15:56:07]url: /json_proto [15:56:07]query_string will be loaded in cgi processing [15:56:07]execute_cgi json_proto POST (null) [15:56:07]execute_cgi path=json_proto method=POST [15:56:07]POST find Content-Length [15:56:07]Host: 172.17.50.3:8080 [15:56:07]Content-Length: 689 [15:56:07]Content-Type: application/json [15:56:07] [15:56:07]POST finish read [15:56:07]Found Content-Length = 689 [15:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886459", "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 }]} ], "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" ] } } [15:56:07]execute_script... [15:56: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)2886459", "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 }]} ], "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" ] } } [15:56:07]POST & json_proto [15:56:07]process_json_proto [15:56:07]json parsed OK: [15:56:07]protocol is kg_v1.0 [15:56:07]action value=close_receipt [15:56:07]process_action close_receipt [15:56:07]cmd_close_receipt [15:56:07]MH_GetDate [15:56:07]Write to MH i2c: F0 00 00 96 16 9B [15:56:07]Write i2c OK [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: F0 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: F0 09 00 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: F0 09 00 96 16 00 99 1C 19 67 6B 98 1E 66 60 [15:56:07]GetLastDocTimeStamp 1729698859 [15:56:07]current date 1729698969 [15:56:07]FM_GetShiftState [15:56:07]SAM_PROTO_GetShiftState [15:56:07]wFMCommunicate request_size=4 [15:56:07]MH_SAM_APDU [15:56:07]CAPDU: 80 13 01 00 [15:56:07]Write to MH i2c: E2 08 00 97 16 80 13 01 00 00 00 00 00 2A [15:56:07]Write i2c OK [15:56:07]MH_I2C_Read... [15:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:07]Read from MH i2c: E2 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: E2 0E 00 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: E2 0E 00 97 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B7 [15:56:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:07]wFMCommunicate OK [15:56:07]SAM_PROTO_GetShiftState done [15:56:07]FM_GetShiftState done [15:56:07]opened in 1729642435 [15:56:07]opened+sec_in_day 1729728835 [15:56:07]quantity*price = 200025 [15:56:07]sum+1 = 200026 [15:56:07]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 СНО: Общий режим Чек 197 23.10.2024 15:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70681 ФПД: 90922264418415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70681&fm=90922264418415&tin=02508201610067®Number=0000000000156251&sum=200000 [15:56:08]StoreToDocumentArchive [15:56:08]shift 196 fd 70681 [15:56:08]save to /storage/0196/doc_00070681 [15:56:08]save last doc name /storage/0196/doc_00070681 to /storage/kkm_last_doc_name [15:56:08]save OK [15:56:08]Clear old archive folders... [15:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:56:08]tlvbuf is B6ED5830 [15:56:08]SAM_PROTO_ClearQueue [15:56:08]wFMCommunicate request_size=4 [15:56:08]MH_SAM_APDU [15:56:08]CAPDU: 80 09 00 00 [15:56:08]Write to MH i2c: E2 08 00 A4 16 80 09 00 00 00 00 00 00 2C [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:08]Read from MH i2c: E2 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 A4 16 00 90 00 2E [15:56:08]RAPDU: 90 00 [15:56:08]wFMCommunicate OK [15:56:08]SAM_PROTO_ClearQueue done [15:56:08]KKMCreateOFDPacket [15:56:08]OFDProtocolAddRootSTLVToBuf [15:56:08]FM_MakeSignedData [15:56:08]FM_MakeSignedData [15:56:08]SAM_PROTO_SignData [15:56:08]wFMCommunicate request_size=4 [15:56:08]MH_SAM_APDU [15:56:08]CAPDU: 80 0D 01 02 [15:56:08]Write to MH i2c: E2 08 00 A5 16 80 0D 01 02 00 00 00 00 34 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:08]Read from MH i2c: E2 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [15:56:08]RAPDU: 90 00 [15:56:08]wFMCommunicate OK [15:56:08]wFMCommunicate request_size=255 [15:56:08]MH_SAM_APDU [15:56: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 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 C5 00 00 00 F4 03 04 00 99 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [15:56:08]Write to MH i2c: E2 02 01 A6 16 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 C5 00 00 00 F4 03 04 00 99 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 B6 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:08]Read from MH i2c: E2 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [15:56:08]RAPDU: 90 00 [15:56:08]wFMCommunicate OK [15:56:08]wFMCommunicate request_size=16 [15:56:08]MH_SAM_APDU [15:56:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 B1 7D 45 D8 6F [15:56:08]Write to MH i2c: E2 13 00 A7 16 80 0D 02 02 0B 00 00 35 04 06 00 52 B1 7D 45 D8 6F 00 00 98 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 03 02 [15:56:09]Write to MH i2c: E2 08 00 A8 16 80 0D 03 02 00 00 00 00 39 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0B 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 0B 00 A8 16 00 7D 9B A2 17 B7 7A AE FA 90 00 E4 [15:56:09]RAPDU: 7D 9B A2 17 B7 7A AE FA 90 00 [15:56:09]wFMCommunicate OK [15:56:09]SAM_PROTO_SignData done [15:56:09]FM_MakeSignedData done [15:56:09]CreateOFDProtocolMessage [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 11 00 00 [15:56:09]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 17 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [15:56:09]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:09]wFMCommunicate OK [15:56:09]CreateOFDProtocolMessage done [15:56:09]OFDSenderStorePacket 70681 [15:56:09]StoreOFDPacket docnum=70681 [15:56: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 42 42 0D 01 DD 65 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 C5 00 00 00 F4 03 04 00 99 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 52 B1 7D 45 D8 6F 7D 9B A2 17 B7 7A AE FA [15:56:09]CheckFolder [15:56:09]dirname=/storage/ofd_packets [15:56:09]CheckFolder done [15:56:09]ProducePacketName [15:56:09]name=ofd_packets/00070681 [15:56:09]NVStorageSaveData ofd_packets/00070681 [15:56:09]File name is /storage/ofd_packets/00070681 [15:56:09]Write 307 bytes [15:56:09]NVStorageSaveData done [15:56:09]OFDSenderStorePacket done [15:56:09]KKMCreateOFDPacket done [15:56:09]NVStorageSaveData kkm_last_timestamp [15:56:09]File name is /storage/kkm_last_timestamp [15:56:09]Write 4 bytes [15:56:09]NVStorageSaveData done [15:56:09]ExternCall_PrintAddStr [15:56:09]wPrintStart [15:56:09]Write to MH i2c: 01 00 00 AA 16 C0 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 07 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 FF 0F D5 [15:56:09]RasterBufferAndPrint [15:56:09]line Счет N : (1)2886459 [15:56:09]line ИНН: 02508201610067 [15:56:09]line Контрольно-Кассовый Чек [15:56:09]line ПРОДАЖА [15:56:09]line ТРК (МРК, ГНК) : 11 [15:56:09]line Товар: 2710194240 [15:56:09]line D-ENERGY Дт-К-2 [15:56:09]line 25.910 * 77.20 [15:56:09]line = 2000.25 [15:56:09]line НДС 12% НСП 1% [15:56:09]line > о реализуемом товаре [15:56:09]line ОКРУГЛЕНИЕ: -0.25 [15:56:09]line ИТОГО: 2000.00 [15:56:09]line Внесено: 2000.00 [15:56:09]line СДАЧА: 0.00 [15:56:09]line НСП 1% : 17.70 [15:56:09]line НДС 12% : 212.42 [15:56:09]line Наличными: 2000.00 [15:56:09]line Безнал.: 0.00 [15:56:09]line Место: АЗС № 85 "Партнер Нефть" [15:56:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:09]line СНО: Общий режим [15:56:09]line Чек 197 23.10.2024 15:56 [15:56:09]line Смена: 196 ФФД: 1.0 [15:56:09]line ЗНМ: 0300000167 [15:56:09]line РНМ: 0000000000156251 [15:56:09]line Версия ККМ: v1.0 [15:56:09]line ФМ: 0000000000963346 [15:56:09]line ФД: 70681 [15:56:09]line ФПД: 90922264418415 [15:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70681&fm=90922264418415&tin=02508201610067®Number=0000000000156251&sum=200000 [15:56:09]OFD Sender: Processing packet 70681 [packets to send 18, broken 17] [15:56:09]ProducePacketName [15:56:09]name=ofd_packets/00070681 [15:56:09]OFD Sender: To server: pG, [15:56:09]CommunicateWithHost lk.salyk.kg:30040 [15:56:09]ConnectInit lk.salyk.kg [15:56:09]written 0, free lines is 4095 [15:56:09]Connected sock=11 [15:56: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 42 42 0D 01 DD 65 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 C5 00 00 00 F4 03 04 00 99 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 52 B1 7D 45 D8 6F 7D 9B A2 17 B7 7A AE FA [15:56: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 7A 4D 47 00 08 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 14 01 00 F4 03 04 00 36 C6 18 67 B6 04 01 00 00 C4 C1 A8 F2 3E DC 97 C1 [15:56:09]CommunicateWithHost err = 0 [15:56:09]CheckOFDResponse [15:56:09]1017 (14) - 77093643461234 [15:56:09]1041 (16) - 0000000000963346 [15:56:09]1040 (4) - 70681 [15:56:09]1012 (4) - 23.10.2024 09:47 [15:56:09]1206 (1) - 0 [15:56:09]OFD Sender: Remove packet 70681 [15:56:09]ProducePacketName [15:56:09]name=ofd_packets/00070681 [15:56:09]NVStorageDeleteData [15:56:09]Write to MH i2c: 01 00 00 D5 16 EB [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 07 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: 01 07 00 D5 16 00 00 00 00 00 F7 0C F5 [15:56:09]RasterBufferAndPrint [15:56:09]line [15:56:09]line [15:56:09]line [15:56:09]line [15:56:09]line [15:56:09]written 0, free lines is 3326 [15:56:09]MH_Cut [15:56:09]Write to MH i2c: D1 01 00 DC 16 01 C4 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: D1 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: D1 01 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: D1 01 00 DC 16 00 C3 [15:56:09]Write to MH i2c: 01 00 00 DD 16 F3 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:10]OFD Sender: No OFD packet to send [15:56:10]*** Cut start [15:56:10]*** Partial cut [15:56:10]*** CUTSNS_PIN = 1 [15:56:10]*** CUTSNS_PIN = 0 [15:56:10]*** Brake cut motor [15:56:11]Read from MH i2c: 01 [15:56:11]MH_I2C_Read... [15:56:11]*** Stop cut motor [15:56:11]*** Cut end [15:56:11]Read from MH i2c: 01 07 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 07 00 DD 16 00 00 00 00 00 FF 0F 08 [15:56:11]process_action close_receipt done [15:56:11]requested_data is exist [15:56:11]produce_requested_data [15:56:11]requested_item fm.sn is exist - process it [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 11 00 00 [15:56:11]Write to MH i2c: E2 08 00 DE 16 80 11 00 00 00 00 00 00 6E [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 DE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [15:56: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:56:11]wFMCommunicate OK [15:56:11]requested_item fd.num is exist - process it [15:56:11]SAM_PROTO_GetFieldsCounters [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 13 00 00 [15:56:11]Write to MH i2c: E2 08 00 DF 16 80 13 00 00 00 00 00 00 71 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 62 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 62 00 DF 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 19 14 01 00 0E 04 04 00 C4 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 CD [15:56: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 19 14 01 00 0E 04 04 00 C4 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 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_GetFieldsCounters done [15:56:11]requested_item shift.num is exist - process it [15:56:11]requested_item shift.opened is exist - process it [15:56:11]req_shift_opened [15:56:11]FM_GetShiftState [15:56:11]SAM_PROTO_GetShiftState [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 13 01 00 [15:56:11]Write to MH i2c: E2 08 00 E0 16 80 13 01 00 00 00 00 00 73 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 0E 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 0E 00 E0 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 00 [15:56:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_GetShiftState done [15:56:11]FM_GetShiftState done [15:56:11]req_shift_opened done [15:56:11]requested_item shift.open_date is exist - process it [15:56:11]req_shift_open_date [15:56:11]req_shift_open_date done [15:56:11]produce_requested_data done [15:56:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70681,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:56:11]process_action_free close_receipt [15:56:11]json_value_free [15:56:11]json_value_free done [15:56:11]process_json_proto returns [15:56:11]Send response to host [15:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70681,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:56:11]free response buf [15:56:11]execute_script done [15:56:11]execute_script returns [15:56:11]free content buf [15:56:11]Sock 7.Close socket [15:56:11]Sock 7.Thread stoped [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:26]accept exits with 9 [15:56:26]New connection [15:56:26]New thread 3067034980 created [15:56:26]Thread 3066891620 joined [15:56:26]Waiting for new connection... [15:56:26] Sock 9.Parse request [15:56:26]Sock 9.Check first char [15:56:26]Sock 9.First char is OK [15:56:26]request: POST /json_proto HTTP/1.0 [15:56:26]Method: POST [15:56:26]URL: /json_proto [15:56:26]Method is POST - this is cgi request [15:56:26]url: /json_proto [15:56:26]query_string will be loaded in cgi processing [15:56:26]execute_cgi json_proto POST (null) [15:56:26]execute_cgi path=json_proto method=POST [15:56:26]POST find Content-Length [15:56:26]Host: 172.17.50.3:8080 [15:56:26]Content-Length: 683 [15:56:26]Content-Type: application/json [15:56:26] [15:56:26]POST finish read [15:56:26]Found Content-Length = 683 [15:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886460", "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" ] } } [15:56:26]execute_script... [15: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)2886460", "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" ] } } [15:56:26]POST & json_proto [15:56:26]process_json_proto [15:56:26]json parsed OK: [15:56:26]protocol is kg_v1.0 [15:56:26]action value=close_receipt [15:56:26]process_action close_receipt [15:56:26]cmd_close_receipt [15:56:26]MH_GetDate [15:56:26]Write to MH i2c: F0 00 00 E1 16 E6 [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 09 00 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: F0 09 00 E1 16 00 AB 1C 19 67 6B 98 1E 66 BD [15:56:26]GetLastDocTimeStamp 1729698969 [15:56:26]current date 1729698987 [15:56:26]FM_GetShiftState [15:56:26]SAM_PROTO_GetShiftState [15:56:26]wFMCommunicate request_size=4 [15:56:26]MH_SAM_APDU [15:56:26]CAPDU: 80 13 01 00 [15:56:26]Write to MH i2c: E2 08 00 E2 16 80 13 01 00 00 00 00 00 75 [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:26]Read from MH i2c: E2 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 E2 16 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 02 [15:56:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:26]wFMCommunicate OK [15:56:26]SAM_PROTO_GetShiftState done [15:56:26]FM_GetShiftState done [15:56:26]opened in 1729642435 [15:56:26]opened+sec_in_day 1729728835 [15:56:26]quantity*price = 300064 [15:56:26]sum+1 = 300066 [15:56:26]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 СНО: Общий режим Чек 198 23.10.2024 15:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70682 ФПД: 279373375616630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155628&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70682&fm=279373375616630&tin=02508201610067®Number=0000000000156251&sum=300000 [15:56:27]StoreToDocumentArchive [15:56:27]shift 196 fd 70682 [15:56:27]save to /storage/0196/doc_00070682 [15:56:27]save last doc name /storage/0196/doc_00070682 to /storage/kkm_last_doc_name [15:56:27]save OK [15:56:27]Clear old archive folders... [15:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:27]tlvbuf is 0015E360 [15:56:27]SAM_PROTO_ClearQueue [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 09 00 00 [15:56:27]Write to MH i2c: E2 08 00 EF 16 80 09 00 00 00 00 00 00 77 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]SAM_PROTO_ClearQueue done [15:56:27]KKMCreateOFDPacket [15:56:27]OFDProtocolAddRootSTLVToBuf [15:56:27]FM_MakeSignedData [15:56:27]FM_MakeSignedData [15:56:27]SAM_PROTO_SignData [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 01 02 [15:56:27]Write to MH i2c: E2 08 00 F0 16 80 0D 01 02 00 00 00 00 7F [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=255 [15:56:27]MH_SAM_APDU [15: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 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 C6 00 00 00 F4 03 04 00 AC 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE [15:56:27]Write to MH i2c: E2 02 01 F1 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 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 C6 00 00 00 F4 03 04 00 AC 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 00 00 38 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=10 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 02 02 05 16 AE D0 36 76 [15:56:27]Write to MH i2c: E2 0D 00 F2 16 80 0D 02 02 05 00 16 AE D0 36 76 00 00 CC [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [15:56:27]RAPDU: 90 00 [15:56:27]wFMCommunicate OK [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 0D 03 02 [15:56:27]Write to MH i2c: E2 08 00 F3 16 80 0D 03 02 00 00 00 00 84 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 0B 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 0B 00 F3 16 00 2F 23 4C 74 4A 93 0D F4 90 00 75 [15:56:27]RAPDU: 2F 23 4C 74 4A 93 0D F4 90 00 [15:56:27]wFMCommunicate OK [15:56:27]SAM_PROTO_SignData done [15:56:27]FM_MakeSignedData done [15:56:27]CreateOFDProtocolMessage [15:56:27]wFMCommunicate request_size=4 [15:56:27]MH_SAM_APDU [15:56:27]CAPDU: 80 11 00 00 [15:56:27]Write to MH i2c: E2 08 00 F4 16 80 11 00 00 00 00 00 00 84 [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:27]Read from MH i2c: E2 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 17 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: E2 17 00 F4 16 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:56: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:56:27]wFMCommunicate OK [15:56:27]CreateOFDProtocolMessage done [15:56:27]OFDSenderStorePacket 70682 [15:56:27]StoreOFDPacket docnum=70682 [15:56: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 1D 15 07 01 46 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 AC 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 16 AE D0 36 76 2F 23 4C 74 4A 93 0D F4 [15:56:27]CheckFolder [15:56:27]dirname=/storage/ofd_packets [15:56:27]CheckFolder done [15:56:27]ProducePacketName [15:56:27]name=ofd_packets/00070682 [15:56:27]NVStorageSaveData ofd_packets/00070682 [15:56:27]File name is /storage/ofd_packets/00070682 [15:56:27]Write 301 bytes [15:56:27]NVStorageSaveData done [15:56:27]OFDSenderStorePacket done [15:56:27]KKMCreateOFDPacket done [15:56:27]NVStorageSaveData kkm_last_timestamp [15:56:27]File name is /storage/kkm_last_timestamp [15:56:27]Write 4 bytes [15:56:27]NVStorageSaveData done [15:56:27]ExternCall_PrintAddStr [15:56:27]wPrintStart [15:56:27]Write to MH i2c: 01 00 00 F5 16 0B [15:56:27]Write i2c OK [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: 01 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: 01 07 00 [15:56:27]MH_I2C_Read... [15:56:27]Read from MH i2c: 01 07 00 F5 16 00 00 00 00 00 FF 0F 20 [15:56:27]RasterBufferAndPrint [15:56:27]line Счет N : (1)2886460 [15:56:27]line ИНН: 02508201610067 [15:56:27]line Контрольно-Кассовый Чек [15:56:27]line ПРОДАЖА [15:56:27]line ТРК (МРК, ГНК) : 43 [15:56:27]line Товар: 2710124500 [15:56:27]line Аи-95-К-5 [15:56:27]line 40.440 * 74.20 [15:56:27]line = 3000.65 [15:56:27]line НДС 12% НСП 1% [15:56:27]line > о реализуемом товаре [15:56:27]line ОКРУГЛЕНИЕ: -0.65 [15:56:27]line ИТОГО: 3000.00 [15:56:27]line Внесено: 3000.00 [15:56:27]line СДАЧА: 0.00 [15:56:27]line НСП 1% : 26.55 [15:56:27]line НДС 12% : 318.65 [15:56:27]line Наличными: 3000.00 [15:56:27]line Безнал.: 0.00 [15:56:27]line Место: АЗС № 85 "Партнер Нефть" [15:56:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:27]line СНО: Общий режим [15:56:27]line Чек 198 23.10.2024 15:56 [15:56:27]line Смена: 196 ФФД: 1.0 [15:56:27]line ЗНМ: 0300000167 [15:56:27]line РНМ: 0000000000156251 [15:56:27]line Версия ККМ: v1.0 [15:56:27]line ФМ: 0000000000963346 [15:56:27]line ФД: 70682 [15:56:27]line ФПД: 279373375616630 [15:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155628&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70682&fm=279373375616630&tin=02508201610067®Number=0000000000156251&sum=300000 [15:56:28]OFD Sender: Processing packet 70682 [packets to send 18, broken 17] [15:56:28]ProducePacketName [15:56:28]name=ofd_packets/00070682 [15:56:28]OFD Sender: To server: pG, [15:56:28]CommunicateWithHost lk.salyk.kg:30040 [15:56:28]ConnectInit lk.salyk.kg [15:56:28]written 0, free lines is 4095 [15:56:28]Connected sock=10 [15: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 1D 15 07 01 46 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 AC 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 16 AE D0 36 76 2F 23 4C 74 4A 93 0D F4 [15: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 9D 9F 47 00 C2 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 1A 14 01 00 F4 03 04 00 49 C6 18 67 B6 04 01 00 00 67 8C E8 E5 A4 51 D2 22 [15:56:28]CommunicateWithHost err = 0 [15:56:28]CheckOFDResponse [15:56:28]1017 (14) - 77093643461234 [15:56:28]1041 (16) - 0000000000963346 [15:56:28]1040 (4) - 70682 [15:56:28]1012 (4) - 23.10.2024 09:47 [15:56:28]1206 (1) - 0 [15:56:28]OFD Sender: Remove packet 70682 [15:56:28]ProducePacketName [15:56:28]name=ofd_packets/00070682 [15:56:28]NVStorageDeleteData [15:56:28]Write to MH i2c: 01 00 00 20 17 37 [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: 01 07 00 20 17 00 00 00 00 00 EA 0C 34 [15:56:28]RasterBufferAndPrint [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]line [15:56:28]written 0, free lines is 3312 [15:56:28]MH_Cut [15:56:28]Write to MH i2c: D1 01 00 27 17 01 10 [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 01 00 [15:56:28]MH_I2C_Read... [15:56:28]Read from MH i2c: D1 01 00 27 17 00 0F [15:56:28]Write to MH i2c: 01 00 00 28 17 3F [15:56:28]Write i2c OK [15:56:28]MH_I2C_Read... [15:56:29]OFD Sender: No OFD packet to send [15:56:29]*** Cut start [15:56:29]*** Partial cut [15:56:29]*** CUTSNS_PIN = 1 [15:56:29]*** CUTSNS_PIN = 0 [15:56:29]*** Brake cut motor [15:56:29]Read from MH i2c: 01 [15:56:29]MH_I2C_Read... [15:56:29]*** Stop cut motor [15:56:29]*** Cut end [15:56:29]Read from MH i2c: 01 07 00 [15:56:29]MH_I2C_Read... [15:56:29]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 FF 0F 54 [15:56:29]process_action close_receipt done [15:56:29]requested_data is exist [15:56:29]produce_requested_data [15:56:29]requested_item fm.sn is exist - process it [15:56:29]wFMCommunicate request_size=4 [15:56:29]MH_SAM_APDU [15:56:29]CAPDU: 80 11 00 00 [15:56:29]Write to MH i2c: E2 08 00 29 17 80 11 00 00 00 00 00 00 BA [15:56:29]Write i2c OK [15:56:29]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 29 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [15: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 [15:56:30]wFMCommunicate OK [15:56:30]requested_item fd.num is exist - process it [15:56:30]SAM_PROTO_GetFieldsCounters [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 00 00 [15:56:30]Write to MH i2c: E2 08 00 2A 17 80 13 00 00 00 00 00 00 BD [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 2A 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 1A 14 01 00 0E 04 04 00 C4 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 1D [15: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 1A 14 01 00 0E 04 04 00 C4 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 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetFieldsCounters done [15:56:30]requested_item shift.num is exist - process it [15:56:30]requested_item shift.opened is exist - process it [15:56:30]req_shift_opened [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 2B 17 80 13 01 00 00 00 00 00 BF [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 2B 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4C [15:56:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]req_shift_opened done [15:56:30]requested_item shift.open_date is exist - process it [15:56:30]req_shift_open_date [15:56:30]req_shift_open_date done [15:56:30]produce_requested_data done [15:56:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70682,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:56:30]process_action_free close_receipt [15:56:30]json_value_free [15:56:30]json_value_free done [15:56:30]process_json_proto returns [15:56:30]Send response to host [15:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70682,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:56:30]free response buf [15:56:30]execute_script done [15:56:30]execute_script returns [15:56:30]free content buf [15:56:30]Sock 9.Close socket [15:56:30]Sock 9.Thread stoped [15:56:34]OFD Sender: No OFD packet to send [15:56:37]accept exits with 7 [15:56:37]New connection [15:56:37]New thread 3066891620 created [15:56:37]Thread 3067034980 joined [15:56:37]Waiting for new connection... [15:56:37] Sock 7.Parse request [15:56:37]Sock 7.Check first char [15:56:37]Sock 7.First char is OK [15:56:37]request: POST /json_proto HTTP/1.0 [15:56:37]Method: POST [15:56:37]URL: /json_proto [15:56:37]Method is POST - this is cgi request [15:56:37]url: /json_proto [15:56:37]query_string will be loaded in cgi processing [15:56:37]execute_cgi json_proto POST (null) [15:56:37]execute_cgi path=json_proto method=POST [15:56:37]POST find Content-Length [15:56:37]Host: 172.17.50.3:8080 [15:56:37]Content-Length: 767 [15:56:37]Content-Type: application/json [15:56:37] [15:56:37]POST finish read [15:56:37]Found Content-Length = 767 [15:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886461", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:37]execute_script... [15:56: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)2886461", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:37]POST & json_proto [15:56:37]process_json_proto [15:56:37]json parsed OK: [15:56:37]protocol is kg_v1.0 [15:56:37]action value=close_receipt [15:56:37]process_action close_receipt [15:56:37]cmd_close_receipt [15:56:37]MH_GetDate [15:56:37]Write to MH i2c: F0 00 00 2C 17 32 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: F0 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: F0 09 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: F0 09 00 2C 17 00 B7 1C 19 67 6B 98 1E 66 15 [15:56:37]GetLastDocTimeStamp 1729698988 [15:56:37]current date 1729698999 [15:56:37]FM_GetShiftState [15:56:37]SAM_PROTO_GetShiftState [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 13 01 00 [15:56:37]Write to MH i2c: E2 08 00 2D 17 80 13 01 00 00 00 00 00 C1 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 2D 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4E [15:56:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetShiftState done [15:56:37]FM_GetShiftState done [15:56:37]opened in 1729642435 [15:56:37]opened+sec_in_day 1729728835 [15:56:37]quantity*price = 30038 [15:56:37]sum+1 = 30039 [15:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 199 23.10.2024 15:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70683 ФПД: 137795539177430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70683&fm=137795539177430&tin=02508201610067®Number=0000000000156251&sum=30038 [15:56:38]StoreToDocumentArchive [15:56:38]shift 196 fd 70683 [15:56:38]save to /storage/0196/doc_00070683 [15:56:38]save last doc name /storage/0196/doc_00070683 to /storage/kkm_last_doc_name [15:56:38]save OK [15:56:38]Clear old archive folders... [15:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:38]tlvbuf is B6ED5E90 [15:56:38]SAM_PROTO_ClearQueue [15:56:38]wFMCommunicate request_size=4 [15:56:38]MH_SAM_APDU [15:56:38]CAPDU: 80 09 00 00 [15:56:38]Write to MH i2c: E2 08 00 3A 17 80 09 00 00 00 00 00 00 C3 [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:38]Read from MH i2c: E2 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 03 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 03 00 3A 17 00 90 00 C5 [15:56:38]RAPDU: 90 00 [15:56:38]wFMCommunicate OK [15:56:38]SAM_PROTO_ClearQueue done [15:56:38]KKMCreateOFDPacket [15:56:38]OFDProtocolAddRootSTLVToBuf [15:56:38]FM_MakeSignedData [15:56:38]FM_MakeSignedData [15:56:38]SAM_PROTO_SignData [15:56:38]wFMCommunicate request_size=4 [15:56:38]MH_SAM_APDU [15:56:38]CAPDU: 80 0D 01 02 [15:56:38]Write to MH i2c: E2 08 00 3B 17 80 0D 01 02 00 00 00 00 CB [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:38]Read from MH i2c: E2 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 03 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [15:56:38]RAPDU: 90 00 [15:56:38]wFMCommunicate OK [15:56:38]wFMCommunicate request_size=255 [15:56:38]MH_SAM_APDU [15:56: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B7 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7D [15:56:38]Write to MH i2c: E2 02 01 3C 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B7 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7D 00 00 1F [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:39]Read from MH i2c: E2 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 03 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [15:56:39]RAPDU: 90 00 [15:56:39]wFMCommunicate OK [15:56:39]wFMCommunicate request_size=10 [15:56:39]MH_SAM_APDU [15:56:39]CAPDU: 80 0D 02 02 05 53 06 2A 0F D6 [15:56:39]Write to MH i2c: E2 0D 00 3D 17 80 0D 02 02 05 00 53 06 2A 0F D6 00 00 40 [15:56:39]Write i2c OK [15:56:39]MH_I2C_Read... [15:56:39]OFD Sender: No OFD packet to send [15:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:39]Read from MH i2c: E2 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 03 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [15:56:39]RAPDU: 90 00 [15:56:39]wFMCommunicate OK [15:56:39]wFMCommunicate request_size=4 [15:56:39]MH_SAM_APDU [15:56:39]CAPDU: 80 0D 03 02 [15:56:39]Write to MH i2c: E2 08 00 3E 17 80 0D 03 02 00 00 00 00 D0 [15:56:39]Write i2c OK [15:56:39]MH_I2C_Read... [15:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:39]Read from MH i2c: E2 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 0B 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 0B 00 3E 17 00 3C 3F 8A 08 BF 45 0B 2A 90 00 17 [15:56:39]RAPDU: 3C 3F 8A 08 BF 45 0B 2A 90 00 [15:56:39]wFMCommunicate OK [15:56:39]SAM_PROTO_SignData done [15:56:39]FM_MakeSignedData done [15:56:39]CreateOFDProtocolMessage [15:56:39]wFMCommunicate request_size=4 [15:56:39]MH_SAM_APDU [15:56:39]CAPDU: 80 11 00 00 [15:56:39]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [15:56:39]Write i2c OK [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:39]E2 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 17 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: E2 17 00 3F 17 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:56: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:56:39]wFMCommunicate OK [15:56:39]CreateOFDProtocolMessage done [15:56:39]OFDSenderStorePacket 70683 [15:56:39]StoreOFDPacket docnum=70683 [15:56: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 38 56 07 01 4B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B7 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7D 53 06 2A 0F D6 3C 3F 8A 08 BF 45 0B 2A [15:56:39]CheckFolder [15:56:39]dirname=/storage/ofd_packets [15:56:39]CheckFolder done [15:56:39]ProducePacketName [15:56:39]name=ofd_packets/00070683 [15:56:39]NVStorageSaveData ofd_packets/00070683 [15:56:39]File name is /storage/ofd_packets/00070683 [15:56:39]Write 301 bytes [15:56:39]NVStorageSaveData done [15:56:39]OFDSenderStorePacket done [15:56:39]KKMCreateOFDPacket done [15:56:39]NVStorageSaveData kkm_last_timestamp [15:56:39]File name is /storage/kkm_last_timestamp [15:56:39]Write 4 bytes [15:56:39]NVStorageSaveData done [15:56:39]ExternCall_PrintAddStr [15:56:39]wPrintStart [15:56:39]Write to MH i2c: 01 00 00 40 17 57 [15:56:39]Write i2c OK [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 07 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 07 00 40 17 00 00 00 00 00 FF 0F 6C [15:56:39]RasterBufferAndPrint [15:56:39]line Счет N : (1)2886461 [15:56:39]line ИНН: 02508201610067 [15:56:39]line Контрольно-Кассовый Чек [15:56:39]line ПРОДАЖА [15:56:39]line ТРК (МРК, ГНК) : 32 [15:56:39]line Товар: 2710124130 [15:56:39]line Аи-92-К-5 [15:56:39]line 4.490 * 66.90 [15:56:39]line = 300.38 [15:56:39]line НДС 12% НСП 1% [15:56:39]line > о реализуемом товаре [15:56:39]line ИТОГО: 300.38 [15:56:39]line НСП 1% : 2.66 [15:56:39]line НДС 12% : 31.90 [15:56:39]line Наличными: 0.00 [15:56:39]line Безнал.: 300.38 [15:56:39]line Место: АЗС № 85 "Партнер Нефть" [15:56:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:39]line СНО: Общий режим [15:56:39]line Чек 199 23.10.2024 15:56 [15:56:39]line Смена: 196 ФФД: 1.0 [15:56:39]line ЗНМ: 0300000167 [15:56:39]line РНМ: 0000000000156251 [15:56:39]line Версия ККМ: v1.0 [15:56:39]line Платежная система: Mbank [15:56:39]line ФМ: 0000000000963346 [15:56:39]line ФД: 70683 [15:56:39]line ФПД: 137795539177430 [15:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70683&fm=137795539177430&tin=02508201610067®Number=0000000000156251&sum=30038 [15:56:39]OFD Sender: Processing packet 70683 [packets to send 18, broken 17] [15:56:39]ProducePacketName [15:56:39]name=ofd_packets/00070683 [15:56:39]OFD Sender: To server: pG, [15:56:39]CommunicateWithHost lk.salyk.kg:30040 [15:56:39]ConnectInit lk.salyk.kg [15:56:39]written 0, free lines is 4095 [15:56:39]Connected sock=10 [15:56: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 38 56 07 01 4B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B7 1C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7D 53 06 2A 0F D6 3C 3F 8A 08 BF 45 0B 2A [15:56: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 E0 E4 47 00 05 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 1B 14 01 00 F4 03 04 00 54 C6 18 67 B6 04 01 00 00 58 31 69 84 F4 1F C4 E9 [15:56:39]CommunicateWithHost err = 0 [15:56:39]CheckOFDResponse [15:56:39]1017 (14) - 77093643461234 [15:56:39]1041 (16) - 0000000000963346 [15:56:39]1040 (4) - 70683 [15:56:39]1012 (4) - 23.10.2024 09:48 [15:56:39]1206 (1) - 0 [15:56:39]OFD Sender: Remove packet 70683 [15:56:39]ProducePacketName [15:56:39]name=ofd_packets/00070683 [15:56:39]NVStorageDeleteData [15:56:39]Write to MH i2c: 01 00 00 69 17 80 [15:56:39]Write i2c OK [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 07 00 [15:56:39]MH_I2C_Read... [15:56:39]Read from MH i2c: 01 07 00 69 17 00 00 00 00 00 0C 0D A0 [15:56:39]RasterBufferAndPrint [15:56:39]line [15:56:39]line [15:56:39]line [15:56:39]line [15:56:39]line [15:56:39]written 0, free lines is 3353 [15:56:40]MH_Cut [15:56:40]Write to MH i2c: D1 01 00 70 17 01 59 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: D1 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: D1 01 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: D1 01 00 70 17 00 58 [15:56:40]Write to MH i2c: 01 00 00 71 17 88 [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]OFD Sender: No OFD packet to send [15:56:40]*** Cut start [15:56:40]*** Partial cut [15:56:40]*** CUTSNS_PIN = 1 [15:56:40]*** CUTSNS_PIN = 0 [15:56:40]*** Brake cut motor [15:56:41]Read from MH i2c: 01 [15:56:41]MH_I2C_Read... [15:56:41]*** Stop cut motor [15:56:41]*** Cut end [15:56:41]Read from MH i2c: 01 07 00 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: 01 07 00 71 17 00 00 00 00 00 FF 0F 9D [15:56:41]process_action close_receipt done [15:56:41]requested_data is exist [15:56:41]produce_requested_data [15:56:41]requested_item fm.sn is exist - process it [15:56:41]wFMCommunicate request_size=4 [15:56:41]MH_SAM_APDU [15:56:41]CAPDU: 80 11 00 00 [15:56:41]Write to MH i2c: E2 08 00 72 17 80 11 00 00 00 00 00 00 03 [15:56:41]Write i2c OK [15:56:41]MH_I2C_Read... [15:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:41]Read from MH i2c: E2 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 17 00 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 17 00 72 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [15:56: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:56:41]wFMCommunicate OK [15:56:41]requested_item fd.num is exist - process it [15:56:41]SAM_PROTO_GetFieldsCounters [15:56:41]wFMCommunicate request_size=4 [15:56:41]MH_SAM_APDU [15:56:41]CAPDU: 80 13 00 00 [15:56:41]Write to MH i2c: E2 08 00 73 17 80 13 00 00 00 00 00 00 06 [15:56:41]Write i2c OK [15:56:41]MH_I2C_Read... [15:56:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:41]Read from MH i2c: E2 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 62 00 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 62 00 73 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 1B 14 01 00 0E 04 04 00 C4 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 6A [15:56: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 1B 14 01 00 0E 04 04 00 C4 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 [15:56:41]wFMCommunicate OK [15:56:41]SAM_PROTO_GetFieldsCounters done [15:56:41]requested_item shift.num is exist - process it [15:56:41]requested_item shift.opened is exist - process it [15:56:41]req_shift_opened [15:56:41]FM_GetShiftState [15:56:41]SAM_PROTO_GetShiftState [15:56:41]wFMCommunicate request_size=4 [15:56:41]MH_SAM_APDU [15:56:41]CAPDU: 80 13 01 00 [15:56:41]Write to MH i2c: E2 08 00 74 17 80 13 01 00 00 00 00 00 08 [15:56:41]Write i2c OK [15:56:41]MH_I2C_Read... [15:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:41]Read from MH i2c: E2 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 0E 00 [15:56:41]MH_I2C_Read... [15:56:41]Read from MH i2c: E2 0E 00 74 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 95 [15:56:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:56:41]wFMCommunicate OK [15:56:41]SAM_PROTO_GetShiftState done [15:56:41]FM_GetShiftState done [15:56:41]req_shift_opened done [15:56:41]requested_item shift.open_date is exist - process it [15:56:41]req_shift_open_date [15:56:41]req_shift_open_date done [15:56:41]produce_requested_data done [15:56:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70683,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:56:41]process_action_free close_receipt [15:56:41]json_value_free [15:56:41]json_value_free done [15:56:41]process_json_proto returns [15:56:41]Send response to host [15:56:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70683,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:56:41]free response buf [15:56:41]execute_script done [15:56:41]execute_script returns [15:56:41]free content buf [15:56:41]Sock 7.Close socket [15:56:41]Sock 7.Thread stoped [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:32]accept exits with 9 [15:58:32]New connection [15:58:32]New thread 3067034980 created [15:58:32]Thread 3066891620 joined [15:58:32]Waiting for new connection... [15:58:32] Sock 9.Parse request [15:58:32]Sock 9.Check first char [15:58:32]Sock 9.First char is OK [15:58:32]request: POST /json_proto HTTP/1.0 [15:58:32]Method: POST [15:58:32]URL: /json_proto [15:58:32]Method is POST - this is cgi request [15:58:32]url: /json_proto [15:58:32]query_string will be loaded in cgi processing [15:58:32]execute_cgi json_proto POST (null) [15:58:32]execute_cgi path=json_proto method=POST [15:58:32]POST find Content-Length [15:58:32]Host: 172.17.50.3:8080 [15:58:32]Content-Length: 793 [15:58:32]Content-Type: application/json [15:58:32] [15:58:32]POST finish read [15:58:32]Found Content-Length = 793 [15:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886462", "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" : 11.870, "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\u000A53079", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:32]execute_script... [15:58: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)2886462", "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" : 11.870, "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\u000A53079", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:32]POST & json_proto [15:58:32]process_json_proto [15:58:32]json parsed OK: [15:58:32]protocol is kg_v1.0 [15:58:32]action value=close_receipt [15:58:32]process_action close_receipt [15:58:32]cmd_close_receipt [15:58:32]MH_GetDate [15:58:32]Write to MH i2c: F0 00 00 75 17 7B [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 75 17 00 2A 1D 19 67 6B 98 1E 66 D2 [15:58:32]GetLastDocTimeStamp 1729698999 [15:58:32]current date 1729699114 [15:58:32]FM_GetShiftState [15:58:32]SAM_PROTO_GetShiftState [15:58:32]wFMCommunicate request_size=4 [15:58:32]MH_SAM_APDU [15:58:32]CAPDU: 80 13 01 00 [15:58:32]Write to MH i2c: E2 08 00 76 17 80 13 01 00 00 00 00 00 0A [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:32]Read from MH i2c: E2 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 76 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 97 [15:58:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:58:32]wFMCommunicate OK [15:58:32]SAM_PROTO_GetShiftState done [15:58:32]FM_GetShiftState done [15:58:32]opened in 1729642435 [15:58:32]opened+sec_in_day 1729728835 [15:58:32]quantity*price = 0 [15:58:32]sum+1 = 1 [15:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 200 23.10.2024 15:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 53079 ФМ: 0000000000963346 ФД: 70684 ФПД: 105424007180351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70684&fm=105424007180351&tin=02508201610067®Number=0000000000156251&sum=0 [15:58:33]StoreToDocumentArchive [15:58:33]shift 196 fd 70684 [15:58:33]save to /storage/0196/doc_00070684 [15:58:33]save last doc name /storage/0196/doc_00070684 to /storage/kkm_last_doc_name [15:58:33]save OK [15:58:33]Clear old archive folders... [15:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:33]tlvbuf is 00134310 [15:58:33]SAM_PROTO_ClearQueue [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 09 00 00 [15:58:33]Write to MH i2c: E2 08 00 83 17 80 09 00 00 00 00 00 00 0C [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_ClearQueue done [15:58:33]KKMCreateOFDPacket [15:58:33]OFDProtocolAddRootSTLVToBuf [15:58:33]FM_MakeSignedData [15:58:33]FM_MakeSignedData [15:58:33]SAM_PROTO_SignData [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 0D 01 02 [15:58:33]Write to MH i2c: E2 08 00 84 17 80 0D 01 02 00 00 00 00 14 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=255 [15:58:34]MH_SAM_APDU [15:58: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 5E 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2A 1D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F [15:58:34]Write to MH i2c: E2 02 01 85 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 5E 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2A 1D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F 00 00 87 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 85 17 00 90 00 10 [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=10 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 0D 02 02 05 E1 F0 7F B0 3F [15:58:34]Write to MH i2c: E2 0D 00 86 17 80 0D 02 02 05 00 E1 F0 7F B0 3F 00 00 60 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 0D 03 02 [15:58:34]Write to MH i2c: E2 08 00 87 17 80 0D 03 02 00 00 00 00 19 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 87 17 00 CE DC 84 15 D6 08 BC BB 90 00 B2 [15:58:34]RAPDU: CE DC 84 15 D6 08 BC BB 90 00 [15:58:34]wFMCommunicate OK [15:58:34]SAM_PROTO_SignData done [15:58:34]FM_MakeSignedData done [15:58:34]CreateOFDProtocolMessage [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 11 00 00 [15:58:34]Write to MH i2c: E2 08 00 88 17 80 11 00 00 00 00 00 00 19 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 88 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [15:58: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:58:34]wFMCommunicate OK [15:58:34]CreateOFDProtocolMessage done [15:58:34]OFDSenderStorePacket 70684 [15:58:34]StoreOFDPacket docnum=70684 [15:58: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 E9 F9 07 01 26 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2A 1D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F E1 F0 7F B0 3F CE DC 84 15 D6 08 BC BB [15:58:34]CheckFolder [15:58:34]dirname=/storage/ofd_packets [15:58:34]CheckFolder done [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00070684 [15:58:34]NVStorageSaveData ofd_packets/00070684 [15:58:34]File name is /storage/ofd_packets/00070684 [15:58:34]Write 301 bytes [15:58:34]NVStorageSaveData done [15:58:34]OFDSenderStorePacket done [15:58:34]KKMCreateOFDPacket done [15:58:34]NVStorageSaveData kkm_last_timestamp [15:58:34]File name is /storage/kkm_last_timestamp [15:58:34]Write 4 bytes [15:58:34]NVStorageSaveData done [15:58:34]ExternCall_PrintAddStr [15:58:34]wPrintStart [15:58:34]Write to MH i2c: 01 00 00 89 17 A0 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [15:58:34]RasterBufferAndPrint [15:58:34]line Счет N : (1)2886462 [15:58:34]line ИНН: 02508201610067 [15:58:34]line Контрольно-Кассовый Чек [15:58:34]line ПРОДАЖА [15:58:34]line ТРК (МРК, ГНК) : 22 [15:58:34]line Товар: 2710124130 [15:58:34]line Аи-92-К-5 [15:58:34]line 11.870 * 0.00 [15:58:34]line = 0.00 [15:58:34]line НДС 12% НСП 1% [15:58:34]line > о реализуемом товаре [15:58:34]line ИТОГО: 0.00 [15:58:34]line НСП 1% : 0.00 [15:58:34]line НДС 12% : 0.00 [15:58:34]line Наличными: 0.00 [15:58:34]line Безнал.: 0.00 [15:58:34]line Место: АЗС № 85 "Партнер Нефть" [15:58:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:58:34]line СНО: Общий режим [15:58:34]line Чек 200 23.10.2024 15:58 [15:58:34]line Смена: 196 ФФД: 1.0 [15:58:34]line ЗНМ: 0300000167 [15:58:34]line РНМ: 0000000000156251 [15:58:34]line Версия ККМ: v1.0 [15:58:34]line Талоны: Топливная Карта [15:58:34]line 53079 [15:58:34]line ФМ: 0000000000963346 [15:58:34]line ФД: 70684 [15:58:34]line ФПД: 105424007180351 [15:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70684&fm=105424007180351&tin=02508201610067®Number=0000000000156251&sum=0 [15:58:34]OFD Sender: Processing packet 70684 [packets to send 18, broken 17] [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00070684 [15:58:34]OFD Sender: To server: pG, [15:58:34]CommunicateWithHost lk.salyk.kg:30040 [15:58:34]ConnectInit lk.salyk.kg [15:58:34]written 0, free lines is 4095 [15:58:34]Connected sock=10 [15:58: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 E9 F9 07 01 26 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2A 1D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F E1 F0 7F B0 3F CE DC 84 15 D6 08 BC BB [15:58: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 91 77 47 00 DC 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 1C 14 01 00 F4 03 04 00 C7 C6 18 67 B6 04 01 00 00 E3 A6 A1 49 88 57 77 E3 [15:58:35]CommunicateWithHost err = 0 [15:58:35]CheckOFDResponse [15:58:35]1017 (14) - 77093643461234 [15:58:35]1041 (16) - 0000000000963346 [15:58:35]1040 (4) - 70684 [15:58:35]1012 (4) - 23.10.2024 09:49 [15:58:35]1206 (1) - 0 [15:58:35]OFD Sender: Remove packet 70684 [15:58:35]ProducePacketName [15:58:35]name=ofd_packets/00070684 [15:58:35]NVStorageDeleteData [15:58:35]Write to MH i2c: 01 00 00 B3 17 CA [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: 01 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: 01 07 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 FB 0C D8 [15:58:35]RasterBufferAndPrint [15:58:35]line [15:58:35]line [15:58:35]line [15:58:35]line [15:58:35]line [15:58:35]written 0, free lines is 3329 [15:58:35]MH_Cut [15:58:35]Write to MH i2c: D1 01 00 BA 17 01 A3 [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: D1 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: D1 01 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: D1 01 00 BA 17 00 A2 [15:58:35]Write to MH i2c: 01 00 00 BB 17 D2 [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]OFD Sender: No OFD packet to send [15:58:35]*** Cut start [15:58:35]*** Partial cut [15:58:35]*** CUTSNS_PIN = 1 [15:58:35]*** CUTSNS_PIN = 0 [15:58:36]*** Brake cut motor [15:58:36]Read from MH i2c: 01 [15:58:36]MH_I2C_Read... [15:58:36]*** Stop cut motor [15:58:36]*** Cut end [15:58:36]Read from MH i2c: 01 07 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [15:58:36]process_action close_receipt done [15:58:36]requested_data is exist [15:58:36]produce_requested_data [15:58:36]requested_item fm.sn is exist - process it [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 11 00 00 [15:58:36]Write to MH i2c: E2 08 00 BC 17 80 11 00 00 00 00 00 00 4D [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 BC 17 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:58: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:58:36]wFMCommunicate OK [15:58:36]requested_item fd.num is exist - process it [15:58:36]SAM_PROTO_GetFieldsCounters [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 00 00 [15:58:36]Write to MH i2c: E2 08 00 BD 17 80 13 00 00 00 00 00 00 50 [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 BD 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 1C 14 01 00 0E 04 04 00 C4 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 B8 [15:58: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 1C 14 01 00 0E 04 04 00 C4 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 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetFieldsCounters done [15:58:36]requested_item shift.num is exist - process it [15:58:36]requested_item shift.opened is exist - process it [15:58:36]req_shift_opened [15:58:36]FM_GetShiftState [15:58:36]SAM_PROTO_GetShiftState [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 01 00 [15:58:36]Write to MH i2c: E2 08 00 BE 17 80 13 01 00 00 00 00 00 52 [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 BE 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DF [15:58:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetShiftState done [15:58:36]FM_GetShiftState done [15:58:36]req_shift_opened done [15:58:36]requested_item shift.open_date is exist - process it [15:58:36]req_shift_open_date [15:58:36]req_shift_open_date done [15:58:36]produce_requested_data done [15:58:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70684,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [15:58:36]process_action_free close_receipt [15:58:36]json_value_free [15:58:36]json_value_free done [15:58:36]process_json_proto returns [15:58:36]Send response to host [15:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70684,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [15:58:36]free response buf [15:58:36]execute_script done [15:58:36]execute_script returns [15:58:36]free content buf [15:58:36]Sock 9.Close socket [15:58:36]Sock 9.Thread stoped [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]accept exits with 7 [16:02:40]New connection [16:02:40]New thread 3066891620 created [16:02:40]Thread 3067034980 joined [16:02:40]Waiting for new connection... [16:02:40] Sock 7.Parse request [16:02:40]Sock 7.Check first char [16:02:40]Sock 7.First char is OK [16:02:40]request: POST /json_proto HTTP/1.0 [16:02:40]Method: POST [16:02:40]URL: /json_proto [16:02:40]Method is POST - this is cgi request [16:02:40]url: /json_proto [16:02:40]query_string will be loaded in cgi processing [16:02:40]execute_cgi json_proto POST (null) [16:02:40]execute_cgi path=json_proto method=POST [16:02:40]POST find Content-Length [16:02:40]Host: 172.17.50.3:8080 [16:02:40]Content-Length: 678 [16:02:40]Content-Type: application/json [16:02:40] [16:02:40]POST finish read [16:02:40]Found Content-Length = 678 [16:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886464", "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" ] } } [16:02:40]execute_script... [16:02: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)2886464", "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" ] } } [16:02:40]POST & json_proto [16:02:40]process_json_proto [16:02:40]json parsed OK: [16:02:40]protocol is kg_v1.0 [16:02:40]action value=close_receipt [16:02:40]process_action close_receipt [16:02:40]cmd_close_receipt [16:02:40]MH_GetDate [16:02:40]Write to MH i2c: F0 00 00 BF 17 C5 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 09 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 09 00 BF 17 00 22 1E 19 67 6B 98 1E 66 15 [16:02:40]GetLastDocTimeStamp 1729699114 [16:02:40]current date 1729699362 [16:02:40]FM_GetShiftState [16:02:40]SAM_PROTO_GetShiftState [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 13 01 00 [16:02:40]Write to MH i2c: E2 08 00 C0 17 80 13 01 00 00 00 00 00 54 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 C0 17 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E1 [16:02:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:02:40]wFMCommunicate OK [16:02:40]SAM_PROTO_GetShiftState done [16:02:40]FM_GetShiftState done [16:02:40]opened in 1729642435 [16:02:40]opened+sec_in_day 1729728835 [16:02:40]quantity*price = 40006 [16:02:40]sum+1 = 40007 [16:02:40]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 СНО: Общий режим Чек 201 23.10.2024 16:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70685 ФПД: 129490520174882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70685&fm=129490520174882&tin=02508201610067®Number=0000000000156251&sum=40000 [16:02:41]StoreToDocumentArchive [16:02:41]shift 196 fd 70685 [16:02:41]save to /storage/0196/doc_00070685 [16:02:41]save last doc name /storage/0196/doc_00070685 to /storage/kkm_last_doc_name [16:02:41]save OK [16:02:41]Clear old archive folders... [16:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:41]tlvbuf is 00196E60 [16:02:41]SAM_PROTO_ClearQueue [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 09 00 00 [16:02:41]Write to MH i2c: E2 08 00 CD 17 80 09 00 00 00 00 00 00 56 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [16:02:41]RAPDU: 90 00 [16:02:41]wFMCommunicate OK [16:02:41]SAM_PROTO_ClearQueue done [16:02:41]KKMCreateOFDPacket [16:02:41]OFDProtocolAddRootSTLVToBuf [16:02:41]FM_MakeSignedData [16:02:41]FM_MakeSignedData [16:02:41]SAM_PROTO_SignData [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 0D 01 02 [16:02:41]Write to MH i2c: E2 08 00 CE 17 80 0D 01 02 00 00 00 00 5E [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [16:02:42]RAPDU: 90 00 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=255 [16:02:42]MH_SAM_APDU [16:02: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 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 C9 00 00 00 F4 03 04 00 22 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 [16:02:42]Write to MH i2c: E2 02 01 CF 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 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 C9 00 00 00 F4 03 04 00 22 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 00 00 AA [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [16:02:42]RAPDU: 90 00 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=10 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 0D 02 02 05 C5 5C 74 F1 22 [16:02:42]Write to MH i2c: E2 0D 00 D0 17 80 0D 02 02 05 00 C5 5C 74 F1 22 00 00 13 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [16:02:42]RAPDU: 90 00 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 0D 03 02 [16:02:42]Write to MH i2c: E2 08 00 D1 17 80 0D 03 02 00 00 00 00 63 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0B 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0B 00 D1 17 00 1F CC 5F 78 B8 5B 6C D8 90 00 7D [16:02:42]RAPDU: 1F CC 5F 78 B8 5B 6C D8 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_SignData done [16:02:42]FM_MakeSignedData done [16:02:42]CreateOFDProtocolMessage [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 11 00 00 [16:02:42]Write to MH i2c: E2 08 00 D2 17 80 11 00 00 00 00 00 00 63 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 D2 17 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:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:02:42]wFMCommunicate OK [16:02:42]CreateOFDProtocolMessage done [16:02:42]OFDSenderStorePacket 70685 [16:02:42]StoreOFDPacket docnum=70685 [16:02: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 47 4F 07 01 FA 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 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 C9 00 00 00 F4 03 04 00 22 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 C5 5C 74 F1 22 1F CC 5F 78 B8 5B 6C D8 [16:02:42]CheckFolder [16:02:42]dirname=/storage/ofd_packets [16:02:42]CheckFolder done [16:02:42]ProducePacketName [16:02:42]name=ofd_packets/00070685 [16:02:42]NVStorageSaveData ofd_packets/00070685 [16:02:42]File name is /storage/ofd_packets/00070685 [16:02:42]Write 301 bytes [16:02:42]NVStorageSaveData done [16:02:42]OFDSenderStorePacket done [16:02:42]KKMCreateOFDPacket done [16:02:42]NVStorageSaveData kkm_last_timestamp [16:02:42]File name is /storage/kkm_last_timestamp [16:02:42]Write 4 bytes [16:02:42]NVStorageSaveData done [16:02:42]ExternCall_PrintAddStr [16:02:42]wPrintStart [16:02:42]Write to MH i2c: 01 00 00 D3 17 EA [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 D3 17 00 00 00 00 00 FF 0F FF [16:02:42]RasterBufferAndPrint [16:02:42]line Счет N : (1)2886464 [16:02:42]line ИНН: 02508201610067 [16:02:42]line Контрольно-Кассовый Чек [16:02:42]line ПРОДАЖА [16:02:42]line ТРК (МРК, ГНК) : 12 [16:02:42]line Товар: 2710124130 [16:02:42]line Аи-92-К-5 [16:02:42]line 5.980 * 66.90 [16:02:42]line = 400.06 [16:02:42]line НДС 12% НСП 1% [16:02:42]line > о реализуемом товаре [16:02:42]line ОКРУГЛЕНИЕ: -0.06 [16:02:42]line ИТОГО: 400.00 [16:02:42]line Внесено: 400.00 [16:02:42]line СДАЧА: 0.00 [16:02:42]line НСП 1% : 3.54 [16:02:42]line НДС 12% : 42.48 [16:02:42]line Наличными: 400.00 [16:02:42]line Безнал.: 0.00 [16:02:42]line Место: АЗС № 85 "Партнер Нефть" [16:02:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:02:42]line СНО: Общий режим [16:02:42]line Чек 201 23.10.2024 16:02 [16:02:42]line Смена: 196 ФФД: 1.0 [16:02:42]line ЗНМ: 0300000167 [16:02:42]line РНМ: 0000000000156251 [16:02:42]line Версия ККМ: v1.0 [16:02:42]line ФМ: 0000000000963346 [16:02:42]line ФД: 70685 [16:02:42]line ФПД: 129490520174882 [16:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70685&fm=129490520174882&tin=02508201610067®Number=0000000000156251&sum=40000 [16:02:42]OFD Sender: Processing packet 70685 [packets to send 18, broken 17] [16:02:42]ProducePacketName [16:02:42]name=ofd_packets/00070685 [16:02:42]OFD Sender: To server: pG, [16:02:42]CommunicateWithHost lk.salyk.kg:30040 [16:02:42]ConnectInit lk.salyk.kg [16:02:42]written 0, free lines is 4095 [16:02:42]Connected sock=10 [16:02: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 47 4F 07 01 FA 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 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 C9 00 00 00 F4 03 04 00 22 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 C5 5C 74 F1 22 1F CC 5F 78 B8 5B 6C D8 [16:02: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 E6 1B 47 00 5D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 14 01 00 F4 03 04 00 BF C7 18 67 B6 04 01 00 00 0A EC 07 EF 0D F8 F8 61 [16:02:43]CommunicateWithHost err = 0 [16:02:43]CheckOFDResponse [16:02:43]1017 (14) - 77093643461234 [16:02:43]1041 (16) - 0000000000963346 [16:02:43]1040 (4) - 70685 [16:02:43]1012 (4) - 23.10.2024 09:54 [16:02:43]1206 (1) - 0 [16:02:43]OFD Sender: Remove packet 70685 [16:02:43]ProducePacketName [16:02:43]name=ofd_packets/00070685 [16:02:43]NVStorageDeleteData [16:02:43]Write to MH i2c: 01 00 00 FE 17 15 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 EA 0C 12 [16:02:43]RasterBufferAndPrint [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]written 0, free lines is 3312 [16:02:43]MH_Cut [16:02:43]Write to MH i2c: D1 01 00 05 18 01 EF [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: D1 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: D1 01 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: D1 01 00 05 18 00 EE [16:02:43]Write to MH i2c: 01 00 00 06 18 1E [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]OFD Sender: No OFD packet to send [16:02:43]*** Cut start [16:02:43]*** Partial cut [16:02:43]*** CUTSNS_PIN = 1 [16:02:43]*** CUTSNS_PIN = 0 [16:02:44]*** Brake cut motor [16:02:44]Read from MH i2c: 01 [16:02:44]MH_I2C_Read... [16:02:44]*** Stop cut motor [16:02:44]*** Cut end [16:02:44]Read from MH i2c: 01 07 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [16:02:44]process_action close_receipt done [16:02:44]requested_data is exist [16:02:44]produce_requested_data [16:02:44]requested_item fm.sn is exist - process it [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 11 00 00 [16:02:44]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 17 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 17 00 07 18 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: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 [16:02:44]wFMCommunicate OK [16:02:44]requested_item fd.num is exist - process it [16:02:44]SAM_PROTO_GetFieldsCounters [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 13 00 00 [16:02:44]Write to MH i2c: E2 08 00 08 18 80 13 00 00 00 00 00 00 9C [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 62 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 62 00 08 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 1D 14 01 00 0E 04 04 00 C4 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 08 [16:02: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 1D 14 01 00 0E 04 04 00 C4 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 [16:02:44]wFMCommunicate OK [16:02:44]SAM_PROTO_GetFieldsCounters done [16:02:44]requested_item shift.num is exist - process it [16:02:44]requested_item shift.opened is exist - process it [16:02:44]req_shift_opened [16:02:44]FM_GetShiftState [16:02:44]SAM_PROTO_GetShiftState [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 13 01 00 [16:02:44]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 0E 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2B [16:02:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:02:44]wFMCommunicate OK [16:02:44]SAM_PROTO_GetShiftState done [16:02:44]FM_GetShiftState done [16:02:44]req_shift_opened done [16:02:44]requested_item shift.open_date is exist - process it [16:02:44]req_shift_open_date [16:02:44]req_shift_open_date done [16:02:44]produce_requested_data done [16:02:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70685,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:02:44]process_action_free close_receipt [16:02:44]json_value_free [16:02:44]json_value_free done [16:02:44]process_json_proto returns [16:02:44]Send response to host [16:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70685,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:02:44]free response buf [16:02:44]execute_script done [16:02:44]execute_script returns [16:02:44]free content buf [16:02:44]Sock 7.Close socket [16:02:44]Sock 7.Thread stoped [16:02:48]OFD Sender: No OFD packet to send [16:02:53]accept exits with 9 [16:02:53]New connection [16:02:53]New thread 3067034980 created [16:02:53]Thread 3066891620 joined [16:02:53]Waiting for new connection... [16:02:53] Sock 9.Parse request [16:02:53]Sock 9.Check first char [16:02:53]Sock 9.First char is OK [16:02:53]request: POST /json_proto HTTP/1.0 [16:02:53]Method: POST [16:02:53]URL: /json_proto [16:02:53]Method is POST - this is cgi request [16:02:53]url: /json_proto [16:02:53]query_string will be loaded in cgi processing [16:02:53]execute_cgi json_proto POST (null) [16:02:53]execute_cgi path=json_proto method=POST [16:02:53]POST find Content-Length [16:02:53]Host: 172.17.50.3:8080 [16:02:53]Content-Length: 678 [16:02:53]Content-Type: application/json [16:02:53] [16:02:53]POST finish read [16:02:53]Found Content-Length = 678 [16:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886465", "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" : 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" ] } } [16:02:53]execute_script... [16:02: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)2886465", "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" : 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" ] } } [16:02:53]POST & json_proto [16:02:53]process_json_proto [16:02:53]json parsed OK: [16:02:53]protocol is kg_v1.0 [16:02:53]action value=close_receipt [16:02:53]process_action close_receipt [16:02:53]cmd_close_receipt [16:02:53]MH_GetDate [16:02:53]Write to MH i2c: F0 00 00 0A 18 11 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 09 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: F0 09 00 0A 18 00 2F 1E 19 67 6B 98 1E 66 6E [16:02:53]GetLastDocTimeStamp 1729699362 [16:02:53]current date 1729699375 [16:02:53]FM_GetShiftState [16:02:53]SAM_PROTO_GetShiftState [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 13 01 00 [16:02:53]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0E 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2D [16:02:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_GetShiftState done [16:02:53]FM_GetShiftState done [16:02:53]opened in 1729642435 [16:02:53]opened+sec_in_day 1729728835 [16:02:53]quantity*price = 40068 [16:02:53]sum+1 = 40069 [16:02:53]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 СНО: Общий режим Чек 202 23.10.2024 16:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70686 ФПД: 20623437234294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70686&fm=20623437234294&tin=02508201610067®Number=0000000000156251&sum=40000 [16:02:54]StoreToDocumentArchive [16:02:54]shift 196 fd 70686 [16:02:54]save to /storage/0196/doc_00070686 [16:02:54]save last doc name /storage/0196/doc_00070686 to /storage/kkm_last_doc_name [16:02:54]save OK [16:02:54]Clear old archive folders... [16:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:54]tlvbuf is 00196F30 [16:02:54]SAM_PROTO_ClearQueue [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 09 00 00 [16:02:54]Write to MH i2c: E2 08 00 18 18 80 09 00 00 00 00 00 00 A2 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [16:02:54]RAPDU: 90 00 [16:02:54]wFMCommunicate OK [16:02:54]SAM_PROTO_ClearQueue done [16:02:54]KKMCreateOFDPacket [16:02:54]OFDProtocolAddRootSTLVToBuf [16:02:54]FM_MakeSignedData [16:02:54]FM_MakeSignedData [16:02:54]SAM_PROTO_SignData [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 0D 01 02 [16:02:54]Write to MH i2c: E2 08 00 19 18 80 0D 01 02 00 00 00 00 AA [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [16:02:54]RAPDU: 90 00 [16:02:54]wFMCommunicate OK [16:02:54]wFMCommunicate request_size=255 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 2F 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 [16:02:54]Write to MH i2c: E2 02 01 1A 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 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 CA 00 00 00 F4 03 04 00 2F 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 00 00 82 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [16:02:55]RAPDU: 90 00 [16:02:55]wFMCommunicate OK [16:02:55]wFMCommunicate request_size=10 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 0D 02 02 05 C1 C4 A6 80 76 [16:02:55]Write to MH i2c: E2 0D 00 1B 18 80 0D 02 02 05 00 C1 C4 A6 80 76 00 00 D8 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [16:02:55]RAPDU: 90 00 [16:02:55]wFMCommunicate OK [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 0D 03 02 [16:02:55]Write to MH i2c: E2 08 00 1C 18 80 0D 03 02 00 00 00 00 AF [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 0B 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 0B 00 1C 18 00 81 5C A6 86 8B 72 F0 09 90 00 AF [16:02:55]RAPDU: 81 5C A6 86 8B 72 F0 09 90 00 [16:02:55]wFMCommunicate OK [16:02:55]SAM_PROTO_SignData done [16:02:55]FM_MakeSignedData done [16:02:55]CreateOFDProtocolMessage [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 11 00 00 [16:02:55]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [16:02: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:02:55]wFMCommunicate OK [16:02:55]CreateOFDProtocolMessage done [16:02:55]OFDSenderStorePacket 70686 [16:02:55]StoreOFDPacket docnum=70686 [16:02: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 9B E8 07 01 25 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 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 CA 00 00 00 F4 03 04 00 2F 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 C1 C4 A6 80 76 81 5C A6 86 8B 72 F0 09 [16:02:55]CheckFolder [16:02:55]dirname=/storage/ofd_packets [16:02:55]CheckFolder done [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00070686 [16:02:55]NVStorageSaveData ofd_packets/00070686 [16:02:55]File name is /storage/ofd_packets/00070686 [16:02:55]Write 301 bytes [16:02:55]NVStorageSaveData done [16:02:55]OFDSenderStorePacket done [16:02:55]KKMCreateOFDPacket done [16:02:55]NVStorageSaveData kkm_last_timestamp [16:02:55]File name is /storage/kkm_last_timestamp [16:02:55]Write 4 bytes [16:02:55]NVStorageSaveData done [16:02:55]ExternCall_PrintAddStr [16:02:55]wPrintStart [16:02:55]Write to MH i2c: 01 00 00 1E 18 36 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [16:02:55]RasterBufferAndPrint [16:02:55]line Счет N : (1)2886465 [16:02:55]line ИНН: 02508201610067 [16:02:55]line Контрольно-Кассовый Чек [16:02:55]line ПРОДАЖА [16:02:55]line ТРК (МРК, ГНК) : 43 [16:02:55]line Товар: 2710124500 [16:02:55]line Аи-95-К-5 [16:02:55]line 5.400 * 74.20 [16:02:55]line = 400.68 [16:02:55]line НДС 12% НСП 1% [16:02:55]line > о реализуемом товаре [16:02:55]line ОКРУГЛЕНИЕ: -0.68 [16:02:55]line ИТОГО: 400.00 [16:02:55]line Внесено: 400.00 [16:02:55]line СДАЧА: 0.00 [16:02:55]line НСП 1% : 3.55 [16:02:55]line НДС 12% : 42.55 [16:02:55]line Наличными: 400.00 [16:02:55]line Безнал.: 0.00 [16:02:55]line Место: АЗС № 85 "Партнер Нефть" [16:02:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:02:55]line СНО: Общий режим [16:02:55]line Чек 202 23.10.2024 16:02 [16:02:55]line Смена: 196 ФФД: 1.0 [16:02:55]line ЗНМ: 0300000167 [16:02:55]line РНМ: 0000000000156251 [16:02:55]line Версия ККМ: v1.0 [16:02:55]line ФМ: 0000000000963346 [16:02:55]line ФД: 70686 [16:02:55]line ФПД: 20623437234294 [16:02:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70686&fm=20623437234294&tin=02508201610067®Number=0000000000156251&sum=40000 [16:02:55]OFD Sender: Processing packet 70686 [packets to send 18, broken 17] [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00070686 [16:02:55]OFD Sender: To server: pG, [16:02:55]CommunicateWithHost lk.salyk.kg:30040 [16:02:55]ConnectInit lk.salyk.kg [16:02:55]written 0, free lines is 4095 [16:02:55]Connected sock=10 [16:02: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 9B E8 07 01 25 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 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 CA 00 00 00 F4 03 04 00 2F 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 C1 C4 A6 80 76 81 5C A6 86 8B 72 F0 09 [16:02: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 EE EC 47 00 24 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 1E 14 01 00 F4 03 04 00 CC C7 18 67 B6 04 01 00 00 EB 03 EC 01 D7 01 FD 21 [16:02:55]CommunicateWithHost err = 0 [16:02:55]CheckOFDResponse [16:02:55]1017 (14) - 77093643461234 [16:02:55]1041 (16) - 0000000000963346 [16:02:55]1040 (4) - 70686 [16:02:55]1012 (4) - 23.10.2024 09:54 [16:02:55]1206 (1) - 0 [16:02:55]OFD Sender: Remove packet 70686 [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00070686 [16:02:55]NVStorageDeleteData [16:02:56]Write to MH i2c: 01 00 00 49 18 61 [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 07 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: 01 07 00 49 18 00 00 00 00 00 DF 0C 53 [16:02:56]RasterBufferAndPrint [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]line [16:02:56]written 0, free lines is 3301 [16:02:56]MH_Cut [16:02:56]Write to MH i2c: D1 01 00 50 18 01 3A [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 01 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: D1 01 00 50 18 00 39 [16:02:56]Write to MH i2c: 01 00 00 51 18 69 [16:02:56]Write i2c OK [16:02:56]MH_I2C_Read... [16:02:56]OFD Sender: No OFD packet to send [16:02:56]*** Cut start [16:02:56]*** Partial cut [16:02:56]*** CUTSNS_PIN = 1 [16:02:56]*** CUTSNS_PIN = 0 [16:02:57]*** Brake cut motor [16:02:57]Read from MH i2c: 01 [16:02:57]MH_I2C_Read... [16:02:57]*** Stop cut motor [16:02:57]*** Cut end [16:02:57]Read from MH i2c: 01 07 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: 01 07 00 51 18 00 00 00 00 00 FF 0F 7E [16:02:57]process_action close_receipt done [16:02:57]requested_data is exist [16:02:57]produce_requested_data [16:02:57]requested_item fm.sn is exist - process it [16:02:57]wFMCommunicate request_size=4 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 11 00 00 [16:02:57]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:57]Read from MH i2c: E2 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 17 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 17 00 52 18 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:02: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:02:57]wFMCommunicate OK [16:02:57]requested_item fd.num is exist - process it [16:02:57]SAM_PROTO_GetFieldsCounters [16:02:57]wFMCommunicate request_size=4 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 13 00 00 [16:02:57]Write to MH i2c: E2 08 00 53 18 80 13 00 00 00 00 00 00 E7 [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:57]Read from MH i2c: E2 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 62 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 62 00 53 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 1E 14 01 00 0E 04 04 00 C4 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 57 [16:02: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 1E 14 01 00 0E 04 04 00 C4 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 [16:02:57]wFMCommunicate OK [16:02:57]SAM_PROTO_GetFieldsCounters done [16:02:57]requested_item shift.num is exist - process it [16:02:57]requested_item shift.opened is exist - process it [16:02:57]req_shift_opened [16:02:57]FM_GetShiftState [16:02:57]SAM_PROTO_GetShiftState [16:02:57]wFMCommunicate request_size=4 [16:02:57]MH_SAM_APDU [16:02:57]CAPDU: 80 13 01 00 [16:02:57]Write to MH i2c: E2 08 00 54 18 80 13 01 00 00 00 00 00 E9 [16:02:57]Write i2c OK [16:02:57]MH_I2C_Read... [16:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:57]Read from MH i2c: E2 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 0E 00 [16:02:57]MH_I2C_Read... [16:02:57]Read from MH i2c: E2 0E 00 54 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 76 [16:02:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:02:57]wFMCommunicate OK [16:02:57]SAM_PROTO_GetShiftState done [16:02:57]FM_GetShiftState done [16:02:57]req_shift_opened done [16:02:57]requested_item shift.open_date is exist - process it [16:02:57]req_shift_open_date [16:02:57]req_shift_open_date done [16:02:57]produce_requested_data done [16:02:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70686,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:02:57]process_action_free close_receipt [16:02:57]json_value_free [16:02:57]json_value_free done [16:02:57]process_json_proto returns [16:02:57]Send response to host [16:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70686,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:02:57]free response buf [16:02:57]execute_script done [16:02:57]execute_script returns [16:02:57]free content buf [16:02:57]Sock 9.Close socket [16:02:57]Sock 9.Thread stoped [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:22]accept exits with 7 [16:04:22]New connection [16:04:22]New thread 3066891620 created [16:04:22]Thread 3067034980 joined [16:04:22]Waiting for new connection... [16:04:22] Sock 7.Parse request [16:04:22]Sock 7.Check first char [16:04:22]Sock 7.First char is OK [16:04:22]request: POST /json_proto HTTP/1.0 [16:04:22]Method: POST [16:04:22]URL: /json_proto [16:04:22]Method is POST - this is cgi request [16:04:22]url: /json_proto [16:04:22]query_string will be loaded in cgi processing [16:04:22]execute_cgi json_proto POST (null) [16:04:22]execute_cgi path=json_proto method=POST [16:04:22]POST find Content-Length [16:04:22]Host: 172.17.50.3:8080 [16:04:22]Content-Length: 678 [16:04:22]Content-Type: application/json [16:04:22] [16:04:22]POST finish read [16:04:22]Found Content-Length = 678 [16:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886466", "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" : 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" ] } } [16:04:22]execute_script... [16:04: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)2886466", "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" : 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" ] } } [16:04:22]POST & json_proto [16:04:22]process_json_proto [16:04:22]json parsed OK: [16:04:22]protocol is kg_v1.0 [16:04:22]action value=close_receipt [16:04:22]process_action close_receipt [16:04:22]cmd_close_receipt [16:04:22]MH_GetDate [16:04:22]Write to MH i2c: F0 00 00 55 18 5C [16:04:22]Write i2c OK [16:04:22]MH_I2C_Read... [16:04:22]Read from MH i2c: F0 [16:04:22]MH_I2C_Read... [16:04:22]Read from MH i2c: F0 09 00 [16:04:22]MH_I2C_Read... [16:04:22]Read from MH i2c: F0 09 00 55 18 00 88 1E 19 67 6B 98 1E 66 12 [16:04:22]GetLastDocTimeStamp 1729699375 [16:04:22]current date 1729699464 [16:04:22]FM_GetShiftState [16:04:22]SAM_PROTO_GetShiftState [16:04:22]wFMCommunicate request_size=4 [16:04:22]MH_SAM_APDU [16:04:22]CAPDU: 80 13 01 00 [16:04:22]Write to MH i2c: E2 08 00 56 18 80 13 01 00 00 00 00 00 EB [16:04:22]Write i2c OK [16:04:22]MH_I2C_Read... [16:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:22]Read from MH i2c: E2 [16:04:22]MH_I2C_Read... [16:04:22]Read from MH i2c: E2 0E 00 [16:04:22]MH_I2C_Read... [16:04:22]Read from MH i2c: E2 0E 00 56 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 78 [16:04:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:04:22]wFMCommunicate OK [16:04:22]SAM_PROTO_GetShiftState done [16:04:22]FM_GetShiftState done [16:04:22]opened in 1729642435 [16:04:22]opened+sec_in_day 1729728835 [16:04:22]quantity*price = 40068 [16:04:22]sum+1 = 40069 [16:04:22]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 СНО: Общий режим Чек 203 23.10.2024 16:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70687 ФПД: 162895714229065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70687&fm=162895714229065&tin=02508201610067®Number=0000000000156251&sum=40000 [16:04:23]StoreToDocumentArchive [16:04:23]shift 196 fd 70687 [16:04:23]save to /storage/0196/doc_00070687 [16:04:23]save last doc name /storage/0196/doc_00070687 to /storage/kkm_last_doc_name [16:04:23]save OK [16:04:23]Clear old archive folders... [16:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:23]tlvbuf is 0013C050 [16:04:23]SAM_PROTO_ClearQueue [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 09 00 00 [16:04:23]Write to MH i2c: E2 08 00 63 18 80 09 00 00 00 00 00 00 ED [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [16:04:23]RAPDU: 90 00 [16:04:23]wFMCommunicate OK [16:04:23]SAM_PROTO_ClearQueue done [16:04:23]KKMCreateOFDPacket [16:04:23]OFDProtocolAddRootSTLVToBuf [16:04:23]FM_MakeSignedData [16:04:23]FM_MakeSignedData [16:04:23]SAM_PROTO_SignData [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 0D 01 02 [16:04:23]Write to MH i2c: E2 08 00 64 18 80 0D 01 02 00 00 00 00 F5 [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [16:04:23]RAPDU: 90 00 [16:04:23]wFMCommunicate OK [16:04:23]wFMCommunicate request_size=255 [16:04:23]MH_SAM_APDU [16:04: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 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 CB 00 00 00 F4 03 04 00 88 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 [16:04:23]Write to MH i2c: E2 02 01 65 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 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 CB 00 00 00 F4 03 04 00 88 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 00 00 AA [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [16:04:23]RAPDU: 90 00 [16:04:23]wFMCommunicate OK [16:04:23]wFMCommunicate request_size=10 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 0D 02 02 05 27 1D 2E 9B 49 [16:04:23]Write to MH i2c: E2 0D 00 66 18 80 0D 02 02 05 00 27 1D 2E 9B 49 00 00 58 [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [16:04:23]RAPDU: 90 00 [16:04:23]wFMCommunicate OK [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 0D 03 02 [16:04:23]Write to MH i2c: E2 08 00 67 18 80 0D 03 02 00 00 00 00 FA [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0B 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0B 00 67 18 00 1B F3 5F C1 A3 58 5F 87 90 00 0A [16:04:23]RAPDU: 1B F3 5F C1 A3 58 5F 87 90 00 [16:04:23]wFMCommunicate OK [16:04:23]SAM_PROTO_SignData done [16:04:23]FM_MakeSignedData done [16:04:23]CreateOFDProtocolMessage [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 11 00 00 [16:04:23]Write to MH i2c: E2 08 00 68 18 80 11 00 00 00 00 00 00 FA [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 17 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 17 00 68 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [16:04: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:04:23]wFMCommunicate OK [16:04:23]CreateOFDProtocolMessage done [16:04:23]OFDSenderStorePacket 70687 [16:04:23]StoreOFDPacket docnum=70687 [16:04: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 F0 7C 07 01 9D 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 CB 00 00 00 F4 03 04 00 88 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 27 1D 2E 9B 49 1B F3 5F C1 A3 58 5F 87 [16:04:23]CheckFolder [16:04:23]dirname=/storage/ofd_packets [16:04:23]CheckFolder done [16:04:23]ProducePacketName [16:04:23]name=ofd_packets/00070687 [16:04:23]NVStorageSaveData ofd_packets/00070687 [16:04:23]File name is /storage/ofd_packets/00070687 [16:04:23]Write 301 bytes [16:04:23]NVStorageSaveData done [16:04:23]OFDSenderStorePacket done [16:04:23]KKMCreateOFDPacket done [16:04:23]NVStorageSaveData kkm_last_timestamp [16:04:23]File name is /storage/kkm_last_timestamp [16:04:23]Write 4 bytes [16:04:23]NVStorageSaveData done [16:04:23]ExternCall_PrintAddStr [16:04:23]wPrintStart [16:04:23]Write to MH i2c: 01 00 00 69 18 81 [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: 01 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: 01 07 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: 01 07 00 69 18 00 00 00 00 00 FF 0F 96 [16:04:23]RasterBufferAndPrint [16:04:23]line Счет N : (1)2886466 [16:04:23]line ИНН: 02508201610067 [16:04:23]line Контрольно-Кассовый Чек [16:04:23]line ПРОДАЖА [16:04:23]line ТРК (МРК, ГНК) : 23 [16:04:23]line Товар: 2710124500 [16:04:23]line Аи-95-К-5 [16:04:23]line 5.400 * 74.20 [16:04:23]line = 400.68 [16:04:23]line НДС 12% НСП 1% [16:04:23]line > о реализуемом товаре [16:04:23]line ОКРУГЛЕНИЕ: -0.68 [16:04:23]line ИТОГО: 400.00 [16:04:23]line Внесено: 400.00 [16:04:23]line СДАЧА: 0.00 [16:04:23]line НСП 1% : 3.55 [16:04:23]line НДС 12% : 42.55 [16:04:23]line Наличными: 400.00 [16:04:23]line Безнал.: 0.00 [16:04:23]line Место: АЗС № 85 "Партнер Нефть" [16:04:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:04:23]line СНО: Общий режим [16:04:23]line Чек 203 23.10.2024 16:04 [16:04:23]line Смена: 196 ФФД: 1.0 [16:04:23]line ЗНМ: 0300000167 [16:04:23]line РНМ: 0000000000156251 [16:04:23]line Версия ККМ: v1.0 [16:04:23]line ФМ: 0000000000963346 [16:04:23]line ФД: 70687 [16:04:23]line ФПД: 162895714229065 [16:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70687&fm=162895714229065&tin=02508201610067®Number=0000000000156251&sum=40000 [16:04:24]OFD Sender: Processing packet 70687 [packets to send 18, broken 17] [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00070687 [16:04:24]OFD Sender: To server: pG, [16:04:24]CommunicateWithHost lk.salyk.kg:30040 [16:04:24]ConnectInit lk.salyk.kg [16:04:24]written 0, free lines is 4095 [16:04:24]Connected sock=9 [16:04: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 F0 7C 07 01 9D 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 CB 00 00 00 F4 03 04 00 88 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 27 1D 2E 9B 49 1B F3 5F C1 A3 58 5F 87 [16:04: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 05 E9 47 00 50 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 1F 14 01 00 F4 03 04 00 25 C8 18 67 B6 04 01 00 00 DA AA 7F DB BF F7 29 89 [16:04:24]CommunicateWithHost err = 0 [16:04:24]CheckOFDResponse [16:04:24]1017 (14) - 77093643461234 [16:04:24]1041 (16) - 0000000000963346 [16:04:24]1040 (4) - 70687 [16:04:24]1012 (4) - 23.10.2024 09:55 [16:04:24]1206 (1) - 0 [16:04:24]OFD Sender: Remove packet 70687 [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00070687 [16:04:24]NVStorageDeleteData [16:04:24]Write to MH i2c: 01 00 00 94 18 AC [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 94 18 00 00 00 00 00 F3 0C B2 [16:04:24]RasterBufferAndPrint [16:04:24]line [16:04:24]line [16:04:24]line [16:04:24]line [16:04:24]line [16:04:24]written 0, free lines is 3321 [16:04:24]MH_Cut [16:04:24]Write to MH i2c: D1 01 00 9B 18 01 85 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: D1 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: D1 01 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: D1 01 00 9B 18 00 84 [16:04:24]Write to MH i2c: 01 00 00 9C 18 B4 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:25]OFD Sender: No OFD packet to send [16:04:25]*** Cut start [16:04:25]*** Partial cut [16:04:25]*** CUTSNS_PIN = 1 [16:04:25]*** CUTSNS_PIN = 0 [16:04:25]*** Brake cut motor [16:04:25]Read from MH i2c: 01 [16:04:25]MH_I2C_Read... [16:04:25]*** Stop cut motor [16:04:26]*** Cut end [16:04:26]Read from MH i2c: 01 07 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [16:04:26]process_action close_receipt done [16:04:26]requested_data is exist [16:04:26]produce_requested_data [16:04:26]requested_item fm.sn is exist - process it [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 11 00 00 [16:04:26]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [16:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:04:26]wFMCommunicate OK [16:04:26]requested_item fd.num is exist - process it [16:04:26]SAM_PROTO_GetFieldsCounters [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 13 00 00 [16:04:26]Write to MH i2c: E2 08 00 9E 18 80 13 00 00 00 00 00 00 32 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 62 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 62 00 9E 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 1F 14 01 00 0E 04 04 00 C4 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 A6 [16:04: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 1F 14 01 00 0E 04 04 00 C4 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 [16:04:26]wFMCommunicate OK [16:04:26]SAM_PROTO_GetFieldsCounters done [16:04:26]requested_item shift.num is exist - process it [16:04:26]requested_item shift.opened is exist - process it [16:04:26]req_shift_opened [16:04:26]FM_GetShiftState [16:04:26]SAM_PROTO_GetShiftState [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 13 01 00 [16:04:26]Write to MH i2c: E2 08 00 9F 18 80 13 01 00 00 00 00 00 34 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 0E 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 0E 00 9F 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C1 [16:04:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:04:26]wFMCommunicate OK [16:04:26]SAM_PROTO_GetShiftState done [16:04:26]FM_GetShiftState done [16:04:26]req_shift_opened done [16:04:26]requested_item shift.open_date is exist - process it [16:04:26]req_shift_open_date [16:04:26]req_shift_open_date done [16:04:26]produce_requested_data done [16:04:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70687,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:04:26]process_action_free close_receipt [16:04:26]json_value_free [16:04:26]json_value_free done [16:04:26]process_json_proto returns [16:04:26]Send response to host [16:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70687,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:04:26]free response buf [16:04:26]execute_script done [16:04:26]execute_script returns [16:04:26]free content buf [16:04:26]Sock 7.Close socket [16:04:26]Sock 7.Thread stoped [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:35]accept exits with 10 [16:04:35]New connection [16:04:35]New thread 3067034980 created [16:04:35]Thread 3066891620 joined [16:04:35]Waiting for new connection... [16:04:35] Sock 10.Parse request [16:04:35]Sock 10.Check first char [16:04:35]Sock 10.First char is OK [16:04:35]request: POST /json_proto HTTP/1.0 [16:04:35]Method: POST [16:04:35]URL: /json_proto [16:04:35]Method is POST - this is cgi request [16:04:35]url: /json_proto [16:04:35]query_string will be loaded in cgi processing [16:04:35]execute_cgi json_proto POST (null) [16:04:35]execute_cgi path=json_proto method=POST [16:04:35]POST find Content-Length [16:04:35]Host: 172.17.50.3:8080 [16:04:35]Content-Length: 679 [16:04:35]Content-Type: application/json [16:04:35] [16:04:35]POST finish read [16:04:35]Found Content-Length = 679 [16:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886467", "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" ] } } [16:04:35]execute_script... [16:04: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)2886467", "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" ] } } [16:04:35]POST & json_proto [16:04:35]process_json_proto [16:04:35]json parsed OK: [16:04:35]protocol is kg_v1.0 [16:04:35]action value=close_receipt [16:04:35]process_action close_receipt [16:04:35]cmd_close_receipt [16:04:35]MH_GetDate [16:04:35]Write to MH i2c: F0 00 00 A0 18 A7 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: F0 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: F0 09 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: F0 09 00 A0 18 00 95 1E 19 67 6B 98 1E 66 6A [16:04:35]GetLastDocTimeStamp 1729699464 [16:04:35]current date 1729699477 [16:04:35]FM_GetShiftState [16:04:35]SAM_PROTO_GetShiftState [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 13 01 00 [16:04:35]Write to MH i2c: E2 08 00 A1 18 80 13 01 00 00 00 00 00 36 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:35]Read from MH i2c: E2 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 0E 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 0E 00 A1 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [16:04:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:04:35]wFMCommunicate OK [16:04:35]SAM_PROTO_GetShiftState done [16:04:35]FM_GetShiftState done [16:04:35]opened in 1729642435 [16:04:35]opened+sec_in_day 1729728835 [16:04:35]quantity*price = 80061 [16:04:35]sum+1 = 80063 [16:04:35]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 СНО: Общий режим Чек 204 23.10.2024 16:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70688 ФПД: 54200065014083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70688&fm=54200065014083&tin=02508201610067®Number=0000000000156251&sum=80000 [16:04:36]StoreToDocumentArchive [16:04:36]shift 196 fd 70688 [16:04:36]save to /storage/0196/doc_00070688 [16:04:36]save last doc name /storage/0196/doc_00070688 to /storage/kkm_last_doc_name [16:04:36]save OK [16:04:36]Clear old archive folders... [16:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:36]tlvbuf is 00165480 [16:04:36]SAM_PROTO_ClearQueue [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 09 00 00 [16:04:36]Write to MH i2c: E2 08 00 AE 18 80 09 00 00 00 00 00 00 38 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:37]Read from MH i2c: E2 03 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [16:04:37]RAPDU: 90 00 [16:04:37]wFMCommunicate OK [16:04:37]SAM_PROTO_ClearQueue done [16:04:37]KKMCreateOFDPacket [16:04:37]OFDProtocolAddRootSTLVToBuf [16:04:37]FM_MakeSignedData [16:04:37]FM_MakeSignedData [16:04:37]SAM_PROTO_SignData [16:04:37]wFMCommunicate request_size=4 [16:04:37]MH_SAM_APDU [16:04:37]CAPDU: 80 0D 01 02 [16:04:37]Write to MH i2c: E2 08 00 AF 18 80 0D 01 02 00 00 00 00 40 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:37]Read from MH i2c: E2 03 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [16:04:37]RAPDU: 90 00 [16:04:37]wFMCommunicate OK [16:04:37]wFMCommunicate request_size=255 [16:04:37]MH_SAM_APDU [16:04: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 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 CC 00 00 00 F4 03 04 00 95 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 31 [16:04:37]Write to MH i2c: E2 02 01 B0 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 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 CC 00 00 00 F4 03 04 00 95 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 31 00 00 5F [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [16:04:37]RAPDU: 90 00 [16:04:37]wFMCommunicate OK [16:04:37]wFMCommunicate request_size=10 [16:04:37]MH_SAM_APDU [16:04:37]CAPDU: 80 0D 02 02 05 4B 6F 9F 39 43 [16:04:37]Write to MH i2c: E2 0D 00 B1 18 80 0D 02 02 05 00 4B 6F 9F 39 43 00 00 22 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [16:04:37]RAPDU: 90 00 [16:04:37]wFMCommunicate OK [16:04:37]wFMCommunicate request_size=4 [16:04:37]MH_SAM_APDU [16:04:37]CAPDU: 80 0D 03 02 [16:04:37]Write to MH i2c: E2 08 00 B2 18 80 0D 03 02 00 00 00 00 45 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 0B 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 0B 00 B2 18 00 63 83 EE 39 14 A5 C1 FB 90 00 C8 [16:04:37]RAPDU: 63 83 EE 39 14 A5 C1 FB 90 00 [16:04:37]wFMCommunicate OK [16:04:37]SAM_PROTO_SignData done [16:04:37]FM_MakeSignedData done [16:04:37]CreateOFDProtocolMessage [16:04:37]wFMCommunicate request_size=4 [16:04:37]MH_SAM_APDU [16:04:37]CAPDU: 80 11 00 00 [16:04:37]Write to MH i2c: E2 08 00 B3 18 80 11 00 00 00 00 00 00 45 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 17 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 17 00 B3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [16:04: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:04:37]wFMCommunicate OK [16:04:37]CreateOFDProtocolMessage done [16:04:37]OFDSenderStorePacket 70688 [16:04:37]StoreOFDPacket docnum=70688 [16:04: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 BC 72 07 01 F3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CC 00 00 00 F4 03 04 00 95 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 31 4B 6F 9F 39 43 63 83 EE 39 14 A5 C1 FB [16:04:37]CheckFolder [16:04:37]dirname=/storage/ofd_packets [16:04:37]CheckFolder done [16:04:37]ProducePacketName [16:04:37]name=ofd_packets/00070688 [16:04:37]NVStorageSaveData ofd_packets/00070688 [16:04:37]File name is /storage/ofd_packets/00070688 [16:04:37]Write 301 bytes [16:04:37]NVStorageSaveData done [16:04:37]OFDSenderStorePacket done [16:04:37]KKMCreateOFDPacket done [16:04:37]NVStorageSaveData kkm_last_timestamp [16:04:37]File name is /storage/kkm_last_timestamp [16:04:37]Write 4 bytes [16:04:37]NVStorageSaveData done [16:04:37]ExternCall_PrintAddStr [16:04:37]wPrintStart [16:04:37]Write to MH i2c: 01 00 00 B4 18 CC [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: 01 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: 01 07 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: 01 07 00 B4 18 00 00 00 00 00 FF 0F E1 [16:04:37]RasterBufferAndPrint [16:04:37]line Счет N : (1)2886467 [16:04:37]line ИНН: 02508201610067 [16:04:37]line Контрольно-Кассовый Чек [16:04:37]line ПРОДАЖА [16:04:37]line ТРК (МРК, ГНК) : 43 [16:04:37]line Товар: 2710124500 [16:04:37]line Аи-95-К-5 [16:04:37]line 10.790 * 74.20 [16:04:37]line = 800.62 [16:04:37]line НДС 12% НСП 1% [16:04:37]line > о реализуемом товаре [16:04:37]line ОКРУГЛЕНИЕ: -0.62 [16:04:37]line ИТОГО: 800.00 [16:04:37]line Внесено: 800.00 [16:04:37]line СДАЧА: 0.00 [16:04:37]line НСП 1% : 7.08 [16:04:37]line НДС 12% : 85.02 [16:04:37]line Наличными: 800.00 [16:04:37]line Безнал.: 0.00 [16:04:37]line Место: АЗС № 85 "Партнер Нефть" [16:04:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:04:37]line СНО: Общий режим [16:04:37]line Чек 204 23.10.2024 16:04 [16:04:37]line Смена: 196 ФФД: 1.0 [16:04:37]line ЗНМ: 0300000167 [16:04:37]line РНМ: 0000000000156251 [16:04:37]line Версия ККМ: v1.0 [16:04:37]line ФМ: 0000000000963346 [16:04:37]line ФД: 70688 [16:04:37]line ФПД: 54200065014083 [16:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70688&fm=54200065014083&tin=02508201610067®Number=0000000000156251&sum=80000 [16:04:37]written 0, free lines is 4095 [16:04:37]OFD Sender: Processing packet 70688 [packets to send 18, broken 17] [16:04:37]ProducePacketName [16:04:37]name=ofd_packets/00070688 [16:04:37]OFD Sender: To server: pG, [16:04:37]CommunicateWithHost lk.salyk.kg:30040 [16:04:37]ConnectInit lk.salyk.kg [16:04:37]Connected sock=9 [16:04: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 BC 72 07 01 F3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CC 00 00 00 F4 03 04 00 95 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 31 4B 6F 9F 39 43 63 83 EE 39 14 A5 C1 FB [16:04: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 A3 7F 47 00 11 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 20 14 01 00 F4 03 04 00 32 C8 18 67 B6 04 01 00 00 96 2E CE A5 08 83 C0 A2 [16:04:37]CommunicateWithHost err = 0 [16:04:37]CheckOFDResponse [16:04:37]1017 (14) - 77093643461234 [16:04:37]1041 (16) - 0000000000963346 [16:04:37]1040 (4) - 70688 [16:04:37]1012 (4) - 23.10.2024 09:56 [16:04:37]1206 (1) - 0 [16:04:37]OFD Sender: Remove packet 70688 [16:04:37]ProducePacketName [16:04:37]name=ofd_packets/00070688 [16:04:37]NVStorageDeleteData [16:04:38]Write to MH i2c: 01 00 00 DF 18 F7 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 07 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 F8 0C 02 [16:04:38]RasterBufferAndPrint [16:04:38]line [16:04:38]line [16:04:38]line [16:04:38]line [16:04:38]line [16:04:38]written 0, free lines is 3329 [16:04:38]MH_Cut [16:04:38]Write to MH i2c: D1 01 00 E6 18 01 D0 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: D1 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: D1 01 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: D1 01 00 E6 18 00 CF [16:04:38]Write to MH i2c: 01 00 00 E7 18 FF [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]OFD Sender: No OFD packet to send [16:04:38]*** Cut start [16:04:38]*** Partial cut [16:04:38]*** CUTSNS_PIN = 1 [16:04:38]*** CUTSNS_PIN = 0 [16:04:38]*** Brake cut motor [16:04:39]Read from MH i2c: 01 [16:04:39]MH_I2C_Read... [16:04:39]*** Stop cut motor [16:04:39]*** Cut end [16:04:39]Read from MH i2c: 01 07 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 07 00 E7 18 00 00 00 00 00 FF 0F 14 [16:04:39]process_action close_receipt done [16:04:39]requested_data is exist [16:04:39]produce_requested_data [16:04:39]requested_item fm.sn is exist - process it [16:04:39]wFMCommunicate request_size=4 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 11 00 00 [16:04:39]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 17 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [16: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 [16:04:39]wFMCommunicate OK [16:04:39]requested_item fd.num is exist - process it [16:04:39]SAM_PROTO_GetFieldsCounters [16:04:39]wFMCommunicate request_size=4 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 13 00 00 [16:04:39]Write to MH i2c: E2 08 00 E9 18 80 13 00 00 00 00 00 00 7D [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 62 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 62 00 E9 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 20 14 01 00 0E 04 04 00 C4 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 F5 [16:04: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 20 14 01 00 0E 04 04 00 C4 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 [16:04:39]wFMCommunicate OK [16:04:39]SAM_PROTO_GetFieldsCounters done [16:04:39]requested_item shift.num is exist - process it [16:04:39]requested_item shift.opened is exist - process it [16:04:39]req_shift_opened [16:04:39]FM_GetShiftState [16:04:39]SAM_PROTO_GetShiftState [16:04:39]wFMCommunicate request_size=4 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 13 01 00 [16:04:39]Write to MH i2c: E2 08 00 EA 18 80 13 01 00 00 00 00 00 7F [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 0E 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 0E 00 EA 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0C [16:04:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:04:39]wFMCommunicate OK [16:04:39]SAM_PROTO_GetShiftState done [16:04:39]FM_GetShiftState done [16:04:39]req_shift_opened done [16:04:39]requested_item shift.open_date is exist - process it [16:04:39]req_shift_open_date [16:04:39]req_shift_open_date done [16:04:39]produce_requested_data done [16:04:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70688,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:04:39]process_action_free close_receipt [16:04:39]json_value_free [16:04:39]json_value_free done [16:04:39]process_json_proto returns [16:04:39]Send response to host [16:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70688,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:04:39]free response buf [16:04:39]execute_script done [16:04:39]execute_script returns [16:04:39]free content buf [16:04:39]Sock 10.Close socket [16:04:39]Sock 10.Thread stoped [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]accept exits with 7 [16:05:43]New connection [16:05:43]New thread 3066891620 created [16:05:43]Thread 3067034980 joined [16:05:43]Waiting for new connection... [16:05:43] Sock 7.Parse request [16:05:43]Sock 7.Check first char [16:05:43]Sock 7.First char is OK [16:05:43]request: POST /json_proto HTTP/1.0 [16:05:43]Method: POST [16:05:43]URL: /json_proto [16:05:43]Method is POST - this is cgi request [16:05:43]url: /json_proto [16:05:43]query_string will be loaded in cgi processing [16:05:43]execute_cgi json_proto POST (null) [16:05:43]execute_cgi path=json_proto method=POST [16:05:43]POST find Content-Length [16:05:43]Host: 172.17.50.3:8080 [16:05:43]Content-Length: 684 [16:05:43]Content-Type: application/json [16:05:43] [16:05:43]POST finish read [16:05:43]Found Content-Length = 684 [16:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886468", "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" : 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" ] } } [16:05:43]execute_script... [16:05: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)2886468", "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" : 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" ] } } [16:05:43]POST & json_proto [16:05:43]process_json_proto [16:05:43]json parsed OK: [16:05:43]protocol is kg_v1.0 [16:05:43]action value=close_receipt [16:05:43]process_action close_receipt [16:05:43]cmd_close_receipt [16:05:43]MH_GetDate [16:05:43]Write to MH i2c: F0 00 00 EB 18 F2 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 09 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 09 00 EB 18 00 D9 1E 19 67 6B 98 1E 66 F9 [16:05:43]GetLastDocTimeStamp 1729699477 [16:05:43]current date 1729699545 [16:05:43]FM_GetShiftState [16:05:43]SAM_PROTO_GetShiftState [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 01 00 [16:05:43]Write to MH i2c: E2 08 00 EC 18 80 13 01 00 00 00 00 00 81 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 EC 18 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0E [16:05:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetShiftState done [16:05:43]FM_GetShiftState done [16:05:43]opened in 1729642435 [16:05:43]opened+sec_in_day 1729728835 [16:05:43]quantity*price = 60061 [16:05:43]sum+1 = 60063 [16:05:43]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 СНО: Общий режим Чек 205 23.10.2024 16:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70689 ФПД: 144907285292897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70689&fm=144907285292897&tin=02508201610067®Number=0000000000156251&sum=60000 [16:05:44]StoreToDocumentArchive [16:05:44]shift 196 fd 70689 [16:05:44]save to /storage/0196/doc_00070689 [16:05:44]save last doc name /storage/0196/doc_00070689 to /storage/kkm_last_doc_name [16:05:44]save OK [16:05:44]Clear old archive folders... [16:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:05:44]tlvbuf is 001DECA0 [16:05:44]SAM_PROTO_ClearQueue [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 09 00 00 [16:05:44]Write to MH i2c: E2 08 00 F9 18 80 09 00 00 00 00 00 00 83 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]SAM_PROTO_ClearQueue done [16:05:44]KKMCreateOFDPacket [16:05:44]OFDProtocolAddRootSTLVToBuf [16:05:44]FM_MakeSignedData [16:05:44]FM_MakeSignedData [16:05:44]SAM_PROTO_SignData [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 01 02 [16:05:44]Write to MH i2c: E2 08 00 FA 18 80 0D 01 02 00 00 00 00 8B [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=255 [16:05:44]MH_SAM_APDU [16:05: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 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 CD 00 00 00 F4 03 04 00 D9 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:05:44]Write to MH i2c: E2 02 01 FB 18 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 CD 00 00 00 F4 03 04 00 D9 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 34 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=16 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 83 CA DB 43 E7 61 [16:05:44]Write to MH i2c: E2 13 00 FC 18 80 0D 02 02 0B 00 00 35 04 06 00 83 CA DB 43 E7 61 00 00 96 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 03 02 [16:05:44]Write to MH i2c: E2 08 00 FD 18 80 0D 03 02 00 00 00 00 90 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 0B 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 0B 00 FD 18 00 9D 46 DF 21 58 B6 DE 7A 90 00 DA [16:05:44]RAPDU: 9D 46 DF 21 58 B6 DE 7A 90 00 [16:05:44]wFMCommunicate OK [16:05:44]SAM_PROTO_SignData done [16:05:44]FM_MakeSignedData done [16:05:44]CreateOFDProtocolMessage [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 11 00 00 [16:05:44]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 17 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 17 00 FE 18 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:05:44]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:44]wFMCommunicate OK [16:05:44]CreateOFDProtocolMessage done [16:05:44]OFDSenderStorePacket 70689 [16:05:44]StoreOFDPacket docnum=70689 [16:05: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 15 01 00 00 78 A3 0D 01 AD 5E 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 CD 00 00 00 F4 03 04 00 D9 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 83 CA DB 43 E7 61 9D 46 DF 21 58 B6 DE 7A [16:05:44]CheckFolder [16:05:44]dirname=/storage/ofd_packets [16:05:44]CheckFolder done [16:05:44]ProducePacketName [16:05:44]name=ofd_packets/00070689 [16:05:44]NVStorageSaveData ofd_packets/00070689 [16:05:44]File name is /storage/ofd_packets/00070689 [16:05:44]Write 307 bytes [16:05:44]NVStorageSaveData done [16:05:44]OFDSenderStorePacket done [16:05:44]KKMCreateOFDPacket done [16:05:44]NVStorageSaveData kkm_last_timestamp [16:05:44]File name is /storage/kkm_last_timestamp [16:05:44]Write 4 bytes [16:05:44]NVStorageSaveData done [16:05:44]ExternCall_PrintAddStr [16:05:44]wPrintStart [16:05:44]Write to MH i2c: 01 00 00 FF 18 17 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 FF 18 00 00 00 00 00 FF 0F 2C [16:05:44]RasterBufferAndPrint [16:05:44]line Счет N : (1)2886468 [16:05:44]line ИНН: 02508201610067 [16:05:44]line Контрольно-Кассовый Чек [16:05:44]line ПРОДАЖА [16:05:44]line ТРК (МРК, ГНК) : 11 [16:05:44]line Товар: 2710194240 [16:05:44]line D-ENERGY Дт-К-2 [16:05:44]line 7.780 * 77.20 [16:05:44]line = 600.62 [16:05:44]line НДС 12% НСП 1% [16:05:44]line > о реализуемом товаре [16:05:44]line ОКРУГЛЕНИЕ: -0.62 [16:05:44]line ИТОГО: 600.00 [16:05:44]line Внесено: 600.00 [16:05:44]line СДАЧА: 0.00 [16:05:44]line НСП 1% : 5.31 [16:05:44]line НДС 12% : 63.78 [16:05:44]line Наличными: 600.00 [16:05:44]line Безнал.: 0.00 [16:05:44]line Место: АЗС № 85 "Партнер Нефть" [16:05:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:05:44]line СНО: Общий режим [16:05:44]line Чек 205 23.10.2024 16:05 [16:05:44]line Смена: 196 ФФД: 1.0 [16:05:44]line ЗНМ: 0300000167 [16:05:44]line РНМ: 0000000000156251 [16:05:44]line Версия ККМ: v1.0 [16:05:44]line ФМ: 0000000000963346 [16:05:44]line ФД: 70689 [16:05:44]line ФПД: 144907285292897 [16:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70689&fm=144907285292897&tin=02508201610067®Number=0000000000156251&sum=60000 [16:05:45]OFD Sender: Processing packet 70689 [packets to send 18, broken 17] [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00070689 [16:05:45]OFD Sender: To server: pG, [16:05:45]CommunicateWithHost lk.salyk.kg:30040 [16:05:45]ConnectInit lk.salyk.kg [16:05:45]written 0, free lines is 4095 [16:05:45]Connected sock=10 [16:05: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 78 A3 0D 01 AD 5E 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 CD 00 00 00 F4 03 04 00 D9 1E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 83 CA DB 43 E7 61 9D 46 DF 21 58 B6 DE 7A [16:05: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 A4 47 47 00 21 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 21 14 01 00 F4 03 04 00 76 C8 18 67 B6 04 01 00 00 73 8F D6 67 B6 65 1D 72 [16:05:45]CommunicateWithHost err = 0 [16:05:45]CheckOFDResponse [16:05:45]1017 (14) - 77093643461234 [16:05:45]1041 (16) - 0000000000963346 [16:05:45]1040 (4) - 70689 [16:05:45]1012 (4) - 23.10.2024 09:57 [16:05:45]1206 (1) - 0 [16:05:45]OFD Sender: Remove packet 70689 [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00070689 [16:05:45]NVStorageDeleteData [16:05:45]Write to MH i2c: 01 00 00 2A 19 43 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 EA 0C 40 [16:05:45]RasterBufferAndPrint [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]written 0, free lines is 3312 [16:05:45]MH_Cut [16:05:45]Write to MH i2c: D1 01 00 31 19 01 1C [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 01 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 01 00 31 19 00 1B [16:05:45]Write to MH i2c: 01 00 00 32 19 4B [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:46]OFD Sender: No OFD packet to send [16:05:46]*** Cut start [16:05:46]*** Partial cut [16:05:46]*** CUTSNS_PIN = 1 [16:05:46]*** CUTSNS_PIN = 0 [16:05:46]*** Brake cut motor [16:05:47]Read from MH i2c: 01 [16:05:47]MH_I2C_Read... [16:05:47]*** Stop cut motor [16:05:47]*** Cut end [16:05:47]Read from MH i2c: 01 07 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: 01 07 00 32 19 00 00 00 00 00 FF 0F 60 [16:05:47]process_action close_receipt done [16:05:47]requested_data is exist [16:05:47]produce_requested_data [16:05:47]requested_item fm.sn is exist - process it [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 11 00 00 [16:05:47]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 17 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [16:05: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:05:47]wFMCommunicate OK [16:05:47]requested_item fd.num is exist - process it [16:05:47]SAM_PROTO_GetFieldsCounters [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 13 00 00 [16:05:47]Write to MH i2c: E2 08 00 34 19 80 13 00 00 00 00 00 00 C9 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 62 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 62 00 34 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 21 14 01 00 0E 04 04 00 C4 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 45 [16:05: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 21 14 01 00 0E 04 04 00 C4 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 [16:05:47]wFMCommunicate OK [16:05:47]SAM_PROTO_GetFieldsCounters done [16:05:47]requested_item shift.num is exist - process it [16:05:47]requested_item shift.opened is exist - process it [16:05:47]req_shift_opened [16:05:47]FM_GetShiftState [16:05:47]SAM_PROTO_GetShiftState [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 13 01 00 [16:05:47]Write to MH i2c: E2 08 00 35 19 80 13 01 00 00 00 00 00 CB [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 0E 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 0E 00 35 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 58 [16:05:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:05:47]wFMCommunicate OK [16:05:47]SAM_PROTO_GetShiftState done [16:05:47]FM_GetShiftState done [16:05:47]req_shift_opened done [16:05:47]requested_item shift.open_date is exist - process it [16:05:47]req_shift_open_date [16:05:47]req_shift_open_date done [16:05:47]produce_requested_data done [16:05:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70689,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:05:47]process_action_free close_receipt [16:05:47]json_value_free [16:05:47]json_value_free done [16:05:47]process_json_proto returns [16:05:47]Send response to host [16:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70689,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:05:47]free response buf [16:05:47]execute_script done [16:05:47]execute_script returns [16:05:47]free content buf [16:05:47]Sock 7.Close socket [16:05:47]Sock 7.Thread stoped [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:07]accept exits with 9 [16:08:07]New connection [16:08:07]New thread 3067034980 created [16:08:07]Thread 3066891620 joined [16:08:07]Waiting for new connection... [16:08:07] Sock 9.Parse request [16:08:07]Sock 9.Check first char [16:08:07]Sock 9.First char is OK [16:08:07]request: POST /json_proto HTTP/1.0 [16:08:07]Method: POST [16:08:07]URL: /json_proto [16:08:07]Method is POST - this is cgi request [16:08:07]url: /json_proto [16:08:07]query_string will be loaded in cgi processing [16:08:07]execute_cgi json_proto POST (null) [16:08:07]execute_cgi path=json_proto method=POST [16:08:07]POST find Content-Length [16:08:07]Host: 172.17.50.3:8080 [16:08:07]Content-Length: 689 [16:08:07]Content-Type: application/json [16:08:07] [16:08:07]POST finish read [16:08:07]Found Content-Length = 689 [16:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886469", "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" : 4000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:07]execute_script... [16:08: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)2886469", "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" : 4000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:07]POST & json_proto [16:08:07]process_json_proto [16:08:07]json parsed OK: [16:08:07]protocol is kg_v1.0 [16:08:07]action value=close_receipt [16:08:07]process_action close_receipt [16:08:07]cmd_close_receipt [16:08:07]MH_GetDate [16:08:07]Write to MH i2c: F0 00 00 36 19 3E [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: F0 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: F0 09 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: F0 09 00 36 19 00 69 1F 19 67 6B 98 1E 66 D6 [16:08:07]GetLastDocTimeStamp 1729699545 [16:08:07]current date 1729699689 [16:08:07]FM_GetShiftState [16:08:07]SAM_PROTO_GetShiftState [16:08:07]wFMCommunicate request_size=4 [16:08:07]MH_SAM_APDU [16:08:07]CAPDU: 80 13 01 00 [16:08:07]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:07]Read from MH i2c: E2 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 0E 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: E2 0E 00 37 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5A [16:08:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:08:07]wFMCommunicate OK [16:08:07]SAM_PROTO_GetShiftState done [16:08:07]FM_GetShiftState done [16:08:07]opened in 1729642435 [16:08:07]opened+sec_in_day 1729728835 [16:08:07]quantity*price = 100051 [16:08:07]sum+1 = 100052 [16:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 4000.00 СДАЧА: 3000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 206 23.10.2024 16:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70690 ФПД: 253525852483104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160809&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70690&fm=253525852483104&tin=02508201610067®Number=0000000000156251&sum=100000 [16:08:08]StoreToDocumentArchive [16:08:08]shift 196 fd 70690 [16:08:08]save to /storage/0196/doc_00070690 [16:08:08]save last doc name /storage/0196/doc_00070690 to /storage/kkm_last_doc_name [16:08:08]save OK [16:08:08]Clear old archive folders... [16:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:08:08]tlvbuf is 001E4F30 [16:08:08]SAM_PROTO_ClearQueue [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 09 00 00 [16:08:08]Write to MH i2c: E2 08 00 44 19 80 09 00 00 00 00 00 00 CF [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 03 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [16:08:08]RAPDU: 90 00 [16:08:08]wFMCommunicate OK [16:08:08]SAM_PROTO_ClearQueue done [16:08:08]KKMCreateOFDPacket [16:08:08]OFDProtocolAddRootSTLVToBuf [16:08:08]FM_MakeSignedData [16:08:08]FM_MakeSignedData [16:08:08]SAM_PROTO_SignData [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 0D 01 02 [16:08:08]Write to MH i2c: E2 08 00 45 19 80 0D 01 02 00 00 00 00 D7 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 03 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [16:08:08]RAPDU: 90 00 [16:08:08]wFMCommunicate OK [16:08:08]wFMCommunicate request_size=255 [16:08:08]MH_SAM_APDU [16:08: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 CE 00 00 00 F4 03 04 00 69 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:08:08]Write to MH i2c: E2 02 01 46 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 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 CE 00 00 00 F4 03 04 00 69 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 FA [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [16:08:09]RAPDU: 90 00 [16:08:09]wFMCommunicate OK [16:08:09]wFMCommunicate request_size=16 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 94 96 60 EE 20 [16:08:09]Write to MH i2c: E2 13 00 47 19 80 0D 02 02 0B 00 00 35 04 06 00 E6 94 96 60 EE 20 00 00 AD [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [16:08:09]RAPDU: 90 00 [16:08:09]wFMCommunicate OK [16:08:09]wFMCommunicate request_size=4 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 0D 03 02 [16:08:09]Write to MH i2c: E2 08 00 48 19 80 0D 03 02 00 00 00 00 DC [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 0B 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 0B 00 48 19 00 DA B2 36 FE 5C 62 BB 3E 90 00 54 [16:08:09]RAPDU: DA B2 36 FE 5C 62 BB 3E 90 00 [16:08:09]wFMCommunicate OK [16:08:09]SAM_PROTO_SignData done [16:08:09]FM_MakeSignedData done [16:08:09]CreateOFDProtocolMessage [16:08:09]wFMCommunicate request_size=4 [16:08:09]MH_SAM_APDU [16:08:09]CAPDU: 80 11 00 00 [16:08:09]Write to MH i2c: E2 08 00 49 19 80 11 00 00 00 00 00 00 DC [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 17 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 17 00 49 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [16:08: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:08:09]wFMCommunicate OK [16:08:09]CreateOFDProtocolMessage done [16:08:09]OFDSenderStorePacket 70690 [16:08:09]StoreOFDPacket docnum=70690 [16:08: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 1E 5A 0D 01 70 B9 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 CE 00 00 00 F4 03 04 00 69 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E6 94 96 60 EE 20 DA B2 36 FE 5C 62 BB 3E [16:08:09]CheckFolder [16:08:09]dirname=/storage/ofd_packets [16:08:09]CheckFolder done [16:08:09]ProducePacketName [16:08:09]name=ofd_packets/00070690 [16:08:09]NVStorageSaveData ofd_packets/00070690 [16:08:09]File name is /storage/ofd_packets/00070690 [16:08:09]Write 307 bytes [16:08:09]NVStorageSaveData done [16:08:09]OFDSenderStorePacket done [16:08:09]KKMCreateOFDPacket done [16:08:09]NVStorageSaveData kkm_last_timestamp [16:08:09]File name is /storage/kkm_last_timestamp [16:08:09]Write 4 bytes [16:08:09]NVStorageSaveData done [16:08:09]ExternCall_PrintAddStr [16:08:09]wPrintStart [16:08:09]Write to MH i2c: 01 00 00 4A 19 63 [16:08:09]Write i2c OK [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: 01 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: 01 07 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 FF 0F 78 [16:08:09]RasterBufferAndPrint [16:08:09]line Счет N : (1)2886469 [16:08:09]line ИНН: 02508201610067 [16:08:09]line Контрольно-Кассовый Чек [16:08:09]line ПРОДАЖА [16:08:09]line ТРК (МРК, ГНК) : 31 [16:08:09]line Товар: 2710194240 [16:08:09]line D-ENERGY Дт-К-2 [16:08:09]line 12.960 * 77.20 [16:08:09]line = 1000.51 [16:08:09]line НДС 12% НСП 1% [16:08:09]line > о реализуемом товаре [16:08:09]line ОКРУГЛЕНИЕ: -0.51 [16:08:09]line ИТОГО: 1000.00 [16:08:09]line Внесено: 4000.00 [16:08:09]line СДАЧА: 3000.00 [16:08:09]line НСП 1% : 8.85 [16:08:09]line НДС 12% : 106.25 [16:08:09]line Наличными: 1000.00 [16:08:09]line Безнал.: 0.00 [16:08:09]line Место: АЗС № 85 "Партнер Нефть" [16:08:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:08:09]line СНО: Общий режим [16:08:09]line Чек 206 23.10.2024 16:08 [16:08:09]line Смена: 196 ФФД: 1.0 [16:08:09]line ЗНМ: 0300000167 [16:08:09]line РНМ: 0000000000156251 [16:08:09]line Версия ККМ: v1.0 [16:08:09]line ФМ: 0000000000963346 [16:08:09]line ФД: 70690 [16:08:09]line ФПД: 253525852483104 [16:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160809&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70690&fm=253525852483104&tin=02508201610067®Number=0000000000156251&sum=100000 [16:08:09]OFD Sender: Processing packet 70690 [packets to send 18, broken 17] [16:08:09]ProducePacketName [16:08:09]name=ofd_packets/00070690 [16:08:09]OFD Sender: To server: pG, [16:08:09]CommunicateWithHost lk.salyk.kg:30040 [16:08:09]ConnectInit lk.salyk.kg [16:08:09]written 0, free lines is 4095 [16:08:10]Write to MH i2c: 01 00 00 75 19 8E [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 F3 0C 94 [16:08:10]RasterBufferAndPrint [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]line [16:08:10]written 0, free lines is 3321 [16:08:10]MH_Cut [16:08:10]Write to MH i2c: D1 01 00 7C 19 01 67 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 01 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: D1 01 00 7C 19 00 66 [16:08:10]Write to MH i2c: 01 00 00 7D 19 96 [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]*** Cut start [16:08:10]*** Partial cut [16:08:10]*** CUTSNS_PIN = 1 [16:08:10]*** CUTSNS_PIN = 0 [16:08:11]*** Brake cut motor [16:08:11]Read from MH i2c: 01 [16:08:11]MH_I2C_Read... [16:08:11]*** Stop cut motor [16:08:11]*** Cut end [16:08:11]Read from MH i2c: 01 07 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 FF 0F AB [16:08:11]process_action close_receipt done [16:08:11]requested_data is exist [16:08:11]produce_requested_data [16:08:11]requested_item fm.sn is exist - process it [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 11 00 00 [16:08:11]Write to MH i2c: E2 08 00 7E 19 80 11 00 00 00 00 00 00 11 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 17 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 17 00 7E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [16:08: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:08:11]wFMCommunicate OK [16:08:11]requested_item fd.num is exist - process it [16:08:11]SAM_PROTO_GetFieldsCounters [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 13 00 00 [16:08:11]Write to MH i2c: E2 08 00 7F 19 80 13 00 00 00 00 00 00 14 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 62 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 62 00 7F 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 22 14 01 00 0E 04 04 00 C4 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 94 [16:08: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 22 14 01 00 0E 04 04 00 C4 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 [16:08:11]wFMCommunicate OK [16:08:11]SAM_PROTO_GetFieldsCounters done [16:08:11]requested_item shift.num is exist - process it [16:08:11]requested_item shift.opened is exist - process it [16:08:11]req_shift_opened [16:08:11]FM_GetShiftState [16:08:11]SAM_PROTO_GetShiftState [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 13 01 00 [16:08:11]Write to MH i2c: E2 08 00 80 19 80 13 01 00 00 00 00 00 16 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0E 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0E 00 80 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A3 [16:08:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:08:11]wFMCommunicate OK [16:08:11]SAM_PROTO_GetShiftState done [16:08:11]FM_GetShiftState done [16:08:11]req_shift_opened done [16:08:11]requested_item shift.open_date is exist - process it [16:08:11]req_shift_open_date [16:08:11]req_shift_open_date done [16:08:11]produce_requested_data done [16:08:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70690,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:08:11]process_action_free close_receipt [16:08:11]json_value_free [16:08:11]json_value_free done [16:08:11]process_json_proto returns [16:08:11]Send response to host [16:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70690,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:08:11]free response buf [16:08:11]execute_script done [16:08:11]execute_script returns [16:08:11]free content buf [16:08:11]Sock 9.Close socket [16:08:11]Sock 9.Thread stoped [16:08:58]int [16:08:58]Write to MH i2c: 01 00 00 81 19 9A [16:08:58]*** FLAG_PRN_PAP1 set [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 81 19 00 01 00 00 00 FF 0F B0 [16:08:58]state=0 [16:08:58]No paper [16:08:59]int [16:08:59]Write to MH i2c: 01 00 00 82 19 9B [16:08:59]*** FLAG_PRN_PAP2 set [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: 01 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: 01 07 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: 01 07 00 82 19 00 03 00 00 00 FF 0F B3 [16:08:59]state=0 [16:08:59]No paper [16:08:59]Cover opened [16:09:02]int [16:09:02]Write to MH i2c: 01 00 00 83 19 9C [16:09:02]*** FLAG_PRN_PAP2 reset [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 83 19 00 01 00 00 00 FF 0F B2 [16:09:02]state=3 [16:09:02]No paper [16:09:02]Cover closed [16:09:02]int [16:09:02]Write to MH i2c: 01 00 00 84 19 9D [16:09:02]*** FLAG_PRN_PAP1 reset [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [16:09:02]state=0 [16:09:21]accept exits with 7 [16:09:21]New connection [16:09:21]New thread 3066891620 created [16:09:21]Thread 3067034980 joined [16:09:21]Waiting for new connection... [16:09:21] Sock 7.Parse request [16:09:21]Sock 7.Check first char [16:09:21]Sock 7.First char is OK [16:09:21]request: POST /json_proto HTTP/1.0 [16:09:21]Method: POST [16:09:21]URL: /json_proto [16:09:21]Method is POST - this is cgi request [16:09:21]url: /json_proto [16:09:21]query_string will be loaded in cgi processing [16:09:21]execute_cgi json_proto POST (null) [16:09:21]execute_cgi path=json_proto method=POST [16:09:21]POST find Content-Length [16:09:21]Host: 172.17.50.3:8080 [16:09:21]Content-Length: 678 [16:09:21]Content-Type: application/json [16:09:21] [16:09:21]POST finish read [16:09:21]Found Content-Length = 678 [16:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886470", "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" ] } } [16:09:21]execute_script... [16: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)2886470", "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" ] } } [16:09:21]POST & json_proto [16:09:21]process_json_proto [16:09:21]json parsed OK: [16:09:21]protocol is kg_v1.0 [16:09:21]action value=close_receipt [16:09:21]process_action close_receipt [16:09:21]cmd_close_receipt [16:09:21]MH_GetDate [16:09:21]Write to MH i2c: F0 00 00 85 19 8D [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 09 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: F0 09 00 85 19 00 B3 1F 19 67 6B 98 1E 66 6F [16:09:21]GetLastDocTimeStamp 1729699689 [16:09:21]current date 1729699763 [16:09:21]FM_GetShiftState [16:09:21]SAM_PROTO_GetShiftState [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 13 01 00 [16:09:21]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:21]Read from MH i2c: E2 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 0E 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A9 [16:09:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:09:21]wFMCommunicate OK [16:09:21]SAM_PROTO_GetShiftState done [16:09:21]FM_GetShiftState done [16:09:21]opened in 1729642435 [16:09:21]opened+sec_in_day 1729728835 [16:09:21]quantity*price = 40006 [16:09:21]sum+1 = 40007 [16:09:21]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 СНО: Общий режим Чек 207 23.10.2024 16:09 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70691 ФПД: 163271007937938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70691&fm=163271007937938&tin=02508201610067®Number=0000000000156251&sum=40000 [16:09:22]StoreToDocumentArchive [16:09:22]shift 196 fd 70691 [16:09:22]save to /storage/0196/doc_00070691 [16:09:22]save last doc name /storage/0196/doc_00070691 to /storage/kkm_last_doc_name [16:09:22]save OK [16:09:22]Clear old archive folders... [16:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:22]tlvbuf is 001AA110 [16:09:22]SAM_PROTO_ClearQueue [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 09 00 00 [16:09:22]Write to MH i2c: E2 08 00 93 19 80 09 00 00 00 00 00 00 1E [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 93 19 00 90 00 20 [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_ClearQueue done [16:09:22]KKMCreateOFDPacket [16:09:22]OFDProtocolAddRootSTLVToBuf [16:09:22]FM_MakeSignedData [16:09:22]FM_MakeSignedData [16:09:22]SAM_PROTO_SignData [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 01 02 [16:09:22]Write to MH i2c: E2 08 00 94 19 80 0D 01 02 00 00 00 00 26 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=255 [16:09:22]MH_SAM_APDU [16:09: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 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 CF 00 00 00 F4 03 04 00 B3 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 [16:09:22]Write to MH i2c: E2 02 01 95 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 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 CF 00 00 00 F4 03 04 00 B3 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 00 00 2F [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 03 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [16:09:23]RAPDU: 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=10 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 0D 02 02 05 7E 7E 6E 25 92 [16:09:23]Write to MH i2c: E2 0D 00 96 19 80 0D 02 02 05 00 7E 7E 6E 25 92 00 00 54 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 03 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [16:09:23]RAPDU: 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 0D 03 02 [16:09:23]Write to MH i2c: E2 08 00 97 19 80 0D 03 02 00 00 00 00 2B [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0B 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0B 00 97 19 00 41 30 8A D1 3E 8A E6 D9 90 00 7F [16:09:23]RAPDU: 41 30 8A D1 3E 8A E6 D9 90 00 [16:09:23]wFMCommunicate OK [16:09:23]SAM_PROTO_SignData done [16:09:23]FM_MakeSignedData done [16:09:23]CreateOFDProtocolMessage [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 11 00 00 [16:09:23]Write to MH i2c: E2 08 00 98 19 80 11 00 00 00 00 00 00 2B [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 17 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 17 00 98 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [16: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 [16:09:23]wFMCommunicate OK [16:09:23]CreateOFDProtocolMessage done [16:09:23]OFDSenderStorePacket 70691 [16:09:23]StoreOFDPacket docnum=70691 [16: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 0F 01 00 00 FE 11 07 01 3E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 B3 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 7E 7E 6E 25 92 41 30 8A D1 3E 8A E6 D9 [16:09:23]CheckFolder [16:09:23]dirname=/storage/ofd_packets [16:09:23]CheckFolder done [16:09:23]ProducePacketName [16:09:23]name=ofd_packets/00070691 [16:09:23]NVStorageSaveData ofd_packets/00070691 [16:09:23]File name is /storage/ofd_packets/00070691 [16:09:23]Write 301 bytes [16:09:23]NVStorageSaveData done [16:09:23]OFDSenderStorePacket done [16:09:23]KKMCreateOFDPacket done [16:09:23]NVStorageSaveData kkm_last_timestamp [16:09:23]File name is /storage/kkm_last_timestamp [16:09:23]Write 4 bytes [16:09:23]NVStorageSaveData done [16:09:23]ExternCall_PrintAddStr [16:09:23]wPrintStart [16:09:23]Write to MH i2c: 01 00 00 99 19 B2 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 FF 0F C7 [16:09:23]RasterBufferAndPrint [16:09:23]line Счет N : (1)2886470 [16:09:23]line ИНН: 02508201610067 [16:09:23]line Контрольно-Кассовый Чек [16:09:23]line ПРОДАЖА [16:09:23]line ТРК (МРК, ГНК) : 42 [16:09:23]line Товар: 2710124130 [16:09:23]line Аи-92-К-5 [16:09:23]line 5.980 * 66.90 [16:09:23]line = 400.06 [16:09:23]line НДС 12% НСП 1% [16:09:23]line > о реализуемом товаре [16:09:23]line ОКРУГЛЕНИЕ: -0.06 [16:09:23]line ИТОГО: 400.00 [16:09:23]line Внесено: 400.00 [16:09:23]line СДАЧА: 0.00 [16:09:23]line НСП 1% : 3.54 [16:09:23]line НДС 12% : 42.48 [16:09:23]line Наличными: 400.00 [16:09:23]line Безнал.: 0.00 [16:09:23]line Место: АЗС № 85 "Партнер Нефть" [16:09:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:09:23]line СНО: Общий режим [16:09:23]line Чек 207 23.10.2024 16:09 [16:09:23]line Смена: 196 ФФД: 1.0 [16:09:23]line ЗНМ: 0300000167 [16:09:23]line РНМ: 0000000000156251 [16:09:23]line Версия ККМ: v1.0 [16:09:23]line ФМ: 0000000000963346 [16:09:23]line ФД: 70691 [16:09:23]line ФПД: 163271007937938 [16:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70691&fm=163271007937938&tin=02508201610067®Number=0000000000156251&sum=40000 [16:09:23]written 0, free lines is 4095 [16:09:24]Write to MH i2c: 01 00 00 C4 19 DD [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: 01 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: 01 07 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 E4 0C D4 [16:09:24]RasterBufferAndPrint [16:09:24]line [16:09:24]line [16:09:24]line [16:09:24]line [16:09:24]line [16:09:24]written 0, free lines is 3306 [16:09:24]MH_Cut [16:09:24]Write to MH i2c: D1 01 00 CB 19 01 B6 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: D1 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: D1 01 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: D1 01 00 CB 19 00 B5 [16:09:24]Write to MH i2c: 01 00 00 CC 19 E5 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** Cut start [16:09:24]*** Partial cut [16:09:24]*** CUTSNS_PIN = 1 [16:09:24]*** CUTSNS_PIN = 0 [16:09:25]*** Brake cut motor [16:09:25]Read from MH i2c: 01 [16:09:25]MH_I2C_Read... [16:09:25]*** Stop cut motor [16:09:25]*** Cut end [16:09:25]Read from MH i2c: 01 07 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [16:09:25]process_action close_receipt done [16:09:25]requested_data is exist [16:09:25]produce_requested_data [16:09:25]requested_item fm.sn is exist - process it [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 11 00 00 [16:09:25]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 CD 19 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: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 [16:09:25]wFMCommunicate OK [16:09:25]requested_item fd.num is exist - process it [16:09:25]SAM_PROTO_GetFieldsCounters [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 13 00 00 [16:09:25]Write to MH i2c: E2 08 00 CE 19 80 13 00 00 00 00 00 00 63 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 62 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 62 00 CE 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 23 14 01 00 0E 04 04 00 C4 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 E7 [16: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 23 14 01 00 0E 04 04 00 C4 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 [16:09:25]wFMCommunicate OK [16:09:25]SAM_PROTO_GetFieldsCounters done [16:09:25]requested_item shift.num is exist - process it [16:09:25]requested_item shift.opened is exist - process it [16:09:25]req_shift_opened [16:09:25]FM_GetShiftState [16:09:25]SAM_PROTO_GetShiftState [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 13 01 00 [16:09:25]Write to MH i2c: E2 08 00 CF 19 80 13 01 00 00 00 00 00 65 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0E 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0E 00 CF 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F2 [16:09:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:09:25]wFMCommunicate OK [16:09:25]SAM_PROTO_GetShiftState done [16:09:25]FM_GetShiftState done [16:09:25]req_shift_opened done [16:09:25]requested_item shift.open_date is exist - process it [16:09:25]req_shift_open_date [16:09:25]req_shift_open_date done [16:09:25]produce_requested_data done [16:09:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70691,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:09:25]process_action_free close_receipt [16:09:25]json_value_free [16:09:25]json_value_free done [16:09:25]process_json_proto returns [16:09:25]Send response to host [16:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70691,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:09:25]free response buf [16:09:25]execute_script done [16:09:25]execute_script returns [16:09:25]free content buf [16:09:25]Sock 7.Close socket [16:09:25]Sock 7.Thread stoped [16:10:22]ConnectInit Can't connect to host [16:10:22]CommunicateWithHost connect error [16:10:22]CommunicateWithHost err = -1 [16:10:22]OFD Sender: Server communicate error [16:10:22]OFD Sender: Processing packet 70690 [packets to send 19, broken 17] [16:10:22]ProducePacketName [16:10:22]name=ofd_packets/00070690 [16:10:22]OFD Sender: To server: pG, [16:10:22]CommunicateWithHost lk.salyk.kg:30040 [16:10:22]ConnectInit lk.salyk.kg [16:10:22]Connected sock=7 [16:10: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 1E 5A 0D 01 70 B9 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 CE 00 00 00 F4 03 04 00 69 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E6 94 96 60 EE 20 DA B2 36 FE 5C 62 BB 3E [16:10: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 35 51 47 00 73 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 22 14 01 00 F4 03 04 00 8B C9 18 67 B6 04 01 00 00 20 6D 18 37 50 5F BD B8 [16:10:22]CommunicateWithHost err = 0 [16:10:22]CheckOFDResponse [16:10:22]1017 (14) - 77093643461234 [16:10:22]1041 (16) - 0000000000963346 [16:10:22]1040 (4) - 70690 [16:10:22]1012 (4) - 23.10.2024 10:01 [16:10:22]1206 (1) - 0 [16:10:22]OFD Sender: Remove packet 70690 [16:10:22]ProducePacketName [16:10:22]name=ofd_packets/00070690 [16:10:22]NVStorageDeleteData [16:10:23]OFD Sender: Processing packet 70691 [packets to send 18, broken 17] [16:10:23]ProducePacketName [16:10:23]name=ofd_packets/00070691 [16:10:23]OFD Sender: To server: pG, [16:10:23]CommunicateWithHost lk.salyk.kg:30040 [16:10:23]ConnectInit lk.salyk.kg [16:10:23]Connected sock=7 [16:10: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 FE 11 07 01 3E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 B3 1F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 94 7E 7E 6E 25 92 41 30 8A D1 3E 8A E6 D9 [16:10: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 77 C7 47 00 29 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 14 01 00 F4 03 04 00 8C C9 18 67 B6 04 01 00 00 B4 9F C5 22 C8 B9 82 A6 [16:10:23]CommunicateWithHost err = 0 [16:10:23]CheckOFDResponse [16:10:23]1017 (14) - 77093643461234 [16:10:23]1041 (16) - 0000000000963346 [16:10:23]1040 (4) - 70691 [16:10:23]1012 (4) - 23.10.2024 10:01 [16:10:23]1206 (1) - 0 [16:10:23]OFD Sender: Remove packet 70691 [16:10:23]ProducePacketName [16:10:23]name=ofd_packets/00070691 [16:10:23]NVStorageDeleteData [16:10:23]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:05]accept exits with 9 [16:14:05]New connection [16:14:05]New thread 3067034980 created [16:14:05]Thread 3066891620 joined [16:14:05]Waiting for new connection... [16:14:05] Sock 9.Parse request [16:14:05]Sock 9.Check first char [16:14:05]Sock 9.First char is OK [16:14:05]request: POST /json_proto HTTP/1.0 [16:14:05]Method: POST [16:14:05]URL: /json_proto [16:14:05]Method is POST - this is cgi request [16:14:05]url: /json_proto [16:14:05]query_string will be loaded in cgi processing [16:14:05]execute_cgi json_proto POST (null) [16:14:05]execute_cgi path=json_proto method=POST [16:14:05]POST find Content-Length [16:14:05]Host: 172.17.50.3:8080 [16:14:05]Content-Length: 678 [16:14:05]Content-Type: application/json [16:14:05] [16:14:05]POST finish read [16:14:05]Found Content-Length = 678 [16:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886471", "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" : 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" ] } } [16:14:05]execute_script... [16:14: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)2886471", "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" : 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" ] } } [16:14:05]POST & json_proto [16:14:05]process_json_proto [16:14:05]json parsed OK: [16:14:05]protocol is kg_v1.0 [16:14:05]action value=close_receipt [16:14:05]process_action close_receipt [16:14:05]cmd_close_receipt [16:14:05]MH_GetDate [16:14:05]Write to MH i2c: F0 00 00 D0 19 D8 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: F0 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: F0 09 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: F0 09 00 D0 19 00 CF 20 19 67 6B 98 1E 66 D7 [16:14:05]GetLastDocTimeStamp 1729699763 [16:14:05]current date 1729700047 [16:14:05]FM_GetShiftState [16:14:05]SAM_PROTO_GetShiftState [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 13 01 00 [16:14:05]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 0E 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F4 [16:14:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:14:05]wFMCommunicate OK [16:14:05]SAM_PROTO_GetShiftState done [16:14:05]FM_GetShiftState done [16:14:05]opened in 1729642435 [16:14:05]opened+sec_in_day 1729728835 [16:14:05]quantity*price = 60009 [16:14:05]sum+1 = 60010 [16:14:05]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 СНО: Общий режим Чек 208 23.10.2024 16:14 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70692 ФПД: 120060709596121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70692&fm=120060709596121&tin=02508201610067®Number=0000000000156251&sum=60000 [16:14:06]StoreToDocumentArchive [16:14:06]shift 196 fd 70692 [16:14:06]save to /storage/0196/doc_00070692 [16:14:06]save last doc name /storage/0196/doc_00070692 to /storage/kkm_last_doc_name [16:14:06]save OK [16:14:06]Clear old archive folders... [16:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:06]tlvbuf is 001A9FB0 [16:14:06]SAM_PROTO_ClearQueue [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 09 00 00 [16:14:06]Write to MH i2c: E2 08 00 DE 19 80 09 00 00 00 00 00 00 69 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 03 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 03 00 DE 19 00 90 00 6B [16:14:06]RAPDU: 90 00 [16:14:06]wFMCommunicate OK [16:14:06]SAM_PROTO_ClearQueue done [16:14:06]KKMCreateOFDPacket [16:14:06]OFDProtocolAddRootSTLVToBuf [16:14:06]FM_MakeSignedData [16:14:06]FM_MakeSignedData [16:14:06]SAM_PROTO_SignData [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 0D 01 02 [16:14:06]Write to MH i2c: E2 08 00 DF 19 80 0D 01 02 00 00 00 00 71 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 03 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 03 00 DF 19 00 90 00 6C [16:14:06]RAPDU: 90 00 [16:14:06]wFMCommunicate OK [16:14:06]wFMCommunicate request_size=255 [16:14:06]MH_SAM_APDU [16:14: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 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 D0 00 00 00 F4 03 04 00 CF 20 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D [16:14:06]Write to MH i2c: E2 02 01 E0 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 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 D0 00 00 00 F4 03 04 00 CF 20 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 00 00 80 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 03 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [16:14:07]RAPDU: 90 00 [16:14:07]wFMCommunicate OK [16:14:07]wFMCommunicate request_size=10 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 0D 02 02 05 31 CF F2 6B D9 [16:14:07]Write to MH i2c: E2 0D 00 E1 19 80 0D 02 02 05 00 31 CF F2 6B D9 00 00 B4 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 03 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [16:14:07]RAPDU: 90 00 [16:14:07]wFMCommunicate OK [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 0D 03 02 [16:14:07]Write to MH i2c: E2 08 00 E2 19 80 0D 03 02 00 00 00 00 76 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 0B 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 0B 00 E2 19 00 59 14 85 3A A1 C8 83 C6 90 00 55 [16:14:07]RAPDU: 59 14 85 3A A1 C8 83 C6 90 00 [16:14:07]wFMCommunicate OK [16:14:07]SAM_PROTO_SignData done [16:14:07]FM_MakeSignedData done [16:14:07]CreateOFDProtocolMessage [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 11 00 00 [16:14:07]Write to MH i2c: E2 08 00 E3 19 80 11 00 00 00 00 00 00 76 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 17 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 17 00 E3 19 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:14: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:14:07]wFMCommunicate OK [16:14:07]CreateOFDProtocolMessage done [16:14:07]OFDSenderStorePacket 70692 [16:14:07]StoreOFDPacket docnum=70692 [16:14: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 54 78 07 01 7A 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 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 D0 00 00 00 F4 03 04 00 CF 20 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 31 CF F2 6B D9 59 14 85 3A A1 C8 83 C6 [16:14:07]CheckFolder [16:14:07]dirname=/storage/ofd_packets [16:14:07]CheckFolder done [16:14:07]ProducePacketName [16:14:07]name=ofd_packets/00070692 [16:14:07]NVStorageSaveData ofd_packets/00070692 [16:14:07]File name is /storage/ofd_packets/00070692 [16:14:07]Write 301 bytes [16:14:07]NVStorageSaveData done [16:14:07]OFDSenderStorePacket done [16:14:07]KKMCreateOFDPacket done [16:14:07]NVStorageSaveData kkm_last_timestamp [16:14:07]File name is /storage/kkm_last_timestamp [16:14:07]Write 4 bytes [16:14:07]NVStorageSaveData done [16:14:07]ExternCall_PrintAddStr [16:14:07]wPrintStart [16:14:07]Write to MH i2c: 01 00 00 E4 19 FD [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 07 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [16:14:07]RasterBufferAndPrint [16:14:07]line Счет N : (1)2886471 [16:14:07]line ИНН: 02508201610067 [16:14:07]line Контрольно-Кассовый Чек [16:14:07]line ПРОДАЖА [16:14:07]line ТРК (МРК, ГНК) : 32 [16:14:07]line Товар: 2710124130 [16:14:07]line Аи-92-К-5 [16:14:07]line 8.970 * 66.90 [16:14:07]line = 600.09 [16:14:07]line НДС 12% НСП 1% [16:14:07]line > о реализуемом товаре [16:14:07]line ОКРУГЛЕНИЕ: -0.09 [16:14:07]line ИТОГО: 600.00 [16:14:07]line Внесено: 600.00 [16:14:07]line СДАЧА: 0.00 [16:14:07]line НСП 1% : 5.31 [16:14:07]line НДС 12% : 63.73 [16:14:07]line Наличными: 600.00 [16:14:07]line Безнал.: 0.00 [16:14:07]line Место: АЗС № 85 "Партнер Нефть" [16:14:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:14:07]line СНО: Общий режим [16:14:07]line Чек 208 23.10.2024 16:14 [16:14:07]line Смена: 196 ФФД: 1.0 [16:14:07]line ЗНМ: 0300000167 [16:14:07]line РНМ: 0000000000156251 [16:14:07]line Версия ККМ: v1.0 [16:14:07]line ФМ: 0000000000963346 [16:14:07]line ФД: 70692 [16:14:07]line ФПД: 120060709596121 [16:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70692&fm=120060709596121&tin=02508201610067®Number=0000000000156251&sum=60000 [16:14:07]OFD Sender: Processing packet 70692 [packets to send 18, broken 17] [16:14:07]ProducePacketName [16:14:07]name=ofd_packets/00070692 [16:14:07]OFD Sender: To server: pG, [16:14:07]CommunicateWithHost lk.salyk.kg:30040 [16:14:07]ConnectInit lk.salyk.kg [16:14:07]written 0, free lines is 4095 [16:14:07]Connected sock=10 [16:14: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 54 78 07 01 7A 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 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 D0 00 00 00 F4 03 04 00 CF 20 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 31 CF F2 6B D9 59 14 85 3A A1 C8 83 C6 [16:14: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 D0 48 47 00 4D 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 24 14 01 00 F4 03 04 00 6C CA 18 67 B6 04 01 00 00 53 F8 A1 46 AB F3 8F 8C [16:14:07]CommunicateWithHost err = 0 [16:14:07]CheckOFDResponse [16:14:07]1017 (14) - 77093643461234 [16:14:07]1041 (16) - 0000000000963346 [16:14:07]1040 (4) - 70692 [16:14:07]1012 (4) - 23.10.2024 10:05 [16:14:07]1206 (1) - 0 [16:14:07]OFD Sender: Remove packet 70692 [16:14:07]ProducePacketName [16:14:07]name=ofd_packets/00070692 [16:14:07]NVStorageDeleteData [16:14:07]Write to MH i2c: 01 00 00 0F 1A 29 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 07 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 E9 0C 25 [16:14:07]RasterBufferAndPrint [16:14:07]line [16:14:07]line [16:14:07]line [16:14:07]line [16:14:07]line [16:14:07]written 0, free lines is 3311 [16:14:07]MH_Cut [16:14:07]Write to MH i2c: D1 01 00 16 1A 01 02 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: D1 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: D1 01 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: D1 01 00 16 1A 00 01 [16:14:07]Write to MH i2c: 01 00 00 17 1A 31 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:08]OFD Sender: No OFD packet to send [16:14:08]*** Cut start [16:14:08]*** Partial cut [16:14:08]*** CUTSNS_PIN = 1 [16:14:08]*** CUTSNS_PIN = 0 [16:14:08]*** Brake cut motor [16:14:09]Read from MH i2c: 01 [16:14:09]MH_I2C_Read... [16:14:09]*** Stop cut motor [16:14:09]*** Cut end [16:14:09]Read from MH i2c: 01 07 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 FF 0F 46 [16:14:09]process_action close_receipt done [16:14:09]requested_data is exist [16:14:09]produce_requested_data [16:14:09]requested_item fm.sn is exist - process it [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 11 00 00 [16:14:09]Write to MH i2c: E2 08 00 18 1A 80 11 00 00 00 00 00 00 AC [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 17 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 17 00 18 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [16:14: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:14:09]wFMCommunicate OK [16:14:09]requested_item fd.num is exist - process it [16:14:09]SAM_PROTO_GetFieldsCounters [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 13 00 00 [16:14:09]Write to MH i2c: E2 08 00 19 1A 80 13 00 00 00 00 00 00 AF [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 62 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 62 00 19 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 24 14 01 00 0E 04 04 00 C4 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 37 [16:14: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 24 14 01 00 0E 04 04 00 C4 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 [16:14:09]wFMCommunicate OK [16:14:09]SAM_PROTO_GetFieldsCounters done [16:14:09]requested_item shift.num is exist - process it [16:14:09]requested_item shift.opened is exist - process it [16:14:09]req_shift_opened [16:14:09]FM_GetShiftState [16:14:09]SAM_PROTO_GetShiftState [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 13 01 00 [16:14:09]Write to MH i2c: E2 08 00 1A 1A 80 13 01 00 00 00 00 00 B1 [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 0E 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 0E 00 1A 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3E [16:14:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:14:09]wFMCommunicate OK [16:14:09]SAM_PROTO_GetShiftState done [16:14:09]FM_GetShiftState done [16:14:09]req_shift_opened done [16:14:09]requested_item shift.open_date is exist - process it [16:14:09]req_shift_open_date [16:14:09]req_shift_open_date done [16:14:09]produce_requested_data done [16:14:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70692,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:14:09]process_action_free close_receipt [16:14:09]json_value_free [16:14:09]json_value_free done [16:14:09]process_json_proto returns [16:14:09]Send response to host [16:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70692,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:14:09]free response buf [16:14:09]execute_script done [16:14:09]execute_script returns [16:14:09]free content buf [16:14:09]Sock 9.Close socket [16:14:09]Sock 9.Thread stoped [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:04]accept exits with 7 [16:16:04]New connection [16:16:04]New thread 3066891620 created [16:16:04]Thread 3067034980 joined [16:16:04]Waiting for new connection... [16:16:04] Sock 7.Parse request [16:16:04]Sock 7.Check first char [16:16:04]Sock 7.First char is OK [16:16:04]request: POST /json_proto HTTP/1.0 [16:16:04]Method: POST [16:16:04]URL: /json_proto [16:16:04]Method is POST - this is cgi request [16:16:04]url: /json_proto [16:16:04]query_string will be loaded in cgi processing [16:16:04]execute_cgi json_proto POST (null) [16:16:04]execute_cgi path=json_proto method=POST [16:16:04]POST find Content-Length [16:16:04]Host: 172.17.50.3:8080 [16:16:04]Content-Length: 770 [16:16:04]Content-Type: application/json [16:16:04] [16:16:04]POST finish read [16:16:04]Found Content-Length = 770 [16:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886472", "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" ] } } [16:16:04]execute_script... [16: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)2886472", "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" ] } } [16:16:04]POST & json_proto [16:16:04]process_json_proto [16:16:04]json parsed OK: [16:16:04]protocol is kg_v1.0 [16:16:04]action value=close_receipt [16:16:04]process_action close_receipt [16:16:04]cmd_close_receipt [16:16:04]MH_GetDate [16:16:04]Write to MH i2c: F0 00 00 1B 1A 24 [16:16:04]Write i2c OK [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: F0 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: F0 09 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: F0 09 00 1B 1A 00 46 21 19 67 6B 98 1E 66 9B [16:16:04]GetLastDocTimeStamp 1729700047 [16:16:04]current date 1729700166 [16:16:04]FM_GetShiftState [16:16:04]SAM_PROTO_GetShiftState [16:16:04]wFMCommunicate request_size=4 [16:16:04]MH_SAM_APDU [16:16:04]CAPDU: 80 13 01 00 [16:16:04]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [16:16:04]Write i2c OK [16:16:04]MH_I2C_Read... [16:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:04]Read from MH i2c: E2 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 0E 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 40 [16:16:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:16:04]wFMCommunicate OK [16:16:04]SAM_PROTO_GetShiftState done [16:16:04]FM_GetShiftState done [16:16:04]opened in 1729642435 [16:16:04]opened+sec_in_day 1729728835 [16:16:04]quantity*price = 100021 [16:16:04]sum+1 = 100023 [16:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 209 23.10.2024 16:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70693 ФПД: 178571566624705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70693&fm=178571566624705&tin=02508201610067®Number=0000000000156251&sum=100022 [16:16:05]StoreToDocumentArchive [16:16:05]shift 196 fd 70693 [16:16:05]save to /storage/0196/doc_00070693 [16:16:05]save last doc name /storage/0196/doc_00070693 to /storage/kkm_last_doc_name [16:16:05]save OK [16:16:05]Clear old archive folders... [16:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:05]tlvbuf is 001E4E80 [16:16:05]SAM_PROTO_ClearQueue [16:16:05]wFMCommunicate request_size=4 [16:16:05]MH_SAM_APDU [16:16:05]CAPDU: 80 09 00 00 [16:16:05]Write to MH i2c: E2 08 00 29 1A 80 09 00 00 00 00 00 00 B5 [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [16:16:05]RAPDU: 90 00 [16:16:05]wFMCommunicate OK [16:16:05]SAM_PROTO_ClearQueue done [16:16:05]KKMCreateOFDPacket [16:16:05]OFDProtocolAddRootSTLVToBuf [16:16:05]FM_MakeSignedData [16:16:05]FM_MakeSignedData [16:16:05]SAM_PROTO_SignData [16:16:05]wFMCommunicate request_size=4 [16:16:05]MH_SAM_APDU [16:16:05]CAPDU: 80 0D 01 02 [16:16:05]Write to MH i2c: E2 08 00 2A 1A 80 0D 01 02 00 00 00 00 BD [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [16:16:05]RAPDU: 90 00 [16:16:05]wFMCommunicate OK [16:16:05]wFMCommunicate request_size=255 [16:16:05]MH_SAM_APDU [16:16: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 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 D1 00 00 00 F4 03 04 00 46 21 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 [16:16:05]Write to MH i2c: E2 02 01 2B 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 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 D1 00 00 00 F4 03 04 00 46 21 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 00 00 E7 [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [16:16:05]RAPDU: 90 00 [16:16:05]wFMCommunicate OK [16:16:05]wFMCommunicate request_size=10 [16:16:05]MH_SAM_APDU [16:16:05]CAPDU: 80 0D 02 02 05 68 EE CB AF C1 [16:16:05]Write to MH i2c: E2 0D 00 2C 1A 80 0D 02 02 05 00 68 EE CB AF C1 00 00 5B [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [16:16:05]RAPDU: 90 00 [16:16:05]wFMCommunicate OK [16:16:05]wFMCommunicate request_size=4 [16:16:05]MH_SAM_APDU [16:16:05]CAPDU: 80 0D 03 02 [16:16:05]Write to MH i2c: E2 08 00 2D 1A 80 0D 03 02 00 00 00 00 C2 [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 0B 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 0B 00 2D 1A 00 CF FB FA D8 2C 43 B9 4F 90 00 D6 [16:16:05]RAPDU: CF FB FA D8 2C 43 B9 4F 90 00 [16:16:05]wFMCommunicate OK [16:16:05]SAM_PROTO_SignData done [16:16:05]FM_MakeSignedData done [16:16:05]CreateOFDProtocolMessage [16:16:05]wFMCommunicate request_size=4 [16:16:05]MH_SAM_APDU [16:16:05]CAPDU: 80 11 00 00 [16:16:05]Write to MH i2c: E2 08 00 2E 1A 80 11 00 00 00 00 00 00 C2 [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:05]Read from MH i2c: E2 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 17 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: E2 17 00 2E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [16:16: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:16:05]wFMCommunicate OK [16:16:05]CreateOFDProtocolMessage done [16:16:05]OFDSenderStorePacket 70693 [16:16:05]StoreOFDPacket docnum=70693 [16:16: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 0B BB 07 01 3C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D1 00 00 00 F4 03 04 00 46 21 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 68 EE CB AF C1 CF FB FA D8 2C 43 B9 4F [16:16:05]CheckFolder [16:16:05]dirname=/storage/ofd_packets [16:16:05]CheckFolder done [16:16:05]ProducePacketName [16:16:05]name=ofd_packets/00070693 [16:16:05]NVStorageSaveData ofd_packets/00070693 [16:16:05]File name is /storage/ofd_packets/00070693 [16:16:05]Write 301 bytes [16:16:05]NVStorageSaveData done [16:16:05]OFDSenderStorePacket done [16:16:05]KKMCreateOFDPacket done [16:16:05]NVStorageSaveData kkm_last_timestamp [16:16:05]File name is /storage/kkm_last_timestamp [16:16:05]Write 4 bytes [16:16:05]NVStorageSaveData done [16:16:05]ExternCall_PrintAddStr [16:16:05]wPrintStart [16:16:05]Write to MH i2c: 01 00 00 2F 1A 49 [16:16:05]Write i2c OK [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: 01 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: 01 07 00 [16:16:05]MH_I2C_Read... [16:16:05]Read from MH i2c: 01 07 00 2F 1A 00 00 00 00 00 FF 0F 5E [16:16:05]RasterBufferAndPrint [16:16:05]line Счет N : (1)2886472 [16:16:05]line ИНН: 02508201610067 [16:16:05]line Контрольно-Кассовый Чек [16:16:05]line ПРОДАЖА [16:16:05]line ТРК (МРК, ГНК) : 43 [16:16:05]line Товар: 2710124500 [16:16:05]line Аи-95-К-5 [16:16:05]line 13.480 * 74.20 [16:16:05]line = 1000.22 [16:16:05]line НДС 12% НСП 1% [16:16:05]line > о реализуемом товаре [16:16:05]line ИТОГО: 1000.22 [16:16:05]line НСП 1% : 8.85 [16:16:05]line НДС 12% : 106.22 [16:16:05]line Наличными: 0.00 [16:16:05]line Безнал.: 1000.22 [16:16:05]line Место: АЗС № 85 "Партнер Нефть" [16:16:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:16:05]line СНО: Общий режим [16:16:05]line Чек 209 23.10.2024 16:16 [16:16:05]line Смена: 196 ФФД: 1.0 [16:16:05]line ЗНМ: 0300000167 [16:16:05]line РНМ: 0000000000156251 [16:16:05]line Версия ККМ: v1.0 [16:16:05]line Платежная система: Mbank [16:16:05]line ФМ: 0000000000963346 [16:16:05]line ФД: 70693 [16:16:05]line ФПД: 178571566624705 [16:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70693&fm=178571566624705&tin=02508201610067®Number=0000000000156251&sum=100022 [16:16:06]OFD Sender: Processing packet 70693 [packets to send 18, broken 17] [16:16:06]ProducePacketName [16:16:06]name=ofd_packets/00070693 [16:16:06]OFD Sender: To server: pG, [16:16:06]CommunicateWithHost lk.salyk.kg:30040 [16:16:06]ConnectInit lk.salyk.kg [16:16:06]written 0, free lines is 4095 [16:16:06]Connected sock=10 [16: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 0B BB 07 01 3C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D1 00 00 00 F4 03 04 00 46 21 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 68 EE CB AF C1 CF FB FA D8 2C 43 B9 4F [16:16: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 E4 6E 47 00 3C 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 25 14 01 00 F4 03 04 00 E3 CA 18 67 B6 04 01 00 00 18 F9 14 6E 33 49 F1 4D [16:16:06]CommunicateWithHost err = 0 [16:16:06]CheckOFDResponse [16:16:06]1017 (14) - 77093643461234 [16:16:06]1041 (16) - 0000000000963346 [16:16:06]1040 (4) - 70693 [16:16:06]1012 (4) - 23.10.2024 10:07 [16:16:06]1206 (1) - 0 [16:16:06]OFD Sender: Remove packet 70693 [16:16:06]ProducePacketName [16:16:06]name=ofd_packets/00070693 [16:16:06]NVStorageDeleteData [16:16:06]Write to MH i2c: 01 00 00 58 1A 72 [16:16:06]Write i2c OK [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 07 00 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 07 00 58 1A 00 00 00 00 00 13 0D 99 [16:16:06]RasterBufferAndPrint [16:16:06]line [16:16:06]line [16:16:06]line [16:16:06]line [16:16:06]line [16:16:06]written 0, free lines is 3354 [16:16:06]MH_Cut [16:16:06]Write to MH i2c: D1 01 00 5F 1A 01 4B [16:16:06]Write i2c OK [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: D1 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: D1 01 00 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: D1 01 00 5F 1A 00 4A [16:16:06]Write to MH i2c: 01 00 00 60 1A 7A [16:16:06]Write i2c OK [16:16:06]MH_I2C_Read... [16:16:07]OFD Sender: No OFD packet to send [16:16:07]*** Cut start [16:16:07]*** Partial cut [16:16:07]*** CUTSNS_PIN = 1 [16:16:07]*** CUTSNS_PIN = 0 [16:16:07]*** Brake cut motor [16:16:07]Read from MH i2c: 01 [16:16:07]MH_I2C_Read... [16:16:07]*** Stop cut motor [16:16:07]*** Cut end [16:16:07]Read from MH i2c: 01 07 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 FF 0F 8F [16:16:07]process_action close_receipt done [16:16:07]requested_data is exist [16:16:07]produce_requested_data [16:16:07]requested_item fm.sn is exist - process it [16:16:07]wFMCommunicate request_size=4 [16:16:07]MH_SAM_APDU [16:16:07]CAPDU: 80 11 00 00 [16:16:07]Write to MH i2c: E2 08 00 61 1A 80 11 00 00 00 00 00 00 F5 [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 17 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 17 00 61 1A 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: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 [16:16:08]wFMCommunicate OK [16:16:08]requested_item fd.num is exist - process it [16:16:08]SAM_PROTO_GetFieldsCounters [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 13 00 00 [16:16:08]Write to MH i2c: E2 08 00 62 1A 80 13 00 00 00 00 00 00 F8 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 62 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 62 00 62 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 25 14 01 00 0E 04 04 00 C4 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 84 [16: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 25 14 01 00 0E 04 04 00 C4 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 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_GetFieldsCounters done [16:16:08]requested_item shift.num is exist - process it [16:16:08]requested_item shift.opened is exist - process it [16:16:08]req_shift_opened [16:16:08]FM_GetShiftState [16:16:08]SAM_PROTO_GetShiftState [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 13 01 00 [16:16:08]Write to MH i2c: E2 08 00 63 1A 80 13 01 00 00 00 00 00 FA [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 63 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 87 [16:16:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_GetShiftState done [16:16:08]FM_GetShiftState done [16:16:08]req_shift_opened done [16:16:08]requested_item shift.open_date is exist - process it [16:16:08]req_shift_open_date [16:16:08]req_shift_open_date done [16:16:08]produce_requested_data done [16:16:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70693,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:16:08]process_action_free close_receipt [16:16:08]json_value_free [16:16:08]json_value_free done [16:16:08]process_json_proto returns [16:16:08]Send response to host [16:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70693,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:16:08]free response buf [16:16:08]execute_script done [16:16:08]execute_script returns [16:16:08]free content buf [16:16:08]Sock 7.Close socket [16:16:08]Sock 7.Thread stoped [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:22]accept exits with 9 [16:21:22]New connection [16:21:22]New thread 3067034980 created [16:21:22]Thread 3066891620 joined [16:21:22]Waiting for new connection... [16:21:22] Sock 9.Parse request [16:21:22]Sock 9.Check first char [16:21:22]Sock 9.First char is OK [16:21:22]request: POST /json_proto HTTP/1.0 [16:21:22]Method: POST [16:21:22]URL: /json_proto [16:21:22]Method is POST - this is cgi request [16:21:22]url: /json_proto [16:21:22]query_string will be loaded in cgi processing [16:21:22]execute_cgi json_proto POST (null) [16:21:22]execute_cgi path=json_proto method=POST [16:21:22]POST find Content-Length [16:21:22]Host: 172.17.50.3:8080 [16:21:22]Content-Length: 689 [16:21:22]Content-Type: application/json [16:21:22] [16:21:22]POST finish read [16:21:22]Found Content-Length = 689 [16:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886473", "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 }]} ], "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" ] } } [16:21:22]execute_script... [16:21: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)2886473", "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 }]} ], "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" ] } } [16:21:22]POST & json_proto [16:21:22]process_json_proto [16:21:22]json parsed OK: [16:21:22]protocol is kg_v1.0 [16:21:22]action value=close_receipt [16:21:22]process_action close_receipt [16:21:22]cmd_close_receipt [16:21:22]MH_GetDate [16:21:22]Write to MH i2c: F0 00 00 64 1A 6D [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: F0 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: F0 09 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: F0 09 00 64 1A 00 84 22 19 67 6B 98 1E 66 23 [16:21:22]GetLastDocTimeStamp 1729700166 [16:21:22]current date 1729700484 [16:21:22]FM_GetShiftState [16:21:22]SAM_PROTO_GetShiftState [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 13 01 00 [16:21:22]Write to MH i2c: E2 08 00 65 1A 80 13 01 00 00 00 00 00 FC [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 0E 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 0E 00 65 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 89 [16:21:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:21:22]wFMCommunicate OK [16:21:22]SAM_PROTO_GetShiftState done [16:21:22]FM_GetShiftState done [16:21:22]opened in 1729642435 [16:21:22]opened+sec_in_day 1729728835 [16:21:22]quantity*price = 130004 [16:21:22]sum+1 = 130006 [16:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 210 23.10.2024 16:21 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70694 ФПД: 140283824341677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70694&fm=140283824341677&tin=02508201610067®Number=0000000000156251&sum=130000 [16:21:24]StoreToDocumentArchive [16:21:24]shift 196 fd 70694 [16:21:24]save to /storage/0196/doc_00070694 [16:21:24]save last doc name /storage/0196/doc_00070694 to /storage/kkm_last_doc_name [16:21:24]save OK [16:21:24]Clear old archive folders... [16:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:21:24]tlvbuf is 00190290 [16:21:24]SAM_PROTO_ClearQueue [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 09 00 00 [16:21:24]Write to MH i2c: E2 08 00 72 1A 80 09 00 00 00 00 00 00 FE [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 72 1A 00 90 00 00 [16:21:24]RAPDU: 90 00 [16:21:24]wFMCommunicate OK [16:21:24]SAM_PROTO_ClearQueue done [16:21:24]KKMCreateOFDPacket [16:21:24]OFDProtocolAddRootSTLVToBuf [16:21:24]FM_MakeSignedData [16:21:24]FM_MakeSignedData [16:21:24]SAM_PROTO_SignData [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 0D 01 02 [16:21:24]Write to MH i2c: E2 08 00 73 1A 80 0D 01 02 00 00 00 00 06 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 73 1A 00 90 00 01 [16:21:24]RAPDU: 90 00 [16:21:24]wFMCommunicate OK [16:21:24]wFMCommunicate request_size=255 [16:21:24]MH_SAM_APDU [16:21:24]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 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 D2 00 00 00 F4 03 04 00 84 22 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:21:24]Write to MH i2c: E2 02 01 74 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 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 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 D2 00 00 00 F4 03 04 00 84 22 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 CA [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 74 1A 00 90 00 02 [16:21:24]RAPDU: 90 00 [16:21:24]wFMCommunicate OK [16:21:24]wFMCommunicate request_size=16 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7F 96 5F 84 82 AD [16:21:24]Write to MH i2c: E2 13 00 75 1A 80 0D 02 02 0B 00 00 35 04 06 00 7F 96 5F 84 82 AD 00 00 85 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [16:21:24]RAPDU: 90 00 [16:21:24]wFMCommunicate OK [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 0D 03 02 [16:21:24]Write to MH i2c: E2 08 00 76 1A 80 0D 03 02 00 00 00 00 0B [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 0B 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 0B 00 76 1A 00 D6 70 67 01 B3 0F 70 9E 90 00 8A [16:21:24]RAPDU: D6 70 67 01 B3 0F 70 9E 90 00 [16:21:24]wFMCommunicate OK [16:21:24]SAM_PROTO_SignData done [16:21:24]FM_MakeSignedData done [16:21:24]CreateOFDProtocolMessage [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 11 00 00 [16:21:24]Write to MH i2c: E2 08 00 77 1A 80 11 00 00 00 00 00 00 0B [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 77 1A 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:21:24]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:24]wFMCommunicate OK [16:21:24]CreateOFDProtocolMessage done [16:21:24]OFDSenderStorePacket 70694 [16:21:24]StoreOFDPacket docnum=70694 [16:21: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 15 01 00 00 D9 AD 0D 01 90 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 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 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 D2 00 00 00 F4 03 04 00 84 22 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7F 96 5F 84 82 AD D6 70 67 01 B3 0F 70 9E [16:21:24]CheckFolder [16:21:24]dirname=/storage/ofd_packets [16:21:24]CheckFolder done [16:21:24]ProducePacketName [16:21:24]name=ofd_packets/00070694 [16:21:24]NVStorageSaveData ofd_packets/00070694 [16:21:24]File name is /storage/ofd_packets/00070694 [16:21:24]Write 307 bytes [16:21:24]NVStorageSaveData done [16:21:24]OFDSenderStorePacket done [16:21:24]KKMCreateOFDPacket done [16:21:24]NVStorageSaveData kkm_last_timestamp [16:21:24]File name is /storage/kkm_last_timestamp [16:21:24]Write 4 bytes [16:21:24]NVStorageSaveData done [16:21:24]ExternCall_PrintAddStr [16:21:24]wPrintStart [16:21:24]Write to MH i2c: 01 00 00 78 1A 92 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: 01 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: 01 07 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 FF 0F A7 [16:21:24]RasterBufferAndPrint [16:21:24]line Счет N : (1)2886473 [16:21:24]line ИНН: 02508201610067 [16:21:24]line Контрольно-Кассовый Чек [16:21:24]line ПРОДАЖА [16:21:24]line ТРК (МРК, ГНК) : 31 [16:21:24]line Товар: 2710194240 [16:21:24]line D-ENERGY Дт-К-2 [16:21:24]line 16.840 * 77.20 [16:21:24]line = 1300.05 [16:21:24]line НДС 12% НСП 1% [16:21:24]line > о реализуемом товаре [16:21:24]line ОКРУГЛЕНИЕ: -0.05 [16:21:24]line ИТОГО: 1300.00 [16:21:24]line Внесено: 1300.00 [16:21:24]line СДАЧА: 0.00 [16:21:24]line НСП 1% : 11.50 [16:21:24]line НДС 12% : 138.06 [16:21:24]line Наличными: 1300.00 [16:21:24]line Безнал.: 0.00 [16:21:24]line Место: АЗС № 85 "Партнер Нефть" [16:21:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:21:24]line СНО: Общий режим [16:21:24]line Чек 210 23.10.2024 16:21 [16:21:24]line Смена: 196 ФФД: 1.0 [16:21:24]line ЗНМ: 0300000167 [16:21:24]line РНМ: 0000000000156251 [16:21:24]line Версия ККМ: v1.0 [16:21:24]line ФМ: 0000000000963346 [16:21:24]line ФД: 70694 [16:21:24]line ФПД: 140283824341677 [16:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162124&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70694&fm=140283824341677&tin=02508201610067®Number=0000000000156251&sum=130000 [16:21:24]OFD Sender: Processing packet 70694 [packets to send 18, broken 17] [16:21:24]ProducePacketName [16:21:24]name=ofd_packets/00070694 [16:21:24]OFD Sender: To server: pG, [16:21:24]CommunicateWithHost lk.salyk.kg:30040 [16:21:24]ConnectInit lk.salyk.kg [16:21:24]written 0, free lines is 4095 [16:21:25]Connected sock=10 [16:21: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 15 01 00 00 D9 AD 0D 01 90 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 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 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 D2 00 00 00 F4 03 04 00 84 22 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 7F 96 5F 84 82 AD D6 70 67 01 B3 0F 70 9E [16:21: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 DF DB 47 00 CE 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 26 14 01 00 F4 03 04 00 22 CC 18 67 B6 04 01 00 00 C4 9D B4 A4 87 12 F8 8D [16:21:25]CommunicateWithHost err = 0 [16:21:25]CheckOFDResponse [16:21:25]1017 (14) - 77093643461234 [16:21:25]1041 (16) - 0000000000963346 [16:21:25]1040 (4) - 70694 [16:21:25]1012 (4) - 23.10.2024 10:12 [16:21:25]1206 (1) - 0 [16:21:25]OFD Sender: Remove packet 70694 [16:21:25]ProducePacketName [16:21:25]name=ofd_packets/00070694 [16:21:25]NVStorageDeleteData [16:21:25]Write to MH i2c: 01 00 00 A3 1A BD [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 07 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 EF 0C BF [16:21:25]RasterBufferAndPrint [16:21:25]line [16:21:25]line [16:21:25]line [16:21:25]line [16:21:25]line [16:21:25]written 0, free lines is 3317 [16:21:25]MH_Cut [16:21:25]Write to MH i2c: D1 01 00 AA 1A 01 96 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: D1 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: D1 01 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: D1 01 00 AA 1A 00 95 [16:21:25]Write to MH i2c: 01 00 00 AB 1A C5 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]OFD Sender: No OFD packet to send [16:21:26]*** Cut start [16:21:26]*** Partial cut [16:21:26]*** CUTSNS_PIN = 1 [16:21:26]*** CUTSNS_PIN = 0 [16:21:26]*** Brake cut motor [16:21:26]Read from MH i2c: 01 [16:21:26]MH_I2C_Read... [16:21:26]*** Stop cut motor [16:21:26]*** Cut end [16:21:26]Read from MH i2c: 01 07 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: 01 07 00 AB 1A 00 00 00 00 00 FF 0F DA [16:21:26]process_action close_receipt done [16:21:26]requested_data is exist [16:21:26]produce_requested_data [16:21:26]requested_item fm.sn is exist - process it [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 11 00 00 [16:21:26]Write to MH i2c: E2 08 00 AC 1A 80 11 00 00 00 00 00 00 40 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 17 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 17 00 AC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [16:21:26]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:26]wFMCommunicate OK [16:21:26]requested_item fd.num is exist - process it [16:21:26]SAM_PROTO_GetFieldsCounters [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 13 00 00 [16:21:26]Write to MH i2c: E2 08 00 AD 1A 80 13 00 00 00 00 00 00 43 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 62 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 62 00 AD 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 26 14 01 00 0E 04 04 00 C4 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 D3 [16:21: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 14 01 00 0E 04 04 00 C4 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 [16:21:26]wFMCommunicate OK [16:21:26]SAM_PROTO_GetFieldsCounters done [16:21:26]requested_item shift.num is exist - process it [16:21:26]requested_item shift.opened is exist - process it [16:21:26]req_shift_opened [16:21:26]FM_GetShiftState [16:21:26]SAM_PROTO_GetShiftState [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 13 01 00 [16:21:26]Write to MH i2c: E2 08 00 AE 1A 80 13 01 00 00 00 00 00 45 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 AE 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D2 [16:21:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:21:26]wFMCommunicate OK [16:21:26]SAM_PROTO_GetShiftState done [16:21:26]FM_GetShiftState done [16:21:26]req_shift_opened done [16:21:26]requested_item shift.open_date is exist - process it [16:21:26]req_shift_open_date [16:21:26]req_shift_open_date done [16:21:26]produce_requested_data done [16:21:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70694,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:21:26]process_action_free close_receipt [16:21:26]json_value_free [16:21:26]json_value_free done [16:21:26]process_json_proto returns [16:21:26]Send response to host [16:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70694,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:21:26]free response buf [16:21:26]execute_script done [16:21:26]execute_script returns [16:21:26]free content buf [16:21:26]Sock 9.Close socket [16:21:26]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]accept exits with 7 [16:24:55]New connection [16:24:55]New thread 3066891620 created [16:24:55]Thread 3067034980 joined [16:24:55]Waiting for new connection... [16:24:55] Sock 7.Parse request [16:24:55]Sock 7.Check first char [16:24:55]Sock 7.First char is OK [16:24:55]request: POST /json_proto HTTP/1.0 [16:24:55]Method: POST [16:24:55]URL: /json_proto [16:24:55]Method is POST - this is cgi request [16:24:55]url: /json_proto [16:24:55]query_string will be loaded in cgi processing [16:24:55]execute_cgi json_proto POST (null) [16:24:55]execute_cgi path=json_proto method=POST [16:24:55]POST find Content-Length [16:24:55]Host: 172.17.50.3:8080 [16:24:55]Content-Length: 678 [16:24:55]Content-Type: application/json [16:24:55] [16:24:55]POST finish read [16:24:55]Found Content-Length = 678 [16:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886475", "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" : 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" ] } } [16:24:55]execute_script... [16:24: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)2886475", "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" : 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" ] } } [16:24:55]POST & json_proto [16:24:55]process_json_proto [16:24:55]json parsed OK: [16:24:55]protocol is kg_v1.0 [16:24:55]action value=close_receipt [16:24:55]process_action close_receipt [16:24:55]cmd_close_receipt [16:24:55]MH_GetDate [16:24:55]Write to MH i2c: F0 00 00 AF 1A B8 [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 AF 1A 00 59 23 19 67 6B 98 1E 66 44 [16:24:55]GetLastDocTimeStamp 1729700484 [16:24:55]current date 1729700697 [16:24:55]FM_GetShiftState [16:24:55]SAM_PROTO_GetShiftState [16:24:55]wFMCommunicate request_size=4 [16:24:55]MH_SAM_APDU [16:24:55]CAPDU: 80 13 01 00 [16:24:55]Write to MH i2c: E2 08 00 B0 1A 80 13 01 00 00 00 00 00 47 [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:55]Read from MH i2c: E2 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 B0 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D4 [16:24:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:24:55]wFMCommunicate OK [16:24:55]SAM_PROTO_GetShiftState done [16:24:55]FM_GetShiftState done [16:24:55]opened in 1729642435 [16:24:55]opened+sec_in_day 1729728835 [16:24:55]quantity*price = 60009 [16:24:55]sum+1 = 60010 [16:24:55]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 СНО: Общий режим Чек 211 23.10.2024 16:24 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70695 ФПД: 22633083590939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70695&fm=22633083590939&tin=02508201610067®Number=0000000000156251&sum=60000 [16:24:56]StoreToDocumentArchive [16:24:56]shift 196 fd 70695 [16:24:56]save to /storage/0196/doc_00070695 [16:24:56]save last doc name /storage/0196/doc_00070695 to /storage/kkm_last_doc_name [16:24:56]save OK [16:24:56]Clear old archive folders... [16:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:56]tlvbuf is 00190CA0 [16:24:56]SAM_PROTO_ClearQueue [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 09 00 00 [16:24:56]Write to MH i2c: E2 08 00 BD 1A 80 09 00 00 00 00 00 00 49 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_ClearQueue done [16:24:56]KKMCreateOFDPacket [16:24:56]OFDProtocolAddRootSTLVToBuf [16:24:56]FM_MakeSignedData [16:24:56]FM_MakeSignedData [16:24:56]SAM_PROTO_SignData [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 01 02 [16:24:56]Write to MH i2c: E2 08 00 BE 1A 80 0D 01 02 00 00 00 00 51 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=255 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 59 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 [16:24:56]Write to MH i2c: E2 02 01 BF 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 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 D3 00 00 00 F4 03 04 00 59 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 00 00 9A [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=10 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 02 02 05 95 AC E8 59 1B [16:24:56]Write to MH i2c: E2 0D 00 C0 1A 80 0D 02 02 05 00 95 AC E8 59 1B 00 00 FB [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 03 02 [16:24:56]Write to MH i2c: E2 08 00 C1 1A 80 0D 03 02 00 00 00 00 56 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0B 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0B 00 C1 1A 00 8A 37 D5 15 0F 43 AA 82 90 00 80 [16:24:56]RAPDU: 8A 37 D5 15 0F 43 AA 82 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_SignData done [16:24:56]FM_MakeSignedData done [16:24:56]CreateOFDProtocolMessage [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 11 00 00 [16:24:56]Write to MH i2c: E2 08 00 C2 1A 80 11 00 00 00 00 00 00 56 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 C2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [16:24: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:24:56]wFMCommunicate OK [16:24:56]CreateOFDProtocolMessage done [16:24:56]OFDSenderStorePacket 70695 [16:24:56]StoreOFDPacket docnum=70695 [16:24: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 E2 38 07 01 2F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 59 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 95 AC E8 59 1B 8A 37 D5 15 0F 43 AA 82 [16:24:56]CheckFolder [16:24:56]dirname=/storage/ofd_packets [16:24:56]CheckFolder done [16:24:56]ProducePacketName [16:24:56]name=ofd_packets/00070695 [16:24:56]NVStorageSaveData ofd_packets/00070695 [16:24:56]File name is /storage/ofd_packets/00070695 [16:24:56]Write 301 bytes [16:24:56]NVStorageSaveData done [16:24:56]OFDSenderStorePacket done [16:24:56]KKMCreateOFDPacket done [16:24:56]NVStorageSaveData kkm_last_timestamp [16:24:56]File name is /storage/kkm_last_timestamp [16:24:56]Write 4 bytes [16:24:56]NVStorageSaveData done [16:24:56]ExternCall_PrintAddStr [16:24:56]wPrintStart [16:24:56]Write to MH i2c: 01 00 00 C3 1A DD [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: 01 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: 01 07 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: 01 07 00 C3 1A 00 00 00 00 00 FF 0F F2 [16:24:56]RasterBufferAndPrint [16:24:56]line Счет N : (1)2886475 [16:24:56]line ИНН: 02508201610067 [16:24:56]line Контрольно-Кассовый Чек [16:24:56]line ПРОДАЖА [16:24:56]line ТРК (МРК, ГНК) : 32 [16:24:56]line Товар: 2710124130 [16:24:56]line Аи-92-К-5 [16:24:56]line 8.970 * 66.90 [16:24:56]line = 600.09 [16:24:56]line НДС 12% НСП 1% [16:24:56]line > о реализуемом товаре [16:24:56]line ОКРУГЛЕНИЕ: -0.09 [16:24:56]line ИТОГО: 600.00 [16:24:56]line Внесено: 600.00 [16:24:56]line СДАЧА: 0.00 [16:24:56]line НСП 1% : 5.31 [16:24:56]line НДС 12% : 63.73 [16:24:56]line Наличными: 600.00 [16:24:56]line Безнал.: 0.00 [16:24:56]line Место: АЗС № 85 "Партнер Нефть" [16:24:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:24:56]line СНО: Общий режим [16:24:56]line Чек 211 23.10.2024 16:24 [16:24:56]line Смена: 196 ФФД: 1.0 [16:24:56]line ЗНМ: 0300000167 [16:24:56]line РНМ: 0000000000156251 [16:24:56]line Версия ККМ: v1.0 [16:24:56]line ФМ: 0000000000963346 [16:24:56]line ФД: 70695 [16:24:56]line ФПД: 22633083590939 [16:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70695&fm=22633083590939&tin=02508201610067®Number=0000000000156251&sum=60000 [16:24:57]OFD Sender: Processing packet 70695 [packets to send 18, broken 17] [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00070695 [16:24:57]OFD Sender: To server: pG, [16:24:57]CommunicateWithHost lk.salyk.kg:30040 [16:24:57]ConnectInit lk.salyk.kg [16:24:57]written 0, free lines is 4095 [16:24:57]Connected sock=10 [16:24: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 E2 38 07 01 2F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 59 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 95 AC E8 59 1B 8A 37 D5 15 0F 43 AA 82 [16:24: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 00 76 47 00 74 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 27 14 01 00 F4 03 04 00 F6 CC 18 67 B6 04 01 00 00 89 E7 DE FB 51 9E 00 85 [16:24:57]CommunicateWithHost err = 0 [16:24:57]CheckOFDResponse [16:24:57]1017 (14) - 77093643461234 [16:24:57]1041 (16) - 0000000000963346 [16:24:57]1040 (4) - 70695 [16:24:57]1012 (4) - 23.10.2024 10:16 [16:24:57]1206 (1) - 0 [16:24:57]OFD Sender: Remove packet 70695 [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00070695 [16:24:57]NVStorageDeleteData [16:24:57]Write to MH i2c: 01 00 00 EE 1A 08 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 EE 1A 00 00 00 00 00 EE 0C 09 [16:24:57]RasterBufferAndPrint [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]written 0, free lines is 3316 [16:24:57]MH_Cut [16:24:57]Write to MH i2c: D1 01 00 F5 1A 01 E1 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 F5 1A 00 E0 [16:24:57]Write to MH i2c: 01 00 00 F6 1A 10 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:58]OFD Sender: No OFD packet to send [16:24:58]*** Cut start [16:24:58]*** Partial cut [16:24:58]*** CUTSNS_PIN = 1 [16:24:58]*** CUTSNS_PIN = 0 [16:24:58]*** Brake cut motor [16:24:58]Read from MH i2c: 01 [16:24:58]MH_I2C_Read... [16:24:58]*** Stop cut motor [16:24:58]*** Cut end [16:24:58]Read from MH i2c: 01 07 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 07 00 F6 1A 00 00 00 00 00 FF 0F 25 [16:24:58]process_action close_receipt done [16:24:58]requested_data is exist [16:24:58]produce_requested_data [16:24:58]requested_item fm.sn is exist - process it [16:24:58]wFMCommunicate request_size=4 [16:24:58]MH_SAM_APDU [16:24:58]CAPDU: 80 11 00 00 [16:24:58]Write to MH i2c: E2 08 00 F7 1A 80 11 00 00 00 00 00 00 8B [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 F7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [16:24: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:24:59]wFMCommunicate OK [16:24:59]requested_item fd.num is exist - process it [16:24:59]SAM_PROTO_GetFieldsCounters [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 00 00 [16:24:59]Write to MH i2c: E2 08 00 F8 1A 80 13 00 00 00 00 00 00 8E [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 F8 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 27 14 01 00 0E 04 04 00 C4 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 22 [16:24: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 27 14 01 00 0E 04 04 00 C4 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 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetFieldsCounters done [16:24:59]requested_item shift.num is exist - process it [16:24:59]requested_item shift.opened is exist - process it [16:24:59]req_shift_opened [16:24:59]FM_GetShiftState [16:24:59]SAM_PROTO_GetShiftState [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 01 00 [16:24:59]Write to MH i2c: E2 08 00 F9 1A 80 13 01 00 00 00 00 00 90 [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 F9 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [16:24:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetShiftState done [16:24:59]FM_GetShiftState done [16:24:59]req_shift_opened done [16:24:59]requested_item shift.open_date is exist - process it [16:24:59]req_shift_open_date [16:24:59]req_shift_open_date done [16:24:59]produce_requested_data done [16:24:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70695,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:24:59]process_action_free close_receipt [16:24:59]json_value_free [16:24:59]json_value_free done [16:24:59]process_json_proto returns [16:24:59]Send response to host [16:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70695,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:24:59]free response buf [16:24:59]execute_script done [16:24:59]execute_script returns [16:24:59]free content buf [16:24:59]Sock 7.Close socket [16:24:59]Sock 7.Thread stoped [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [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:23]accept exits with 9 [16:26:23]New connection [16:26:23]New thread 3067034980 created [16:26:23]Thread 3066891620 joined [16:26:23]Waiting for new connection... [16:26:23] Sock 9.Parse request [16:26:23]Sock 9.Check first char [16:26:23]Sock 9.First char is OK [16:26:23]request: POST /json_proto HTTP/1.0 [16:26:23]Method: POST [16:26:23]URL: /json_proto [16:26:23]Method is POST - this is cgi request [16:26:23]url: /json_proto [16:26:23]query_string will be loaded in cgi processing [16:26:23]execute_cgi json_proto POST (null) [16:26:23]execute_cgi path=json_proto method=POST [16:26:23]POST find Content-Length [16:26:23]Host: 172.17.50.3:8080 [16:26:23]Content-Length: 678 [16:26:23]Content-Type: application/json [16:26:23] [16:26:23]POST finish read [16:26:23]Found Content-Length = 678 [16:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886478", "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" ] } } [16:26:23]execute_script... [16:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886478", "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" ] } } [16:26:23]POST & json_proto [16:26:23]process_json_proto [16:26:23]json parsed OK: [16:26:23]protocol is kg_v1.0 [16:26:23]action value=close_receipt [16:26:23]process_action close_receipt [16:26:23]cmd_close_receipt [16:26:23]MH_GetDate [16:26:23]Write to MH i2c: F0 00 00 FA 1A 03 [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 09 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 09 00 FA 1A 00 B1 23 19 67 6B 98 1E 66 E7 [16:26:23]GetLastDocTimeStamp 1729700697 [16:26:23]current date 1729700785 [16:26:23]FM_GetShiftState [16:26:23]SAM_PROTO_GetShiftState [16:26:23]wFMCommunicate request_size=4 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 13 01 00 [16:26:23]Write to MH i2c: E2 08 00 FB 1A 80 13 01 00 00 00 00 00 92 [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 FB 1A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1F [16:26:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:23]wFMCommunicate OK [16:26:23]SAM_PROTO_GetShiftState done [16:26:23]FM_GetShiftState done [16:26:23]opened in 1729642435 [16:26:23]opened+sec_in_day 1729728835 [16:26:23]quantity*price = 50041 [16:26:23]sum+1 = 50042 [16:26: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 СНО: Общий режим Чек 212 23.10.2024 16:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70696 ФПД: 276204314614055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70696&fm=276204314614055&tin=02508201610067®Number=0000000000156251&sum=50000 [16:26:24]StoreToDocumentArchive [16:26:24]shift 196 fd 70696 [16:26:24]save to /storage/0196/doc_00070696 [16:26:24]save last doc name /storage/0196/doc_00070696 to /storage/kkm_last_doc_name [16:26:24]save OK [16:26:24]Clear old archive folders... [16:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:24]tlvbuf is 00145E70 [16:26:24]SAM_PROTO_ClearQueue [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 09 00 00 [16:26:24]Write to MH i2c: E2 08 00 08 1B 80 09 00 00 00 00 00 00 95 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_ClearQueue done [16:26:24]KKMCreateOFDPacket [16:26:24]OFDProtocolAddRootSTLVToBuf [16:26:24]FM_MakeSignedData [16:26:24]FM_MakeSignedData [16:26:24]SAM_PROTO_SignData [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 01 02 [16:26:24]Write to MH i2c: E2 08 00 09 1B 80 0D 01 02 00 00 00 00 9D [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=255 [16:26:24]MH_SAM_APDU [16:26: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 D4 00 00 00 F4 03 04 00 B1 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB [16:26:24]Write to MH i2c: E2 02 01 0A 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 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 D4 00 00 00 F4 03 04 00 B1 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB 00 00 4A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 0A 1B 00 90 00 99 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=10 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 02 02 05 34 D4 0E D9 27 [16:26:24]Write to MH i2c: E2 0D 00 0B 1B 80 0D 02 02 05 00 34 D4 0E D9 27 00 00 C0 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 03 02 [16:26:24]Write to MH i2c: E2 08 00 0C 1B 80 0D 03 02 00 00 00 00 A2 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 0C 1B 00 46 92 50 0D 73 5A 2F B2 90 00 86 [16:26:24]RAPDU: 46 92 50 0D 73 5A 2F B2 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_SignData done [16:26:24]FM_MakeSignedData done [16:26:24]CreateOFDProtocolMessage [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 11 00 00 [16:26:24]Write to MH i2c: E2 08 00 0D 1B 80 11 00 00 00 00 00 00 A2 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 0D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [16:26:24]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:24]wFMCommunicate OK [16:26:24]CreateOFDProtocolMessage done [16:26:24]OFDSenderStorePacket 70696 [16:26:24]StoreOFDPacket docnum=70696 [16:26: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 25 55 07 01 23 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 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 D4 00 00 00 F4 03 04 00 B1 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB 34 D4 0E D9 27 46 92 50 0D 73 5A 2F B2 [16:26:24]CheckFolder [16:26:24]dirname=/storage/ofd_packets [16:26:24]CheckFolder done [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00070696 [16:26:24]NVStorageSaveData ofd_packets/00070696 [16:26:24]File name is /storage/ofd_packets/00070696 [16:26:24]Write 301 bytes [16:26:24]NVStorageSaveData done [16:26:24]OFDSenderStorePacket done [16:26:24]KKMCreateOFDPacket done [16:26:24]NVStorageSaveData kkm_last_timestamp [16:26:24]File name is /storage/kkm_last_timestamp [16:26:24]Write 4 bytes [16:26:24]NVStorageSaveData done [16:26:24]OFD Sender: Processing packet 70696 [packets to send 18, broken 17] [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00070696 [16:26:24]OFD Sender: To server: pG, [16:26:24]CommunicateWithHost lk.salyk.kg:30040 [16:26:24]ConnectInit lk.salyk.kg [16:26:24]ExternCall_PrintAddStr [16:26:24]wPrintStart [16:26:24]Write to MH i2c: 01 00 00 0E 1B 29 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 FF 0F 3E [16:26:24]RasterBufferAndPrint [16:26:24]line Счет N : (1)2886478 [16:26:24]line ИНН: 02508201610067 [16:26:24]line Контрольно-Кассовый Чек [16:26:24]line ПРОДАЖА [16:26:24]line ТРК (МРК, ГНК) : 12 [16:26:24]line Товар: 2710124130 [16:26:24]line Аи-92-К-5 [16:26:24]line 7.480 * 66.90 [16:26:24]line = 500.41 [16:26:24]line НДС 12% НСП 1% [16:26:24]line > о реализуемом товаре [16:26:24]line ОКРУГЛЕНИЕ: -0.41 [16:26:24]line ИТОГО: 500.00 [16:26:24]line Внесено: 500.00 [16:26:24]line СДАЧА: 0.00 [16:26:24]line НСП 1% : 4.43 [16:26:24]line НДС 12% : 53.14 [16:26:24]line Наличными: 500.00 [16:26:24]line Безнал.: 0.00 [16:26:24]line Место: АЗС № 85 "Партнер Нефть" [16:26:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:24]line СНО: Общий режим [16:26:24]line Чек 212 23.10.2024 16:26 [16:26:24]line Смена: 196 ФФД: 1.0 [16:26:24]line ЗНМ: 0300000167 [16:26:25]line РНМ: 0000000000156251 [16:26:25]line Версия ККМ: v1.0 [16:26:25]line ФМ: 0000000000963346 [16:26:25]line ФД: 70696 [16:26:25]line ФПД: 276204314614055 [16:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70696&fm=276204314614055&tin=02508201610067®Number=0000000000156251&sum=50000 [16:26:25]Connected sock=10 [16:26: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 25 55 07 01 23 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 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 D4 00 00 00 F4 03 04 00 B1 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB 34 D4 0E D9 27 46 92 50 0D 73 5A 2F B2 [16:26:25]written 0, free lines is 4095 [16:26: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 0E 47 00 93 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 28 14 01 00 F4 03 04 00 4E CD 18 67 B6 04 01 00 00 DB F4 6C E2 83 52 CE C1 [16:26:25]CommunicateWithHost err = 0 [16:26:25]CheckOFDResponse [16:26:25]1017 (14) - 77093643461234 [16:26:25]1041 (16) - 0000000000963346 [16:26:25]1040 (4) - 70696 [16:26:25]1012 (4) - 23.10.2024 10:17 [16:26:25]1206 (1) - 0 [16:26:25]OFD Sender: Remove packet 70696 [16:26:25]ProducePacketName [16:26:25]name=ofd_packets/00070696 [16:26:25]NVStorageDeleteData [16:26:25]Write to MH i2c: 01 00 00 39 1B 54 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 E4 0C 4B [16:26:25]RasterBufferAndPrint [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]written 0, free lines is 3306 [16:26:25]MH_Cut [16:26:25]Write to MH i2c: D1 01 00 40 1B 01 2D [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 40 1B 00 2C [16:26:25]Write to MH i2c: 01 00 00 41 1B 5C [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]OFD Sender: No OFD packet to send [16:26:26]*** Cut start [16:26:26]*** Partial cut [16:26:26]*** CUTSNS_PIN = 1 [16:26:26]*** CUTSNS_PIN = 0 [16:26:26]*** Brake cut motor [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]*** Stop cut motor [16:26:26]*** Cut end [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 FF 0F 71 [16:26:26]process_action close_receipt done [16:26:26]requested_data is exist [16:26:26]produce_requested_data [16:26:26]requested_item fm.sn is exist - process it [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 17 00 [16:26:27]MH_I2C_Read... [16:26:27]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 [16:26: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:26:27]wFMCommunicate OK [16:26:27]requested_item fd.num is exist - process it [16:26:27]SAM_PROTO_GetFieldsCounters [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 13 00 00 [16:26:27]Write to MH i2c: E2 08 00 43 1B 80 13 00 00 00 00 00 00 DA [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 62 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 62 00 43 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 28 14 01 00 0E 04 04 00 C4 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 72 [16:26: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 28 14 01 00 0E 04 04 00 C4 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 [16:26:27]wFMCommunicate OK [16:26:27]SAM_PROTO_GetFieldsCounters done [16:26:27]requested_item shift.num is exist - process it [16:26:27]requested_item shift.opened is exist - process it [16:26:27]req_shift_opened [16:26:27]FM_GetShiftState [16:26:27]SAM_PROTO_GetShiftState [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 13 01 00 [16:26:27]Write to MH i2c: E2 08 00 44 1B 80 13 01 00 00 00 00 00 DC [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 0E 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 0E 00 44 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 69 [16:26:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:27]wFMCommunicate OK [16:26:27]SAM_PROTO_GetShiftState done [16:26:27]FM_GetShiftState done [16:26:27]req_shift_opened done [16:26:27]requested_item shift.open_date is exist - process it [16:26:27]req_shift_open_date [16:26:27]req_shift_open_date done [16:26:27]produce_requested_data done [16:26:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70696,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:26:27]process_action_free close_receipt [16:26:27]json_value_free [16:26:27]json_value_free done [16:26:27]process_json_proto returns [16:26:27]Send response to host [16:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70696,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:26:27]free response buf [16:26:27]execute_script done [16:26:27]execute_script returns [16:26:27]free content buf [16:26:27]Sock 9.Close socket [16:26:27]Sock 9.Thread stoped [16:26:30]OFD Sender: No OFD packet to send [16:26:33]accept exits with 7 [16:26:33]New connection [16:26:33]New thread 3066891620 created [16:26:33]Thread 3067034980 joined [16:26:33]Waiting for new connection... [16:26:33] Sock 7.Parse request [16:26:33]Sock 7.Check first char [16:26:33]Sock 7.First char is OK [16:26:33]request: POST /json_proto HTTP/1.0 [16:26:33]Method: POST [16:26:33]URL: /json_proto [16:26:33]Method is POST - this is cgi request [16:26:33]url: /json_proto [16:26:33]query_string will be loaded in cgi processing [16:26:33]execute_cgi json_proto POST (null) [16:26:33]execute_cgi path=json_proto method=POST [16:26:33]POST find Content-Length [16:26:33]Host: 172.17.50.3:8080 [16:26:33]Content-Length: 683 [16:26:33]Content-Type: application/json [16:26:33] [16:26:33]POST finish read [16:26:33]Found Content-Length = 683 [16:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886477", "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" ] } } [16:26:33]execute_script... [16:26: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)2886477", "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" ] } } [16:26:33]POST & json_proto [16:26:33]process_json_proto [16:26:33]json parsed OK: [16:26:33]protocol is kg_v1.0 [16:26:33]action value=close_receipt [16:26:33]process_action close_receipt [16:26:33]cmd_close_receipt [16:26:33]MH_GetDate [16:26:33]Write to MH i2c: F0 00 00 45 1B 4F [16:26:33]Write i2c OK [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: F0 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: F0 09 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: F0 09 00 45 1B 00 BA 23 19 67 6B 98 1E 66 3C [16:26:33]GetLastDocTimeStamp 1729700785 [16:26:33]current date 1729700794 [16:26:33]FM_GetShiftState [16:26:33]SAM_PROTO_GetShiftState [16:26:33]wFMCommunicate request_size=4 [16:26:33]MH_SAM_APDU [16:26:33]CAPDU: 80 13 01 00 [16:26:33]Write to MH i2c: E2 08 00 46 1B 80 13 01 00 00 00 00 00 DE [16:26:33]Write i2c OK [16:26:33]MH_I2C_Read... [16:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:33]Read from MH i2c: E2 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 0E 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 0E 00 46 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6B [16:26:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:33]wFMCommunicate OK [16:26:33]SAM_PROTO_GetShiftState done [16:26:33]FM_GetShiftState done [16:26:33]opened in 1729642435 [16:26:33]opened+sec_in_day 1729728835 [16:26:33]quantity*price = 200031 [16:26:33]sum+1 = 200032 [16:26:33]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 СНО: Общий режим Чек 213 23.10.2024 16:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70697 ФПД: 201964034876893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70697&fm=201964034876893&tin=02508201610067®Number=0000000000156251&sum=200000 [16:26:34]StoreToDocumentArchive [16:26:34]shift 196 fd 70697 [16:26:34]save to /storage/0196/doc_00070697 [16:26:34]save last doc name /storage/0196/doc_00070697 to /storage/kkm_last_doc_name [16:26:34]save OK [16:26:34]Clear old archive folders... [16:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:34]tlvbuf is B6EBC990 [16:26:34]SAM_PROTO_ClearQueue [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 09 00 00 [16:26:34]Write to MH i2c: E2 08 00 53 1B 80 09 00 00 00 00 00 00 E0 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [16:26:34]RAPDU: 90 00 [16:26:34]wFMCommunicate OK [16:26:34]SAM_PROTO_ClearQueue done [16:26:34]KKMCreateOFDPacket [16:26:34]OFDProtocolAddRootSTLVToBuf [16:26:34]FM_MakeSignedData [16:26:34]FM_MakeSignedData [16:26:34]SAM_PROTO_SignData [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 0D 01 02 [16:26:34]Write to MH i2c: E2 08 00 54 1B 80 0D 01 02 00 00 00 00 E8 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 54 1B 00 90 00 E3 [16:26:34]RAPDU: 90 00 [16:26:34]wFMCommunicate OK [16:26:34]wFMCommunicate request_size=255 [16:26:34]MH_SAM_APDU [16:26: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 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 D5 00 00 00 F4 03 04 00 BB 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B7 [16:26:34]Write to MH i2c: E2 02 01 55 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 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 D5 00 00 00 F4 03 04 00 BB 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B7 00 00 9F [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [16:26:34]RAPDU: 90 00 [16:26:34]wFMCommunicate OK [16:26:34]wFMCommunicate request_size=10 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 0D 02 02 05 AF 6A 8E 65 DD [16:26:34]Write to MH i2c: E2 0D 00 56 1B 80 0D 02 02 05 00 AF 6A 8E 65 DD 00 00 DE [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [16:26:34]RAPDU: 90 00 [16:26:34]wFMCommunicate OK [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 0D 03 02 [16:26:34]Write to MH i2c: E2 08 00 57 1B 80 0D 03 02 00 00 00 00 ED [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0B 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 0B 00 57 1B 00 8D C2 D4 25 3E E9 35 5E 90 00 F0 [16:26:34]RAPDU: 8D C2 D4 25 3E E9 35 5E 90 00 [16:26:34]wFMCommunicate OK [16:26:34]SAM_PROTO_SignData done [16:26:34]FM_MakeSignedData done [16:26:34]CreateOFDProtocolMessage [16:26:34]wFMCommunicate request_size=4 [16:26:34]MH_SAM_APDU [16:26:34]CAPDU: 80 11 00 00 [16:26:34]Write to MH i2c: E2 08 00 58 1B 80 11 00 00 00 00 00 00 ED [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:34]Read from MH i2c: E2 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 17 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: E2 17 00 58 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [16:26: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:26:34]wFMCommunicate OK [16:26:34]CreateOFDProtocolMessage done [16:26:34]OFDSenderStorePacket 70697 [16:26:34]StoreOFDPacket docnum=70697 [16:26: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 E5 E7 07 01 4C 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 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 D5 00 00 00 F4 03 04 00 BB 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B7 AF 6A 8E 65 DD 8D C2 D4 25 3E E9 35 5E [16:26:34]CheckFolder [16:26:34]dirname=/storage/ofd_packets [16:26:34]CheckFolder done [16:26:34]ProducePacketName [16:26:34]name=ofd_packets/00070697 [16:26:34]NVStorageSaveData ofd_packets/00070697 [16:26:34]File name is /storage/ofd_packets/00070697 [16:26:34]Write 301 bytes [16:26:34]NVStorageSaveData done [16:26:34]OFDSenderStorePacket done [16:26:34]KKMCreateOFDPacket done [16:26:34]NVStorageSaveData kkm_last_timestamp [16:26:34]File name is /storage/kkm_last_timestamp [16:26:34]Write 4 bytes [16:26:34]NVStorageSaveData done [16:26:34]ExternCall_PrintAddStr [16:26:34]wPrintStart [16:26:34]Write to MH i2c: 01 00 00 59 1B 74 [16:26:34]Write i2c OK [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: 01 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: 01 07 00 [16:26:34]MH_I2C_Read... [16:26:34]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 FF 0F 89 [16:26:34]RasterBufferAndPrint [16:26:34]line Счет N : (1)2886477 [16:26:34]line ИНН: 02508201610067 [16:26:34]line Контрольно-Кассовый Чек [16:26:34]line ПРОДАЖА [16:26:34]line ТРК (МРК, ГНК) : 42 [16:26:34]line Товар: 2710124130 [16:26:34]line Аи-92-К-5 [16:26:34]line 29.900 * 66.90 [16:26:34]line = 2000.31 [16:26:34]line НДС 12% НСП 1% [16:26:34]line > о реализуемом товаре [16:26:34]line ОКРУГЛЕНИЕ: -0.31 [16:26:34]line ИТОГО: 2000.00 [16:26:34]line Внесено: 2000.00 [16:26:34]line СДАЧА: 0.00 [16:26:34]line НСП 1% : 17.70 [16:26:34]line НДС 12% : 212.42 [16:26:34]line Наличными: 2000.00 [16:26:34]line Безнал.: 0.00 [16:26:34]line Место: АЗС № 85 "Партнер Нефть" [16:26:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:34]line СНО: Общий режим [16:26:34]line Чек 213 23.10.2024 16:26 [16:26:34]line Смена: 196 ФФД: 1.0 [16:26:34]line ЗНМ: 0300000167 [16:26:34]line РНМ: 0000000000156251 [16:26:34]line Версия ККМ: v1.0 [16:26:34]line ФМ: 0000000000963346 [16:26:34]line ФД: 70697 [16:26:34]line ФПД: 201964034876893 [16:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70697&fm=201964034876893&tin=02508201610067®Number=0000000000156251&sum=200000 [16:26:34]written 0, free lines is 4095 [16:26:34]OFD Sender: Processing packet 70697 [packets to send 18, broken 17] [16:26:34]ProducePacketName [16:26:34]name=ofd_packets/00070697 [16:26:34]OFD Sender: To server: pG, [16:26:34]CommunicateWithHost lk.salyk.kg:30040 [16:26:34]ConnectInit lk.salyk.kg [16:26:34]Connected sock=10 [16:26: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 E5 E7 07 01 4C 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 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 D5 00 00 00 F4 03 04 00 BB 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B7 AF 6A 8E 65 DD 8D C2 D4 25 3E E9 35 5E [16:26: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 C8 00 47 00 26 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 29 14 01 00 F4 03 04 00 58 CD 18 67 B6 04 01 00 00 2A 5A B9 EA DF A2 78 99 [16:26:35]CommunicateWithHost err = 0 [16:26:35]CheckOFDResponse [16:26:35]1017 (14) - 77093643461234 [16:26:35]1041 (16) - 0000000000963346 [16:26:35]1040 (4) - 70697 [16:26:35]1012 (4) - 23.10.2024 10:18 [16:26:35]1206 (1) - 0 [16:26:35]OFD Sender: Remove packet 70697 [16:26:35]ProducePacketName [16:26:35]name=ofd_packets/00070697 [16:26:35]NVStorageDeleteData [16:26:35]Write to MH i2c: 01 00 00 84 1B 9F [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 07 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: 01 07 00 84 1B 00 00 00 00 00 FF 0C B1 [16:26:35]RasterBufferAndPrint [16:26:35]line [16:26:35]line [16:26:35]line [16:26:35]line [16:26:35]line [16:26:35]written 0, free lines is 3337 [16:26:35]MH_Cut [16:26:35]Write to MH i2c: D1 01 00 8B 1B 01 78 [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: D1 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: D1 01 00 [16:26:35]MH_I2C_Read... [16:26:35]Read from MH i2c: D1 01 00 8B 1B 00 77 [16:26:35]Write to MH i2c: 01 00 00 8C 1B A7 [16:26:35]Write i2c OK [16:26:35]MH_I2C_Read... [16:26:35]OFD Sender: No OFD packet to send [16:26:35]*** Cut start [16:26:35]*** Partial cut [16:26:35]*** CUTSNS_PIN = 1 [16:26:35]*** CUTSNS_PIN = 0 [16:26:36]*** Brake cut motor [16:26:36]Read from MH i2c: 01 [16:26:36]MH_I2C_Read... [16:26:36]*** Stop cut motor [16:26:36]*** Cut end [16:26:36]Read from MH i2c: 01 07 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 FF 0F BC [16:26:36]process_action close_receipt done [16:26:36]requested_data is exist [16:26:36]produce_requested_data [16:26:36]requested_item fm.sn is exist - process it [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 11 00 00 [16:26:36]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 17 00 [16:26:36]MH_I2C_Read... [16:26:36]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 [16:26: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:26:36]wFMCommunicate OK [16:26:36]requested_item fd.num is exist - process it [16:26:36]SAM_PROTO_GetFieldsCounters [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 13 00 00 [16:26:36]Write to MH i2c: E2 08 00 8E 1B 80 13 00 00 00 00 00 00 25 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 62 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 62 00 8E 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 29 14 01 00 0E 04 04 00 C4 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 C1 [16:26: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 29 14 01 00 0E 04 04 00 C4 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 [16:26:36]wFMCommunicate OK [16:26:36]SAM_PROTO_GetFieldsCounters done [16:26:36]requested_item shift.num is exist - process it [16:26:36]requested_item shift.opened is exist - process it [16:26:36]req_shift_opened [16:26:36]FM_GetShiftState [16:26:36]SAM_PROTO_GetShiftState [16:26:36]wFMCommunicate request_size=4 [16:26:36]MH_SAM_APDU [16:26:36]CAPDU: 80 13 01 00 [16:26:36]Write to MH i2c: E2 08 00 8F 1B 80 13 01 00 00 00 00 00 27 [16:26:36]Write i2c OK [16:26:36]MH_I2C_Read... [16:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:36]Read from MH i2c: E2 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 0E 00 [16:26:36]MH_I2C_Read... [16:26:36]Read from MH i2c: E2 0E 00 8F 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B4 [16:26:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:36]wFMCommunicate OK [16:26:36]SAM_PROTO_GetShiftState done [16:26:36]FM_GetShiftState done [16:26:36]req_shift_opened done [16:26:36]requested_item shift.open_date is exist - process it [16:26:36]req_shift_open_date [16:26:36]req_shift_open_date done [16:26:36]produce_requested_data done [16:26:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70697,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:26:36]process_action_free close_receipt [16:26:36]json_value_free [16:26:36]json_value_free done [16:26:36]process_json_proto returns [16:26:36]Send response to host [16:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70697,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:26:36]free response buf [16:26:36]execute_script done [16:26:36]execute_script returns [16:26:36]free content buf [16:26:36]Sock 7.Close socket [16:26:36]Sock 7.Thread stoped [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:53]accept exits with 9 [16:26:53]New connection [16:26:53]New thread 3067034980 created [16:26:53]Thread 3066891620 joined [16:26:53]Waiting for new connection... [16:26:53] Sock 9.Parse request [16:26:53]Sock 9.Check first char [16:26:53]Sock 9.First char is OK [16:26:53]request: POST /json_proto HTTP/1.0 [16:26:53]Method: POST [16:26:53]URL: /json_proto [16:26:53]Method is POST - this is cgi request [16:26:53]url: /json_proto [16:26:53]query_string will be loaded in cgi processing [16:26:53]execute_cgi json_proto POST (null) [16:26:53]execute_cgi path=json_proto method=POST [16:26:53]POST find Content-Length [16:26:53]Host: 172.17.50.3:8080 [16:26:53]Content-Length: 790 [16:26:53]Content-Type: application/json [16:26:53] [16:26:53]POST finish read [16:26:53]Found Content-Length = 790 [16:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886476", "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" : 24.930, "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\u000A72836", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:53]execute_script... [16:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886476", "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" : 24.930, "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\u000A72836", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:53]POST & json_proto [16:26:53]process_json_proto [16:26:53]json parsed OK: [16:26:53]protocol is kg_v1.0 [16:26:53]action value=close_receipt [16:26:53]process_action close_receipt [16:26:53]cmd_close_receipt [16:26:53]MH_GetDate [16:26:53]Write to MH i2c: F0 00 00 90 1B 9A [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: F0 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: F0 09 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: F0 09 00 90 1B 00 CF 23 19 67 6B 98 1E 66 9C [16:26:53]GetLastDocTimeStamp 1729700795 [16:26:53]current date 1729700815 [16:26:53]FM_GetShiftState [16:26:53]SAM_PROTO_GetShiftState [16:26:53]wFMCommunicate request_size=4 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 13 01 00 [16:26:53]Write to MH i2c: E2 08 00 91 1B 80 13 01 00 00 00 00 00 29 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 0E 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 0E 00 91 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B6 [16:26:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:53]wFMCommunicate OK [16:26:53]SAM_PROTO_GetShiftState done [16:26:53]FM_GetShiftState done [16:26:53]opened in 1729642435 [16:26:53]opened+sec_in_day 1729728835 [16:26:53]quantity*price = 0 [16:26:53]sum+1 = 1 [16:26: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 СНО: Общий режим Чек 214 23.10.2024 16:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 72836 ФМ: 0000000000963346 ФД: 70698 ФПД: 209799310884508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162655&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70698&fm=209799310884508&tin=02508201610067®Number=0000000000156251&sum=0 [16:26:54]StoreToDocumentArchive [16:26:54]shift 196 fd 70698 [16:26:54]save to /storage/0196/doc_00070698 [16:26:54]save last doc name /storage/0196/doc_00070698 to /storage/kkm_last_doc_name [16:26:54]save OK [16:26:54]Clear old archive folders... [16:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:54]tlvbuf is 00124400 [16:26:54]SAM_PROTO_ClearQueue [16:26:54]wFMCommunicate request_size=4 [16:26:54]MH_SAM_APDU [16:26:54]CAPDU: 80 09 00 00 [16:26:54]Write to MH i2c: E2 08 00 9E 1B 80 09 00 00 00 00 00 00 2B [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:54]Read from MH i2c: E2 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [16:26:54]RAPDU: 90 00 [16:26:54]wFMCommunicate OK [16:26:54]SAM_PROTO_ClearQueue done [16:26:54]KKMCreateOFDPacket [16:26:54]OFDProtocolAddRootSTLVToBuf [16:26:54]FM_MakeSignedData [16:26:54]FM_MakeSignedData [16:26:54]SAM_PROTO_SignData [16:26:54]wFMCommunicate request_size=4 [16:26:54]MH_SAM_APDU [16:26:54]CAPDU: 80 0D 01 02 [16:26:54]Write to MH i2c: E2 08 00 9F 1B 80 0D 01 02 00 00 00 00 33 [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:54]Read from MH i2c: E2 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 9F 1B 00 90 00 2E [16:26:54]RAPDU: 90 00 [16:26:54]wFMCommunicate OK [16:26:54]wFMCommunicate request_size=255 [16:26:54]MH_SAM_APDU [16:26: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 62 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 D6 00 00 00 F4 03 04 00 CF 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE CF B5 66 [16:26:54]Write to MH i2c: E2 02 01 A0 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 62 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 D6 00 00 00 F4 03 04 00 CF 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE CF B5 66 00 00 40 [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:54]Read from MH i2c: E2 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [16:26:54]RAPDU: 90 00 [16:26:54]wFMCommunicate OK [16:26:54]wFMCommunicate request_size=7 [16:26:54]MH_SAM_APDU [16:26:54]CAPDU: 80 0D 02 02 02 3E 9C [16:26:54]Write to MH i2c: E2 0A 00 A1 1B 80 0D 02 02 02 00 3E 9C 00 00 14 [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:54]Read from MH i2c: E2 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: E2 03 00 A1 1B 00 90 00 30 [16:26:54]RAPDU: 90 00 [16:26:54]wFMCommunicate OK [16:26:54]wFMCommunicate request_size=4 [16:26:54]MH_SAM_APDU [16:26:54]CAPDU: 80 0D 03 02 [16:26:54]Write to MH i2c: E2 08 00 A2 1B 80 0D 03 02 00 00 00 00 38 [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:55]Read from MH i2c: E2 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 0B 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 0B 00 A2 1B 00 88 2C A1 2A 62 60 06 03 90 00 83 [16:26:55]RAPDU: 88 2C A1 2A 62 60 06 03 90 00 [16:26:55]wFMCommunicate OK [16:26:55]SAM_PROTO_SignData done [16:26:55]FM_MakeSignedData done [16:26:55]CreateOFDProtocolMessage [16:26:55]wFMCommunicate request_size=4 [16:26:55]MH_SAM_APDU [16:26:55]CAPDU: 80 11 00 00 [16:26:55]Write to MH i2c: E2 08 00 A3 1B 80 11 00 00 00 00 00 00 38 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:55]Read from MH i2c: E2 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 17 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 17 00 A3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [16:26: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:26:55]wFMCommunicate OK [16:26:55]CreateOFDProtocolMessage done [16:26:55]OFDSenderStorePacket 70698 [16:26:55]StoreOFDPacket docnum=70698 [16:26: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 17 F4 04 01 F9 F4 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 62 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 D6 00 00 00 F4 03 04 00 CF 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE CF B5 66 3E 9C 88 2C A1 2A 62 60 06 03 [16:26:55]CheckFolder [16:26:55]dirname=/storage/ofd_packets [16:26:55]CheckFolder done [16:26:55]ProducePacketName [16:26:55]name=ofd_packets/00070698 [16:26:55]NVStorageSaveData ofd_packets/00070698 [16:26:55]File name is /storage/ofd_packets/00070698 [16:26:55]Write 298 bytes [16:26:55]NVStorageSaveData done [16:26:55]OFDSenderStorePacket done [16:26:55]KKMCreateOFDPacket done [16:26:55]NVStorageSaveData kkm_last_timestamp [16:26:55]File name is /storage/kkm_last_timestamp [16:26:55]Write 4 bytes [16:26:55]NVStorageSaveData done [16:26:55]ExternCall_PrintAddStr [16:26:55]wPrintStart [16:26:55]Write to MH i2c: 01 00 00 A4 1B BF [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 07 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 FF 0F D4 [16:26:55]RasterBufferAndPrint [16:26:55]line Счет N : (1)2886476 [16:26:55]line ИНН: 02508201610067 [16:26:55]line Контрольно-Кассовый Чек [16:26:55]line ПРОДАЖА [16:26:55]line ТРК (МРК, ГНК) : 61 [16:26:55]line Товар: 2710194210 [16:26:55]line ДТ-К-5 [16:26:55]line 24.930 * 0.00 [16:26:55]line = 0.00 [16:26:55]line НДС 12% НСП 1% [16:26:55]line > о реализуемом товаре [16:26:55]line ИТОГО: 0.00 [16:26:55]line НСП 1% : 0.00 [16:26:55]line НДС 12% : 0.00 [16:26:55]line Наличными: 0.00 [16:26:55]line Безнал.: 0.00 [16:26:55]line Место: АЗС № 85 "Партнер Нефть" [16:26:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:55]line СНО: Общий режим [16:26:55]line Чек 214 23.10.2024 16:26 [16:26:55]line Смена: 196 ФФД: 1.0 [16:26:55]line ЗНМ: 0300000167 [16:26:55]line РНМ: 0000000000156251 [16:26:55]line Версия ККМ: v1.0 [16:26:55]line Талоны: Топливная Карта [16:26:55]line 72836 [16:26:55]line ФМ: 0000000000963346 [16:26:55]line ФД: 70698 [16:26:55]line ФПД: 209799310884508 [16:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162655&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70698&fm=209799310884508&tin=02508201610067®Number=0000000000156251&sum=0 [16:26:55]OFD Sender: Processing packet 70698 [packets to send 18, broken 17] [16:26:55]ProducePacketName [16:26:55]name=ofd_packets/00070698 [16:26:55]OFD Sender: To server: pG, [16:26:55]CommunicateWithHost lk.salyk.kg:30040 [16:26:55]ConnectInit lk.salyk.kg [16:26:55]written 0, free lines is 4095 [16:26:55]Connected sock=10 [16:26: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 17 F4 04 01 F9 F4 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 62 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 D6 00 00 00 F4 03 04 00 CF 23 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE CF B5 66 3E 9C 88 2C A1 2A 62 60 06 03 [16:26: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 C7 B4 47 00 10 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 2A 14 01 00 F4 03 04 00 6C CD 18 67 B6 04 01 00 00 82 6F D7 3A AB A3 4E F9 [16:26:55]CommunicateWithHost err = 0 [16:26:55]CheckOFDResponse [16:26:55]1017 (14) - 77093643461234 [16:26:55]1041 (16) - 0000000000963346 [16:26:55]1040 (4) - 70698 [16:26:55]1012 (4) - 23.10.2024 10:18 [16:26:55]1206 (1) - 0 [16:26:55]OFD Sender: Remove packet 70698 [16:26:55]ProducePacketName [16:26:55]name=ofd_packets/00070698 [16:26:55]NVStorageDeleteData [16:26:55]Write to MH i2c: 01 00 00 CE 1B E9 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 07 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 07 00 CE 1B 00 00 00 00 00 F2 0C EE [16:26:55]RasterBufferAndPrint [16:26:55]line [16:26:55]line [16:26:55]line [16:26:55]line [16:26:55]line [16:26:55]written 0, free lines is 3323 [16:26:55]MH_Cut [16:26:55]Write to MH i2c: D1 01 00 D5 1B 01 C2 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: D1 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: D1 01 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: D1 01 00 D5 1B 00 C1 [16:26:55]Write to MH i2c: 01 00 00 D6 1B F1 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:56]OFD Sender: No OFD packet to send [16:26:56]*** Cut start [16:26:56]*** Partial cut [16:26:56]*** CUTSNS_PIN = 1 [16:26:56]*** CUTSNS_PIN = 0 [16:26:56]*** Brake cut motor [16:26:57]Read from MH i2c: 01 [16:26:57]MH_I2C_Read... [16:26:57]*** Stop cut motor [16:26:57]*** Cut end [16:26:57]Read from MH i2c: 01 07 00 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: 01 07 00 D6 1B 00 00 00 00 00 FF 0F 06 [16:26:57]process_action close_receipt done [16:26:57]requested_data is exist [16:26:57]produce_requested_data [16:26:57]requested_item fm.sn is exist - process it [16:26:57]wFMCommunicate request_size=4 [16:26:57]MH_SAM_APDU [16:26:57]CAPDU: 80 11 00 00 [16:26:57]Write to MH i2c: E2 08 00 D7 1B 80 11 00 00 00 00 00 00 6C [16:26:57]Write i2c OK [16:26:57]MH_I2C_Read... [16:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:57]Read from MH i2c: E2 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 17 00 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 17 00 D7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BE [16:26: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:26:57]wFMCommunicate OK [16:26:57]requested_item fd.num is exist - process it [16:26:57]SAM_PROTO_GetFieldsCounters [16:26:57]wFMCommunicate request_size=4 [16:26:57]MH_SAM_APDU [16:26:57]CAPDU: 80 13 00 00 [16:26:57]Write to MH i2c: E2 08 00 D8 1B 80 13 00 00 00 00 00 00 6F [16:26:57]Write i2c OK [16:26:57]MH_I2C_Read... [16:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:57]Read from MH i2c: E2 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 62 00 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 62 00 D8 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 2A 14 01 00 0E 04 04 00 C4 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 0F [16:26: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 2A 14 01 00 0E 04 04 00 C4 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 [16:26:57]wFMCommunicate OK [16:26:57]SAM_PROTO_GetFieldsCounters done [16:26:57]requested_item shift.num is exist - process it [16:26:57]requested_item shift.opened is exist - process it [16:26:57]req_shift_opened [16:26:57]FM_GetShiftState [16:26:57]SAM_PROTO_GetShiftState [16:26:57]wFMCommunicate request_size=4 [16:26:57]MH_SAM_APDU [16:26:57]CAPDU: 80 13 01 00 [16:26:57]Write to MH i2c: E2 08 00 D9 1B 80 13 01 00 00 00 00 00 71 [16:26:57]Write i2c OK [16:26:57]MH_I2C_Read... [16:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:57]Read from MH i2c: E2 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 0E 00 [16:26:57]MH_I2C_Read... [16:26:57]Read from MH i2c: E2 0E 00 D9 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FE [16:26:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:26:57]wFMCommunicate OK [16:26:57]SAM_PROTO_GetShiftState done [16:26:57]FM_GetShiftState done [16:26:57]req_shift_opened done [16:26:57]requested_item shift.open_date is exist - process it [16:26:57]req_shift_open_date [16:26:57]req_shift_open_date done [16:26:57]produce_requested_data done [16:26:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70698,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:26:57]process_action_free close_receipt [16:26:57]json_value_free [16:26:57]json_value_free done [16:26:57]process_json_proto returns [16:26:57]Send response to host [16:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70698,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:26:57]free response buf [16:26:57]execute_script done [16:26:57]execute_script returns [16:26:57]free content buf [16:26:57]Sock 9.Close socket [16:26:57]Sock 9.Thread stoped [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:01]accept exits with 7 [16:30:01]New connection [16:30:01]New thread 3066891620 created [16:30:01]Thread 3067034980 joined [16:30:01]Waiting for new connection... [16:30:01] Sock 7.Parse request [16:30:01]Sock 7.Check first char [16:30:01]Sock 7.First char is OK [16:30:01]request: POST /json_proto HTTP/1.0 [16:30:01]Method: POST [16:30:01]URL: /json_proto [16:30:01]Method is POST - this is cgi request [16:30:01]url: /json_proto [16:30:01]query_string will be loaded in cgi processing [16:30:01]execute_cgi json_proto POST (null) [16:30:01]execute_cgi path=json_proto method=POST [16:30:01]POST find Content-Length [16:30:01]Host: 172.17.50.3:8080 [16:30:01]Content-Length: 770 [16:30:01]Content-Type: application/json [16:30:01] [16:30:01]POST finish read [16:30:01]Found Content-Length = 770 [16:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886479", "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" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:01]execute_script... [16:30: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)2886479", "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" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:01]POST & json_proto [16:30:01]process_json_proto [16:30:01]json parsed OK: [16:30:01]protocol is kg_v1.0 [16:30:01]action value=close_receipt [16:30:01]process_action close_receipt [16:30:01]cmd_close_receipt [16:30:01]MH_GetDate [16:30:01]Write to MH i2c: F0 00 00 DA 1B E4 [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 09 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 09 00 DA 1B 00 8B 24 19 67 6B 98 1E 66 A3 [16:30:01]GetLastDocTimeStamp 1729700815 [16:30:01]current date 1729701003 [16:30:01]FM_GetShiftState [16:30:01]SAM_PROTO_GetShiftState [16:30:01]wFMCommunicate request_size=4 [16:30:01]MH_SAM_APDU [16:30:01]CAPDU: 80 13 01 00 [16:30:01]Write to MH i2c: E2 08 00 DB 1B 80 13 01 00 00 00 00 00 73 [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:01]Read from MH i2c: E2 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 0E 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 0E 00 DB 1B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 00 [16:30:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:30:01]wFMCommunicate OK [16:30:01]SAM_PROTO_GetShiftState done [16:30:01]FM_GetShiftState done [16:30:01]opened in 1729642435 [16:30:01]opened+sec_in_day 1729728835 [16:30:01]quantity*price = 300046 [16:30:01]sum+1 = 300048 [16:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 215 23.10.2024 16:30 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70699 ФПД: 66762486045193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70699&fm=66762486045193&tin=02508201610067®Number=0000000000156251&sum=300047 [16:30:02]StoreToDocumentArchive [16:30:02]shift 196 fd 70699 [16:30:02]save to /storage/0196/doc_00070699 [16:30:02]save last doc name /storage/0196/doc_00070699 to /storage/kkm_last_doc_name [16:30:02]save OK [16:30:02]Clear old archive folders... [16:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:02]tlvbuf is 0017FDD0 [16:30:02]SAM_PROTO_ClearQueue [16:30:02]wFMCommunicate request_size=4 [16:30:02]MH_SAM_APDU [16:30:02]CAPDU: 80 09 00 00 [16:30:02]Write to MH i2c: E2 08 00 E8 1B 80 09 00 00 00 00 00 00 75 [16:30:02]Write i2c OK [16:30:02]MH_I2C_Read... [16:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:02]Read from MH i2c: E2 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 03 00 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [16:30:02]RAPDU: 90 00 [16:30:02]wFMCommunicate OK [16:30:02]SAM_PROTO_ClearQueue done [16:30:02]KKMCreateOFDPacket [16:30:02]OFDProtocolAddRootSTLVToBuf [16:30:02]FM_MakeSignedData [16:30:02]FM_MakeSignedData [16:30:02]SAM_PROTO_SignData [16:30:02]wFMCommunicate request_size=4 [16:30:02]MH_SAM_APDU [16:30:02]CAPDU: 80 0D 01 02 [16:30:02]Write to MH i2c: E2 08 00 E9 1B 80 0D 01 02 00 00 00 00 7D [16:30:02]Write i2c OK [16:30:02]MH_I2C_Read... [16:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 E9 1B 00 90 00 78 [16:30:03]RAPDU: 90 00 [16:30:03]wFMCommunicate OK [16:30:03]wFMCommunicate request_size=255 [16:30:03]MH_SAM_APDU [16:30: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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8B 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C [16:30:03]Write to MH i2c: E2 02 01 EA 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8B 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C 00 00 35 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [16:30:03]RAPDU: 90 00 [16:30:03]wFMCommunicate OK [16:30:03]wFMCommunicate request_size=10 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 0D 02 02 05 B8 5A 43 DA 09 [16:30:03]Write to MH i2c: E2 0D 00 EB 1B 80 0D 02 02 05 00 B8 5A 43 DA 09 00 00 C2 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [16:30:03]RAPDU: 90 00 [16:30:03]wFMCommunicate OK [16:30:03]wFMCommunicate request_size=4 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 0D 03 02 [16:30:03]Write to MH i2c: E2 08 00 EC 1B 80 0D 03 02 00 00 00 00 82 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 0B 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 0B 00 EC 1B 00 7A 2B 0D 4D AA A6 43 A3 90 00 B8 [16:30:03]RAPDU: 7A 2B 0D 4D AA A6 43 A3 90 00 [16:30:03]wFMCommunicate OK [16:30:03]SAM_PROTO_SignData done [16:30:03]FM_MakeSignedData done [16:30:03]CreateOFDProtocolMessage [16:30:03]wFMCommunicate request_size=4 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 11 00 00 [16:30:03]Write to MH i2c: E2 08 00 ED 1B 80 11 00 00 00 00 00 00 82 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 17 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 17 00 ED 1B 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:30:03]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:03]wFMCommunicate OK [16:30:03]CreateOFDProtocolMessage done [16:30:03]OFDSenderStorePacket 70699 [16:30:03]StoreOFDPacket docnum=70699 [16:30: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 2B A7 07 01 45 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8B 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C B8 5A 43 DA 09 7A 2B 0D 4D AA A6 43 A3 [16:30:03]CheckFolder [16:30:03]dirname=/storage/ofd_packets [16:30:03]CheckFolder done [16:30:03]ProducePacketName [16:30:03]name=ofd_packets/00070699 [16:30:03]NVStorageSaveData ofd_packets/00070699 [16:30:03]File name is /storage/ofd_packets/00070699 [16:30:03]Write 301 bytes [16:30:03]NVStorageSaveData done [16:30:03]OFDSenderStorePacket done [16:30:03]KKMCreateOFDPacket done [16:30:03]NVStorageSaveData kkm_last_timestamp [16:30:03]File name is /storage/kkm_last_timestamp [16:30:03]Write 4 bytes [16:30:03]NVStorageSaveData done [16:30:03]ExternCall_PrintAddStr [16:30:03]wPrintStart [16:30:03]Write to MH i2c: 01 00 00 EE 1B 09 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 07 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 07 00 EE 1B 00 00 00 00 00 FF 0F 1E [16:30:03]RasterBufferAndPrint [16:30:03]line Счет N : (1)2886479 [16:30:03]line ИНН: 02508201610067 [16:30:03]line Контрольно-Кассовый Чек [16:30:03]line ПРОДАЖА [16:30:03]line ТРК (МРК, ГНК) : 22 [16:30:03]line Товар: 2710124130 [16:30:03]line Аи-92-К-5 [16:30:03]line 44.850 * 66.90 [16:30:03]line = 3000.47 [16:30:03]line НДС 12% НСП 1% [16:30:03]line > о реализуемом товаре [16:30:03]line ИТОГО: 3000.47 [16:30:03]line НСП 1% : 26.55 [16:30:03]line НДС 12% : 318.63 [16:30:03]line Наличными: 0.00 [16:30:03]line Безнал.: 3000.47 [16:30:03]line Место: АЗС № 85 "Партнер Нефть" [16:30:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:30:03]line СНО: Общий режим [16:30:03]line Чек 215 23.10.2024 16:30 [16:30:03]line Смена: 196 ФФД: 1.0 [16:30:03]line ЗНМ: 0300000167 [16:30:03]line РНМ: 0000000000156251 [16:30:03]line Версия ККМ: v1.0 [16:30:03]line Платежная система: Mbank [16:30:03]line ФМ: 0000000000963346 [16:30:03]line ФД: 70699 [16:30:03]line ФПД: 66762486045193 [16:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70699&fm=66762486045193&tin=02508201610067®Number=0000000000156251&sum=300047 [16:30:03]OFD Sender: Processing packet 70699 [packets to send 18, broken 17] [16:30:03]ProducePacketName [16:30:03]name=ofd_packets/00070699 [16:30:03]OFD Sender: To server: pG, [16:30:03]CommunicateWithHost lk.salyk.kg:30040 [16:30:03]ConnectInit lk.salyk.kg [16:30:03]written 0, free lines is 4095 [16:30:03]Connected sock=10 [16:30: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 2B A7 07 01 45 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8B 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3C B8 5A 43 DA 09 7A 2B 0D 4D AA A6 43 A3 [16:30: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 B6 44 47 00 E5 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 2B 14 01 00 F4 03 04 00 29 CE 18 67 B6 04 01 00 00 E1 AF 15 3A 35 11 67 D5 [16:30:04]CommunicateWithHost err = 0 [16:30:04]CheckOFDResponse [16:30:04]1017 (14) - 77093643461234 [16:30:04]1041 (16) - 0000000000963346 [16:30:04]1040 (4) - 70699 [16:30:04]1012 (4) - 23.10.2024 10:21 [16:30:04]1206 (1) - 0 [16:30:04]OFD Sender: Remove packet 70699 [16:30:04]ProducePacketName [16:30:04]name=ofd_packets/00070699 [16:30:04]NVStorageDeleteData [16:30:04]Write to MH i2c: 01 00 00 17 1C 33 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 07 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 07 00 17 1C 00 00 00 00 00 10 0D 57 [16:30:04]RasterBufferAndPrint [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]written 0, free lines is 3350 [16:30:04]MH_Cut [16:30:04]Write to MH i2c: D1 01 00 1E 1C 01 0C [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 01 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 01 00 1E 1C 00 0B [16:30:04]Write to MH i2c: 01 00 00 1F 1C 3B [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]OFD Sender: No OFD packet to send [16:30:04]*** Cut start [16:30:04]*** Partial cut [16:30:04]*** CUTSNS_PIN = 1 [16:30:04]*** CUTSNS_PIN = 0 [16:30:05]*** Brake cut motor [16:30:05]Read from MH i2c: 01 [16:30:05]MH_I2C_Read... [16:30:05]*** Stop cut motor [16:30:05]*** Cut end [16:30:05]Read from MH i2c: 01 07 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: 01 07 00 1F 1C 00 00 00 00 00 FF 0F 50 [16:30:05]process_action close_receipt done [16:30:05]requested_data is exist [16:30:05]produce_requested_data [16:30:05]requested_item fm.sn is exist - process it [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 11 00 00 [16:30:05]Write to MH i2c: E2 08 00 20 1C 80 11 00 00 00 00 00 00 B6 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 17 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 17 00 20 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [16: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 [16:30:05]wFMCommunicate OK [16:30:05]requested_item fd.num is exist - process it [16:30:05]SAM_PROTO_GetFieldsCounters [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 13 00 00 [16:30:05]Write to MH i2c: E2 08 00 21 1C 80 13 00 00 00 00 00 00 B9 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 62 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 62 00 21 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 2B 14 01 00 0E 04 04 00 C4 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 5D [16:30: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 2B 14 01 00 0E 04 04 00 C4 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 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_GetFieldsCounters done [16:30:05]requested_item shift.num is exist - process it [16:30:05]requested_item shift.opened is exist - process it [16:30:05]req_shift_opened [16:30:05]FM_GetShiftState [16:30:05]SAM_PROTO_GetShiftState [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 13 01 00 [16:30:05]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 48 [16:30:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_GetShiftState done [16:30:05]FM_GetShiftState done [16:30:05]req_shift_opened done [16:30:05]requested_item shift.open_date is exist - process it [16:30:05]req_shift_open_date [16:30:05]req_shift_open_date done [16:30:05]produce_requested_data done [16:30:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70699,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:30:05]process_action_free close_receipt [16:30:05]json_value_free [16:30:05]json_value_free done [16:30:05]process_json_proto returns [16:30:05]Send response to host [16:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70699,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:30:05]free response buf [16:30:05]execute_script done [16:30:05]execute_script returns [16:30:05]free content buf [16:30:05]Sock 7.Close socket [16:30:05]Sock 7.Thread stoped [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:28]accept exits with 9 [16:31:28]New connection [16:31:28]New thread 3067034980 created [16:31:28]Thread 3066891620 joined [16:31:28]Waiting for new connection... [16:31:28] Sock 9.Parse request [16:31:28]Sock 9.Check first char [16:31:28]Sock 9.First char is OK [16:31:28]request: POST /json_proto HTTP/1.0 [16:31:28]Method: POST [16:31:28]URL: /json_proto [16:31:28]Method is POST - this is cgi request [16:31:28]url: /json_proto [16:31:28]query_string will be loaded in cgi processing [16:31:28]execute_cgi json_proto POST (null) [16:31:28]execute_cgi path=json_proto method=POST [16:31:28]POST find Content-Length [16:31:28]Host: 172.17.50.3:8080 [16:31:28]Content-Length: 683 [16:31:28]Content-Type: application/json [16:31:28] [16:31:28]POST finish read [16:31:28]Found Content-Length = 683 [16:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886480", "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" : 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" ] } } [16:31:28]execute_script... [16:31: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)2886480", "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" : 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" ] } } [16:31:28]POST & json_proto [16:31:28]process_json_proto [16:31:28]json parsed OK: [16:31:28]protocol is kg_v1.0 [16:31:28]action value=close_receipt [16:31:28]process_action close_receipt [16:31:28]cmd_close_receipt [16:31:28]MH_GetDate [16:31:28]Write to MH i2c: F0 00 00 23 1C 2E [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: F0 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: F0 09 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: F0 09 00 23 1C 00 E2 24 19 67 6B 98 1E 66 44 [16:31:28]GetLastDocTimeStamp 1729701003 [16:31:28]current date 1729701090 [16:31:28]FM_GetShiftState [16:31:28]SAM_PROTO_GetShiftState [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 13 01 00 [16:31:28]Write to MH i2c: E2 08 00 24 1C 80 13 01 00 00 00 00 00 BD [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 24 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4A [16:31:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_GetShiftState done [16:31:28]FM_GetShiftState done [16:31:28]opened in 1729642435 [16:31:28]opened+sec_in_day 1729728835 [16:31:28]quantity*price = 150056 [16:31:28]sum+1 = 150058 [16:31:28]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 СНО: Общий режим Чек 216 23.10.2024 16:31 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70700 ФПД: 6692781015437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70700&fm=6692781015437&tin=02508201610067®Number=0000000000156251&sum=150000 [16:31:30]StoreToDocumentArchive [16:31:30]shift 196 fd 70700 [16:31:30]save to /storage/0196/doc_00070700 [16:31:30]save last doc name /storage/0196/doc_00070700 to /storage/kkm_last_doc_name [16:31:30]save OK [16:31:30]Clear old archive folders... [16:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:30]tlvbuf is 0019C980 [16:31:30]SAM_PROTO_ClearQueue [16:31:30]wFMCommunicate request_size=4 [16:31:30]MH_SAM_APDU [16:31:30]CAPDU: 80 09 00 00 [16:31:30]Write to MH i2c: E2 08 00 31 1C 80 09 00 00 00 00 00 00 BF [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [16:31:30]RAPDU: 90 00 [16:31:30]wFMCommunicate OK [16:31:30]SAM_PROTO_ClearQueue done [16:31:30]KKMCreateOFDPacket [16:31:30]OFDProtocolAddRootSTLVToBuf [16:31:30]FM_MakeSignedData [16:31:30]FM_MakeSignedData [16:31:30]SAM_PROTO_SignData [16:31:30]wFMCommunicate request_size=4 [16:31:30]MH_SAM_APDU [16:31:30]CAPDU: 80 0D 01 02 [16:31:30]Write to MH i2c: E2 08 00 32 1C 80 0D 01 02 00 00 00 00 C7 [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [16:31:30]RAPDU: 90 00 [16:31:30]wFMCommunicate OK [16:31:30]wFMCommunicate request_size=255 [16:31:30]MH_SAM_APDU [16:31: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 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 D8 00 00 00 F4 03 04 00 E2 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 06 [16:31:30]Write to MH i2c: E2 02 01 33 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 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 D8 00 00 00 F4 03 04 00 E2 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 06 00 00 02 [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [16:31:30]RAPDU: 90 00 [16:31:30]wFMCommunicate OK [16:31:30]wFMCommunicate request_size=10 [16:31:30]MH_SAM_APDU [16:31:30]CAPDU: 80 0D 02 02 05 16 48 D5 C1 8D [16:31:30]Write to MH i2c: E2 0D 00 34 1C 80 0D 02 02 05 00 16 48 D5 C1 8D 00 00 55 [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [16:31:30]RAPDU: 90 00 [16:31:30]wFMCommunicate OK [16:31:30]wFMCommunicate request_size=4 [16:31:30]MH_SAM_APDU [16:31:30]CAPDU: 80 0D 03 02 [16:31:30]Write to MH i2c: E2 08 00 35 1C 80 0D 03 02 00 00 00 00 CC [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 0B 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 0B 00 35 1C 00 7D 1F D3 A5 D7 B9 6A 6D 90 00 48 [16:31:30]RAPDU: 7D 1F D3 A5 D7 B9 6A 6D 90 00 [16:31:30]wFMCommunicate OK [16:31:30]SAM_PROTO_SignData done [16:31:30]FM_MakeSignedData done [16:31:30]CreateOFDProtocolMessage [16:31:30]wFMCommunicate request_size=4 [16:31:30]MH_SAM_APDU [16:31:30]CAPDU: 80 11 00 00 [16:31:30]Write to MH i2c: E2 08 00 36 1C 80 11 00 00 00 00 00 00 CC [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:30]Read from MH i2c: E2 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 17 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: E2 17 00 36 1C 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:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:31:30]wFMCommunicate OK [16:31:30]CreateOFDProtocolMessage done [16:31:30]OFDSenderStorePacket 70700 [16:31:30]StoreOFDPacket docnum=70700 [16:31: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 8B DA 07 01 7C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 00 00 00 F4 03 04 00 E2 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 06 16 48 D5 C1 8D 7D 1F D3 A5 D7 B9 6A 6D [16:31:30]CheckFolder [16:31:30]dirname=/storage/ofd_packets [16:31:30]CheckFolder done [16:31:30]ProducePacketName [16:31:30]name=ofd_packets/00070700 [16:31:30]NVStorageSaveData ofd_packets/00070700 [16:31:30]File name is /storage/ofd_packets/00070700 [16:31:30]Write 301 bytes [16:31:30]NVStorageSaveData done [16:31:30]OFDSenderStorePacket done [16:31:30]KKMCreateOFDPacket done [16:31:30]NVStorageSaveData kkm_last_timestamp [16:31:30]File name is /storage/kkm_last_timestamp [16:31:30]Write 4 bytes [16:31:30]NVStorageSaveData done [16:31:30]ExternCall_PrintAddStr [16:31:30]wPrintStart [16:31:30]Write to MH i2c: 01 00 00 37 1C 53 [16:31:30]Write i2c OK [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: 01 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: 01 07 00 [16:31:30]MH_I2C_Read... [16:31:30]Read from MH i2c: 01 07 00 37 1C 00 00 00 00 00 FF 0F 68 [16:31:30]RasterBufferAndPrint [16:31:30]line Счет N : (1)2886480 [16:31:30]line ИНН: 02508201610067 [16:31:30]line Контрольно-Кассовый Чек [16:31:30]line ПРОДАЖА [16:31:30]line ТРК (МРК, ГНК) : 32 [16:31:30]line Товар: 2710124130 [16:31:30]line Аи-92-К-5 [16:31:30]line 22.430 * 66.90 [16:31:30]line = 1500.57 [16:31:30]line НДС 12% НСП 1% [16:31:30]line > о реализуемом товаре [16:31:30]line ОКРУГЛЕНИЕ: -0.57 [16:31:30]line ИТОГО: 1500.00 [16:31:30]line Внесено: 1500.00 [16:31:30]line СДАЧА: 0.00 [16:31:30]line НСП 1% : 13.28 [16:31:30]line НДС 12% : 159.35 [16:31:30]line Наличными: 1500.00 [16:31:30]line Безнал.: 0.00 [16:31:30]line Место: АЗС № 85 "Партнер Нефть" [16:31:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:31:30]line СНО: Общий режим [16:31:30]line Чек 216 23.10.2024 16:31 [16:31:30]line Смена: 196 ФФД: 1.0 [16:31:30]line ЗНМ: 0300000167 [16:31:30]line РНМ: 0000000000156251 [16:31:30]line Версия ККМ: v1.0 [16:31:30]line ФМ: 0000000000963346 [16:31:30]line ФД: 70700 [16:31:30]line ФПД: 6692781015437 [16:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70700&fm=6692781015437&tin=02508201610067®Number=0000000000156251&sum=150000 [16:31:30]OFD Sender: Processing packet 70700 [packets to send 18, broken 17] [16:31:30]ProducePacketName [16:31:30]name=ofd_packets/00070700 [16:31:30]OFD Sender: To server: pG, [16:31:30]CommunicateWithHost lk.salyk.kg:30040 [16:31:30]ConnectInit lk.salyk.kg [16:31:30]written 0, free lines is 4095 [16:31:31]Connected sock=10 [16:31: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 8B DA 07 01 7C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 00 00 00 F4 03 04 00 E2 24 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 06 16 48 D5 C1 8D 7D 1F D3 A5 D7 B9 6A 6D [16:31: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 50 EF 47 00 B7 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 2C 14 01 00 F4 03 04 00 80 CE 18 67 B6 04 01 00 00 7F 75 87 9A 8C B1 34 A7 [16:31:31]CommunicateWithHost err = 0 [16:31:31]CheckOFDResponse [16:31:31]1017 (14) - 77093643461234 [16:31:31]1041 (16) - 0000000000963346 [16:31:31]1040 (4) - 70700 [16:31:31]1012 (4) - 23.10.2024 10:22 [16:31:31]1206 (1) - 0 [16:31:31]OFD Sender: Remove packet 70700 [16:31:31]ProducePacketName [16:31:31]name=ofd_packets/00070700 [16:31:31]NVStorageDeleteData [16:31:31]Write to MH i2c: 01 00 00 62 1C 7E [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: 01 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: 01 07 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: 01 07 00 62 1C 00 00 00 00 00 DF 0C 70 [16:31:31]RasterBufferAndPrint [16:31:31]line [16:31:31]line [16:31:31]line [16:31:31]line [16:31:31]line [16:31:31]written 0, free lines is 3301 [16:31:31]MH_Cut [16:31:31]Write to MH i2c: D1 01 00 69 1C 01 57 [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: D1 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: D1 01 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: D1 01 00 69 1C 00 56 [16:31:31]Write to MH i2c: 01 00 00 6A 1C 86 [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]OFD Sender: No OFD packet to send [16:31:32]*** Cut start [16:31:32]*** Partial cut [16:31:32]*** CUTSNS_PIN = 1 [16:31:32]*** CUTSNS_PIN = 0 [16:31:32]*** Brake cut motor [16:31:32]Read from MH i2c: 01 [16:31:32]MH_I2C_Read... [16:31:32]*** Stop cut motor [16:31:32]*** Cut end [16:31:32]Read from MH i2c: 01 07 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: 01 07 00 6A 1C 00 00 00 00 00 FF 0F 9B [16:31:32]process_action close_receipt done [16:31:32]requested_data is exist [16:31:32]produce_requested_data [16:31:32]requested_item fm.sn is exist - process it [16:31:32]wFMCommunicate request_size=4 [16:31:32]MH_SAM_APDU [16:31:32]CAPDU: 80 11 00 00 [16:31:32]Write to MH i2c: E2 08 00 6B 1C 80 11 00 00 00 00 00 00 01 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:32]Read from MH i2c: E2 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 17 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 17 00 6B 1C 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:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:31:32]wFMCommunicate OK [16:31:32]requested_item fd.num is exist - process it [16:31:32]SAM_PROTO_GetFieldsCounters [16:31:32]wFMCommunicate request_size=4 [16:31:32]MH_SAM_APDU [16:31:32]CAPDU: 80 13 00 00 [16:31:32]Write to MH i2c: E2 08 00 6C 1C 80 13 00 00 00 00 00 00 04 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:32]Read from MH i2c: E2 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 62 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 62 00 6C 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 2C 14 01 00 0E 04 04 00 C4 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 AC [16:31: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 2C 14 01 00 0E 04 04 00 C4 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 [16:31:32]wFMCommunicate OK [16:31:32]SAM_PROTO_GetFieldsCounters done [16:31:32]requested_item shift.num is exist - process it [16:31:32]requested_item shift.opened is exist - process it [16:31:32]req_shift_opened [16:31:32]FM_GetShiftState [16:31:32]SAM_PROTO_GetShiftState [16:31:32]wFMCommunicate request_size=4 [16:31:32]MH_SAM_APDU [16:31:32]CAPDU: 80 13 01 00 [16:31:32]Write to MH i2c: E2 08 00 6D 1C 80 13 01 00 00 00 00 00 06 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:32]Read from MH i2c: E2 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 0E 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 0E 00 6D 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 93 [16:31:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:31:32]wFMCommunicate OK [16:31:32]SAM_PROTO_GetShiftState done [16:31:32]FM_GetShiftState done [16:31:32]req_shift_opened done [16:31:32]requested_item shift.open_date is exist - process it [16:31:32]req_shift_open_date [16:31:32]req_shift_open_date done [16:31:32]produce_requested_data done [16:31:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70700,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:31:32]process_action_free close_receipt [16:31:32]json_value_free [16:31:32]json_value_free done [16:31:32]process_json_proto returns [16:31:32]Send response to host [16:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70700,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:31:32]free response buf [16:31:32]execute_script done [16:31:32]execute_script returns [16:31:32]free content buf [16:31:32]Sock 9.Close socket [16:31:32]Sock 9.Thread stoped [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:13]accept exits with 7 [16:33:13]New connection [16:33:13]New thread 3066891620 created [16:33:13]Thread 3067034980 joined [16:33:13]Waiting for new connection... [16:33:13] Sock 7.Parse request [16:33:13]Sock 7.Check first char [16:33:13]Sock 7.First char is OK [16:33:13]request: POST /json_proto HTTP/1.0 [16:33:13]Method: POST [16:33:13]URL: /json_proto [16:33:13]Method is POST - this is cgi request [16:33:13]url: /json_proto [16:33:13]query_string will be loaded in cgi processing [16:33:13]execute_cgi json_proto POST (null) [16:33:13]execute_cgi path=json_proto method=POST [16:33:13]POST find Content-Length [16:33:13]Host: 172.17.50.3:8080 [16:33:13]Content-Length: 678 [16:33:13]Content-Type: application/json [16:33:13] [16:33:13]POST finish read [16:33:13]Found Content-Length = 678 [16:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886481", "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" ] } } [16:33:13]execute_script... [16:33: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)2886481", "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" ] } } [16:33:13]POST & json_proto [16:33:13]process_json_proto [16:33:13]json parsed OK: [16:33:13]protocol is kg_v1.0 [16:33:13]action value=close_receipt [16:33:13]process_action close_receipt [16:33:13]cmd_close_receipt [16:33:13]MH_GetDate [16:33:13]Write to MH i2c: F0 00 00 6E 1C 79 [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: F0 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: F0 09 00 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: F0 09 00 6E 1C 00 4B 25 19 67 6B 98 1E 66 F9 [16:33:13]GetLastDocTimeStamp 1729701090 [16:33:13]current date 1729701195 [16:33:13]FM_GetShiftState [16:33:13]SAM_PROTO_GetShiftState [16:33:13]wFMCommunicate request_size=4 [16:33:13]MH_SAM_APDU [16:33:13]CAPDU: 80 13 01 00 [16:33:13]Write to MH i2c: E2 08 00 6F 1C 80 13 01 00 00 00 00 00 08 [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:13]Read from MH i2c: E2 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 0E 00 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 0E 00 6F 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 95 [16:33:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:33:13]wFMCommunicate OK [16:33:13]SAM_PROTO_GetShiftState done [16:33:13]FM_GetShiftState done [16:33:13]opened in 1729642435 [16:33:13]opened+sec_in_day 1729728835 [16:33:13]quantity*price = 60009 [16:33:13]sum+1 = 60010 [16:33:13]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 СНО: Общий режим Чек 217 23.10.2024 16:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70701 ФПД: 168846830482033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70701&fm=168846830482033&tin=02508201610067®Number=0000000000156251&sum=60000 [16:33:14]StoreToDocumentArchive [16:33:14]shift 196 fd 70701 [16:33:14]save to /storage/0196/doc_00070701 [16:33:14]save last doc name /storage/0196/doc_00070701 to /storage/kkm_last_doc_name [16:33:14]save OK [16:33:14]Clear old archive folders... [16:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:14]tlvbuf is 0019CC80 [16:33:14]SAM_PROTO_ClearQueue [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 09 00 00 [16:33:14]Write to MH i2c: E2 08 00 7C 1C 80 09 00 00 00 00 00 00 0A [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]SAM_PROTO_ClearQueue done [16:33:14]KKMCreateOFDPacket [16:33:14]OFDProtocolAddRootSTLVToBuf [16:33:14]FM_MakeSignedData [16:33:14]FM_MakeSignedData [16:33:14]SAM_PROTO_SignData [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 0D 01 02 [16:33:14]Write to MH i2c: E2 08 00 7D 1C 80 0D 01 02 00 00 00 00 12 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=255 [16:33:14]MH_SAM_APDU [16:33: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 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 D9 00 00 00 F4 03 04 00 4B 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 99 [16:33:14]Write to MH i2c: E2 02 01 7E 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 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 D9 00 00 00 F4 03 04 00 4B 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 99 00 00 E0 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 7E 1C 00 90 00 0E [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=10 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 0D 02 02 05 90 B7 5A 32 71 [16:33:14]Write to MH i2c: E2 0D 00 7F 1C 80 0D 02 02 05 00 90 B7 5A 32 71 00 00 63 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 0D 03 02 [16:33:14]Write to MH i2c: E2 08 00 80 1C 80 0D 03 02 00 00 00 00 17 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0B 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0B 00 80 1C 00 AB 32 43 4D A0 13 76 83 90 00 31 [16:33:14]RAPDU: AB 32 43 4D A0 13 76 83 90 00 [16:33:14]wFMCommunicate OK [16:33:14]SAM_PROTO_SignData done [16:33:14]FM_MakeSignedData done [16:33:14]CreateOFDProtocolMessage [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 11 00 00 [16:33:14]Write to MH i2c: E2 08 00 81 1C 80 11 00 00 00 00 00 00 17 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 17 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 17 00 81 1C 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:33: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:33:14]wFMCommunicate OK [16:33:14]CreateOFDProtocolMessage done [16:33:14]OFDSenderStorePacket 70701 [16:33:14]StoreOFDPacket docnum=70701 [16:33: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 93 D9 07 01 90 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D9 00 00 00 F4 03 04 00 4B 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 99 90 B7 5A 32 71 AB 32 43 4D A0 13 76 83 [16:33:14]CheckFolder [16:33:14]dirname=/storage/ofd_packets [16:33:14]CheckFolder done [16:33:14]ProducePacketName [16:33:14]name=ofd_packets/00070701 [16:33:14]NVStorageSaveData ofd_packets/00070701 [16:33:14]File name is /storage/ofd_packets/00070701 [16:33:14]Write 301 bytes [16:33:14]NVStorageSaveData done [16:33:14]OFDSenderStorePacket done [16:33:14]KKMCreateOFDPacket done [16:33:14]NVStorageSaveData kkm_last_timestamp [16:33:14]File name is /storage/kkm_last_timestamp [16:33:14]Write 4 bytes [16:33:14]NVStorageSaveData done [16:33:14]ExternCall_PrintAddStr [16:33:14]wPrintStart [16:33:14]Write to MH i2c: 01 00 00 82 1C 9E [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 82 1C 00 00 00 00 00 FF 0F B3 [16:33:14]RasterBufferAndPrint [16:33:14]line Счет N : (1)2886481 [16:33:14]line ИНН: 02508201610067 [16:33:14]line Контрольно-Кассовый Чек [16:33:14]line ПРОДАЖА [16:33:14]line ТРК (МРК, ГНК) : 12 [16:33:14]line Товар: 2710124130 [16:33:14]line Аи-92-К-5 [16:33:14]line 8.970 * 66.90 [16:33:14]line = 600.09 [16:33:14]line НДС 12% НСП 1% [16:33:14]line > о реализуемом товаре [16:33:14]line ОКРУГЛЕНИЕ: -0.09 [16:33:14]line ИТОГО: 600.00 [16:33:14]line Внесено: 600.00 [16:33:14]line СДАЧА: 0.00 [16:33:14]line НСП 1% : 5.31 [16:33:14]line НДС 12% : 63.73 [16:33:14]line Наличными: 600.00 [16:33:14]line Безнал.: 0.00 [16:33:14]line Место: АЗС № 85 "Партнер Нефть" [16:33:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:33:14]line СНО: Общий режим [16:33:14]line Чек 217 23.10.2024 16:33 [16:33:14]line Смена: 196 ФФД: 1.0 [16:33:14]line ЗНМ: 0300000167 [16:33:14]line РНМ: 0000000000156251 [16:33:14]line Версия ККМ: v1.0 [16:33:14]line ФМ: 0000000000963346 [16:33:14]line ФД: 70701 [16:33:14]line ФПД: 168846830482033 [16:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70701&fm=168846830482033&tin=02508201610067®Number=0000000000156251&sum=60000 [16:33:15]OFD Sender: Processing packet 70701 [packets to send 18, broken 17] [16:33:15]ProducePacketName [16:33:15]name=ofd_packets/00070701 [16:33:15]OFD Sender: To server: pG, [16:33:15]CommunicateWithHost lk.salyk.kg:30040 [16:33:15]ConnectInit lk.salyk.kg [16:33:15]written 0, free lines is 4095 [16:33:15]Connected sock=10 [16:33: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 93 D9 07 01 90 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D9 00 00 00 F4 03 04 00 4B 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 99 90 B7 5A 32 71 AB 32 43 4D A0 13 76 83 [16:33: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 D9 74 47 00 22 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 2D 14 01 00 F4 03 04 00 E8 CE 18 67 B6 04 01 00 00 69 DF 39 E0 0A FE 16 D7 [16:33:15]CommunicateWithHost err = 0 [16:33:15]CheckOFDResponse [16:33:15]1017 (14) - 77093643461234 [16:33:15]1041 (16) - 0000000000963346 [16:33:15]1040 (4) - 70701 [16:33:15]1012 (4) - 23.10.2024 10:24 [16:33:15]1206 (1) - 0 [16:33:15]OFD Sender: Remove packet 70701 [16:33:15]ProducePacketName [16:33:15]name=ofd_packets/00070701 [16:33:15]NVStorageDeleteData [16:33:15]Write to MH i2c: 01 00 00 AD 1C C9 [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 07 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 07 00 AD 1C 00 00 00 00 00 F9 0C D5 [16:33:15]RasterBufferAndPrint [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]written 0, free lines is 3328 [16:33:15]MH_Cut [16:33:15]Write to MH i2c: D1 01 00 B4 1C 01 A2 [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 01 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 01 00 B4 1C 00 A1 [16:33:15]Write to MH i2c: 01 00 00 B5 1C D1 [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:16]OFD Sender: No OFD packet to send [16:33:16]*** Cut start [16:33:16]*** Partial cut [16:33:16]*** CUTSNS_PIN = 1 [16:33:16]*** CUTSNS_PIN = 0 [16:33:16]*** Brake cut motor [16:33:17]Read from MH i2c: 01 [16:33:17]MH_I2C_Read... [16:33:17]*** Stop cut motor [16:33:17]*** Cut end [16:33:17]Read from MH i2c: 01 07 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 FF 0F E6 [16:33:17]process_action close_receipt done [16:33:17]requested_data is exist [16:33:17]produce_requested_data [16:33:17]requested_item fm.sn is exist - process it [16:33:17]wFMCommunicate request_size=4 [16:33:17]MH_SAM_APDU [16:33:17]CAPDU: 80 11 00 00 [16:33:17]Write to MH i2c: E2 08 00 B6 1C 80 11 00 00 00 00 00 00 4C [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:17]Read from MH i2c: E2 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 17 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 17 00 B6 1C 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:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:33:17]wFMCommunicate OK [16:33:17]requested_item fd.num is exist - process it [16:33:17]SAM_PROTO_GetFieldsCounters [16:33:17]wFMCommunicate request_size=4 [16:33:17]MH_SAM_APDU [16:33:17]CAPDU: 80 13 00 00 [16:33:17]Write to MH i2c: E2 08 00 B7 1C 80 13 00 00 00 00 00 00 4F [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:17]Read from MH i2c: E2 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 62 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 62 00 B7 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 2D 14 01 00 0E 04 04 00 C4 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 FB [16:33: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 2D 14 01 00 0E 04 04 00 C4 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 [16:33:17]wFMCommunicate OK [16:33:17]SAM_PROTO_GetFieldsCounters done [16:33:17]requested_item shift.num is exist - process it [16:33:17]requested_item shift.opened is exist - process it [16:33:17]req_shift_opened [16:33:17]FM_GetShiftState [16:33:17]SAM_PROTO_GetShiftState [16:33:17]wFMCommunicate request_size=4 [16:33:17]MH_SAM_APDU [16:33:17]CAPDU: 80 13 01 00 [16:33:17]Write to MH i2c: E2 08 00 B8 1C 80 13 01 00 00 00 00 00 51 [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:17]Read from MH i2c: E2 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 0E 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 0E 00 B8 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DE [16:33:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:33:17]wFMCommunicate OK [16:33:17]SAM_PROTO_GetShiftState done [16:33:17]FM_GetShiftState done [16:33:17]req_shift_opened done [16:33:17]requested_item shift.open_date is exist - process it [16:33:17]req_shift_open_date [16:33:17]req_shift_open_date done [16:33:17]produce_requested_data done [16:33:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70701,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:33:17]process_action_free close_receipt [16:33:17]json_value_free [16:33:17]json_value_free done [16:33:17]process_json_proto returns [16:33:17]Send response to host [16:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70701,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:33:17]free response buf [16:33:17]execute_script done [16:33:17]execute_script returns [16:33:17]free content buf [16:33:17]Sock 7.Close socket [16:33:17]Sock 7.Thread stoped [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:18]accept exits with 9 [16:34:18]New connection [16:34:18]New thread 3067034980 created [16:34:18]Thread 3066891620 joined [16:34:18]Waiting for new connection... [16:34:18] Sock 9.Parse request [16:34:18]Sock 9.Check first char [16:34:18]Sock 9.First char is OK [16:34:18]request: POST /json_proto HTTP/1.0 [16:34:18]Method: POST [16:34:18]URL: /json_proto [16:34:18]Method is POST - this is cgi request [16:34:18]url: /json_proto [16:34:18]query_string will be loaded in cgi processing [16:34:18]execute_cgi json_proto POST (null) [16:34:18]execute_cgi path=json_proto method=POST [16:34:18]POST find Content-Length [16:34:18]Host: 172.17.50.3:8080 [16:34:18]Content-Length: 689 [16:34:18]Content-Type: application/json [16:34:18] [16:34:18]POST finish read [16:34:18]Found Content-Length = 689 [16:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886482", "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" ] } } [16:34:18]execute_script... [16:34: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)2886482", "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" ] } } [16:34:18]POST & json_proto [16:34:18]process_json_proto [16:34:18]json parsed OK: [16:34:18]protocol is kg_v1.0 [16:34:18]action value=close_receipt [16:34:18]process_action close_receipt [16:34:18]cmd_close_receipt [16:34:18]MH_GetDate [16:34:18]Write to MH i2c: F0 00 00 B9 1C C4 [16:34:18]Write i2c OK [16:34:18]MH_I2C_Read... [16:34:18]Read from MH i2c: F0 [16:34:18]MH_I2C_Read... [16:34:18]Read from MH i2c: F0 09 00 [16:34:18]MH_I2C_Read... [16:34:18]Read from MH i2c: F0 09 00 B9 1C 00 8C 25 19 67 6B 98 1E 66 85 [16:34:18]GetLastDocTimeStamp 1729701195 [16:34:18]current date 1729701260 [16:34:18]FM_GetShiftState [16:34:18]SAM_PROTO_GetShiftState [16:34:18]wFMCommunicate request_size=4 [16:34:18]MH_SAM_APDU [16:34:18]CAPDU: 80 13 01 00 [16:34:18]Write to MH i2c: E2 08 00 BA 1C 80 13 01 00 00 00 00 00 53 [16:34:18]Write i2c OK [16:34:18]MH_I2C_Read... [16:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:18]Read from MH i2c: E2 [16:34:18]MH_I2C_Read... [16:34:18]Read from MH i2c: E2 0E 00 [16:34:18]MH_I2C_Read... [16:34:18]Read from MH i2c: E2 0E 00 BA 1C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E0 [16:34:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:34:18]wFMCommunicate OK [16:34:18]SAM_PROTO_GetShiftState done [16:34:18]FM_GetShiftState done [16:34:18]opened in 1729642435 [16:34:18]opened+sec_in_day 1729728835 [16:34:18]quantity*price = 200025 [16:34:18]sum+1 = 200026 [16:34:18]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 СНО: Общий режим Чек 218 23.10.2024 16:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70702 ФПД: 22149712060898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163420&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70702&fm=22149712060898&tin=02508201610067®Number=0000000000156251&sum=200000 [16:34:19]StoreToDocumentArchive [16:34:19]shift 196 fd 70702 [16:34:19]save to /storage/0196/doc_00070702 [16:34:19]save last doc name /storage/0196/doc_00070702 to /storage/kkm_last_doc_name [16:34:19]save OK [16:34:19]Clear old archive folders... [16:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:34:19]tlvbuf is 0017FAB0 [16:34:19]SAM_PROTO_ClearQueue [16:34:19]wFMCommunicate request_size=4 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 09 00 00 [16:34:19]Write to MH i2c: E2 08 00 C7 1C 80 09 00 00 00 00 00 00 55 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [16:34:19]RAPDU: 90 00 [16:34:19]wFMCommunicate OK [16:34:19]SAM_PROTO_ClearQueue done [16:34:19]KKMCreateOFDPacket [16:34:19]OFDProtocolAddRootSTLVToBuf [16:34:19]FM_MakeSignedData [16:34:19]FM_MakeSignedData [16:34:19]SAM_PROTO_SignData [16:34:19]wFMCommunicate request_size=4 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 0D 01 02 [16:34:19]Write to MH i2c: E2 08 00 C8 1C 80 0D 01 02 00 00 00 00 5D [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [16:34:19]RAPDU: 90 00 [16:34:19]wFMCommunicate OK [16:34:19]wFMCommunicate request_size=255 [16:34:19]MH_SAM_APDU [16:34: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 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 DA 00 00 00 F4 03 04 00 8C 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:34:19]Write to MH i2c: E2 02 01 C9 1C 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 DA 00 00 00 F4 03 04 00 8C 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 05 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 C9 1C 00 90 00 59 [16:34:19]RAPDU: 90 00 [16:34:19]wFMCommunicate OK [16:34:19]wFMCommunicate request_size=16 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 14 25 21 B8 21 E2 [16:34:19]Write to MH i2c: E2 13 00 CA 1C 80 0D 02 02 0B 00 00 35 04 06 00 14 25 21 B8 21 E2 00 00 CA [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 03 00 CA 1C 00 90 00 5A [16:34:19]RAPDU: 90 00 [16:34:19]wFMCommunicate OK [16:34:19]wFMCommunicate request_size=4 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 0D 03 02 [16:34:19]Write to MH i2c: E2 08 00 CB 1C 80 0D 03 02 00 00 00 00 62 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 0B 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 0B 00 CB 1C 00 C6 40 E6 E5 1B 82 31 2C 90 00 2E [16:34:19]RAPDU: C6 40 E6 E5 1B 82 31 2C 90 00 [16:34:19]wFMCommunicate OK [16:34:19]SAM_PROTO_SignData done [16:34:19]FM_MakeSignedData done [16:34:19]CreateOFDProtocolMessage [16:34:19]wFMCommunicate request_size=4 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 11 00 00 [16:34:19]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 17 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 17 00 CC 1C 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:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:34:19]wFMCommunicate OK [16:34:19]CreateOFDProtocolMessage done [16:34:19]OFDSenderStorePacket 70702 [16:34:19]StoreOFDPacket docnum=70702 [16:34: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 CE 86 0D 01 3E B1 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 DA 00 00 00 F4 03 04 00 8C 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 25 21 B8 21 E2 C6 40 E6 E5 1B 82 31 2C [16:34:19]CheckFolder [16:34:19]dirname=/storage/ofd_packets [16:34:19]CheckFolder done [16:34:19]ProducePacketName [16:34:19]name=ofd_packets/00070702 [16:34:19]NVStorageSaveData ofd_packets/00070702 [16:34:19]File name is /storage/ofd_packets/00070702 [16:34:19]Write 307 bytes [16:34:19]NVStorageSaveData done [16:34:19]OFDSenderStorePacket done [16:34:19]KKMCreateOFDPacket done [16:34:19]NVStorageSaveData kkm_last_timestamp [16:34:19]File name is /storage/kkm_last_timestamp [16:34:19]Write 4 bytes [16:34:19]NVStorageSaveData done [16:34:19]ExternCall_PrintAddStr [16:34:19]wPrintStart [16:34:19]Write to MH i2c: 01 00 00 CD 1C E9 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 07 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 07 00 CD 1C 00 00 00 00 00 FF 0F FE [16:34:19]RasterBufferAndPrint [16:34:19]line Счет N : (1)2886482 [16:34:19]line ИНН: 02508201610067 [16:34:19]line Контрольно-Кассовый Чек [16:34:19]line ПРОДАЖА [16:34:19]line ТРК (МРК, ГНК) : 31 [16:34:19]line Товар: 2710194240 [16:34:19]line D-ENERGY Дт-К-2 [16:34:19]line 25.910 * 77.20 [16:34:19]line = 2000.25 [16:34:19]line НДС 12% НСП 1% [16:34:19]line > о реализуемом товаре [16:34:19]line ОКРУГЛЕНИЕ: -0.25 [16:34:19]line ИТОГО: 2000.00 [16:34:19]line Внесено: 2000.00 [16:34:19]line СДАЧА: 0.00 [16:34:19]line НСП 1% : 17.70 [16:34:19]line НДС 12% : 212.42 [16:34:19]line Наличными: 2000.00 [16:34:19]line Безнал.: 0.00 [16:34:19]line Место: АЗС № 85 "Партнер Нефть" [16:34:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:34:19]line СНО: Общий режим [16:34:19]line Чек 218 23.10.2024 16:34 [16:34:19]line Смена: 196 ФФД: 1.0 [16:34:19]line ЗНМ: 0300000167 [16:34:19]line РНМ: 0000000000156251 [16:34:19]line Версия ККМ: v1.0 [16:34:19]line ФМ: 0000000000963346 [16:34:19]line ФД: 70702 [16:34:19]line ФПД: 22149712060898 [16:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163420&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70702&fm=22149712060898&tin=02508201610067®Number=0000000000156251&sum=200000 [16:34:19]written 0, free lines is 4095 [16:34:19]OFD Sender: Processing packet 70702 [packets to send 18, broken 17] [16:34:19]ProducePacketName [16:34:19]name=ofd_packets/00070702 [16:34:19]OFD Sender: To server: pG, [16:34:19]CommunicateWithHost lk.salyk.kg:30040 [16:34:19]ConnectInit lk.salyk.kg [16:34:19]Connected sock=10 [16:34: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 CE 86 0D 01 3E B1 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 DA 00 00 00 F4 03 04 00 8C 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 25 21 B8 21 E2 C6 40 E6 E5 1B 82 31 2C [16:34: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 F3 B9 47 00 AA 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 2E 14 01 00 F4 03 04 00 29 CF 18 67 B6 04 01 00 00 59 E2 D0 B2 92 BD 86 B5 [16:34:20]CommunicateWithHost err = 0 [16:34:20]CheckOFDResponse [16:34:20]1017 (14) - 77093643461234 [16:34:20]1041 (16) - 0000000000963346 [16:34:20]1040 (4) - 70702 [16:34:20]1012 (4) - 23.10.2024 10:25 [16:34:20]1206 (1) - 0 [16:34:20]OFD Sender: Remove packet 70702 [16:34:20]ProducePacketName [16:34:20]name=ofd_packets/00070702 [16:34:20]NVStorageDeleteData [16:34:20]Write to MH i2c: 01 00 00 F8 1C 14 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 07 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 FB 0C 22 [16:34:20]RasterBufferAndPrint [16:34:20]line [16:34:20]line [16:34:20]line [16:34:20]line [16:34:20]line [16:34:20]written 0, free lines is 3329 [16:34:20]MH_Cut [16:34:20]Write to MH i2c: D1 01 00 FF 1C 01 ED [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: D1 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: D1 01 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: D1 01 00 FF 1C 00 EC [16:34:20]Write to MH i2c: 01 00 00 00 1D 1D [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]OFD Sender: No OFD packet to send [16:34:20]*** Cut start [16:34:20]*** Partial cut [16:34:20]*** CUTSNS_PIN = 1 [16:34:20]*** CUTSNS_PIN = 0 [16:34:21]*** Brake cut motor [16:34:21]Read from MH i2c: 01 [16:34:21]MH_I2C_Read... [16:34:21]*** Stop cut motor [16:34:21]*** Cut end [16:34:21]Read from MH i2c: 01 07 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: 01 07 00 00 1D 00 00 00 00 00 FF 0F 32 [16:34:21]process_action close_receipt done [16:34:21]requested_data is exist [16:34:21]produce_requested_data [16:34:21]requested_item fm.sn is exist - process it [16:34:21]wFMCommunicate request_size=4 [16:34:21]MH_SAM_APDU [16:34:21]CAPDU: 80 11 00 00 [16:34:21]Write to MH i2c: E2 08 00 01 1D 80 11 00 00 00 00 00 00 98 [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:21]Read from MH i2c: E2 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 17 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 17 00 01 1D 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:34: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:34:21]wFMCommunicate OK [16:34:21]requested_item fd.num is exist - process it [16:34:21]SAM_PROTO_GetFieldsCounters [16:34:21]wFMCommunicate request_size=4 [16:34:21]MH_SAM_APDU [16:34:21]CAPDU: 80 13 00 00 [16:34:21]Write to MH i2c: E2 08 00 02 1D 80 13 00 00 00 00 00 00 9B [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:21]Read from MH i2c: E2 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 62 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 62 00 02 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 2E 14 01 00 0E 04 04 00 C4 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 4B [16:34: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 2E 14 01 00 0E 04 04 00 C4 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 [16:34:21]wFMCommunicate OK [16:34:21]SAM_PROTO_GetFieldsCounters done [16:34:21]requested_item shift.num is exist - process it [16:34:21]requested_item shift.opened is exist - process it [16:34:21]req_shift_opened [16:34:21]FM_GetShiftState [16:34:21]SAM_PROTO_GetShiftState [16:34:21]wFMCommunicate request_size=4 [16:34:21]MH_SAM_APDU [16:34:21]CAPDU: 80 13 01 00 [16:34:21]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 [16:34:21]MH_I2C_Read... [16:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:21]Read from MH i2c: E2 0E 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2A [16:34:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:34:21]wFMCommunicate OK [16:34:21]SAM_PROTO_GetShiftState done [16:34:21]FM_GetShiftState done [16:34:21]req_shift_opened done [16:34:21]requested_item shift.open_date is exist - process it [16:34:21]req_shift_open_date [16:34:21]req_shift_open_date done [16:34:21]produce_requested_data done [16:34:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70702,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:34:21]process_action_free close_receipt [16:34:21]json_value_free [16:34:21]json_value_free done [16:34:21]process_json_proto returns [16:34:21]Send response to host [16:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70702,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:34:21]free response buf [16:34:21]execute_script done [16:34:21]execute_script returns [16:34:21]free content buf [16:34:21]Sock 9.Close socket [16:34:21]Sock 9.Thread stoped [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:23]accept exits with 7 [16:35:23]New connection [16:35:23]New thread 3066891620 created [16:35:23]Thread 3067034980 joined [16:35:23]Waiting for new connection... [16:35:23] Sock 7.Parse request [16:35:23]Sock 7.Check first char [16:35:23]Sock 7.First char is OK [16:35:23]request: POST /json_proto HTTP/1.0 [16:35:23]Method: POST [16:35:23]URL: /json_proto [16:35:23]Method is POST - this is cgi request [16:35:23]url: /json_proto [16:35:23]query_string will be loaded in cgi processing [16:35:23]execute_cgi json_proto POST (null) [16:35:23]execute_cgi path=json_proto method=POST [16:35:23]POST find Content-Length [16:35:23]Host: 172.17.50.3:8080 [16:35:23]Content-Length: 767 [16:35:23]Content-Type: application/json [16:35:23] [16:35:23]POST finish read [16:35:23]Found Content-Length = 767 [16:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886483", "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 }]} ], "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:35:23]execute_script... [16:35: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)2886483", "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 }]} ], "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:35:23]POST & json_proto [16:35:23]process_json_proto [16:35:23]json parsed OK: [16:35:23]protocol is kg_v1.0 [16:35:23]action value=close_receipt [16:35:23]process_action close_receipt [16:35:23]cmd_close_receipt [16:35:23]MH_GetDate [16:35:23]Write to MH i2c: F0 00 00 04 1D 10 [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: F0 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: F0 09 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: F0 09 00 04 1D 00 CD 25 19 67 6B 98 1E 66 12 [16:35:23]GetLastDocTimeStamp 1729701260 [16:35:23]current date 1729701325 [16:35:23]FM_GetShiftState [16:35:23]SAM_PROTO_GetShiftState [16:35:23]wFMCommunicate request_size=4 [16:35:23]MH_SAM_APDU [16:35:23]CAPDU: 80 13 01 00 [16:35:23]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [16:35:23]Write i2c OK [16:35:23]MH_I2C_Read... [16:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:23]Read from MH i2c: E2 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0E 00 [16:35:23]MH_I2C_Read... [16:35:23]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2C [16:35:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:35:23]wFMCommunicate OK [16:35:23]SAM_PROTO_GetShiftState done [16:35:23]FM_GetShiftState done [16:35:23]opened in 1729642435 [16:35:23]opened+sec_in_day 1729728835 [16:35:23]quantity*price = 60027 [16:35:23]sum+1 = 60029 [16:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 219 23.10.2024 16:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70703 ФПД: 206789790546691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70703&fm=206789790546691&tin=02508201610067®Number=0000000000156251&sum=60028 [16:35:24]StoreToDocumentArchive [16:35:24]shift 196 fd 70703 [16:35:24]save to /storage/0196/doc_00070703 [16:35:24]save last doc name /storage/0196/doc_00070703 to /storage/kkm_last_doc_name [16:35:24]save OK [16:35:24]Clear old archive folders... [16:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:24]tlvbuf is 0013C4A0 [16:35:24]SAM_PROTO_ClearQueue [16:35:24]wFMCommunicate request_size=4 [16:35:24]MH_SAM_APDU [16:35:24]CAPDU: 80 09 00 00 [16:35:24]Write to MH i2c: E2 08 00 12 1D 80 09 00 00 00 00 00 00 A1 [16:35:24]Write i2c OK [16:35:24]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [16:35:25]RAPDU: 90 00 [16:35:25]wFMCommunicate OK [16:35:25]SAM_PROTO_ClearQueue done [16:35:25]KKMCreateOFDPacket [16:35:25]OFDProtocolAddRootSTLVToBuf [16:35:25]FM_MakeSignedData [16:35:25]FM_MakeSignedData [16:35:25]SAM_PROTO_SignData [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 0D 01 02 [16:35:25]Write to MH i2c: E2 08 00 13 1D 80 0D 01 02 00 00 00 00 A9 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [16:35:25]RAPDU: 90 00 [16:35:25]wFMCommunicate OK [16:35:25]wFMCommunicate request_size=255 [16:35:25]MH_SAM_APDU [16:35: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 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 DB 00 00 00 F4 03 04 00 CD 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BC [16:35:25]Write to MH i2c: E2 02 01 14 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 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 DB 00 00 00 F4 03 04 00 CD 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BC 00 00 D9 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [16:35:25]RAPDU: 90 00 [16:35:25]wFMCommunicate OK [16:35:25]wFMCommunicate request_size=10 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 0D 02 02 05 13 00 02 3B 03 [16:35:25]Write to MH i2c: E2 0D 00 15 1D 80 0D 02 02 05 00 13 00 02 3B 03 00 00 09 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [16:35:25]RAPDU: 90 00 [16:35:25]wFMCommunicate OK [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 0D 03 02 [16:35:25]Write to MH i2c: E2 08 00 16 1D 80 0D 03 02 00 00 00 00 AE [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0B 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0B 00 16 1D 00 E9 55 64 AB 41 E3 F7 75 90 00 8C [16:35:25]RAPDU: E9 55 64 AB 41 E3 F7 75 90 00 [16:35:25]wFMCommunicate OK [16:35:25]SAM_PROTO_SignData done [16:35:25]FM_MakeSignedData done [16:35:25]CreateOFDProtocolMessage [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 11 00 00 [16:35:25]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 17 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 17 00 17 1D 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:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:35:25]wFMCommunicate OK [16:35:25]CreateOFDProtocolMessage done [16:35:25]OFDSenderStorePacket 70703 [16:35:25]StoreOFDPacket docnum=70703 [16:35: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 E8 86 07 01 C7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DB 00 00 00 F4 03 04 00 CD 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BC 13 00 02 3B 03 E9 55 64 AB 41 E3 F7 75 [16:35:25]CheckFolder [16:35:25]dirname=/storage/ofd_packets [16:35:25]CheckFolder done [16:35:25]ProducePacketName [16:35:25]name=ofd_packets/00070703 [16:35:25]NVStorageSaveData ofd_packets/00070703 [16:35:25]File name is /storage/ofd_packets/00070703 [16:35:25]Write 301 bytes [16:35:25]NVStorageSaveData done [16:35:25]OFDSenderStorePacket done [16:35:25]KKMCreateOFDPacket done [16:35:25]NVStorageSaveData kkm_last_timestamp [16:35:25]File name is /storage/kkm_last_timestamp [16:35:25]Write 4 bytes [16:35:25]NVStorageSaveData done [16:35:25]ExternCall_PrintAddStr [16:35:25]wPrintStart [16:35:25]Write to MH i2c: 01 00 00 18 1D 35 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: 01 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: 01 07 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: 01 07 00 18 1D 00 00 00 00 00 FF 0F 4A [16:35:25]RasterBufferAndPrint [16:35:25]line Счет N : (1)2886483 [16:35:25]line ИНН: 02508201610067 [16:35:25]line Контрольно-Кассовый Чек [16:35:25]line ПРОДАЖА [16:35:25]line ТРК (МРК, ГНК) : 13 [16:35:25]line Товар: 2710124500 [16:35:25]line Аи-95-К-5 [16:35:25]line 8.090 * 74.20 [16:35:25]line = 600.28 [16:35:25]line НДС 12% НСП 1% [16:35:25]line > о реализуемом товаре [16:35:25]line ИТОГО: 600.28 [16:35:25]line НСП 1% : 5.31 [16:35:25]line НДС 12% : 63.75 [16:35:25]line Наличными: 0.00 [16:35:25]line Безнал.: 600.28 [16:35:25]line Место: АЗС № 85 "Партнер Нефть" [16:35:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:35:25]line СНО: Общий режим [16:35:25]line Чек 219 23.10.2024 16:35 [16:35:25]line Смена: 196 ФФД: 1.0 [16:35:25]line ЗНМ: 0300000167 [16:35:25]line РНМ: 0000000000156251 [16:35:25]line Версия ККМ: v1.0 [16:35:25]line Платежная система: Mbank [16:35:25]line ФМ: 0000000000963346 [16:35:25]line ФД: 70703 [16:35:25]line ФПД: 206789790546691 [16:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70703&fm=206789790546691&tin=02508201610067®Number=0000000000156251&sum=60028 [16:35:25]OFD Sender: Processing packet 70703 [packets to send 18, broken 17] [16:35:25]ProducePacketName [16:35:25]name=ofd_packets/00070703 [16:35:25]OFD Sender: To server: pG, [16:35:25]CommunicateWithHost lk.salyk.kg:30040 [16:35:25]ConnectInit lk.salyk.kg [16:35:25]written 0, free lines is 4095 [16:35:25]Connected sock=10 [16:35: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 E8 86 07 01 C7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DB 00 00 00 F4 03 04 00 CD 25 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BC 13 00 02 3B 03 E9 55 64 AB 41 E3 F7 75 [16:35: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 84 64 47 00 72 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 2F 14 01 00 F4 03 04 00 6B CF 18 67 B6 04 01 00 00 3B 97 06 1E 9F 20 99 DE [16:35:26]CommunicateWithHost err = 0 [16:35:26]CheckOFDResponse [16:35:26]1017 (14) - 77093643461234 [16:35:26]1041 (16) - 0000000000963346 [16:35:26]1040 (4) - 70703 [16:35:26]1012 (4) - 23.10.2024 10:26 [16:35:26]1206 (1) - 0 [16:35:26]OFD Sender: Remove packet 70703 [16:35:26]ProducePacketName [16:35:26]name=ofd_packets/00070703 [16:35:26]NVStorageDeleteData [16:35:26]Write to MH i2c: 01 00 00 41 1D 5E [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 20 0D 92 [16:35:26]RasterBufferAndPrint [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]written 0, free lines is 3366 [16:35:26]MH_Cut [16:35:26]Write to MH i2c: D1 01 00 48 1D 01 37 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 01 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 01 00 48 1D 00 36 [16:35:26]Write to MH i2c: 01 00 00 49 1D 66 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]OFD Sender: No OFD packet to send [16:35:26]*** Cut start [16:35:26]*** Partial cut [16:35:26]*** CUTSNS_PIN = 1 [16:35:27]*** CUTSNS_PIN = 0 [16:35:27]*** Brake cut motor [16:35:27]Read from MH i2c: 01 [16:35:27]MH_I2C_Read... [16:35:27]*** Stop cut motor [16:35:27]*** Cut end [16:35:27]Read from MH i2c: 01 07 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 FF 0F 7B [16:35:27]process_action close_receipt done [16:35:27]requested_data is exist [16:35:27]produce_requested_data [16:35:27]requested_item fm.sn is exist - process it [16:35:27]wFMCommunicate request_size=4 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 11 00 00 [16:35:27]Write to MH i2c: E2 08 00 4A 1D 80 11 00 00 00 00 00 00 E1 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 17 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 17 00 4A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [16:35: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:35:27]wFMCommunicate OK [16:35:27]requested_item fd.num is exist - process it [16:35:27]SAM_PROTO_GetFieldsCounters [16:35:27]wFMCommunicate request_size=4 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 13 00 00 [16:35:27]Write to MH i2c: E2 08 00 4B 1D 80 13 00 00 00 00 00 00 E4 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 62 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 62 00 4B 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 2F 14 01 00 0E 04 04 00 C4 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 98 [16:35: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 2F 14 01 00 0E 04 04 00 C4 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 [16:35:27]wFMCommunicate OK [16:35:27]SAM_PROTO_GetFieldsCounters done [16:35:27]requested_item shift.num is exist - process it [16:35:27]requested_item shift.opened is exist - process it [16:35:27]req_shift_opened [16:35:27]FM_GetShiftState [16:35:27]SAM_PROTO_GetShiftState [16:35:27]wFMCommunicate request_size=4 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 13 01 00 [16:35:27]Write to MH i2c: E2 08 00 4C 1D 80 13 01 00 00 00 00 00 E6 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 0E 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 0E 00 4C 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 73 [16:35:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:35:27]wFMCommunicate OK [16:35:27]SAM_PROTO_GetShiftState done [16:35:27]FM_GetShiftState done [16:35:27]req_shift_opened done [16:35:27]requested_item shift.open_date is exist - process it [16:35:27]req_shift_open_date [16:35:27]req_shift_open_date done [16:35:27]produce_requested_data done [16:35:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70703,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:35:27]process_action_free close_receipt [16:35:27]json_value_free [16:35:27]json_value_free done [16:35:27]process_json_proto returns [16:35:27]Send response to host [16:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70703,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:35:27]free response buf [16:35:27]execute_script done [16:35:27]execute_script returns [16:35:27]free content buf [16:35:27]Sock 7.Close socket [16:35:27]Sock 7.Thread stoped [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:06]accept exits with 9 [16:37:06]New connection [16:37:06]New thread 3067034980 created [16:37:06]Thread 3066891620 joined [16:37:06]Waiting for new connection... [16:37:06] Sock 9.Parse request [16:37:06]Sock 9.Check first char [16:37:06]Sock 9.First char is OK [16:37:06]request: POST /json_proto HTTP/1.0 [16:37:06]Method: POST [16:37:06]URL: /json_proto [16:37:06]Method is POST - this is cgi request [16:37:06]url: /json_proto [16:37:06]query_string will be loaded in cgi processing [16:37:06]execute_cgi json_proto POST (null) [16:37:06]execute_cgi path=json_proto method=POST [16:37:06]POST find Content-Length [16:37:06]Host: 172.17.50.3:8080 [16:37:06]Content-Length: 675 [16:37:06]Content-Type: application/json [16:37:06] [16:37:06]POST finish read [16:37:06]Found Content-Length = 675 [16:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886484", "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:37:06]execute_script... [16:37: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)2886484", "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:37:06]POST & json_proto [16:37:06]process_json_proto [16:37:06]json parsed OK: [16:37:06]protocol is kg_v1.0 [16:37:06]action value=close_receipt [16:37:06]process_action close_receipt [16:37:06]cmd_close_receipt [16:37:06]MH_GetDate [16:37:06]Write to MH i2c: F0 00 00 4D 1D 59 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: F0 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: F0 09 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: F0 09 00 4D 1D 00 34 26 19 67 6B 98 1E 66 C3 [16:37:06]GetLastDocTimeStamp 1729701325 [16:37:06]current date 1729701428 [16:37:06]FM_GetShiftState [16:37:06]SAM_PROTO_GetShiftState [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 13 01 00 [16:37:06]Write to MH i2c: E2 08 00 4E 1D 80 13 01 00 00 00 00 00 E8 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0E 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0E 00 4E 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 75 [16:37:06]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_GetShiftState done [16:37:06]FM_GetShiftState done [16:37:06]opened in 1729642435 [16:37:06]opened+sec_in_day 1729728835 [16:37:06]quantity*price = 50063 [16:37:06]sum+1 = 50064 [16:37:06]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 СНО: Общий режим Чек 220 23.10.2024 16:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70704 ФПД: 35157077498907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70704&fm=35157077498907&tin=02508201610067®Number=0000000000156251&sum=50000 [16:37:08]StoreToDocumentArchive [16:37:08]shift 196 fd 70704 [16:37:08]save to /storage/0196/doc_00070704 [16:37:08]save last doc name /storage/0196/doc_00070704 to /storage/kkm_last_doc_name [16:37:08]save OK [16:37:08]Clear old archive folders... [16:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:08]tlvbuf is 00122610 [16:37:08]SAM_PROTO_ClearQueue [16:37:08]wFMCommunicate request_size=4 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 09 00 00 [16:37:08]Write to MH i2c: E2 08 00 5B 1D 80 09 00 00 00 00 00 00 EA [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [16:37:08]RAPDU: 90 00 [16:37:08]wFMCommunicate OK [16:37:08]SAM_PROTO_ClearQueue done [16:37:08]KKMCreateOFDPacket [16:37:08]OFDProtocolAddRootSTLVToBuf [16:37:08]FM_MakeSignedData [16:37:08]FM_MakeSignedData [16:37:08]SAM_PROTO_SignData [16:37:08]wFMCommunicate request_size=4 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 0D 01 02 [16:37:08]Write to MH i2c: E2 08 00 5C 1D 80 0D 01 02 00 00 00 00 F2 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [16:37:08]RAPDU: 90 00 [16:37:08]wFMCommunicate OK [16:37:08]wFMCommunicate request_size=255 [16:37:08]MH_SAM_APDU [16:37:08]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 DC 00 00 00 F4 03 04 00 34 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1F F9 A5 1D [16:37:08]Write to MH i2c: E2 02 01 5D 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 DC 00 00 00 F4 03 04 00 34 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1F F9 A5 1D 00 00 92 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [16:37:08]RAPDU: 90 00 [16:37:08]wFMCommunicate OK [16:37:08]wFMCommunicate request_size=7 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 0D 02 02 02 9C 1B [16:37:08]Write to MH i2c: E2 0A 00 5E 1D 80 0D 02 02 02 00 9C 1B 00 00 B0 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [16:37:08]RAPDU: 90 00 [16:37:08]wFMCommunicate OK [16:37:08]wFMCommunicate request_size=4 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 0D 03 02 [16:37:08]Write to MH i2c: E2 08 00 5F 1D 80 0D 03 02 00 00 00 00 F7 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 0B 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 0B 00 5F 1D 00 A3 C8 C0 84 52 28 A1 B3 90 00 75 [16:37:08]RAPDU: A3 C8 C0 84 52 28 A1 B3 90 00 [16:37:08]wFMCommunicate OK [16:37:08]SAM_PROTO_SignData done [16:37:08]FM_MakeSignedData done [16:37:08]CreateOFDProtocolMessage [16:37:08]wFMCommunicate request_size=4 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 11 00 00 [16:37:08]Write to MH i2c: E2 08 00 60 1D 80 11 00 00 00 00 00 00 F7 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 17 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 17 00 60 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [16:37: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:37:08]wFMCommunicate OK [16:37:08]CreateOFDProtocolMessage done [16:37:08]OFDSenderStorePacket 70704 [16:37:08]StoreOFDPacket docnum=70704 [16:37: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 0C 01 00 00 FA 85 04 01 90 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 DC 00 00 00 F4 03 04 00 34 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1F F9 A5 1D 9C 1B A3 C8 C0 84 52 28 A1 B3 [16:37:08]CheckFolder [16:37:08]dirname=/storage/ofd_packets [16:37:08]CheckFolder done [16:37:08]ProducePacketName [16:37:08]name=ofd_packets/00070704 [16:37:08]NVStorageSaveData ofd_packets/00070704 [16:37:08]File name is /storage/ofd_packets/00070704 [16:37:08]Write 298 bytes [16:37:08]NVStorageSaveData done [16:37:08]OFDSenderStorePacket done [16:37:08]KKMCreateOFDPacket done [16:37:08]NVStorageSaveData kkm_last_timestamp [16:37:08]File name is /storage/kkm_last_timestamp [16:37:08]Write 4 bytes [16:37:08]NVStorageSaveData done [16:37:08]ExternCall_PrintAddStr [16:37:08]wPrintStart [16:37:08]Write to MH i2c: 01 00 00 61 1D 7E [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: 01 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: 01 07 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [16:37:08]RasterBufferAndPrint [16:37:08]line Счет N : (1)2886484 [16:37:08]line ИНН: 02508201610067 [16:37:08]line Контрольно-Кассовый Чек [16:37:08]line ПРОДАЖА [16:37:08]line ТРК (МРК, ГНК) : 61 [16:37:08]line Товар: 2710194210 [16:37:08]line ДТ-К-5 [16:37:08]line 6.570 * 76.20 [16:37:08]line = 500.63 [16:37:08]line НДС 12% НСП 1% [16:37:08]line > о реализуемом товаре [16:37:08]line ОКРУГЛЕНИЕ: -0.63 [16:37:08]line ИТОГО: 500.00 [16:37:08]line Внесено: 500.00 [16:37:08]line СДАЧА: 0.00 [16:37:08]line НСП 1% : 4.43 [16:37:08]line НДС 12% : 53.16 [16:37:08]line Наличными: 500.00 [16:37:08]line Безнал.: 0.00 [16:37:08]line Место: АЗС № 85 "Партнер Нефть" [16:37:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:37:08]line СНО: Общий режим [16:37:08]line Чек 220 23.10.2024 16:37 [16:37:08]line Смена: 196 ФФД: 1.0 [16:37:08]line ЗНМ: 0300000167 [16:37:08]line РНМ: 0000000000156251 [16:37:08]line Версия ККМ: v1.0 [16:37:08]line ФМ: 0000000000963346 [16:37:08]line ФД: 70704 [16:37:08]line ФПД: 35157077498907 [16:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70704&fm=35157077498907&tin=02508201610067®Number=0000000000156251&sum=50000 [16:37:08]OFD Sender: Processing packet 70704 [packets to send 18, broken 17] [16:37:08]ProducePacketName [16:37:08]name=ofd_packets/00070704 [16:37:08]OFD Sender: To server: pG, [16:37:08]CommunicateWithHost lk.salyk.kg:30040 [16:37:08]ConnectInit lk.salyk.kg [16:37:08]written 0, free lines is 4095 [16:37:09]Connected sock=10 [16:37: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 0C 01 00 00 FA 85 04 01 90 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 DC 00 00 00 F4 03 04 00 34 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1F F9 A5 1D 9C 1B A3 C8 C0 84 52 28 A1 B3 [16:37: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 8B D0 47 00 67 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 30 14 01 00 F4 03 04 00 D2 CF 18 67 B6 04 01 00 00 D9 3E 43 7B CC 0B C9 58 [16:37:09]CommunicateWithHost err = 0 [16:37:09]CheckOFDResponse [16:37:09]1017 (14) - 77093643461234 [16:37:09]1041 (16) - 0000000000963346 [16:37:09]1040 (4) - 70704 [16:37:09]1012 (4) - 23.10.2024 10:28 [16:37:09]1206 (1) - 0 [16:37:09]OFD Sender: Remove packet 70704 [16:37:09]ProducePacketName [16:37:09]name=ofd_packets/00070704 [16:37:09]NVStorageDeleteData [16:37:09]Write to MH i2c: 01 00 00 8C 1D A9 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 E4 0C A0 [16:37:09]RasterBufferAndPrint [16:37:09]line [16:37:09]line [16:37:09]line [16:37:09]line [16:37:09]line [16:37:09]written 0, free lines is 3306 [16:37:09]MH_Cut [16:37:09]Write to MH i2c: D1 01 00 93 1D 01 82 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: D1 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: D1 01 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: D1 01 00 93 1D 00 81 [16:37:09]Write to MH i2c: 01 00 00 94 1D B1 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]OFD Sender: No OFD packet to send [16:37:10]*** Cut start [16:37:10]*** Partial cut [16:37:10]*** CUTSNS_PIN = 1 [16:37:10]*** CUTSNS_PIN = 0 [16:37:10]*** Brake cut motor [16:37:10]Read from MH i2c: 01 [16:37:10]MH_I2C_Read... [16:37:10]*** Stop cut motor [16:37:10]*** Cut end [16:37:10]Read from MH i2c: 01 07 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: 01 07 00 94 1D 00 00 00 00 00 FF 0F C6 [16:37:10]process_action close_receipt done [16:37:10]requested_data is exist [16:37:10]produce_requested_data [16:37:10]requested_item fm.sn is exist - process it [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 11 00 00 [16:37:10]Write to MH i2c: E2 08 00 95 1D 80 11 00 00 00 00 00 00 2C [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 17 00 [16:37:10]MH_I2C_Read... [16:37:10]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 [16:37: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:37:10]wFMCommunicate OK [16:37:10]requested_item fd.num is exist - process it [16:37:10]SAM_PROTO_GetFieldsCounters [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 13 00 00 [16:37:10]Write to MH i2c: E2 08 00 96 1D 80 13 00 00 00 00 00 00 2F [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 62 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 62 00 96 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 30 14 01 00 0E 04 04 00 C4 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 E7 [16:37: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 30 14 01 00 0E 04 04 00 C4 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 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_GetFieldsCounters done [16:37:10]requested_item shift.num is exist - process it [16:37:10]requested_item shift.opened is exist - process it [16:37:10]req_shift_opened [16:37:10]FM_GetShiftState [16:37:10]SAM_PROTO_GetShiftState [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 13 01 00 [16:37:10]Write to MH i2c: E2 08 00 97 1D 80 13 01 00 00 00 00 00 31 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 97 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BE [16:37:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_GetShiftState done [16:37:10]FM_GetShiftState done [16:37:10]req_shift_opened done [16:37:10]requested_item shift.open_date is exist - process it [16:37:10]req_shift_open_date [16:37:10]req_shift_open_date done [16:37:10]produce_requested_data done [16:37:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70704,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:37:10]process_action_free close_receipt [16:37:10]json_value_free [16:37:10]json_value_free done [16:37:10]process_json_proto returns [16:37:10]Send response to host [16:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70704,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:37:10]free response buf [16:37:10]execute_script done [16:37:10]execute_script returns [16:37:10]free content buf [16:37:10]Sock 9.Close socket [16:37:10]Sock 9.Thread stoped [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:05]accept exits with 7 [16:38:05]New connection [16:38:05]New thread 3066891620 created [16:38:05]Thread 3067034980 joined [16:38:05]Waiting for new connection... [16:38:05] Sock 7.Parse request [16:38:05]Sock 7.Check first char [16:38:05]Sock 7.First char is OK [16:38:05]request: POST /json_proto HTTP/1.0 [16:38:05]Method: POST [16:38:05]URL: /json_proto [16:38:05]Method is POST - this is cgi request [16:38:05]url: /json_proto [16:38:05]query_string will be loaded in cgi processing [16:38:05]execute_cgi json_proto POST (null) [16:38:05]execute_cgi path=json_proto method=POST [16:38:05]POST find Content-Length [16:38:05]Host: 172.17.50.3:8080 [16:38:05]Content-Length: 683 [16:38:05]Content-Type: application/json [16:38:05] [16:38:05]POST finish read [16:38:05]Found Content-Length = 683 [16:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886486", "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" : 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" ] } } [16:38:05]execute_script... [16: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)2886486", "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" : 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" ] } } [16:38:05]POST & json_proto [16:38:05]process_json_proto [16:38:05]json parsed OK: [16:38:05]protocol is kg_v1.0 [16:38:05]action value=close_receipt [16:38:05]process_action close_receipt [16:38:05]cmd_close_receipt [16:38:05]MH_GetDate [16:38:05]Write to MH i2c: F0 00 00 98 1D A4 [16:38:05]Write i2c OK [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 09 00 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 09 00 98 1D 00 6F 26 19 67 6B 98 1E 66 49 [16:38:05]GetLastDocTimeStamp 1729701428 [16:38:05]current date 1729701487 [16:38:05]FM_GetShiftState [16:38:05]SAM_PROTO_GetShiftState [16:38:05]wFMCommunicate request_size=4 [16:38:05]MH_SAM_APDU [16:38:05]CAPDU: 80 13 01 00 [16:38:05]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [16:38:05]Write i2c OK [16:38:05]MH_I2C_Read... [16:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:05]Read from MH i2c: E2 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: E2 0E 00 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C0 [16:38:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:38:05]wFMCommunicate OK [16:38:05]SAM_PROTO_GetShiftState done [16:38:05]FM_GetShiftState done [16:38:05]opened in 1729642435 [16:38:05]opened+sec_in_day 1729728835 [16:38:05]quantity*price = 150032 [16:38:05]sum+1 = 150033 [16:38:05]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 СНО: Общий режим Чек 221 23.10.2024 16:38 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70705 ФПД: 213320265802411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163807&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70705&fm=213320265802411&tin=02508201610067®Number=0000000000156251&sum=150000 [16:38:06]StoreToDocumentArchive [16:38:06]shift 196 fd 70705 [16:38:06]save to /storage/0196/doc_00070705 [16:38:06]save last doc name /storage/0196/doc_00070705 to /storage/kkm_last_doc_name [16:38:06]save OK [16:38:06]Clear old archive folders... [16:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:06]tlvbuf is 0013E920 [16:38:06]SAM_PROTO_ClearQueue [16:38:06]wFMCommunicate request_size=4 [16:38:06]MH_SAM_APDU [16:38:06]CAPDU: 80 09 00 00 [16:38:06]Write to MH i2c: E2 08 00 A6 1D 80 09 00 00 00 00 00 00 35 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 A6 1D 00 90 00 37 [16:38:06]RAPDU: 90 00 [16:38:06]wFMCommunicate OK [16:38:06]SAM_PROTO_ClearQueue done [16:38:06]KKMCreateOFDPacket [16:38:06]OFDProtocolAddRootSTLVToBuf [16:38:06]FM_MakeSignedData [16:38:06]FM_MakeSignedData [16:38:06]SAM_PROTO_SignData [16:38:06]wFMCommunicate request_size=4 [16:38:06]MH_SAM_APDU [16:38:06]CAPDU: 80 0D 01 02 [16:38:06]Write to MH i2c: E2 08 00 A7 1D 80 0D 01 02 00 00 00 00 3D [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [16:38:06]RAPDU: 90 00 [16:38:06]wFMCommunicate OK [16:38:06]wFMCommunicate request_size=255 [16:38:06]MH_SAM_APDU [16:38: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 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 DD 00 00 00 F4 03 04 00 6F 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 [16:38:06]Write to MH i2c: E2 02 01 A8 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 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 DD 00 00 00 F4 03 04 00 6F 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 00 00 E7 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [16:38:06]RAPDU: 90 00 [16:38:06]wFMCommunicate OK [16:38:06]wFMCommunicate request_size=10 [16:38:06]MH_SAM_APDU [16:38:06]CAPDU: 80 0D 02 02 05 03 7E AA A2 AB [16:38:06]Write to MH i2c: E2 0D 00 A9 1D 80 0D 02 02 05 00 03 7E AA A2 AB 00 00 C2 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [16:38:06]RAPDU: 90 00 [16:38:06]wFMCommunicate OK [16:38:06]wFMCommunicate request_size=4 [16:38:06]MH_SAM_APDU [16:38:06]CAPDU: 80 0D 03 02 [16:38:06]Write to MH i2c: E2 08 00 AA 1D 80 0D 03 02 00 00 00 00 42 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 0B 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 0B 00 AA 1D 00 55 11 CF AD 09 20 9E 9B 90 00 87 [16:38:06]RAPDU: 55 11 CF AD 09 20 9E 9B 90 00 [16:38:06]wFMCommunicate OK [16:38:06]SAM_PROTO_SignData done [16:38:06]FM_MakeSignedData done [16:38:06]CreateOFDProtocolMessage [16:38:06]wFMCommunicate request_size=4 [16:38:06]MH_SAM_APDU [16:38:06]CAPDU: 80 11 00 00 [16:38:06]Write to MH i2c: E2 08 00 AB 1D 80 11 00 00 00 00 00 00 42 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:06]Read from MH i2c: E2 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 17 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: E2 17 00 AB 1D 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:38: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:38:06]wFMCommunicate OK [16:38:06]CreateOFDProtocolMessage done [16:38:06]OFDSenderStorePacket 70705 [16:38:06]StoreOFDPacket docnum=70705 [16:38: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 1F 95 07 01 51 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 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 DD 00 00 00 F4 03 04 00 6F 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 03 7E AA A2 AB 55 11 CF AD 09 20 9E 9B [16:38:06]CheckFolder [16:38:06]dirname=/storage/ofd_packets [16:38:06]CheckFolder done [16:38:06]ProducePacketName [16:38:06]name=ofd_packets/00070705 [16:38:06]NVStorageSaveData ofd_packets/00070705 [16:38:06]File name is /storage/ofd_packets/00070705 [16:38:06]Write 301 bytes [16:38:06]NVStorageSaveData done [16:38:06]OFDSenderStorePacket done [16:38:06]KKMCreateOFDPacket done [16:38:06]NVStorageSaveData kkm_last_timestamp [16:38:06]File name is /storage/kkm_last_timestamp [16:38:06]Write 4 bytes [16:38:06]NVStorageSaveData done [16:38:06]ExternCall_PrintAddStr [16:38:06]wPrintStart [16:38:06]Write to MH i2c: 01 00 00 AC 1D C9 [16:38:06]Write i2c OK [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: 01 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: 01 07 00 [16:38:06]MH_I2C_Read... [16:38:06]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 FF 0F DE [16:38:06]RasterBufferAndPrint [16:38:06]line Счет N : (1)2886486 [16:38:06]line ИНН: 02508201610067 [16:38:06]line Контрольно-Кассовый Чек [16:38:06]line ПРОДАЖА [16:38:06]line ТРК (МРК, ГНК) : 43 [16:38:06]line Товар: 2710124500 [16:38:06]line Аи-95-К-5 [16:38:06]line 20.220 * 74.20 [16:38:06]line = 1500.32 [16:38:06]line НДС 12% НСП 1% [16:38:06]line > о реализуемом товаре [16:38:06]line ОКРУГЛЕНИЕ: -0.32 [16:38:06]line ИТОГО: 1500.00 [16:38:06]line Внесено: 1500.00 [16:38:06]line СДАЧА: 0.00 [16:38:06]line НСП 1% : 13.28 [16:38:06]line НДС 12% : 159.33 [16:38:06]line Наличными: 1500.00 [16:38:06]line Безнал.: 0.00 [16:38:06]line Место: АЗС № 85 "Партнер Нефть" [16:38:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:38:06]line СНО: Общий режим [16:38:06]line Чек 221 23.10.2024 16:38 [16:38:07]line Смена: 196 ФФД: 1.0 [16:38:07]line ЗНМ: 0300000167 [16:38:07]line РНМ: 0000000000156251 [16:38:07]line Версия ККМ: v1.0 [16:38:07]line ФМ: 0000000000963346 [16:38:07]line ФД: 70705 [16:38:07]line ФПД: 213320265802411 [16:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163807&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70705&fm=213320265802411&tin=02508201610067®Number=0000000000156251&sum=150000 [16:38:07]OFD Sender: Processing packet 70705 [packets to send 18, broken 17] [16:38:07]ProducePacketName [16:38:07]name=ofd_packets/00070705 [16:38:07]OFD Sender: To server: pG, [16:38:07]CommunicateWithHost lk.salyk.kg:30040 [16:38:07]ConnectInit lk.salyk.kg [16:38:07]written 0, free lines is 4095 [16:38:07]Connected sock=10 [16: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 0F 01 00 00 1F 95 07 01 51 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 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 DD 00 00 00 F4 03 04 00 6F 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 03 7E AA A2 AB 55 11 CF AD 09 20 9E 9B [16: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 39 10 47 00 44 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 31 14 01 00 F4 03 04 00 0C D0 18 67 B6 04 01 00 00 7C C4 8A 7D B8 6D 07 C5 [16:38:07]CommunicateWithHost err = 0 [16:38:07]CheckOFDResponse [16:38:07]1017 (14) - 77093643461234 [16:38:07]1041 (16) - 0000000000963346 [16:38:07]1040 (4) - 70705 [16:38:07]1012 (4) - 23.10.2024 10:29 [16:38:07]1206 (1) - 0 [16:38:07]OFD Sender: Remove packet 70705 [16:38:07]ProducePacketName [16:38:07]name=ofd_packets/00070705 [16:38:07]NVStorageDeleteData [16:38:07]Write to MH i2c: 01 00 00 D7 1D F4 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 EC 0C F3 [16:38:07]RasterBufferAndPrint [16:38:07]line [16:38:07]line [16:38:07]line [16:38:07]line [16:38:07]line [16:38:07]written 0, free lines is 3314 [16:38:07]MH_Cut [16:38:07]Write to MH i2c: D1 01 00 DE 1D 01 CD [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: D1 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: D1 01 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: D1 01 00 DE 1D 00 CC [16:38:07]Write to MH i2c: 01 00 00 DF 1D FC [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]OFD Sender: No OFD packet to send [16:38:08]*** Cut start [16:38:08]*** Partial cut [16:38:08]*** CUTSNS_PIN = 1 [16:38:08]*** CUTSNS_PIN = 0 [16:38:08]*** Brake cut motor [16:38:08]Read from MH i2c: 01 [16:38:08]MH_I2C_Read... [16:38:08]*** Stop cut motor [16:38:08]*** Cut end [16:38:08]Read from MH i2c: 01 07 00 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 FF 0F 11 [16:38:08]process_action close_receipt done [16:38:08]requested_data is exist [16:38:08]produce_requested_data [16:38:08]requested_item fm.sn is exist - process it [16:38:08]wFMCommunicate request_size=4 [16:38:08]MH_SAM_APDU [16:38:08]CAPDU: 80 11 00 00 [16:38:08]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [16:38:08]Write i2c OK [16:38:08]MH_I2C_Read... [16:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:08]Read from MH i2c: E2 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: E2 17 00 [16:38:08]MH_I2C_Read... [16:38:08]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 [16:38: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:38:08]wFMCommunicate OK [16:38:08]requested_item fd.num is exist - process it [16:38:08]SAM_PROTO_GetFieldsCounters [16:38:08]wFMCommunicate request_size=4 [16:38:08]MH_SAM_APDU [16:38:08]CAPDU: 80 13 00 00 [16:38:08]Write to MH i2c: E2 08 00 E1 1D 80 13 00 00 00 00 00 00 7A [16:38:08]Write i2c OK [16:38:08]MH_I2C_Read... [16:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:09]Read from MH i2c: E2 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 62 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 62 00 E1 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 31 14 01 00 0E 04 04 00 C4 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 36 [16: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 31 14 01 00 0E 04 04 00 C4 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 [16:38:09]wFMCommunicate OK [16:38:09]SAM_PROTO_GetFieldsCounters done [16:38:09]requested_item shift.num is exist - process it [16:38:09]requested_item shift.opened is exist - process it [16:38:09]req_shift_opened [16:38:09]FM_GetShiftState [16:38:09]SAM_PROTO_GetShiftState [16:38:09]wFMCommunicate request_size=4 [16:38:09]MH_SAM_APDU [16:38:09]CAPDU: 80 13 01 00 [16:38:09]Write to MH i2c: E2 08 00 E2 1D 80 13 01 00 00 00 00 00 7C [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:09]Read from MH i2c: E2 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 0E 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 0E 00 E2 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 09 [16:38:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:38:09]wFMCommunicate OK [16:38:09]SAM_PROTO_GetShiftState done [16:38:09]FM_GetShiftState done [16:38:09]req_shift_opened done [16:38:09]requested_item shift.open_date is exist - process it [16:38:09]req_shift_open_date [16:38:09]req_shift_open_date done [16:38:09]produce_requested_data done [16:38:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70705,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:38:09]process_action_free close_receipt [16:38:09]json_value_free [16:38:09]json_value_free done [16:38:09]process_json_proto returns [16:38:09]Send response to host [16:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70705,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:38:09]free response buf [16:38:09]execute_script done [16:38:09]execute_script returns [16:38:09]free content buf [16:38:09]Sock 7.Close socket [16:38:09]Sock 7.Thread stoped [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:19]accept exits with 9 [16:39:19]New connection [16:39:19]New thread 3067034980 created [16:39:19]Thread 3066891620 joined [16:39:19]Waiting for new connection... [16:39:19] Sock 9.Parse request [16:39:19]Sock 9.Check first char [16:39:19]Sock 9.First char is OK [16:39:19]request: POST /json_proto HTTP/1.0 [16:39:19]Method: POST [16:39:19]URL: /json_proto [16:39:19]Method is POST - this is cgi request [16:39:19]url: /json_proto [16:39:19]query_string will be loaded in cgi processing [16:39:19]execute_cgi json_proto POST (null) [16:39:19]execute_cgi path=json_proto method=POST [16:39:19]POST find Content-Length [16:39:19]Host: 172.17.50.3:8080 [16:39:19]Content-Length: 689 [16:39:19]Content-Type: application/json [16:39:19] [16:39:19]POST finish read [16:39:19]Found Content-Length = 689 [16:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886485", "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" ] } } [16:39:19]execute_script... [16: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)2886485", "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" ] } } [16:39:19]POST & json_proto [16:39:19]process_json_proto [16:39:19]json parsed OK: [16:39:19]protocol is kg_v1.0 [16:39:19]action value=close_receipt [16:39:19]process_action close_receipt [16:39:19]cmd_close_receipt [16:39:19]MH_GetDate [16:39:19]Write to MH i2c: F0 00 00 E3 1D EF [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 E3 1D 00 B9 26 19 67 6B 98 1E 66 DE [16:39:19]GetLastDocTimeStamp 1729701487 [16:39:19]current date 1729701561 [16:39:19]FM_GetShiftState [16:39:19]SAM_PROTO_GetShiftState [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 13 01 00 [16:39:19]Write to MH i2c: E2 08 00 E4 1D 80 13 01 00 00 00 00 00 7E [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 E4 1D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0B [16:39:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:39:19]wFMCommunicate OK [16:39:19]SAM_PROTO_GetShiftState done [16:39:19]FM_GetShiftState done [16:39:19]opened in 1729642435 [16:39:19]opened+sec_in_day 1729728835 [16:39:19]quantity*price = 200025 [16:39:19]sum+1 = 200026 [16:39:19]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 СНО: Общий режим Чек 222 23.10.2024 16:39 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70706 ФПД: 92770827417167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70706&fm=92770827417167&tin=02508201610067®Number=0000000000156251&sum=200000 [16:39:20]StoreToDocumentArchive [16:39:20]shift 196 fd 70706 [16:39:20]save to /storage/0196/doc_00070706 [16:39:20]save last doc name /storage/0196/doc_00070706 to /storage/kkm_last_doc_name [16:39:20]save OK [16:39:20]Clear old archive folders... [16:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:39:20]tlvbuf is B6EEE900 [16:39:20]SAM_PROTO_ClearQueue [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 09 00 00 [16:39:20]Write to MH i2c: E2 08 00 F1 1D 80 09 00 00 00 00 00 00 80 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]SAM_PROTO_ClearQueue done [16:39:20]KKMCreateOFDPacket [16:39:20]OFDProtocolAddRootSTLVToBuf [16:39:20]FM_MakeSignedData [16:39:20]FM_MakeSignedData [16:39:20]SAM_PROTO_SignData [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 01 02 [16:39:20]Write to MH i2c: E2 08 00 F2 1D 80 0D 01 02 00 00 00 00 88 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]wFMCommunicate request_size=255 [16:39:20]MH_SAM_APDU [16:39: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 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 DE 00 00 00 F4 03 04 00 B9 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:39:20]Write to MH i2c: E2 02 01 F3 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 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 DE 00 00 00 F4 03 04 00 B9 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 66 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]wFMCommunicate request_size=16 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 5F E4 36 B6 4F [16:39:21]Write to MH i2c: E2 13 00 F4 1D 80 0D 02 02 0B 00 00 35 04 06 00 54 5F E4 36 B6 4F 00 00 B2 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 03 02 [16:39:21]Write to MH i2c: E2 08 00 F5 1D 80 0D 03 02 00 00 00 00 8D [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 0B 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 0B 00 F5 1D 00 04 B0 70 E8 C6 4B 64 A4 90 00 B3 [16:39:21]RAPDU: 04 B0 70 E8 C6 4B 64 A4 90 00 [16:39:21]wFMCommunicate OK [16:39:21]SAM_PROTO_SignData done [16:39:21]FM_MakeSignedData done [16:39:21]CreateOFDProtocolMessage [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 11 00 00 [16:39:21]Write to MH i2c: E2 08 00 F6 1D 80 11 00 00 00 00 00 00 8D [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 17 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 17 00 F6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [16: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 [16:39:21]wFMCommunicate OK [16:39:21]CreateOFDProtocolMessage done [16:39:21]OFDSenderStorePacket 70706 [16:39:21]StoreOFDPacket docnum=70706 [16: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 15 01 00 00 38 B5 0D 01 86 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 DE 00 00 00 F4 03 04 00 B9 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 54 5F E4 36 B6 4F 04 B0 70 E8 C6 4B 64 A4 [16:39:21]CheckFolder [16:39:21]dirname=/storage/ofd_packets [16:39:21]CheckFolder done [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00070706 [16:39:21]NVStorageSaveData ofd_packets/00070706 [16:39:21]File name is /storage/ofd_packets/00070706 [16:39:21]Write 307 bytes [16:39:21]NVStorageSaveData done [16:39:21]OFDSenderStorePacket done [16:39:21]KKMCreateOFDPacket done [16:39:21]NVStorageSaveData kkm_last_timestamp [16:39:21]File name is /storage/kkm_last_timestamp [16:39:21]Write 4 bytes [16:39:21]NVStorageSaveData done [16:39:21]ExternCall_PrintAddStr [16:39:21]wPrintStart [16:39:21]Write to MH i2c: 01 00 00 F7 1D 14 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 FF 0F 29 [16:39:21]RasterBufferAndPrint [16:39:21]line Счет N : (1)2886485 [16:39:21]line ИНН: 02508201610067 [16:39:21]line Контрольно-Кассовый Чек [16:39:21]line ПРОДАЖА [16:39:21]line ТРК (МРК, ГНК) : 31 [16:39:21]line Товар: 2710194240 [16:39:21]line D-ENERGY Дт-К-2 [16:39:21]line 25.910 * 77.20 [16:39:21]line = 2000.25 [16:39:21]line НДС 12% НСП 1% [16:39:21]line > о реализуемом товаре [16:39:21]line ОКРУГЛЕНИЕ: -0.25 [16:39:21]line ИТОГО: 2000.00 [16:39:21]line Внесено: 2000.00 [16:39:21]line СДАЧА: 0.00 [16:39:21]line НСП 1% : 17.70 [16:39:21]line НДС 12% : 212.42 [16:39:21]line Наличными: 2000.00 [16:39:21]line Безнал.: 0.00 [16:39:21]line Место: АЗС № 85 "Партнер Нефть" [16:39:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:39:21]line СНО: Общий режим [16:39:21]line Чек 222 23.10.2024 16:39 [16:39:21]line Смена: 196 ФФД: 1.0 [16:39:21]line ЗНМ: 0300000167 [16:39:21]line РНМ: 0000000000156251 [16:39:21]line Версия ККМ: v1.0 [16:39:21]line ФМ: 0000000000963346 [16:39:21]line ФД: 70706 [16:39:21]line ФПД: 92770827417167 [16:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70706&fm=92770827417167&tin=02508201610067®Number=0000000000156251&sum=200000 [16:39:21]OFD Sender: Processing packet 70706 [packets to send 18, broken 17] [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00070706 [16:39:21]OFD Sender: To server: pG, [16:39:21]CommunicateWithHost lk.salyk.kg:30040 [16:39:21]ConnectInit lk.salyk.kg [16:39:21]written 0, free lines is 4095 [16:39:21]Connected sock=10 [16: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 15 01 00 00 38 B5 0D 01 86 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 DE 00 00 00 F4 03 04 00 B9 26 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 54 5F E4 36 B6 4F 04 B0 70 E8 C6 4B 64 A4 [16: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 A2 55 47 00 C9 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 56 D0 18 67 B6 04 01 00 00 92 8D B0 D7 6B DA 98 44 [16:39:21]CommunicateWithHost err = 0 [16:39:21]CheckOFDResponse [16:39:21]1017 (14) - 77093643461234 [16:39:21]1041 (16) - 0000000000963346 [16:39:21]1040 (4) - 70706 [16:39:21]1012 (4) - 23.10.2024 10:30 [16:39:21]1206 (1) - 0 [16:39:21]OFD Sender: Remove packet 70706 [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00070706 [16:39:21]NVStorageDeleteData [16:39:22]Write to MH i2c: 01 00 00 22 1E 40 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 F6 0C 49 [16:39:22]RasterBufferAndPrint [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]written 0, free lines is 3324 [16:39:22]MH_Cut [16:39:22]Write to MH i2c: D1 01 00 29 1E 01 19 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 01 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 01 00 29 1E 00 18 [16:39:22]Write to MH i2c: 01 00 00 2A 1E 48 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]OFD Sender: No OFD packet to send [16:39:22]*** Cut start [16:39:22]*** Partial cut [16:39:22]*** CUTSNS_PIN = 1 [16:39:22]*** CUTSNS_PIN = 0 [16:39:22]*** Brake cut motor [16:39:23]Read from MH i2c: 01 [16:39:23]MH_I2C_Read... [16:39:23]*** Stop cut motor [16:39:23]*** Cut end [16:39:23]Read from MH i2c: 01 07 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 FF 0F 5D [16:39:23]process_action close_receipt done [16:39:23]requested_data is exist [16:39:23]produce_requested_data [16:39:23]requested_item fm.sn is exist - process it [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 11 00 00 [16:39:23]Write to MH i2c: E2 08 00 2B 1E 80 11 00 00 00 00 00 00 C3 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 17 00 [16:39:23]MH_I2C_Read... [16:39:23]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 [16: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 [16:39:23]wFMCommunicate OK [16:39:23]requested_item fd.num is exist - process it [16:39:23]SAM_PROTO_GetFieldsCounters [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 00 00 [16:39:23]Write to MH i2c: E2 08 00 2C 1E 80 13 00 00 00 00 00 00 C6 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 2C 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 32 14 01 00 0E 04 04 00 C4 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 86 [16: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 32 14 01 00 0E 04 04 00 C4 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 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetFieldsCounters done [16:39:23]requested_item shift.num is exist - process it [16:39:23]requested_item shift.opened is exist - process it [16:39:23]req_shift_opened [16:39:23]FM_GetShiftState [16:39:23]SAM_PROTO_GetShiftState [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 01 00 [16:39:23]Write to MH i2c: E2 08 00 2D 1E 80 13 01 00 00 00 00 00 C8 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 2D 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 55 [16:39:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetShiftState done [16:39:23]FM_GetShiftState done [16:39:23]req_shift_opened done [16:39:23]requested_item shift.open_date is exist - process it [16:39:23]req_shift_open_date [16:39:23]req_shift_open_date done [16:39:23]produce_requested_data done [16:39:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70706,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:39:23]process_action_free close_receipt [16:39:23]json_value_free [16:39:23]json_value_free done [16:39:23]process_json_proto returns [16:39:23]Send response to host [16:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70706,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:39:23]free response buf [16:39:23]execute_script done [16:39:23]execute_script returns [16:39:23]free content buf [16:39:23]Sock 9.Close socket [16:39:23]Sock 9.Thread stoped [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:54]accept exits with 7 [16:40:54]New connection [16:40:54]New thread 3066891620 created [16:40:54]Thread 3067034980 joined [16:40:54]Waiting for new connection... [16:40:54] Sock 7.Parse request [16:40:54]Sock 7.Check first char [16:40:54]Sock 7.First char is OK [16:40:54]request: POST /json_proto HTTP/1.0 [16:40:54]Method: POST [16:40:54]URL: /json_proto [16:40:54]Method is POST - this is cgi request [16:40:54]url: /json_proto [16:40:54]query_string will be loaded in cgi processing [16:40:54]execute_cgi json_proto POST (null) [16:40:54]execute_cgi path=json_proto method=POST [16:40:54]POST find Content-Length [16:40:54]Host: 172.17.50.3:8080 [16:40:54]Content-Length: 683 [16:40:54]Content-Type: application/json [16:40:54] [16:40:54]POST finish read [16:40:54]Found Content-Length = 683 [16:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886487", "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 }]} ], "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" ] } } [16:40:54]execute_script... [16:40: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)2886487", "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 }]} ], "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" ] } } [16:40:54]POST & json_proto [16:40:54]process_json_proto [16:40:54]json parsed OK: [16:40:54]protocol is kg_v1.0 [16:40:54]action value=close_receipt [16:40:54]process_action close_receipt [16:40:54]cmd_close_receipt [16:40:54]MH_GetDate [16:40:54]Write to MH i2c: F0 00 00 2E 1E 3B [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 09 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 09 00 2E 1E 00 18 27 19 67 6B 98 1E 66 8A [16:40:54]GetLastDocTimeStamp 1729701561 [16:40:54]current date 1729701656 [16:40:54]FM_GetShiftState [16:40:54]SAM_PROTO_GetShiftState [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 13 01 00 [16:40:54]Write to MH i2c: E2 08 00 2F 1E 80 13 01 00 00 00 00 00 CA [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0E 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0E 00 2F 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 57 [16:40:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_GetShiftState done [16:40:54]FM_GetShiftState done [16:40:54]opened in 1729642435 [16:40:54]opened+sec_in_day 1729728835 [16:40:54]quantity*price = 200043 [16:40:54]sum+1 = 200044 [16:40:54]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 СНО: Общий режим Чек 223 23.10.2024 16:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70707 ФПД: 57821272567865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70707&fm=57821272567865&tin=02508201610067®Number=0000000000156251&sum=200000 [16:40:55]StoreToDocumentArchive [16:40:55]shift 196 fd 70707 [16:40:55]save to /storage/0196/doc_00070707 [16:40:55]save last doc name /storage/0196/doc_00070707 to /storage/kkm_last_doc_name [16:40:55]save OK [16:40:55]Clear old archive folders... [16:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:55]tlvbuf is B6DBC300 [16:40:55]SAM_PROTO_ClearQueue [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 09 00 00 [16:40:55]Write to MH i2c: E2 08 00 3C 1E 80 09 00 00 00 00 00 00 CC [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]SAM_PROTO_ClearQueue done [16:40:55]KKMCreateOFDPacket [16:40:55]OFDProtocolAddRootSTLVToBuf [16:40:55]FM_MakeSignedData [16:40:55]FM_MakeSignedData [16:40:55]SAM_PROTO_SignData [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 01 02 [16:40:55]Write to MH i2c: E2 08 00 3D 1E 80 0D 01 02 00 00 00 00 D4 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=255 [16:40:55]MH_SAM_APDU [16:40: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 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 DF 00 00 00 F4 03 04 00 18 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 [16:40:55]Write to MH i2c: E2 02 01 3E 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 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 DF 00 00 00 F4 03 04 00 18 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 00 00 E3 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=10 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 02 02 05 96 90 69 70 39 [16:40:55]Write to MH i2c: E2 0D 00 3F 1E 80 0D 02 02 05 00 96 90 69 70 39 00 00 19 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 03 02 [16:40:55]Write to MH i2c: E2 08 00 40 1E 80 0D 03 02 00 00 00 00 D9 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 40 1E 00 55 31 49 89 1E 4D 7B 00 90 00 18 [16:40:55]RAPDU: 55 31 49 89 1E 4D 7B 00 90 00 [16:40:55]wFMCommunicate OK [16:40:55]SAM_PROTO_SignData done [16:40:55]FM_MakeSignedData done [16:40:55]CreateOFDProtocolMessage [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 11 00 00 [16:40:55]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [16:40: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:40:55]wFMCommunicate OK [16:40:55]CreateOFDProtocolMessage done [16:40:55]OFDSenderStorePacket 70707 [16:40:55]StoreOFDPacket docnum=70707 [16:40: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 D6 2B 07 01 97 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 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 DF 00 00 00 F4 03 04 00 18 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 96 90 69 70 39 55 31 49 89 1E 4D 7B 00 [16:40:55]CheckFolder [16:40:55]dirname=/storage/ofd_packets [16:40:55]CheckFolder done [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00070707 [16:40:55]NVStorageSaveData ofd_packets/00070707 [16:40:55]File name is /storage/ofd_packets/00070707 [16:40:55]Write 301 bytes [16:40:55]NVStorageSaveData done [16:40:55]OFDSenderStorePacket done [16:40:55]KKMCreateOFDPacket done [16:40:55]NVStorageSaveData kkm_last_timestamp [16:40:55]File name is /storage/kkm_last_timestamp [16:40:55]Write 4 bytes [16:40:55]NVStorageSaveData done [16:40:55]ExternCall_PrintAddStr [16:40:55]wPrintStart [16:40:55]Write to MH i2c: 01 00 00 42 1E 60 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [16:40:55]RasterBufferAndPrint [16:40:55]line Счет N : (1)2886487 [16:40:55]line ИНН: 02508201610067 [16:40:55]line Контрольно-Кассовый Чек [16:40:55]line ПРОДАЖА [16:40:55]line ТРК (МРК, ГНК) : 13 [16:40:55]line Товар: 2710124500 [16:40:55]line Аи-95-К-5 [16:40:55]line 26.960 * 74.20 [16:40:55]line = 2000.43 [16:40:55]line НДС 12% НСП 1% [16:40:55]line > о реализуемом товаре [16:40:55]line ОКРУГЛЕНИЕ: -0.43 [16:40:55]line ИТОГО: 2000.00 [16:40:55]line Внесено: 2000.00 [16:40:55]line СДАЧА: 0.00 [16:40:55]line НСП 1% : 17.70 [16:40:55]line НДС 12% : 212.43 [16:40:55]line Наличными: 2000.00 [16:40:55]line Безнал.: 0.00 [16:40:55]line Место: АЗС № 85 "Партнер Нефть" [16:40:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:40:55]line СНО: Общий режим [16:40:55]line Чек 223 23.10.2024 16:40 [16:40:55]line Смена: 196 ФФД: 1.0 [16:40:55]line ЗНМ: 0300000167 [16:40:55]line РНМ: 0000000000156251 [16:40:55]line Версия ККМ: v1.0 [16:40:55]line ФМ: 0000000000963346 [16:40:56]line ФД: 70707 [16:40:56]line ФПД: 57821272567865 [16:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70707&fm=57821272567865&tin=02508201610067®Number=0000000000156251&sum=200000 [16:40:56]OFD Sender: Processing packet 70707 [packets to send 18, broken 17] [16:40:56]ProducePacketName [16:40:56]name=ofd_packets/00070707 [16:40:56]OFD Sender: To server: pG, [16:40:56]CommunicateWithHost lk.salyk.kg:30040 [16:40:56]ConnectInit lk.salyk.kg [16:40:56]written 0, free lines is 4095 [16:40:56]Connected sock=10 [16:40: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 D6 2B 07 01 97 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 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 DF 00 00 00 F4 03 04 00 18 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 34 96 90 69 70 39 55 31 49 89 1E 4D 7B 00 [16:40: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 08 95 47 00 20 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 33 14 01 00 F4 03 04 00 B5 D0 18 67 B6 04 01 00 00 A9 3A 24 4F 91 E0 8B BD [16:40:56]CommunicateWithHost err = 0 [16:40:56]CheckOFDResponse [16:40:56]1017 (14) - 77093643461234 [16:40:56]1041 (16) - 0000000000963346 [16:40:56]1040 (4) - 70707 [16:40:56]1012 (4) - 23.10.2024 10:32 [16:40:56]1206 (1) - 0 [16:40:56]OFD Sender: Remove packet 70707 [16:40:56]ProducePacketName [16:40:56]name=ofd_packets/00070707 [16:40:56]NVStorageDeleteData [16:40:56]Write to MH i2c: 01 00 00 6D 1E 8B [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 E4 0C 82 [16:40:56]RasterBufferAndPrint [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]written 0, free lines is 3306 [16:40:56]MH_Cut [16:40:56]Write to MH i2c: D1 01 00 74 1E 01 64 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 74 1E 00 63 [16:40:56]Write to MH i2c: 01 00 00 75 1E 93 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:57]OFD Sender: No OFD packet to send [16:40:57]*** Cut start [16:40:57]*** Partial cut [16:40:57]*** CUTSNS_PIN = 1 [16:40:57]*** CUTSNS_PIN = 0 [16:40:57]*** Brake cut motor [16:40:58]Read from MH i2c: 01 [16:40:58]MH_I2C_Read... [16:40:58]*** Stop cut motor [16:40:58]*** Cut end [16:40:58]Read from MH i2c: 01 07 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [16:40:58]process_action close_receipt done [16:40:58]requested_data is exist [16:40:58]produce_requested_data [16:40:58]requested_item fm.sn is exist - process it [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 11 00 00 [16:40:58]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 17 00 [16:40:58]MH_I2C_Read... [16:40:58]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 [16:40: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:40:58]wFMCommunicate OK [16:40:58]requested_item fd.num is exist - process it [16:40:58]SAM_PROTO_GetFieldsCounters [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 13 00 00 [16:40:58]Write to MH i2c: E2 08 00 77 1E 80 13 00 00 00 00 00 00 11 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 62 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 62 00 77 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 33 14 01 00 0E 04 04 00 C4 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 D5 [16:40: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 33 14 01 00 0E 04 04 00 C4 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 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_GetFieldsCounters done [16:40:58]requested_item shift.num is exist - process it [16:40:58]requested_item shift.opened is exist - process it [16:40:58]req_shift_opened [16:40:58]FM_GetShiftState [16:40:58]SAM_PROTO_GetShiftState [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 13 01 00 [16:40:58]Write to MH i2c: E2 08 00 78 1E 80 13 01 00 00 00 00 00 13 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 78 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A0 [16:40:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_GetShiftState done [16:40:58]FM_GetShiftState done [16:40:58]req_shift_opened done [16:40:58]requested_item shift.open_date is exist - process it [16:40:58]req_shift_open_date [16:40:58]req_shift_open_date done [16:40:58]produce_requested_data done [16:40:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70707,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:40:58]process_action_free close_receipt [16:40:58]json_value_free [16:40:58]json_value_free done [16:40:58]process_json_proto returns [16:40:58]Send response to host [16:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70707,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:40:58]free response buf [16:40:58]execute_script done [16:40:58]execute_script returns [16:40:58]free content buf [16:40:58]Sock 7.Close socket [16:40:58]Sock 7.Thread stoped [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]accept exits with 9 [16:44:37]New connection [16:44:37]New thread 3067034980 created [16:44:37]Thread 3066891620 joined [16:44:37]Waiting for new connection... [16:44:37] Sock 9.Parse request [16:44:37]Sock 9.Check first char [16:44:37]Sock 9.First char is OK [16:44:37]request: POST /json_proto HTTP/1.0 [16:44:37]Method: POST [16:44:37]URL: /json_proto [16:44:37]Method is POST - this is cgi request [16:44:37]url: /json_proto [16:44:37]query_string will be loaded in cgi processing [16:44:37]execute_cgi json_proto POST (null) [16:44:37]execute_cgi path=json_proto method=POST [16:44:37]POST find Content-Length [16:44:37]Host: 172.17.50.3:8080 [16:44:37]Content-Length: 684 [16:44:37]Content-Type: application/json [16:44:37] [16:44:37]POST finish read [16:44:37]Found Content-Length = 684 [16:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886489", "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" : 5.190, "sum" : 400.67, "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" ] } } [16:44:37]execute_script... [16: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)2886489", "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" : 5.190, "sum" : 400.67, "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" ] } } [16:44:37]POST & json_proto [16:44:37]process_json_proto [16:44:37]json parsed OK: [16:44:37]protocol is kg_v1.0 [16:44:37]action value=close_receipt [16:44:37]process_action close_receipt [16:44:37]cmd_close_receipt [16:44:37]MH_GetDate [16:44:37]Write to MH i2c: F0 00 00 79 1E 86 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: F0 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: F0 09 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: F0 09 00 79 1E 00 F7 27 19 67 6B 98 1E 66 B4 [16:44:37]GetLastDocTimeStamp 1729701656 [16:44:37]current date 1729701879 [16:44:37]FM_GetShiftState [16:44:37]SAM_PROTO_GetShiftState [16:44:37]wFMCommunicate request_size=4 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 13 01 00 [16:44:37]Write to MH i2c: E2 08 00 7A 1E 80 13 01 00 00 00 00 00 15 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]OFD Sender: No OFD packet to send [16:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 0E 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 0E 00 7A 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A2 [16:44:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:44:37]wFMCommunicate OK [16:44:37]SAM_PROTO_GetShiftState done [16:44:37]FM_GetShiftState done [16:44:37]opened in 1729642435 [16:44:37]opened+sec_in_day 1729728835 [16:44:37]quantity*price = 40066 [16:44:37]sum+1 = 40068 [16:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 224 23.10.2024 16:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70708 ФПД: 197355413580826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70708&fm=197355413580826&tin=02508201610067®Number=0000000000156251&sum=40000 [16:44:38]StoreToDocumentArchive [16:44:38]shift 196 fd 70708 [16:44:38]save to /storage/0196/doc_00070708 [16:44:38]save last doc name /storage/0196/doc_00070708 to /storage/kkm_last_doc_name [16:44:38]save OK [16:44:38]Clear old archive folders... [16:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:44:38]tlvbuf is 00142280 [16:44:38]SAM_PROTO_ClearQueue [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 09 00 00 [16:44:38]Write to MH i2c: E2 08 00 87 1E 80 09 00 00 00 00 00 00 17 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 87 1E 00 90 00 19 [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]SAM_PROTO_ClearQueue done [16:44:38]KKMCreateOFDPacket [16:44:38]OFDProtocolAddRootSTLVToBuf [16:44:38]FM_MakeSignedData [16:44:38]FM_MakeSignedData [16:44:38]SAM_PROTO_SignData [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 01 02 [16:44:38]Write to MH i2c: E2 08 00 88 1E 80 0D 01 02 00 00 00 00 1F [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 88 1E 00 90 00 1A [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=255 [16:44:38]MH_SAM_APDU [16:44: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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 E0 00 00 00 F4 03 04 00 F7 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:44:38]Write to MH i2c: E2 02 01 89 1E 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 E0 00 00 00 F4 03 04 00 F7 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 A4 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 89 1E 00 90 00 1B [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=16 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B3 7E 63 52 2C 1A [16:44:38]Write to MH i2c: E2 13 00 8A 1E 80 0D 02 02 0B 00 00 35 04 06 00 B3 7E 63 52 2C 1A 00 00 A3 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 03 02 [16:44:38]Write to MH i2c: E2 08 00 8B 1E 80 0D 03 02 00 00 00 00 24 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0B 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0B 00 8B 1E 00 8A 8C 38 A3 EF 53 B8 52 90 00 62 [16:44:38]RAPDU: 8A 8C 38 A3 EF 53 B8 52 90 00 [16:44:38]wFMCommunicate OK [16:44:38]SAM_PROTO_SignData done [16:44:38]FM_MakeSignedData done [16:44:38]CreateOFDProtocolMessage [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 11 00 00 [16:44:38]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 8C 1E 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:44: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:44:38]wFMCommunicate OK [16:44:38]CreateOFDProtocolMessage done [16:44:38]OFDSenderStorePacket 70708 [16:44:38]StoreOFDPacket docnum=70708 [16:44: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 90 03 0D 01 E1 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 E0 00 00 00 F4 03 04 00 F7 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B3 7E 63 52 2C 1A 8A 8C 38 A3 EF 53 B8 52 [16:44:38]CheckFolder [16:44:38]dirname=/storage/ofd_packets [16:44:38]CheckFolder done [16:44:38]ProducePacketName [16:44:38]name=ofd_packets/00070708 [16:44:38]NVStorageSaveData ofd_packets/00070708 [16:44:38]File name is /storage/ofd_packets/00070708 [16:44:38]Write 307 bytes [16:44:38]NVStorageSaveData done [16:44:38]OFDSenderStorePacket done [16:44:38]KKMCreateOFDPacket done [16:44:38]NVStorageSaveData kkm_last_timestamp [16:44:38]File name is /storage/kkm_last_timestamp [16:44:38]Write 4 bytes [16:44:38]NVStorageSaveData done [16:44:38]ExternCall_PrintAddStr [16:44:38]wPrintStart [16:44:38]Write to MH i2c: 01 00 00 8D 1E AB [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [16:44:38]RasterBufferAndPrint [16:44:38]line Счет N : (1)2886489 [16:44:38]line ИНН: 02508201610067 [16:44:38]line Контрольно-Кассовый Чек [16:44:38]line ПРОДАЖА [16:44:38]line ТРК (МРК, ГНК) : 21 [16:44:38]line Товар: 2710194240 [16:44:38]line D-ENERGY Дт-К-2 [16:44:38]line 5.190 * 77.20 [16:44:38]line = 400.67 [16:44:38]line НДС 12% НСП 1% [16:44:38]line > о реализуемом товаре [16:44:38]line ОКРУГЛЕНИЕ: -0.67 [16:44:38]line ИТОГО: 400.00 [16:44:38]line Внесено: 400.00 [16:44:38]line СДАЧА: 0.00 [16:44:38]line НСП 1% : 3.55 [16:44:38]line НДС 12% : 42.55 [16:44:38]line Наличными: 400.00 [16:44:38]line Безнал.: 0.00 [16:44:38]line Место: АЗС № 85 "Партнер Нефть" [16:44:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:44:38]line СНО: Общий режим [16:44:38]line Чек 224 23.10.2024 16:44 [16:44:38]line Смена: 196 ФФД: 1.0 [16:44:38]line ЗНМ: 0300000167 [16:44:38]line РНМ: 0000000000156251 [16:44:39]line Версия ККМ: v1.0 [16:44:39]line ФМ: 0000000000963346 [16:44:39]line ФД: 70708 [16:44:39]line ФПД: 197355413580826 [16:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70708&fm=197355413580826&tin=02508201610067®Number=0000000000156251&sum=40000 [16:44:39]OFD Sender: Processing packet 70708 [packets to send 18, broken 17] [16:44:39]ProducePacketName [16:44:39]name=ofd_packets/00070708 [16:44:39]OFD Sender: To server: pG, [16:44:39]CommunicateWithHost lk.salyk.kg:30040 [16:44:39]ConnectInit lk.salyk.kg [16:44:39]written 0, free lines is 4095 [16:44:39]Connected sock=10 [16: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 15 01 00 00 90 03 0D 01 E1 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 E0 00 00 00 F4 03 04 00 F7 27 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B3 7E 63 52 2C 1A 8A 8C 38 A3 EF 53 B8 52 [16: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 0F DA 47 00 11 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 34 14 01 00 F4 03 04 00 94 D1 18 67 B6 04 01 00 00 7C AB 5A 2D 47 A1 CA 0C [16:44:39]CommunicateWithHost err = 0 [16:44:39]CheckOFDResponse [16:44:39]1017 (14) - 77093643461234 [16:44:39]1041 (16) - 0000000000963346 [16:44:39]1040 (4) - 70708 [16:44:39]1012 (4) - 23.10.2024 10:36 [16:44:39]1206 (1) - 0 [16:44:39]OFD Sender: Remove packet 70708 [16:44:39]ProducePacketName [16:44:39]name=ofd_packets/00070708 [16:44:39]NVStorageDeleteData [16:44:39]Write to MH i2c: 01 00 00 B8 1E D6 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 07 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 EC 0C D5 [16:44:39]RasterBufferAndPrint [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]written 0, free lines is 3314 [16:44:39]MH_Cut [16:44:39]Write to MH i2c: D1 01 00 BF 1E 01 AF [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 01 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 01 00 BF 1E 00 AE [16:44:39]Write to MH i2c: 01 00 00 C0 1E DE [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:40]OFD Sender: No OFD packet to send [16:44:40]*** Cut start [16:44:40]*** Partial cut [16:44:40]*** CUTSNS_PIN = 1 [16:44:40]*** CUTSNS_PIN = 0 [16:44:40]*** Brake cut motor [16:44:41]Read from MH i2c: 01 [16:44:41]MH_I2C_Read... [16:44:41]*** Stop cut motor [16:44:41]*** Cut end [16:44:41]Read from MH i2c: 01 07 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 FF 0F F3 [16:44:41]process_action close_receipt done [16:44:41]requested_data is exist [16:44:41]produce_requested_data [16:44:41]requested_item fm.sn is exist - process it [16:44:41]wFMCommunicate request_size=4 [16:44:41]MH_SAM_APDU [16:44:41]CAPDU: 80 11 00 00 [16:44:41]Write to MH i2c: E2 08 00 C1 1E 80 11 00 00 00 00 00 00 59 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:41]Read from MH i2c: E2 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 17 00 [16:44:41]MH_I2C_Read... [16:44:41]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 [16: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 [16:44:41]wFMCommunicate OK [16:44:41]requested_item fd.num is exist - process it [16:44:41]SAM_PROTO_GetFieldsCounters [16:44:41]wFMCommunicate request_size=4 [16:44:41]MH_SAM_APDU [16:44:41]CAPDU: 80 13 00 00 [16:44:41]Write to MH i2c: E2 08 00 C2 1E 80 13 00 00 00 00 00 00 5C [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:41]Read from MH i2c: E2 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 62 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 62 00 C2 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 34 14 01 00 0E 04 04 00 C4 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 24 [16: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 34 14 01 00 0E 04 04 00 C4 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 [16:44:41]wFMCommunicate OK [16:44:41]SAM_PROTO_GetFieldsCounters done [16:44:41]requested_item shift.num is exist - process it [16:44:41]requested_item shift.opened is exist - process it [16:44:41]req_shift_opened [16:44:41]FM_GetShiftState [16:44:41]SAM_PROTO_GetShiftState [16:44:41]wFMCommunicate request_size=4 [16:44:41]MH_SAM_APDU [16:44:41]CAPDU: 80 13 01 00 [16:44:41]Write to MH i2c: E2 08 00 C3 1E 80 13 01 00 00 00 00 00 5E [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:41]Read from MH i2c: E2 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 C3 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EB [16:44:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:44:41]wFMCommunicate OK [16:44:41]SAM_PROTO_GetShiftState done [16:44:41]FM_GetShiftState done [16:44:41]req_shift_opened done [16:44:41]requested_item shift.open_date is exist - process it [16:44:41]req_shift_open_date [16:44:41]req_shift_open_date done [16:44:41]produce_requested_data done [16:44:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70708,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:44:41]process_action_free close_receipt [16:44:41]json_value_free [16:44:41]json_value_free done [16:44:41]process_json_proto returns [16:44:41]Send response to host [16:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70708,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:44:41]free response buf [16:44:41]execute_script done [16:44:41]execute_script returns [16:44:41]free content buf [16:44:41]Sock 9.Close socket [16:44:41]Sock 9.Thread stoped [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:23]accept exits with 7 [16:45:23]New connection [16:45:23]New thread 3066891620 created [16:45:23]Thread 3067034980 joined [16:45:23]Waiting for new connection... [16:45:23] Sock 7.Parse request [16:45:23]Sock 7.Check first char [16:45:23]Sock 7.First char is OK [16:45:23]request: POST /json_proto HTTP/1.0 [16:45:23]Method: POST [16:45:23]URL: /json_proto [16:45:23]Method is POST - this is cgi request [16:45:23]url: /json_proto [16:45:23]query_string will be loaded in cgi processing [16:45:23]execute_cgi json_proto POST (null) [16:45:23]execute_cgi path=json_proto method=POST [16:45:23]POST find Content-Length [16:45:23]Host: 172.17.50.3:8080 [16:45:23]Content-Length: 767 [16:45:23]Content-Type: application/json [16:45:23] [16:45:23]POST finish read [16:45:23]Found Content-Length = 767 [16:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886488", "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.080, "sum" : 272.95, "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" : 272.95 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:23]execute_script... [16: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)2886488", "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.080, "sum" : 272.95, "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" : 272.95 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:23]POST & json_proto [16:45:23]process_json_proto [16:45:23]json parsed OK: [16:45:23]protocol is kg_v1.0 [16:45:23]action value=close_receipt [16:45:23]process_action close_receipt [16:45:23]cmd_close_receipt [16:45:23]MH_GetDate [16:45:23]Write to MH i2c: F0 00 00 C4 1E D1 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 09 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: F0 09 00 C4 1E 00 25 28 19 67 6B 98 1E 66 2E [16:45:23]GetLastDocTimeStamp 1729701879 [16:45:23]current date 1729701925 [16:45:23]FM_GetShiftState [16:45:23]SAM_PROTO_GetShiftState [16:45:23]wFMCommunicate request_size=4 [16:45:23]MH_SAM_APDU [16:45:23]CAPDU: 80 13 01 00 [16:45:23]Write to MH i2c: E2 08 00 C5 1E 80 13 01 00 00 00 00 00 60 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0E 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0E 00 C5 1E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 ED [16:45:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:45:23]wFMCommunicate OK [16:45:23]SAM_PROTO_GetShiftState done [16:45:23]FM_GetShiftState done [16:45:23]opened in 1729642435 [16:45:23]opened+sec_in_day 1729728835 [16:45:23]quantity*price = 27295 [16:45:23]sum+1 = 27296 [16:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 272.95 НСП 1% : 2.41 НДС 12% : 28.99 Наличными: 0.00 Безнал.: 272.95 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 225 23.10.2024 16:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70709 ФПД: 59914943274829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70709&fm=59914943274829&tin=02508201610067®Number=0000000000156251&sum=27295 [16:45:24]StoreToDocumentArchive [16:45:24]shift 196 fd 70709 [16:45:24]save to /storage/0196/doc_00070709 [16:45:24]save last doc name /storage/0196/doc_00070709 to /storage/kkm_last_doc_name [16:45:24]save OK [16:45:24]Clear old archive folders... [16:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:24]tlvbuf is 00179280 [16:45:24]SAM_PROTO_ClearQueue [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 09 00 00 [16:45:24]Write to MH i2c: E2 08 00 D2 1E 80 09 00 00 00 00 00 00 62 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 D2 1E 00 90 00 64 [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_ClearQueue done [16:45:24]KKMCreateOFDPacket [16:45:24]OFDProtocolAddRootSTLVToBuf [16:45:24]FM_MakeSignedData [16:45:24]FM_MakeSignedData [16:45:24]SAM_PROTO_SignData [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 0D 01 02 [16:45:24]Write to MH i2c: E2 08 00 D3 1E 80 0D 01 02 00 00 00 00 6A [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 03 00 D3 1E 00 90 00 65 [16:45:24]RAPDU: 90 00 [16:45:24]wFMCommunicate OK [16:45:24]wFMCommunicate request_size=255 [16:45:24]MH_SAM_APDU [16: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 F0 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 6A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 25 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 36 [16:45:24]Write to MH i2c: E2 02 01 D4 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 F0 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 6A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 25 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 36 00 00 05 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:25]OFD Sender: No OFD packet to send [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 03 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 03 00 D4 1E 00 90 00 66 [16:45:25]RAPDU: 90 00 [16:45:25]wFMCommunicate OK [16:45:25]wFMCommunicate request_size=10 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 0D 02 02 05 7E 08 E9 1F 4D [16:45:25]Write to MH i2c: E2 0D 00 D5 1E 80 0D 02 02 05 00 7E 08 E9 1F 4D 00 00 52 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 03 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 03 00 D5 1E 00 90 00 67 [16:45:25]RAPDU: 90 00 [16:45:25]wFMCommunicate OK [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 0D 03 02 [16:45:25]Write to MH i2c: E2 08 00 D6 1E 80 0D 03 02 00 00 00 00 6F [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 0B 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 0B 00 D6 1E 00 C5 25 18 31 31 66 78 3C 90 00 EE [16:45:25]RAPDU: C5 25 18 31 31 66 78 3C 90 00 [16:45:25]wFMCommunicate OK [16:45:25]SAM_PROTO_SignData done [16:45:25]FM_MakeSignedData done [16:45:25]CreateOFDProtocolMessage [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 11 00 00 [16:45:25]Write to MH i2c: E2 08 00 D7 1E 80 11 00 00 00 00 00 00 6F [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 17 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 17 00 D7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [16: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 [16:45:25]wFMCommunicate OK [16:45:25]CreateOFDProtocolMessage done [16:45:25]OFDSenderStorePacket 70709 [16:45:25]StoreOFDPacket docnum=70709 [16: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 BF 39 07 01 83 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 6A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 25 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 36 7E 08 E9 1F 4D C5 25 18 31 31 66 78 3C [16:45:25]CheckFolder [16:45:25]dirname=/storage/ofd_packets [16:45:25]CheckFolder done [16:45:25]ProducePacketName [16:45:25]name=ofd_packets/00070709 [16:45:25]NVStorageSaveData ofd_packets/00070709 [16:45:25]File name is /storage/ofd_packets/00070709 [16:45:25]Write 301 bytes [16:45:25]NVStorageSaveData done [16:45:25]OFDSenderStorePacket done [16:45:25]KKMCreateOFDPacket done [16:45:25]NVStorageSaveData kkm_last_timestamp [16:45:25]File name is /storage/kkm_last_timestamp [16:45:25]Write 4 bytes [16:45:25]NVStorageSaveData done [16:45:25]ExternCall_PrintAddStr [16:45:25]wPrintStart [16:45:25]Write to MH i2c: 01 00 00 D8 1E F6 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 07 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 07 00 D8 1E 00 00 00 00 00 FF 0F 0B [16:45:25]RasterBufferAndPrint [16:45:25]line Счет N : (1)2886488 [16:45:25]line ИНН: 02508201610067 [16:45:25]line Контрольно-Кассовый Чек [16:45:25]line ПРОДАЖА [16:45:25]line ТРК (МРК, ГНК) : 32 [16:45:25]line Товар: 2710124130 [16:45:25]line Аи-92-К-5 [16:45:25]line 4.080 * 66.90 [16:45:25]line = 272.95 [16:45:25]line НДС 12% НСП 1% [16:45:25]line > о реализуемом товаре [16:45:25]line ИТОГО: 272.95 [16:45:25]line НСП 1% : 2.41 [16:45:25]line НДС 12% : 28.99 [16:45:25]line Наличными: 0.00 [16:45:25]line Безнал.: 272.95 [16:45:25]line Место: АЗС № 85 "Партнер Нефть" [16:45:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:45:25]line СНО: Общий режим [16:45:25]line Чек 225 23.10.2024 16:45 [16:45:25]line Смена: 196 ФФД: 1.0 [16:45:25]line ЗНМ: 0300000167 [16:45:25]line РНМ: 0000000000156251 [16:45:25]line Версия ККМ: v1.0 [16:45:25]line Платежная система: Mbank [16:45:25]line ФМ: 0000000000963346 [16:45:25]line ФД: 70709 [16:45:25]line ФПД: 59914943274829 [16:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70709&fm=59914943274829&tin=02508201610067®Number=0000000000156251&sum=27295 [16:45:25]OFD Sender: Processing packet 70709 [packets to send 18, broken 17] [16:45:25]ProducePacketName [16:45:25]name=ofd_packets/00070709 [16:45:25]OFD Sender: To server: pG, [16:45:25]CommunicateWithHost lk.salyk.kg:30040 [16:45:25]ConnectInit lk.salyk.kg [16:45:25]written 0, free lines is 4095 [16:45:25]Connected sock=10 [16: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 BF 39 07 01 83 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9F 6A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 25 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 36 7E 08 E9 1F 4D C5 25 18 31 31 66 78 3C [16:45: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 E6 24 47 00 BB 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 14 01 00 F4 03 04 00 C2 D1 18 67 B6 04 01 00 00 AD 1A C1 B2 50 55 9D 1C [16:45:26]CommunicateWithHost err = 0 [16:45:26]CheckOFDResponse [16:45:26]1017 (14) - 77093643461234 [16:45:26]1041 (16) - 0000000000963346 [16:45:26]1040 (4) - 70709 [16:45:26]1012 (4) - 23.10.2024 10:36 [16:45:26]1206 (1) - 0 [16:45:26]OFD Sender: Remove packet 70709 [16:45:26]ProducePacketName [16:45:26]name=ofd_packets/00070709 [16:45:26]NVStorageDeleteData [16:45:26]Write to MH i2c: 01 00 00 01 1F 20 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 07 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 0B 0D 3F [16:45:26]RasterBufferAndPrint [16:45:26]line [16:45:26]line [16:45:26]line [16:45:26]line [16:45:26]line [16:45:26]written 0, free lines is 3345 [16:45:26]MH_Cut [16:45:26]Write to MH i2c: D1 01 00 08 1F 01 F9 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: D1 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: D1 01 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: D1 01 00 08 1F 00 F8 [16:45:26]Write to MH i2c: 01 00 00 09 1F 28 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]OFD Sender: No OFD packet to send [16:45:26]*** Cut start [16:45:26]*** Partial cut [16:45:26]*** CUTSNS_PIN = 1 [16:45:26]*** CUTSNS_PIN = 0 [16:45:27]*** Brake cut motor [16:45:27]Read from MH i2c: 01 [16:45:27]MH_I2C_Read... [16:45:27]*** Stop cut motor [16:45:27]*** Cut end [16:45:27]Read from MH i2c: 01 07 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 FF 0F 3D [16:45:27]process_action close_receipt done [16:45:27]requested_data is exist [16:45:27]produce_requested_data [16:45:27]requested_item fm.sn is exist - process it [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 11 00 00 [16:45:27]Write to MH i2c: E2 08 00 0A 1F 80 11 00 00 00 00 00 00 A3 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 17 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 17 00 0A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [16: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 [16:45:27]wFMCommunicate OK [16:45:27]requested_item fd.num is exist - process it [16:45:27]SAM_PROTO_GetFieldsCounters [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 13 00 00 [16:45:27]Write to MH i2c: E2 08 00 0B 1F 80 13 00 00 00 00 00 00 A6 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 62 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 62 00 0B 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 35 14 01 00 0E 04 04 00 C4 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 72 [16: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 35 14 01 00 0E 04 04 00 C4 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 [16:45:27]wFMCommunicate OK [16:45:27]SAM_PROTO_GetFieldsCounters done [16:45:27]requested_item shift.num is exist - process it [16:45:27]requested_item shift.opened is exist - process it [16:45:27]req_shift_opened [16:45:27]FM_GetShiftState [16:45:27]SAM_PROTO_GetShiftState [16:45:27]wFMCommunicate request_size=4 [16:45:27]MH_SAM_APDU [16:45:27]CAPDU: 80 13 01 00 [16:45:27]Write to MH i2c: E2 08 00 0C 1F 80 13 01 00 00 00 00 00 A8 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:27]Read from MH i2c: E2 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 0E 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: E2 0E 00 0C 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 35 [16:45:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:45:27]wFMCommunicate OK [16:45:27]SAM_PROTO_GetShiftState done [16:45:27]FM_GetShiftState done [16:45:27]req_shift_opened done [16:45:27]requested_item shift.open_date is exist - process it [16:45:27]req_shift_open_date [16:45:27]req_shift_open_date done [16:45:27]produce_requested_data done [16:45:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70709,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:45:27]process_action_free close_receipt [16:45:27]json_value_free [16:45:27]json_value_free done [16:45:27]process_json_proto returns [16:45:27]Send response to host [16:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70709,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:45:27]free response buf [16:45:27]execute_script done [16:45:27]execute_script returns [16:45:27]free content buf [16:45:27]Sock 7.Close socket [16:45:27]Sock 7.Thread stoped [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:55]accept exits with 9 [16:45:55]New connection [16:45:55]New thread 3067034980 created [16:45:55]Thread 3066891620 joined [16:45:55]Waiting for new connection... [16:45:55] Sock 9.Parse request [16:45:55]Sock 9.Check first char [16:45:55]Sock 9.First char is OK [16:45:55]request: POST /json_proto HTTP/1.0 [16:45:55]Method: POST [16:45:55]URL: /json_proto [16:45:55]Method is POST - this is cgi request [16:45:55]url: /json_proto [16:45:55]query_string will be loaded in cgi processing [16:45:55]execute_cgi json_proto POST (null) [16:45:55]execute_cgi path=json_proto method=POST [16:45:55]POST find Content-Length [16:45:55]Host: 172.17.50.3:8080 [16:45:55]Content-Length: 798 [16:45:55]Content-Type: application/json [16:45:55] [16:45:55]POST finish read [16:45:55]Found Content-Length = 798 [16:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886492", "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" : 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\u000A4753550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:55]execute_script... [16:45: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)2886492", "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" : 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\u000A4753550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:55]POST & json_proto [16:45:55]process_json_proto [16:45:55]json parsed OK: [16:45:55]protocol is kg_v1.0 [16:45:55]action value=close_receipt [16:45:55]process_action close_receipt [16:45:55]cmd_close_receipt [16:45:55]MH_GetDate [16:45:55]Write to MH i2c: F0 00 00 0D 1F 1B [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: F0 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: F0 09 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: F0 09 00 0D 1F 00 45 28 19 67 6B 98 1E 66 98 [16:45:55]GetLastDocTimeStamp 1729701925 [16:45:55]current date 1729701957 [16:45:55]FM_GetShiftState [16:45:55]SAM_PROTO_GetShiftState [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 13 01 00 [16:45:55]Write to MH i2c: E2 08 00 0E 1F 80 13 01 00 00 00 00 00 AA [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 0E 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 0E 00 0E 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 37 [16:45:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:45:55]wFMCommunicate OK [16:45:55]SAM_PROTO_GetShiftState done [16:45:55]FM_GetShiftState done [16:45:55]opened in 1729642435 [16:45:55]opened+sec_in_day 1729728835 [16:45:55]quantity*price = 0 [16:45:55]sum+1 = 1 [16:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 226 23.10.2024 16:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4753550 ФМ: 0000000000963346 ФД: 70710 ФПД: 272703692109926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70710&fm=272703692109926&tin=02508201610067®Number=0000000000156251&sum=0 [16:45:56]StoreToDocumentArchive [16:45:56]shift 196 fd 70710 [16:45:56]save to /storage/0196/doc_00070710 [16:45:56]save last doc name /storage/0196/doc_00070710 to /storage/kkm_last_doc_name [16:45:56]save OK [16:45:56]Clear old archive folders... [16:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:56]tlvbuf is 0015E520 [16:45:56]SAM_PROTO_ClearQueue [16:45:56]wFMCommunicate request_size=4 [16:45:56]MH_SAM_APDU [16:45:56]CAPDU: 80 09 00 00 [16:45:56]Write to MH i2c: E2 08 00 1B 1F 80 09 00 00 00 00 00 00 AC [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:56]Read from MH i2c: E2 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 03 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 03 00 1B 1F 00 90 00 AE [16:45:56]RAPDU: 90 00 [16:45:56]wFMCommunicate OK [16:45:56]SAM_PROTO_ClearQueue done [16:45:56]KKMCreateOFDPacket [16:45:56]OFDProtocolAddRootSTLVToBuf [16:45:56]FM_MakeSignedData [16:45:56]FM_MakeSignedData [16:45:56]SAM_PROTO_SignData [16:45:56]wFMCommunicate request_size=4 [16:45:56]MH_SAM_APDU [16:45:56]CAPDU: 80 0D 01 02 [16:45:56]Write to MH i2c: E2 08 00 1C 1F 80 0D 01 02 00 00 00 00 B4 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:57]Read from MH i2c: E2 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 1C 1F 00 90 00 AF [16:45:57]RAPDU: 90 00 [16:45:57]wFMCommunicate OK [16:45:57]wFMCommunicate request_size=255 [16:45:57]MH_SAM_APDU [16:45: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 E2 00 00 00 F4 03 04 00 45 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F8 05 C6 B2 [16:45:57]Write to MH i2c: E2 02 01 1D 1F 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 E2 00 00 00 F4 03 04 00 45 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F8 05 C6 B2 00 00 CC [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:57]Read from MH i2c: E2 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 1D 1F 00 90 00 B0 [16:45:57]RAPDU: 90 00 [16:45:57]wFMCommunicate OK [16:45:57]wFMCommunicate request_size=7 [16:45:57]MH_SAM_APDU [16:45:57]CAPDU: 80 0D 02 02 02 78 66 [16:45:57]Write to MH i2c: E2 0A 00 1E 1F 80 0D 02 02 02 00 78 66 00 00 99 [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:57]Read from MH i2c: E2 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 03 00 1E 1F 00 90 00 B1 [16:45:57]RAPDU: 90 00 [16:45:57]wFMCommunicate OK [16:45:57]wFMCommunicate request_size=4 [16:45:57]MH_SAM_APDU [16:45:57]CAPDU: 80 0D 03 02 [16:45:57]Write to MH i2c: E2 08 00 1F 1F 80 0D 03 02 00 00 00 00 B9 [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:57]Read from MH i2c: E2 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 0B 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 0B 00 1F 1F 00 D9 A1 80 16 B7 DB 6B 17 90 00 DE [16:45:57]RAPDU: D9 A1 80 16 B7 DB 6B 17 90 00 [16:45:57]wFMCommunicate OK [16:45:57]SAM_PROTO_SignData done [16:45:57]FM_MakeSignedData done [16:45:57]CreateOFDProtocolMessage [16:45:57]wFMCommunicate request_size=4 [16:45:57]MH_SAM_APDU [16:45:57]CAPDU: 80 11 00 00 [16:45:57]Write to MH i2c: E2 08 00 20 1F 80 11 00 00 00 00 00 00 B9 [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:57]Read from MH i2c: E2 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 17 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: E2 17 00 20 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [16:45: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:45:57]wFMCommunicate OK [16:45:57]CreateOFDProtocolMessage done [16:45:57]OFDSenderStorePacket 70710 [16:45:57]StoreOFDPacket docnum=70710 [16:45: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 0C 01 00 00 9C 26 04 01 A0 DD 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 E2 00 00 00 F4 03 04 00 45 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F8 05 C6 B2 78 66 D9 A1 80 16 B7 DB 6B 17 [16:45:57]CheckFolder [16:45:57]dirname=/storage/ofd_packets [16:45:57]CheckFolder done [16:45:57]ProducePacketName [16:45:57]name=ofd_packets/00070710 [16:45:57]NVStorageSaveData ofd_packets/00070710 [16:45:57]File name is /storage/ofd_packets/00070710 [16:45:57]Write 298 bytes [16:45:57]NVStorageSaveData done [16:45:57]OFDSenderStorePacket done [16:45:57]KKMCreateOFDPacket done [16:45:57]NVStorageSaveData kkm_last_timestamp [16:45:57]File name is /storage/kkm_last_timestamp [16:45:57]Write 4 bytes [16:45:57]NVStorageSaveData done [16:45:57]ExternCall_PrintAddStr [16:45:57]wPrintStart [16:45:57]Write to MH i2c: 01 00 00 21 1F 40 [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: 01 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: 01 07 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: 01 07 00 21 1F 00 00 00 00 00 FF 0F 55 [16:45:57]RasterBufferAndPrint [16:45:57]line Счет N : (1)2886492 [16:45:57]line ИНН: 02508201610067 [16:45:57]line Контрольно-Кассовый Чек [16:45:57]line ПРОДАЖА [16:45:57]line ТРК (МРК, ГНК) : 61 [16:45:57]line Товар: 2710194210 [16:45:57]line ДТ-К-5 [16:45:57]line 20.000 * 0.00 [16:45:57]line = 0.00 [16:45:57]line НДС 12% НСП 1% [16:45:57]line > о реализуемом товаре [16:45:57]line ИТОГО: 0.00 [16:45:57]line НСП 1% : 0.00 [16:45:57]line НДС 12% : 0.00 [16:45:57]line Наличными: 0.00 [16:45:57]line Безнал.: 0.00 [16:45:57]line Место: АЗС № 85 "Партнер Нефть" [16:45:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:45:57]line СНО: Общий режим [16:45:57]line Чек 226 23.10.2024 16:45 [16:45:57]line Смена: 196 ФФД: 1.0 [16:45:57]line ЗНМ: 0300000167 [16:45:57]line РНМ: 0000000000156251 [16:45:57]line Версия ККМ: v1.0 [16:45:57]line Талоны: Топливные Талоны [16:45:57]line 4753550 [16:45:57]line ФМ: 0000000000963346 [16:45:57]line ФД: 70710 [16:45:57]line ФПД: 272703692109926 [16:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70710&fm=272703692109926&tin=02508201610067®Number=0000000000156251&sum=0 [16:45:57]OFD Sender: Processing packet 70710 [packets to send 18, broken 17] [16:45:57]ProducePacketName [16:45:57]name=ofd_packets/00070710 [16:45:57]OFD Sender: To server: pG, [16:45:57]CommunicateWithHost lk.salyk.kg:30040 [16:45:57]ConnectInit lk.salyk.kg [16:45:57]written 0, free lines is 4095 [16:45:57]Connected sock=11 [16:45: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 0C 01 00 00 9C 26 04 01 A0 DD 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 E2 00 00 00 F4 03 04 00 45 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F8 05 C6 B2 78 66 D9 A1 80 16 B7 DB 6B 17 [16:45: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 B4 A7 47 00 0D 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 36 14 01 00 F4 03 04 00 E3 D1 18 67 B6 04 01 00 00 B6 E3 CC C6 C9 F9 B3 AD [16:45:58]CommunicateWithHost err = 0 [16:45:58]CheckOFDResponse [16:45:58]1017 (14) - 77093643461234 [16:45:58]1041 (16) - 0000000000963346 [16:45:58]1040 (4) - 70710 [16:45:58]1012 (4) - 23.10.2024 10:37 [16:45:58]1206 (1) - 0 [16:45:58]OFD Sender: Remove packet 70710 [16:45:58]ProducePacketName [16:45:58]name=ofd_packets/00070710 [16:45:58]NVStorageDeleteData [16:45:58]Write to MH i2c: 01 00 00 4B 1F 6A [16:45:58]Write i2c OK [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: 01 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: 01 07 00 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: 01 07 00 4B 1F 00 00 00 00 00 F2 0C 6F [16:45:58]RasterBufferAndPrint [16:45:58]line [16:45:58]line [16:45:58]line [16:45:58]line [16:45:58]line [16:45:58]written 0, free lines is 3320 [16:45:58]MH_Cut [16:45:58]Write to MH i2c: D1 01 00 52 1F 01 43 [16:45:58]Write i2c OK [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: D1 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: D1 01 00 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: D1 01 00 52 1F 00 42 [16:45:58]Write to MH i2c: 01 00 00 53 1F 72 [16:45:58]Write i2c OK [16:45:58]MH_I2C_Read... [16:45:58]OFD Sender: No OFD packet to send [16:45:58]*** Cut start [16:45:58]*** Partial cut [16:45:58]*** CUTSNS_PIN = 1 [16:45:58]*** CUTSNS_PIN = 0 [16:45:59]*** Brake cut motor [16:45:59]Read from MH i2c: 01 [16:45:59]MH_I2C_Read... [16:45:59]*** Stop cut motor [16:45:59]*** Cut end [16:45:59]Read from MH i2c: 01 07 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: 01 07 00 53 1F 00 00 00 00 00 FF 0F 87 [16:45:59]process_action close_receipt done [16:45:59]requested_data is exist [16:45:59]produce_requested_data [16:45:59]requested_item fm.sn is exist - process it [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 11 00 00 [16:45:59]Write to MH i2c: E2 08 00 54 1F 80 11 00 00 00 00 00 00 ED [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 17 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 17 00 54 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [16: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 [16:45:59]wFMCommunicate OK [16:45:59]requested_item fd.num is exist - process it [16:45:59]SAM_PROTO_GetFieldsCounters [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 13 00 00 [16:45:59]Write to MH i2c: E2 08 00 55 1F 80 13 00 00 00 00 00 00 F0 [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 62 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 62 00 55 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 36 14 01 00 0E 04 04 00 C4 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 C0 [16:45: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 36 14 01 00 0E 04 04 00 C4 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 [16:45:59]wFMCommunicate OK [16:45:59]SAM_PROTO_GetFieldsCounters done [16:45:59]requested_item shift.num is exist - process it [16:45:59]requested_item shift.opened is exist - process it [16:45:59]req_shift_opened [16:45:59]FM_GetShiftState [16:45:59]SAM_PROTO_GetShiftState [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 13 01 00 [16:45:59]Write to MH i2c: E2 08 00 56 1F 80 13 01 00 00 00 00 00 F2 [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 0E 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 0E 00 56 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7F [16:45:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:45:59]wFMCommunicate OK [16:45:59]SAM_PROTO_GetShiftState done [16:45:59]FM_GetShiftState done [16:45:59]req_shift_opened done [16:45:59]requested_item shift.open_date is exist - process it [16:45:59]req_shift_open_date [16:45:59]req_shift_open_date done [16:45:59]produce_requested_data done [16:45:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70710,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:45:59]process_action_free close_receipt [16:45:59]json_value_free [16:45:59]json_value_free done [16:45:59]process_json_proto returns [16:45:59]Send response to host [16:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70710,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:45:59]free response buf [16:45:59]execute_script done [16:45:59]execute_script returns [16:45:59]free content buf [16:45:59]Sock 9.Close socket [16:45:59]Sock 9.Thread stoped [16:46:00]accept exits with 7 [16:46:00]New connection [16:46:00]New thread 3066891620 created [16:46:00]Thread 3067034980 joined [16:46:00]Waiting for new connection... [16:46:00] Sock 7.Parse request [16:46:00]Sock 7.Check first char [16:46:00]Sock 7.First char is OK [16:46:00]request: POST /json_proto HTTP/1.0 [16:46:00]Method: POST [16:46:00]URL: /json_proto [16:46:00]Method is POST - this is cgi request [16:46:00]url: /json_proto [16:46:00]query_string will be loaded in cgi processing [16:46:00]execute_cgi json_proto POST (null) [16:46:00]execute_cgi path=json_proto method=POST [16:46:00]POST find Content-Length [16:46:00]Host: 172.17.50.3:8080 [16:46:00]Content-Length: 684 [16:46:00]Content-Type: application/json [16:46:00] [16:46:00]POST finish read [16:46:00]Found Content-Length = 684 [16:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886490", "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" : 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" ] } } [16:46:00]execute_script... [16:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886490", "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" : 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" ] } } [16:46:00]POST & json_proto [16:46:00]process_json_proto [16:46:00]json parsed OK: [16:46:00]protocol is kg_v1.0 [16:46:00]action value=close_receipt [16:46:00]process_action close_receipt [16:46:00]cmd_close_receipt [16:46:00]MH_GetDate [16:46:00]Write to MH i2c: F0 00 00 57 1F 65 [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: F0 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: F0 09 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: F0 09 00 57 1F 00 4A 28 19 67 6B 98 1E 66 E7 [16:46:00]GetLastDocTimeStamp 1729701957 [16:46:00]current date 1729701962 [16:46:00]FM_GetShiftState [16:46:00]SAM_PROTO_GetShiftState [16:46:00]wFMCommunicate request_size=4 [16:46:00]MH_SAM_APDU [16:46:00]CAPDU: 80 13 01 00 [16:46:00]Write to MH i2c: E2 08 00 58 1F 80 13 01 00 00 00 00 00 F4 [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:00]Read from MH i2c: E2 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 0E 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 0E 00 58 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 81 [16:46:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:00]wFMCommunicate OK [16:46:00]SAM_PROTO_GetShiftState done [16:46:00]FM_GetShiftState done [16:46:00]opened in 1729642435 [16:46:00]opened+sec_in_day 1729728835 [16:46:00]quantity*price = 70020 [16:46:00]sum+1 = 70021 [16:46:00]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 СНО: Общий режим Чек 227 23.10.2024 16:46 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70711 ФПД: 188922230193550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164602&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70711&fm=188922230193550&tin=02508201610067®Number=0000000000156251&sum=70000 [16:46:01]StoreToDocumentArchive [16:46:01]shift 196 fd 70711 [16:46:01]save to /storage/0196/doc_00070711 [16:46:01]save last doc name /storage/0196/doc_00070711 to /storage/kkm_last_doc_name [16:46:01]save OK [16:46:01]Clear old archive folders... [16:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:46:01]tlvbuf is 002071C0 [16:46:01]SAM_PROTO_ClearQueue [16:46:01]wFMCommunicate request_size=4 [16:46:01]MH_SAM_APDU [16:46:01]CAPDU: 80 09 00 00 [16:46:01]Write to MH i2c: E2 08 00 65 1F 80 09 00 00 00 00 00 00 F6 [16:46:01]Write i2c OK [16:46:01]MH_I2C_Read... [16:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:01]Read from MH i2c: E2 [16:46:01]MH_I2C_Read... [16:46:01]Read from MH i2c: E2 03 00 [16:46:01]MH_I2C_Read... [16:46:01]Read from MH i2c: E2 03 00 65 1F 00 90 00 F8 [16:46:01]RAPDU: 90 00 [16:46:01]wFMCommunicate OK [16:46:01]SAM_PROTO_ClearQueue done [16:46:01]KKMCreateOFDPacket [16:46:01]OFDProtocolAddRootSTLVToBuf [16:46:01]FM_MakeSignedData [16:46:01]FM_MakeSignedData [16:46:01]SAM_PROTO_SignData [16:46:01]wFMCommunicate request_size=4 [16:46:01]MH_SAM_APDU [16:46:01]CAPDU: 80 0D 01 02 [16:46:01]Write to MH i2c: E2 08 00 66 1F 80 0D 01 02 00 00 00 00 FE [16:46:01]Write i2c OK [16:46:01]MH_I2C_Read... [16:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:01]Read from MH i2c: E2 [16:46:01]MH_I2C_Read... [16:46:01]Read from MH i2c: E2 03 00 [16:46:01]MH_I2C_Read... [16:46:01]Read from MH i2c: E2 03 00 66 1F 00 90 00 F9 [16:46:01]RAPDU: 90 00 [16:46:01]wFMCommunicate OK [16:46:01]wFMCommunicate request_size=255 [16:46:01]MH_SAM_APDU [16:46:01]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 E3 00 00 00 F4 03 04 00 4A 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:46:01]Write to MH i2c: E2 02 01 67 1F 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 E3 00 00 00 F4 03 04 00 4A 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 5B [16:46:01]Write i2c OK [16:46:01]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 03 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 03 00 67 1F 00 90 00 FA [16:46:02]RAPDU: 90 00 [16:46:02]wFMCommunicate OK [16:46:02]wFMCommunicate request_size=16 [16:46:02]MH_SAM_APDU [16:46:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AB D2 E2 6B BD 8E [16:46:02]Write to MH i2c: E2 13 00 68 1F 80 0D 02 02 0B 00 00 35 04 06 00 AB D2 E2 6B BD 8E 00 00 6B [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 03 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 03 00 68 1F 00 90 00 FB [16:46:02]RAPDU: 90 00 [16:46:02]wFMCommunicate OK [16:46:02]wFMCommunicate request_size=4 [16:46:02]MH_SAM_APDU [16:46:02]CAPDU: 80 0D 03 02 [16:46:02]Write to MH i2c: E2 08 00 69 1F 80 0D 03 02 00 00 00 00 03 [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 0B 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 0B 00 69 1F 00 96 84 26 00 9F D2 DE 5C 90 00 EF [16:46:02]RAPDU: 96 84 26 00 9F D2 DE 5C 90 00 [16:46:02]wFMCommunicate OK [16:46:02]SAM_PROTO_SignData done [16:46:02]FM_MakeSignedData done [16:46:02]CreateOFDProtocolMessage [16:46:02]wFMCommunicate request_size=4 [16:46:02]MH_SAM_APDU [16:46:02]CAPDU: 80 11 00 00 [16:46:02]Write to MH i2c: E2 08 00 6A 1F 80 11 00 00 00 00 00 00 03 [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 17 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 17 00 6A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [16: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 [16:46:02]wFMCommunicate OK [16:46:02]CreateOFDProtocolMessage done [16:46:02]OFDSenderStorePacket 70711 [16:46:02]StoreOFDPacket docnum=70711 [16:46: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 15 01 00 00 7A 68 0D 01 C9 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 E3 00 00 00 F4 03 04 00 4A 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AB D2 E2 6B BD 8E 96 84 26 00 9F D2 DE 5C [16:46:02]CheckFolder [16:46:02]dirname=/storage/ofd_packets [16:46:02]CheckFolder done [16:46:02]ProducePacketName [16:46:02]name=ofd_packets/00070711 [16:46:02]NVStorageSaveData ofd_packets/00070711 [16:46:02]File name is /storage/ofd_packets/00070711 [16:46:02]Write 307 bytes [16:46:02]NVStorageSaveData done [16:46:02]OFDSenderStorePacket done [16:46:02]KKMCreateOFDPacket done [16:46:02]NVStorageSaveData kkm_last_timestamp [16:46:02]File name is /storage/kkm_last_timestamp [16:46:02]Write 4 bytes [16:46:02]NVStorageSaveData done [16:46:02]ExternCall_PrintAddStr [16:46:02]wPrintStart [16:46:02]Write to MH i2c: 01 00 00 6B 1F 8A [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 07 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 FF 0F 9F [16:46:02]RasterBufferAndPrint [16:46:02]line Счет N : (1)2886490 [16:46:02]line ИНН: 02508201610067 [16:46:02]line Контрольно-Кассовый Чек [16:46:02]line ПРОДАЖА [16:46:02]line ТРК (МРК, ГНК) : 41 [16:46:02]line Товар: 2710194240 [16:46:02]line D-ENERGY Дт-К-2 [16:46:02]line 9.070 * 77.20 [16:46:02]line = 700.20 [16:46:02]line НДС 12% НСП 1% [16:46:02]line > о реализуемом товаре [16:46:02]line ОКРУГЛЕНИЕ: -0.20 [16:46:02]line ИТОГО: 700.00 [16:46:02]line Внесено: 700.00 [16:46:02]line СДАЧА: 0.00 [16:46:02]line НСП 1% : 6.20 [16:46:02]line НДС 12% : 74.36 [16:46:02]line Наличными: 700.00 [16:46:02]line Безнал.: 0.00 [16:46:02]line Место: АЗС № 85 "Партнер Нефть" [16:46:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:46:02]line СНО: Общий режим [16:46:02]line Чек 227 23.10.2024 16:46 [16:46:02]line Смена: 196 ФФД: 1.0 [16:46:02]line ЗНМ: 0300000167 [16:46:02]line РНМ: 0000000000156251 [16:46:02]line Версия ККМ: v1.0 [16:46:02]line ФМ: 0000000000963346 [16:46:02]line ФД: 70711 [16:46:02]line ФПД: 188922230193550 [16:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164602&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70711&fm=188922230193550&tin=02508201610067®Number=0000000000156251&sum=70000 [16:46:02]written 0, free lines is 4095 [16:46:02]OFD Sender: Processing packet 70711 [packets to send 18, broken 17] [16:46:02]ProducePacketName [16:46:02]name=ofd_packets/00070711 [16:46:02]OFD Sender: To server: pG, [16:46:02]CommunicateWithHost lk.salyk.kg:30040 [16:46:02]ConnectInit lk.salyk.kg [16:46:02]Connected sock=10 [16:46: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 15 01 00 00 7A 68 0D 01 C9 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 E3 00 00 00 F4 03 04 00 4A 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AB D2 E2 6B BD 8E 96 84 26 00 9F D2 DE 5C [16:46:02]Write to MH i2c: 01 00 00 96 1F B5 [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 07 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: 01 07 00 96 1F 00 00 00 00 00 F6 0C BE [16:46:02]RasterBufferAndPrint [16:46:02]line [16:46:02]line [16:46:02]line [16:46:02]line [16:46:02]line [16:46:02]written 0, free lines is 3333 [16:46:02]MH_Cut [16:46:02]Write to MH i2c: D1 01 00 9D 1F 01 8E [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: D1 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: D1 01 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: D1 01 00 9D 1F 00 8D [16:46:02]Write to MH i2c: 01 00 00 9E 1F BD [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46: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 31 59 47 00 8B 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 37 14 01 00 F4 03 04 00 E7 D1 18 67 B6 04 01 00 00 F8 2F 97 A7 8D A0 AD 52 [16:46:02]CommunicateWithHost err = 0 [16:46:02]CheckOFDResponse [16:46:02]1017 (14) - 77093643461234 [16:46:02]1041 (16) - 0000000000963346 [16:46:02]1040 (4) - 70711 [16:46:02]1012 (4) - 23.10.2024 10:37 [16:46:02]1206 (1) - 0 [16:46:02]OFD Sender: Remove packet 70711 [16:46:02]ProducePacketName [16:46:02]name=ofd_packets/00070711 [16:46:02]NVStorageDeleteData [16:46:03]OFD Sender: No OFD packet to send [16:46:03]*** Cut start [16:46:03]*** Partial cut [16:46:03]*** CUTSNS_PIN = 1 [16:46:03]*** CUTSNS_PIN = 0 [16:46:03]*** Brake cut motor [16:46:04]Read from MH i2c: 01 [16:46:04]MH_I2C_Read... [16:46:04]*** Stop cut motor [16:46:04]*** Cut end [16:46:04]Read from MH i2c: 01 07 00 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: 01 07 00 9E 1F 00 00 00 00 00 FF 0F D2 [16:46:04]process_action close_receipt done [16:46:04]requested_data is exist [16:46:04]produce_requested_data [16:46:04]requested_item fm.sn is exist - process it [16:46:04]wFMCommunicate request_size=4 [16:46:04]MH_SAM_APDU [16:46:04]CAPDU: 80 11 00 00 [16:46:04]Write to MH i2c: E2 08 00 9F 1F 80 11 00 00 00 00 00 00 38 [16:46:04]Write i2c OK [16:46:04]MH_I2C_Read... [16:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:04]Read from MH i2c: E2 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: E2 17 00 [16:46:04]MH_I2C_Read... [16:46:04]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 [16:46: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:46:04]wFMCommunicate OK [16:46:04]requested_item fd.num is exist - process it [16:46:04]SAM_PROTO_GetFieldsCounters [16:46:04]wFMCommunicate request_size=4 [16:46:04]MH_SAM_APDU [16:46:04]CAPDU: 80 13 00 00 [16:46:04]Write to MH i2c: E2 08 00 A0 1F 80 13 00 00 00 00 00 00 3B [16:46:04]Write i2c OK [16:46:04]MH_I2C_Read... [16:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:04]Read from MH i2c: E2 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: E2 62 00 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: E2 62 00 A0 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 37 14 01 00 0E 04 04 00 C4 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 0F [16:46: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 37 14 01 00 0E 04 04 00 C4 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 [16:46:04]wFMCommunicate OK [16:46:04]SAM_PROTO_GetFieldsCounters done [16:46:04]requested_item shift.num is exist - process it [16:46:04]requested_item shift.opened is exist - process it [16:46:04]req_shift_opened [16:46:04]FM_GetShiftState [16:46:04]SAM_PROTO_GetShiftState [16:46:04]wFMCommunicate request_size=4 [16:46:04]MH_SAM_APDU [16:46:04]CAPDU: 80 13 01 00 [16:46:04]Write to MH i2c: E2 08 00 A1 1F 80 13 01 00 00 00 00 00 3D [16:46:04]Write i2c OK [16:46:04]MH_I2C_Read... [16:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:04]Read from MH i2c: E2 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: E2 0E 00 [16:46:04]MH_I2C_Read... [16:46:04]Read from MH i2c: E2 0E 00 A1 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CA [16:46:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:04]wFMCommunicate OK [16:46:04]SAM_PROTO_GetShiftState done [16:46:04]FM_GetShiftState done [16:46:04]req_shift_opened done [16:46:04]requested_item shift.open_date is exist - process it [16:46:04]req_shift_open_date [16:46:04]req_shift_open_date done [16:46:04]produce_requested_data done [16:46:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70711,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:46:04]process_action_free close_receipt [16:46:04]json_value_free [16:46:04]json_value_free done [16:46:04]process_json_proto returns [16:46:04]Send response to host [16:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70711,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:46:04]free response buf [16:46:04]execute_script done [16:46:04]execute_script returns [16:46:04]free content buf [16:46:04]Sock 7.Close socket [16:46:04]Sock 7.Thread stoped [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:14]accept exits with 9 [16:46:14]New connection [16:46:14]New thread 3067034980 created [16:46:14]Thread 3066891620 joined [16:46:14]Waiting for new connection... [16:46:14] Sock 9.Parse request [16:46:14]Sock 9.Check first char [16:46:14]Sock 9.First char is OK [16:46:14]request: POST /json_proto HTTP/1.0 [16:46:14]Method: POST [16:46:14]URL: /json_proto [16:46:14]Method is POST - this is cgi request [16:46:14]url: /json_proto [16:46:14]query_string will be loaded in cgi processing [16:46:14]execute_cgi json_proto POST (null) [16:46:14]execute_cgi path=json_proto method=POST [16:46:14]POST find Content-Length [16:46:14]Host: 172.17.50.3:8080 [16:46:14]Content-Length: 689 [16:46:14]Content-Type: application/json [16:46:14] [16:46:14]POST finish read [16:46:14]Found Content-Length = 689 [16:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886491", "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" ] } } [16:46:14]execute_script... [16:46: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)2886491", "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" ] } } [16:46:14]POST & json_proto [16:46:14]process_json_proto [16:46:14]json parsed OK: [16:46:14]protocol is kg_v1.0 [16:46:14]action value=close_receipt [16:46:14]process_action close_receipt [16:46:14]cmd_close_receipt [16:46:14]MH_GetDate [16:46:14]Write to MH i2c: F0 00 00 A2 1F B0 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 09 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: F0 09 00 A2 1F 00 58 28 19 67 6B 98 1E 66 40 [16:46:14]GetLastDocTimeStamp 1729701962 [16:46:14]current date 1729701976 [16:46:14]FM_GetShiftState [16:46:14]SAM_PROTO_GetShiftState [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 13 01 00 [16:46:14]Write to MH i2c: E2 08 00 A3 1F 80 13 01 00 00 00 00 00 3F [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 A3 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CC [16:46:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_GetShiftState done [16:46:14]FM_GetShiftState done [16:46:14]opened in 1729642435 [16:46:14]opened+sec_in_day 1729728835 [16:46:14]quantity*price = 100051 [16:46:14]sum+1 = 100052 [16:46: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 СНО: Общий режим Чек 228 23.10.2024 16:46 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70712 ФПД: 128698459053022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70712&fm=128698459053022&tin=02508201610067®Number=0000000000156251&sum=100000 [16:46:16]StoreToDocumentArchive [16:46:16]shift 196 fd 70712 [16:46:16]save to /storage/0196/doc_00070712 [16:46:16]save last doc name /storage/0196/doc_00070712 to /storage/kkm_last_doc_name [16:46:16]save OK [16:46:16]Clear old archive folders... [16:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:46:16]tlvbuf is B6DBC940 [16:46:16]SAM_PROTO_ClearQueue [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 09 00 00 [16:46:16]Write to MH i2c: E2 08 00 B0 1F 80 09 00 00 00 00 00 00 41 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 B0 1F 00 90 00 43 [16:46:16]RAPDU: 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_ClearQueue done [16:46:16]KKMCreateOFDPacket [16:46:16]OFDProtocolAddRootSTLVToBuf [16:46:16]FM_MakeSignedData [16:46:16]FM_MakeSignedData [16:46:16]SAM_PROTO_SignData [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 0D 01 02 [16:46:16]Write to MH i2c: E2 08 00 B1 1F 80 0D 01 02 00 00 00 00 49 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 B1 1F 00 90 00 44 [16:46:16]RAPDU: 90 00 [16:46:16]wFMCommunicate OK [16:46:16]wFMCommunicate request_size=255 [16:46:16]MH_SAM_APDU [16: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 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 E4 00 00 00 F4 03 04 00 58 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:46:16]Write to MH i2c: E2 02 01 B2 1F 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 E4 00 00 00 F4 03 04 00 58 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 90 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 B2 1F 00 90 00 45 [16:46:16]RAPDU: 90 00 [16:46:16]wFMCommunicate OK [16:46:16]wFMCommunicate request_size=16 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 0C F1 EF 5B DE [16:46:16]Write to MH i2c: E2 13 00 B3 1F 80 0D 02 02 0B 00 00 35 04 06 00 75 0C F1 EF 5B DE 00 00 3B [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 B3 1F 00 90 00 46 [16:46:16]RAPDU: 90 00 [16:46:16]wFMCommunicate OK [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 0D 03 02 [16:46:16]Write to MH i2c: E2 08 00 B4 1F 80 0D 03 02 00 00 00 00 4E [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0B 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0B 00 B4 1F 00 96 68 F7 BE 92 E0 28 D7 90 00 73 [16:46:16]RAPDU: 96 68 F7 BE 92 E0 28 D7 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_SignData done [16:46:16]FM_MakeSignedData done [16:46:16]CreateOFDProtocolMessage [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 11 00 00 [16:46:16]Write to MH i2c: E2 08 00 B5 1F 80 11 00 00 00 00 00 00 4E [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 17 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 17 00 B5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [16: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 [16:46:16]wFMCommunicate OK [16:46:16]CreateOFDProtocolMessage done [16:46:16]OFDSenderStorePacket 70712 [16:46:16]StoreOFDPacket docnum=70712 [16: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 2A F1 0D 01 5D 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 E4 00 00 00 F4 03 04 00 58 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 0C F1 EF 5B DE 96 68 F7 BE 92 E0 28 D7 [16:46:16]CheckFolder [16:46:16]dirname=/storage/ofd_packets [16:46:16]CheckFolder done [16:46:16]ProducePacketName [16:46:16]name=ofd_packets/00070712 [16:46:16]NVStorageSaveData ofd_packets/00070712 [16:46:16]File name is /storage/ofd_packets/00070712 [16:46:16]Write 307 bytes [16:46:16]NVStorageSaveData done [16:46:16]OFDSenderStorePacket done [16:46:16]KKMCreateOFDPacket done [16:46:16]NVStorageSaveData kkm_last_timestamp [16:46:16]File name is /storage/kkm_last_timestamp [16:46:16]Write 4 bytes [16:46:16]NVStorageSaveData done [16:46:16]ExternCall_PrintAddStr [16:46:16]wPrintStart [16:46:16]Write to MH i2c: 01 00 00 B6 1F D5 [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 07 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: 01 07 00 B6 1F 00 00 00 00 00 FF 0F EA [16:46:16]RasterBufferAndPrint [16:46:16]line Счет N : (1)2886491 [16:46:16]line ИНН: 02508201610067 [16:46:16]line Контрольно-Кассовый Чек [16:46:16]line ПРОДАЖА [16:46:16]line ТРК (МРК, ГНК) : 11 [16:46:16]line Товар: 2710194240 [16:46:16]line D-ENERGY Дт-К-2 [16:46:16]line 12.960 * 77.20 [16:46:16]line = 1000.51 [16:46:16]line НДС 12% НСП 1% [16:46:16]line > о реализуемом товаре [16:46:16]line ОКРУГЛЕНИЕ: -0.51 [16:46:16]line ИТОГО: 1000.00 [16:46:16]line Внесено: 1000.00 [16:46:16]line СДАЧА: 0.00 [16:46:16]line НСП 1% : 8.85 [16:46:16]line НДС 12% : 106.25 [16:46:16]line Наличными: 1000.00 [16:46:16]line Безнал.: 0.00 [16:46:16]line Место: АЗС № 85 "Партнер Нефть" [16:46:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:46:16]line СНО: Общий режим [16:46:16]line Чек 228 23.10.2024 16:46 [16:46:16]line Смена: 196 ФФД: 1.0 [16:46:16]line ЗНМ: 0300000167 [16:46:16]line РНМ: 0000000000156251 [16:46:16]line Версия ККМ: v1.0 [16:46:16]line ФМ: 0000000000963346 [16:46:16]line ФД: 70712 [16:46:16]line ФПД: 128698459053022 [16:46:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70712&fm=128698459053022&tin=02508201610067®Number=0000000000156251&sum=100000 [16:46:16]written 0, free lines is 4095 [16:46:16]OFD Sender: Processing packet 70712 [packets to send 18, broken 17] [16:46:16]ProducePacketName [16:46:16]name=ofd_packets/00070712 [16:46:16]OFD Sender: To server: pG, [16:46:16]CommunicateWithHost lk.salyk.kg:30040 [16:46:16]ConnectInit lk.salyk.kg [16:46:16]Connected sock=10 [16:46: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 2A F1 0D 01 5D 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 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 E4 00 00 00 F4 03 04 00 58 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 75 0C F1 EF 5B DE 96 68 F7 BE 92 E0 28 D7 [16: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 FC C8 47 00 76 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 38 14 01 00 F4 03 04 00 F6 D1 18 67 B6 04 01 00 00 BA 8B 37 4C E6 36 9F 89 [16:46:17]CommunicateWithHost err = 0 [16:46:17]CheckOFDResponse [16:46:17]1017 (14) - 77093643461234 [16:46:17]1041 (16) - 0000000000963346 [16:46:17]1040 (4) - 70712 [16:46:17]1012 (4) - 23.10.2024 10:37 [16:46:17]1206 (1) - 0 [16:46:17]OFD Sender: Remove packet 70712 [16:46:17]ProducePacketName [16:46:17]name=ofd_packets/00070712 [16:46:17]NVStorageDeleteData [16:46:17]Write to MH i2c: 01 00 00 E1 1F 00 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 E1 1F 00 00 00 00 00 07 0D 1B [16:46:17]RasterBufferAndPrint [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]written 0, free lines is 3350 [16:46:17]MH_Cut [16:46:17]Write to MH i2c: D1 01 00 E8 1F 01 D9 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 01 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 01 00 E8 1F 00 D8 [16:46:17]Write to MH i2c: 01 00 00 E9 1F 08 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]OFD Sender: No OFD packet to send [16:46:17]*** Cut start [16:46:17]*** Partial cut [16:46:17]*** CUTSNS_PIN = 1 [16:46:17]*** CUTSNS_PIN = 0 [16:46:18]*** Brake cut motor [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]*** Stop cut motor [16:46:18]*** Cut end [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 E9 1F 00 00 00 00 00 FF 0F 1D [16:46:18]process_action close_receipt done [16:46:18]requested_data is exist [16:46:18]produce_requested_data [16:46:18]requested_item fm.sn is exist - process it [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 11 00 00 [16:46:18]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 [16:46:18]MH_I2C_Read... [16:46:18]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 [16:46: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:46:18]wFMCommunicate OK [16:46:18]requested_item fd.num is exist - process it [16:46:18]SAM_PROTO_GetFieldsCounters [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 00 00 [16:46:18]Write to MH i2c: E2 08 00 EB 1F 80 13 00 00 00 00 00 00 86 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 62 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 62 00 EB 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 38 14 01 00 0E 04 04 00 C4 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 5E [16:46: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 38 14 01 00 0E 04 04 00 C4 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 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetFieldsCounters done [16:46:18]requested_item shift.num is exist - process it [16:46:18]requested_item shift.opened is exist - process it [16:46:18]req_shift_opened [16:46:18]FM_GetShiftState [16:46:18]SAM_PROTO_GetShiftState [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 01 00 [16:46:18]Write to MH i2c: E2 08 00 EC 1F 80 13 01 00 00 00 00 00 88 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 EC 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 15 [16:46:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetShiftState done [16:46:18]FM_GetShiftState done [16:46:18]req_shift_opened done [16:46:18]requested_item shift.open_date is exist - process it [16:46:18]req_shift_open_date [16:46:18]req_shift_open_date done [16:46:18]produce_requested_data done [16:46:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70712,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:46:18]process_action_free close_receipt [16:46:18]json_value_free [16:46:18]json_value_free done [16:46:18]process_json_proto returns [16:46:18]Send response to host [16:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70712,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:46:18]free response buf [16:46:18]execute_script done [16:46:18]execute_script returns [16:46:18]free content buf [16:46:18]Sock 9.Close socket [16:46:18]Sock 9.Thread stoped [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:34]accept exits with 7 [16:46:34]New connection [16:46:34]New thread 3066891620 created [16:46:34]Thread 3067034980 joined [16:46:34]Waiting for new connection... [16:46:34] Sock 7.Parse request [16:46:34]Sock 7.Check first char [16:46:34]Sock 7.First char is OK [16:46:34]request: POST /json_proto HTTP/1.0 [16:46:34]Method: POST [16:46:34]URL: /json_proto [16:46:34]Method is POST - this is cgi request [16:46:34]url: /json_proto [16:46:34]query_string will be loaded in cgi processing [16:46:34]execute_cgi json_proto POST (null) [16:46:34]execute_cgi path=json_proto method=POST [16:46:34]POST find Content-Length [16:46:34]Host: 172.17.50.3:8080 [16:46:34]Content-Length: 773 [16:46:34]Content-Type: application/json [16:46:34] [16:46:34]POST finish read [16:46:34]Found Content-Length = 773 [16:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886493", "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" : 5.190, "sum" : 400.67, "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" : 400.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:34]execute_script... [16:46: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)2886493", "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" : 5.190, "sum" : 400.67, "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" : 400.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:34]POST & json_proto [16:46:34]process_json_proto [16:46:34]json parsed OK: [16:46:34]protocol is kg_v1.0 [16:46:34]action value=close_receipt [16:46:34]process_action close_receipt [16:46:34]cmd_close_receipt [16:46:34]MH_GetDate [16:46:34]Write to MH i2c: F0 00 00 ED 1F FB [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 09 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 09 00 ED 1F 00 6C 28 19 67 6B 98 1E 66 9F [16:46:34]GetLastDocTimeStamp 1729701976 [16:46:34]current date 1729701996 [16:46:34]FM_GetShiftState [16:46:34]SAM_PROTO_GetShiftState [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 13 01 00 [16:46:34]Write to MH i2c: E2 08 00 EE 1F 80 13 01 00 00 00 00 00 8A [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 EE 1F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 17 [16:46:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_GetShiftState done [16:46:34]FM_GetShiftState done [16:46:34]opened in 1729642435 [16:46:34]opened+sec_in_day 1729728835 [16:46:34]quantity*price = 40066 [16:46:34]sum+1 = 40068 [16:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.67 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 0.00 Безнал.: 400.67 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 229 23.10.2024 16:46 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70713 ФПД: 169510261001232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70713&fm=169510261001232&tin=02508201610067®Number=0000000000156251&sum=40067 [16:46:35]StoreToDocumentArchive [16:46:35]shift 196 fd 70713 [16:46:35]save to /storage/0196/doc_00070713 [16:46:35]save last doc name /storage/0196/doc_00070713 to /storage/kkm_last_doc_name [16:46:35]save OK [16:46:35]Clear old archive folders... [16:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:46:35]tlvbuf is 0017FBC0 [16:46:35]SAM_PROTO_ClearQueue [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 09 00 00 [16:46:35]Write to MH i2c: E2 08 00 FB 1F 80 09 00 00 00 00 00 00 8C [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 FB 1F 00 90 00 8E [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_ClearQueue done [16:46:35]KKMCreateOFDPacket [16:46:35]OFDProtocolAddRootSTLVToBuf [16:46:35]FM_MakeSignedData [16:46:35]FM_MakeSignedData [16:46:35]SAM_PROTO_SignData [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 01 02 [16:46:35]Write to MH i2c: E2 08 00 FC 1F 80 0D 01 02 00 00 00 00 94 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 FC 1F 00 90 00 8F [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]wFMCommunicate request_size=255 [16:46:35]MH_SAM_APDU [16:46: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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 6C 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:46:35]Write to MH i2c: E2 02 01 FD 1F 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 6C 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 1F [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 FD 1F 00 90 00 90 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=16 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A 2B 2E E4 8C 10 [16:46:36]Write to MH i2c: E2 13 00 FE 1F 80 0D 02 02 0B 00 00 35 04 06 00 9A 2B 2E E4 8C 10 00 00 5F [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 FE 1F 00 90 00 91 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 03 02 [16:46:36]Write to MH i2c: E2 08 00 FF 1F 80 0D 03 02 00 00 00 00 99 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 0B 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 0B 00 FF 1F 00 F2 80 0D C4 50 2A E3 10 90 00 4A [16:46:36]RAPDU: F2 80 0D C4 50 2A E3 10 90 00 [16:46:36]wFMCommunicate OK [16:46:36]SAM_PROTO_SignData done [16:46:36]FM_MakeSignedData done [16:46:36]CreateOFDProtocolMessage [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 11 00 00 [16:46:36]Write to MH i2c: E2 08 00 00 20 80 11 00 00 00 00 00 00 9A [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 17 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 17 00 00 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [16:46: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:46:36]wFMCommunicate OK [16:46:36]CreateOFDProtocolMessage done [16:46:36]OFDSenderStorePacket 70713 [16:46:36]StoreOFDPacket docnum=70713 [16:46: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 15 01 00 00 FE 67 0D 01 88 67 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 6C 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9A 2B 2E E4 8C 10 F2 80 0D C4 50 2A E3 10 [16:46:36]CheckFolder [16:46:36]dirname=/storage/ofd_packets [16:46:36]CheckFolder done [16:46:36]ProducePacketName [16:46:36]name=ofd_packets/00070713 [16:46:36]NVStorageSaveData ofd_packets/00070713 [16:46:36]File name is /storage/ofd_packets/00070713 [16:46:36]Write 307 bytes [16:46:36]NVStorageSaveData done [16:46:36]OFDSenderStorePacket done [16:46:36]KKMCreateOFDPacket done [16:46:36]NVStorageSaveData kkm_last_timestamp [16:46:36]File name is /storage/kkm_last_timestamp [16:46:36]Write 4 bytes [16:46:36]NVStorageSaveData done [16:46:36]ExternCall_PrintAddStr [16:46:36]wPrintStart [16:46:36]Write to MH i2c: 01 00 00 01 20 21 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 01 20 00 00 00 00 00 FF 0F 36 [16:46:36]RasterBufferAndPrint [16:46:36]line Счет N : (1)2886493 [16:46:36]line ИНН: 02508201610067 [16:46:36]line Контрольно-Кассовый Чек [16:46:36]line ПРОДАЖА [16:46:36]line ТРК (МРК, ГНК) : 21 [16:46:36]line Товар: 2710194240 [16:46:36]line D-ENERGY Дт-К-2 [16:46:36]line 5.190 * 77.20 [16:46:36]line = 400.67 [16:46:36]line НДС 12% НСП 1% [16:46:36]line > о реализуемом товаре [16:46:36]line ИТОГО: 400.67 [16:46:36]line НСП 1% : 3.55 [16:46:36]line НДС 12% : 42.55 [16:46:36]line Наличными: 0.00 [16:46:36]line Безнал.: 400.67 [16:46:36]line Место: АЗС № 85 "Партнер Нефть" [16:46:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:46:36]line СНО: Общий режим [16:46:36]line Чек 229 23.10.2024 16:46 [16:46:36]line Смена: 196 ФФД: 1.0 [16:46:36]line ЗНМ: 0300000167 [16:46:36]line РНМ: 0000000000156251 [16:46:36]line Версия ККМ: v1.0 [16:46:36]line Платежная система: Mbank [16:46:36]line ФМ: 0000000000963346 [16:46:36]line ФД: 70713 [16:46:36]line ФПД: 169510261001232 [16:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70713&fm=169510261001232&tin=02508201610067®Number=0000000000156251&sum=40067 [16:46:36]written 0, free lines is 4095 [16:46:36]OFD Sender: Processing packet 70713 [packets to send 18, broken 17] [16:46:36]ProducePacketName [16:46:36]name=ofd_packets/00070713 [16:46:36]OFD Sender: To server: pG, [16:46:36]CommunicateWithHost lk.salyk.kg:30040 [16:46:36]ConnectInit lk.salyk.kg [16:46:36]Connected sock=10 [16:46: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 FE 67 0D 01 88 67 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 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 6C 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9A 2B 2E E4 8C 10 F2 80 0D C4 50 2A E3 10 [16:46: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 13 1B 47 00 D2 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 14 01 00 F4 03 04 00 09 D2 18 67 B6 04 01 00 00 23 DE A0 8A 93 73 64 2D [16:46:36]CommunicateWithHost err = 0 [16:46:36]CheckOFDResponse [16:46:36]1017 (14) - 77093643461234 [16:46:36]1041 (16) - 0000000000963346 [16:46:36]1040 (4) - 70713 [16:46:36]1012 (4) - 23.10.2024 10:38 [16:46:36]1206 (1) - 0 [16:46:36]OFD Sender: Remove packet 70713 [16:46:36]ProducePacketName [16:46:36]name=ofd_packets/00070713 [16:46:36]NVStorageDeleteData [16:46:36]Write to MH i2c: 01 00 00 2A 20 4A [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 2A 20 00 00 00 00 00 20 0D 7E [16:46:36]RasterBufferAndPrint [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]written 0, free lines is 3369 [16:46:36]MH_Cut [16:46:36]Write to MH i2c: D1 01 00 31 20 01 23 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 01 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 01 00 31 20 00 22 [16:46:36]Write to MH i2c: 01 00 00 32 20 52 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:37]OFD Sender: No OFD packet to send [16:46:37]*** Cut start [16:46:37]*** Partial cut [16:46:37]*** CUTSNS_PIN = 1 [16:46:37]*** CUTSNS_PIN = 0 [16:46:37]*** Brake cut motor [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]*** Stop cut motor [16:46:37]*** Cut end [16:46:37]*** FLAG_PRN_PAP1 set [16:46:37]Read from MH i2c: 01 07 00 32 20 00 00 00 00 00 FF 0F 67 [16:46:37]process_action close_receipt done [16:46:37]requested_data is exist [16:46:37]produce_requested_data [16:46:37]requested_item fm.sn is exist - process it [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 11 00 00 [16:46:37]Write to MH i2c: E2 08 00 33 20 80 11 00 00 00 00 00 00 CD [16:46:37]int [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 17 00 [16:46:38]MH_I2C_Read... [16:46:38]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 [16:46: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:46:38]wFMCommunicate OK [16:46:38]requested_item fd.num is exist - process it [16:46:38]SAM_PROTO_GetFieldsCounters [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 13 00 00 [16:46:38]Write to MH i2c: E2 08 00 34 20 80 13 00 00 00 00 00 00 D0 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 62 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 62 00 34 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 39 14 01 00 0E 04 04 00 C4 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 AC [16:46: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 39 14 01 00 0E 04 04 00 C4 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 [16:46:38]wFMCommunicate OK [16:46:38]SAM_PROTO_GetFieldsCounters done [16:46:38]requested_item shift.num is exist - process it [16:46:38]requested_item shift.opened is exist - process it [16:46:38]req_shift_opened [16:46:38]FM_GetShiftState [16:46:38]SAM_PROTO_GetShiftState [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 13 01 00 [16:46:38]Write to MH i2c: 01 00 00 35 20 55 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 35 20 00 01 00 00 00 FF 0F 6B [16:46:38]state=0 [16:46:38]No paper [16:46:38]Write to MH i2c: E2 08 00 36 20 80 13 01 00 00 00 00 00 D3 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 36 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 60 [16:46:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:46:38]wFMCommunicate OK [16:46:38]SAM_PROTO_GetShiftState done [16:46:38]FM_GetShiftState done [16:46:38]req_shift_opened done [16:46:38]requested_item shift.open_date is exist - process it [16:46:38]req_shift_open_date [16:46:38]req_shift_open_date done [16:46:38]produce_requested_data done [16:46:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70713,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:46:38]process_action_free close_receipt [16:46:38]json_value_free [16:46:38]json_value_free done [16:46:38]process_json_proto returns [16:46:38]Send response to host [16:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70713,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:46:38]free response buf [16:46:38]execute_script done [16:46:38]execute_script returns [16:46:38]free content buf [16:46:38]Sock 7.Close socket [16:46:38]Sock 7.Thread stoped [16:46:38]int [16:46:38]Write to MH i2c: 01 00 00 37 20 57 [16:46:38]*** FLAG_PRN_PAP2 set [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 37 20 00 03 00 00 00 FF 0F 6F [16:46:38]state=0 [16:46:38]No paper [16:46:38]Cover opened [16:46:38]int [16:46:38]Write to MH i2c: 01 00 00 38 20 58 [16:46:38]*** FLAG_PRN_PAP2 reset [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: 01 07 00 38 20 00 01 00 00 00 FF 0F 6E [16:46:38]state=3 [16:46:38]No paper [16:46:38]Cover closed [16:46:41]int [16:46:41]Write to MH i2c: 01 00 00 39 20 59 [16:46:41]*** FLAG_PRN_PAP1 reset [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 39 20 00 00 00 00 00 FF 0F 6E [16:46:41]state=0 [16:46:42]OFD Sender: No OFD packet to send [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:12]accept exits with 9 [16:47:12]New connection [16:47:12]New thread 3067034980 created [16:47:12]Thread 3066891620 joined [16:47:12]Waiting for new connection... [16:47:12] Sock 9.Parse request [16:47:12]Sock 9.Check first char [16:47:12]Sock 9.First char is OK [16:47:12]request: POST /json_proto HTTP/1.0 [16:47:12]Method: POST [16:47:12]URL: /json_proto [16:47:12]Method is POST - this is cgi request [16:47:12]url: /json_proto [16:47:12]query_string will be loaded in cgi processing [16:47:12]execute_cgi json_proto POST (null) [16:47:12]execute_cgi path=json_proto method=POST [16:47:12]POST find Content-Length [16:47:12]Host: 172.17.50.3:8080 [16:47:12]Content-Length: 683 [16:47:12]Content-Type: application/json [16:47:12] [16:47:12]POST finish read [16:47:12]Found Content-Length = 683 [16:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886495", "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" ] } } [16:47:12]execute_script... [16:47: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)2886495", "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" ] } } [16:47:12]POST & json_proto [16:47:12]process_json_proto [16:47:12]json parsed OK: [16:47:12]protocol is kg_v1.0 [16:47:12]action value=close_receipt [16:47:12]process_action close_receipt [16:47:12]cmd_close_receipt [16:47:12]MH_GetDate [16:47:12]Write to MH i2c: F0 00 00 3A 20 49 [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: F0 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: F0 09 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: F0 09 00 3A 20 00 92 28 19 67 6B 98 1E 66 13 [16:47:12]GetLastDocTimeStamp 1729701996 [16:47:12]current date 1729702034 [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 3B 20 80 13 01 00 00 00 00 00 D8 [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:12]Read from MH i2c: E2 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 0E 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 0E 00 3B 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 65 [16:47:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:47:12]wFMCommunicate OK [16:47:12]SAM_PROTO_GetShiftState done [16:47:12]FM_GetShiftState done [16:47:12]opened in 1729642435 [16:47:12]opened+sec_in_day 1729728835 [16:47:12]quantity*price = 100015 [16:47:12]sum+1 = 100017 [16:47:12]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 СНО: Общий режим Чек 230 23.10.2024 16:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70714 ФПД: 71201862572959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70714&fm=71201862572959&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:13]StoreToDocumentArchive [16:47:13]shift 196 fd 70714 [16:47:13]save to /storage/0196/doc_00070714 [16:47:13]save last doc name /storage/0196/doc_00070714 to /storage/kkm_last_doc_name [16:47:13]save OK [16:47:13]Clear old archive folders... [16:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:13]tlvbuf is B6EEEA40 [16:47:13]SAM_PROTO_ClearQueue [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 09 00 00 [16:47:13]Write to MH i2c: E2 08 00 48 20 80 09 00 00 00 00 00 00 DA [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 48 20 00 90 00 DC [16:47:13]RAPDU: 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_ClearQueue done [16:47:13]KKMCreateOFDPacket [16:47:13]OFDProtocolAddRootSTLVToBuf [16:47:13]FM_MakeSignedData [16:47:13]FM_MakeSignedData [16:47:13]SAM_PROTO_SignData [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 0D 01 02 [16:47:13]Write to MH i2c: E2 08 00 49 20 80 0D 01 02 00 00 00 00 E2 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 49 20 00 90 00 DD [16:47:13]RAPDU: 90 00 [16:47:13]wFMCommunicate OK [16:47:13]wFMCommunicate request_size=255 [16:47:13]MH_SAM_APDU [16:47: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 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 E6 00 00 00 F4 03 04 00 92 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 [16:47:13]Write to MH i2c: E2 02 01 4A 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 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 E6 00 00 00 F4 03 04 00 92 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 00 00 D8 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 4A 20 00 90 00 DE [16:47:13]RAPDU: 90 00 [16:47:13]wFMCommunicate OK [16:47:13]wFMCommunicate request_size=10 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 0D 02 02 05 C1 F9 B9 DB 9F [16:47:13]Write to MH i2c: E2 0D 00 4B 20 80 0D 02 02 05 00 C1 F9 B9 DB 9F 00 00 DC [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 03 00 4B 20 00 90 00 DF [16:47:13]RAPDU: 90 00 [16:47:13]wFMCommunicate OK [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 0D 03 02 [16:47:13]Write to MH i2c: E2 08 00 4C 20 80 0D 03 02 00 00 00 00 E7 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0B 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0B 00 4C 20 00 05 D9 8B 56 20 DA CF 68 90 00 D8 [16:47:13]RAPDU: 05 D9 8B 56 20 DA CF 68 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_SignData done [16:47:13]FM_MakeSignedData done [16:47:13]CreateOFDProtocolMessage [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 11 00 00 [16:47:13]Write to MH i2c: E2 08 00 4D 20 80 11 00 00 00 00 00 00 E7 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 17 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 17 00 4D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [16:47: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:47:13]wFMCommunicate OK [16:47:13]CreateOFDProtocolMessage done [16:47:13]OFDSenderStorePacket 70714 [16:47:13]StoreOFDPacket docnum=70714 [16:47: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 DD 07 01 E3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E6 00 00 00 F4 03 04 00 92 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 C1 F9 B9 DB 9F 05 D9 8B 56 20 DA CF 68 [16:47:13]CheckFolder [16:47:13]dirname=/storage/ofd_packets [16:47:13]CheckFolder done [16:47:13]ProducePacketName [16:47:13]name=ofd_packets/00070714 [16:47:13]NVStorageSaveData ofd_packets/00070714 [16:47:13]File name is /storage/ofd_packets/00070714 [16:47:13]Write 301 bytes [16:47:13]NVStorageSaveData done [16:47:13]OFDSenderStorePacket done [16:47:13]KKMCreateOFDPacket done [16:47:13]NVStorageSaveData kkm_last_timestamp [16:47:13]File name is /storage/kkm_last_timestamp [16:47:13]Write 4 bytes [16:47:13]NVStorageSaveData done [16:47:13]ExternCall_PrintAddStr [16:47:13]wPrintStart [16:47:13]Write to MH i2c: 01 00 00 4E 20 6E [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: 01 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: 01 07 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: 01 07 00 4E 20 00 00 00 00 00 FF 0F 83 [16:47:13]RasterBufferAndPrint [16:47:13]line Счет N : (1)2886495 [16:47:13]line ИНН: 02508201610067 [16:47:13]line Контрольно-Кассовый Чек [16:47:13]line ПРОДАЖА [16:47:13]line ТРК (МРК, ГНК) : 32 [16:47:13]line Товар: 2710124130 [16:47:13]line Аи-92-К-5 [16:47:13]line 14.950 * 66.90 [16:47:13]line = 1000.16 [16:47:13]line НДС 12% НСП 1% [16:47:13]line > о реализуемом товаре [16:47:13]line ОКРУГЛЕНИЕ: -0.16 [16:47:13]line ИТОГО: 1000.00 [16:47:13]line Внесено: 1000.00 [16:47:13]line СДАЧА: 0.00 [16:47:13]line НСП 1% : 8.85 [16:47:13]line НДС 12% : 106.21 [16:47:13]line Наличными: 1000.00 [16:47:13]line Безнал.: 0.00 [16:47:13]line Место: АЗС № 85 "Партнер Нефть" [16:47:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:47:13]line СНО: Общий режим [16:47:13]line Чек 230 23.10.2024 16:47 [16:47:13]line Смена: 196 ФФД: 1.0 [16:47:13]line ЗНМ: 0300000167 [16:47:13]line РНМ: 0000000000156251 [16:47:13]line Версия ККМ: v1.0 [16:47:13]line ФМ: 0000000000963346 [16:47:13]line ФД: 70714 [16:47:13]line ФПД: 71201862572959 [16:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70714&fm=71201862572959&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:14]OFD Sender: Processing packet 70714 [packets to send 18, broken 17] [16:47:14]ProducePacketName [16:47:14]name=ofd_packets/00070714 [16:47:14]OFD Sender: To server: pG, [16:47:14]CommunicateWithHost lk.salyk.kg:30040 [16:47:14]ConnectInit lk.salyk.kg [16:47:14]written 0, free lines is 4095 [16:47:14]Connected sock=10 [16:47: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 DD 07 01 E3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E6 00 00 00 F4 03 04 00 92 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 C1 F9 B9 DB 9F 05 D9 8B 56 20 DA CF 68 [16:47: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 8B 97 47 00 0A 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 3A 14 01 00 F4 03 04 00 2F D2 18 67 B6 04 01 00 00 D0 15 7F 7D 3A EB 84 7E [16:47:14]CommunicateWithHost err = 0 [16:47:14]CheckOFDResponse [16:47:14]1017 (14) - 77093643461234 [16:47:14]1041 (16) - 0000000000963346 [16:47:14]1040 (4) - 70714 [16:47:14]1012 (4) - 23.10.2024 10:38 [16:47:14]1206 (1) - 0 [16:47:14]OFD Sender: Remove packet 70714 [16:47:14]ProducePacketName [16:47:14]name=ofd_packets/00070714 [16:47:14]NVStorageDeleteData [16:47:14]Write to MH i2c: 01 00 00 79 20 99 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 07 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 07 00 79 20 00 00 00 00 00 E9 0C 95 [16:47:14]RasterBufferAndPrint [16:47:14]line [16:47:14]line [16:47:14]line [16:47:14]line [16:47:14]line [16:47:14]written 0, free lines is 3311 [16:47:14]MH_Cut [16:47:14]Write to MH i2c: D1 01 00 80 20 01 72 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: D1 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: D1 01 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: D1 01 00 80 20 00 71 [16:47:14]Write to MH i2c: 01 00 00 81 20 A1 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]OFD Sender: No OFD packet to send [16:47:15]*** Cut start [16:47:15]*** Partial cut [16:47:15]*** CUTSNS_PIN = 1 [16:47:15]*** CUTSNS_PIN = 0 [16:47:15]*** Brake cut motor [16:47:15]Read from MH i2c: 01 [16:47:15]MH_I2C_Read... [16:47:15]*** Stop cut motor [16:47:15]*** Cut end [16:47:15]Read from MH i2c: 01 07 00 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: 01 07 00 81 20 00 00 00 00 00 FF 0F B6 [16:47:15]process_action close_receipt done [16:47:15]requested_data is exist [16:47:15]produce_requested_data [16:47:15]requested_item fm.sn is exist - process it [16:47:15]wFMCommunicate request_size=4 [16:47:15]MH_SAM_APDU [16:47:15]CAPDU: 80 11 00 00 [16:47:15]Write to MH i2c: E2 08 00 82 20 80 11 00 00 00 00 00 00 1C [16:47:15]Write i2c OK [16:47:15]MH_I2C_Read... [16:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:15]Read from MH i2c: E2 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: E2 17 00 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: E2 17 00 82 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [16:47: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:47:15]wFMCommunicate OK [16:47:15]requested_item fd.num is exist - process it [16:47:15]SAM_PROTO_GetFieldsCounters [16:47:15]wFMCommunicate request_size=4 [16:47:15]MH_SAM_APDU [16:47:15]CAPDU: 80 13 00 00 [16:47:15]Write to MH i2c: E2 08 00 83 20 80 13 00 00 00 00 00 00 1F [16:47:15]Write i2c OK [16:47:15]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 62 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 62 00 83 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 3A 14 01 00 0E 04 04 00 C4 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 FF [16:47: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 3A 14 01 00 0E 04 04 00 C4 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 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetFieldsCounters done [16:47:16]requested_item shift.num is exist - process it [16:47:16]requested_item shift.opened is exist - process it [16:47:16]req_shift_opened [16:47:16]FM_GetShiftState [16:47:16]SAM_PROTO_GetShiftState [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 13 01 00 [16:47:16]Write to MH i2c: E2 08 00 84 20 80 13 01 00 00 00 00 00 21 [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:16]Read from MH i2c: E2 0E 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 84 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [16:47:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetShiftState done [16:47:16]FM_GetShiftState done [16:47:16]req_shift_opened done [16:47:16]requested_item shift.open_date is exist - process it [16:47:16]req_shift_open_date [16:47:16]req_shift_open_date done [16:47:16]produce_requested_data done [16:47:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70714,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:47:16]process_action_free close_receipt [16:47:16]json_value_free [16:47:16]json_value_free done [16:47:16]process_json_proto returns [16:47:16]Send response to host [16:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70714,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:47:16]free response buf [16:47:16]execute_script done [16:47:16]execute_script returns [16:47:16]free content buf [16:47:16]Sock 9.Close socket [16:47:16]Sock 9.Thread stoped [16:47:16]accept exits with 7 [16:47:16]New connection [16:47:16]New thread 3066891620 created [16:47:16]Thread 3067034980 joined [16:47:16]Waiting for new connection... [16:47:16] Sock 7.Parse request [16:47:16]Sock 7.Check first char [16:47:16]Sock 7.First char is OK [16:47:16]request: POST /json_proto HTTP/1.0 [16:47:16]Method: POST [16:47:16]URL: /json_proto [16:47:16]Method is POST - this is cgi request [16:47:16]url: /json_proto [16:47:16]query_string will be loaded in cgi processing [16:47:16]execute_cgi json_proto POST (null) [16:47:16]execute_cgi path=json_proto method=POST [16:47:16]POST find Content-Length [16:47:16]Host: 172.17.50.3:8080 [16:47:16]Content-Length: 675 [16:47:16]Content-Type: application/json [16:47:16] [16:47:16]POST finish read [16:47:16]Found Content-Length = 675 [16:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886494", "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:47:16]execute_script... [16: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)2886494", "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:47:16]POST & json_proto [16:47:16]process_json_proto [16:47:16]json parsed OK: [16:47:16]protocol is kg_v1.0 [16:47:16]action value=close_receipt [16:47:16]process_action close_receipt [16:47:16]cmd_close_receipt [16:47:16]MH_GetDate [16:47:16]Write to MH i2c: F0 00 00 85 20 94 [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 09 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 09 00 85 20 00 96 28 19 67 6B 98 1E 66 62 [16:47:16]GetLastDocTimeStamp 1729702034 [16:47:16]current date 1729702038 [16:47:16]FM_GetShiftState [16:47:16]SAM_PROTO_GetShiftState [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 13 01 00 [16:47:16]Write to MH i2c: E2 08 00 86 20 80 13 01 00 00 00 00 00 23 [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 86 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B0 [16:47:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetShiftState done [16:47:16]FM_GetShiftState done [16:47:16]opened in 1729642435 [16:47:16]opened+sec_in_day 1729728835 [16:47:16]quantity*price = 50063 [16:47:16]sum+1 = 50064 [16:47:16]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 СНО: Общий режим Чек 231 23.10.2024 16:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70715 ФПД: 113063591348750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70715&fm=113063591348750&tin=02508201610067®Number=0000000000156251&sum=50000 [16:47:17]StoreToDocumentArchive [16:47:17]shift 196 fd 70715 [16:47:17]save to /storage/0196/doc_00070715 [16:47:17]save last doc name /storage/0196/doc_00070715 to /storage/kkm_last_doc_name [16:47:17]save OK [16:47:17]Clear old archive folders... [16:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:17]tlvbuf is 001A9EA0 [16:47:17]SAM_PROTO_ClearQueue [16:47:17]wFMCommunicate request_size=4 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 09 00 00 [16:47:17]Write to MH i2c: E2 08 00 93 20 80 09 00 00 00 00 00 00 25 [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 93 20 00 90 00 27 [16:47:18]RAPDU: 90 00 [16:47:18]wFMCommunicate OK [16:47:18]SAM_PROTO_ClearQueue done [16:47:18]KKMCreateOFDPacket [16:47:18]OFDProtocolAddRootSTLVToBuf [16:47:18]FM_MakeSignedData [16:47:18]FM_MakeSignedData [16:47:18]SAM_PROTO_SignData [16:47:18]wFMCommunicate request_size=4 [16:47:18]MH_SAM_APDU [16:47:18]CAPDU: 80 0D 01 02 [16:47:18]Write to MH i2c: E2 08 00 94 20 80 0D 01 02 00 00 00 00 2D [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 94 20 00 90 00 28 [16:47:18]RAPDU: 90 00 [16:47:18]wFMCommunicate OK [16:47:18]wFMCommunicate request_size=255 [16:47:18]MH_SAM_APDU [16:47: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 E7 00 00 00 F4 03 04 00 96 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 D4 AB 33 [16:47:18]Write to MH i2c: E2 02 01 95 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 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 E7 00 00 00 F4 03 04 00 96 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 D4 AB 33 00 00 85 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 95 20 00 90 00 29 [16:47:18]RAPDU: 90 00 [16:47:18]wFMCommunicate OK [16:47:18]wFMCommunicate request_size=7 [16:47:18]MH_SAM_APDU [16:47:18]CAPDU: 80 0D 02 02 02 0A 0E [16:47:18]Write to MH i2c: E2 0A 00 96 20 80 0D 02 02 02 00 0A 0E 00 00 4C [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 03 00 96 20 00 90 00 2A [16:47:18]RAPDU: 90 00 [16:47:18]wFMCommunicate OK [16:47:18]wFMCommunicate request_size=4 [16:47:18]MH_SAM_APDU [16:47:18]CAPDU: 80 0D 03 02 [16:47:18]Write to MH i2c: E2 08 00 97 20 80 0D 03 02 00 00 00 00 32 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 0B 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 0B 00 97 20 00 7A 9C 0D 5E 40 82 D1 4E 90 00 95 [16:47:18]RAPDU: 7A 9C 0D 5E 40 82 D1 4E 90 00 [16:47:18]wFMCommunicate OK [16:47:18]SAM_PROTO_SignData done [16:47:18]FM_MakeSignedData done [16:47:18]CreateOFDProtocolMessage [16:47:18]wFMCommunicate request_size=4 [16:47:18]MH_SAM_APDU [16:47:18]CAPDU: 80 11 00 00 [16:47:18]Write to MH i2c: E2 08 00 98 20 80 11 00 00 00 00 00 00 32 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 [16:47:18]MH_I2C_Read... [16:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:18]Read from MH i2c: E2 17 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: E2 17 00 98 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [16:47: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:47:18]wFMCommunicate OK [16:47:18]CreateOFDProtocolMessage done [16:47:18]OFDSenderStorePacket 70715 [16:47:18]StoreOFDPacket docnum=70715 [16:47: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 E8 CD 04 01 32 D3 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 E7 00 00 00 F4 03 04 00 96 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 D4 AB 33 0A 0E 7A 9C 0D 5E 40 82 D1 4E [16:47:18]CheckFolder [16:47:18]dirname=/storage/ofd_packets [16:47:18]CheckFolder done [16:47:18]ProducePacketName [16:47:18]name=ofd_packets/00070715 [16:47:18]NVStorageSaveData ofd_packets/00070715 [16:47:18]File name is /storage/ofd_packets/00070715 [16:47:18]Write 298 bytes [16:47:18]NVStorageSaveData done [16:47:18]OFDSenderStorePacket done [16:47:18]KKMCreateOFDPacket done [16:47:18]NVStorageSaveData kkm_last_timestamp [16:47:18]File name is /storage/kkm_last_timestamp [16:47:18]Write 4 bytes [16:47:18]NVStorageSaveData done [16:47:18]ExternCall_PrintAddStr [16:47:18]wPrintStart [16:47:18]Write to MH i2c: 01 00 00 99 20 B9 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 07 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 07 00 99 20 00 00 00 00 00 FF 0F CE [16:47:18]RasterBufferAndPrint [16:47:18]line Счет N : (1)2886494 [16:47:18]line ИНН: 02508201610067 [16:47:18]line Контрольно-Кассовый Чек [16:47:18]line ПРОДАЖА [16:47:18]line ТРК (МРК, ГНК) : 61 [16:47:18]line Товар: 2710194210 [16:47:18]line ДТ-К-5 [16:47:18]line 6.570 * 76.20 [16:47:18]line = 500.63 [16:47:18]line НДС 12% НСП 1% [16:47:18]line > о реализуемом товаре [16:47:18]line ОКРУГЛЕНИЕ: -0.63 [16:47:18]line ИТОГО: 500.00 [16:47:18]line Внесено: 500.00 [16:47:18]line СДАЧА: 0.00 [16:47:18]line НСП 1% : 4.43 [16:47:18]line НДС 12% : 53.16 [16:47:18]line Наличными: 500.00 [16:47:18]line Безнал.: 0.00 [16:47:18]line Место: АЗС № 85 "Партнер Нефть" [16:47:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:47:18]line СНО: Общий режим [16:47:18]line Чек 231 23.10.2024 16:47 [16:47:18]line Смена: 196 ФФД: 1.0 [16:47:18]line ЗНМ: 0300000167 [16:47:18]line РНМ: 0000000000156251 [16:47:18]line Версия ККМ: v1.0 [16:47:18]line ФМ: 0000000000963346 [16:47:18]line ФД: 70715 [16:47:18]line ФПД: 113063591348750 [16:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70715&fm=113063591348750&tin=02508201610067®Number=0000000000156251&sum=50000 [16:47:18]written 0, free lines is 4095 [16:47:18]OFD Sender: Processing packet 70715 [packets to send 18, broken 17] [16:47:18]ProducePacketName [16:47:18]name=ofd_packets/00070715 [16:47:18]OFD Sender: To server: pG, [16:47:18]CommunicateWithHost lk.salyk.kg:30040 [16:47:18]ConnectInit lk.salyk.kg [16:47:18]Connected sock=10 [16: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 0C 01 00 00 E8 CD 04 01 32 D3 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 E7 00 00 00 F4 03 04 00 96 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 D4 AB 33 0A 0E 7A 9C 0D 5E 40 82 D1 4E [16: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 3B EB 47 00 FF 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 3B 14 01 00 F4 03 04 00 33 D2 18 67 B6 04 01 00 00 F0 72 CB 8A 63 74 8C 72 [16:47:18]CommunicateWithHost err = 0 [16:47:18]CheckOFDResponse [16:47:18]1017 (14) - 77093643461234 [16:47:18]1041 (16) - 0000000000963346 [16:47:18]1040 (4) - 70715 [16:47:18]1012 (4) - 23.10.2024 10:38 [16:47:18]1206 (1) - 0 [16:47:18]OFD Sender: Remove packet 70715 [16:47:18]ProducePacketName [16:47:18]name=ofd_packets/00070715 [16:47:18]NVStorageDeleteData [16:47:19]Write to MH i2c: 01 00 00 C4 20 E4 [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: 01 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: 01 07 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: 01 07 00 C4 20 00 00 00 00 00 F3 0C EA [16:47:19]RasterBufferAndPrint [16:47:19]line [16:47:19]line [16:47:19]line [16:47:19]line [16:47:19]line [16:47:19]written 0, free lines is 3330 [16:47:19]MH_Cut [16:47:19]Write to MH i2c: D1 01 00 CB 20 01 BD [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: D1 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: D1 01 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: D1 01 00 CB 20 00 BC [16:47:19]Write to MH i2c: 01 00 00 CC 20 EC [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]OFD Sender: No OFD packet to send [16:47:19]*** Cut start [16:47:19]*** Partial cut [16:47:19]*** CUTSNS_PIN = 1 [16:47:19]*** CUTSNS_PIN = 0 [16:47:20]*** Brake cut motor [16:47:20]Read from MH i2c: 01 [16:47:20]MH_I2C_Read... [16:47:20]*** Stop cut motor [16:47:20]*** Cut end [16:47:20]Read from MH i2c: 01 07 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: 01 07 00 CC 20 00 00 00 00 00 FF 0F 01 [16:47:20]process_action close_receipt done [16:47:20]requested_data is exist [16:47:20]produce_requested_data [16:47:20]requested_item fm.sn is exist - process it [16:47:20]wFMCommunicate request_size=4 [16:47:20]MH_SAM_APDU [16:47:20]CAPDU: 80 11 00 00 [16:47:20]Write to MH i2c: E2 08 00 CD 20 80 11 00 00 00 00 00 00 67 [16:47:20]Write i2c OK [16:47:20]MH_I2C_Read... [16:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:20]Read from MH i2c: E2 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 17 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 17 00 CD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [16: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 [16:47:20]wFMCommunicate OK [16:47:20]requested_item fd.num is exist - process it [16:47:20]SAM_PROTO_GetFieldsCounters [16:47:20]wFMCommunicate request_size=4 [16:47:20]MH_SAM_APDU [16:47:20]CAPDU: 80 13 00 00 [16:47:20]Write to MH i2c: E2 08 00 CE 20 80 13 00 00 00 00 00 00 6A [16:47:20]Write i2c OK [16:47:20]MH_I2C_Read... [16:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:20]Read from MH i2c: E2 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 62 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 62 00 CE 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 3B 14 01 00 0E 04 04 00 C4 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 4E [16: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 3B 14 01 00 0E 04 04 00 C4 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 [16:47:20]wFMCommunicate OK [16:47:20]SAM_PROTO_GetFieldsCounters done [16:47:20]requested_item shift.num is exist - process it [16:47:20]requested_item shift.opened is exist - process it [16:47:20]req_shift_opened [16:47:20]FM_GetShiftState [16:47:20]SAM_PROTO_GetShiftState [16:47:20]wFMCommunicate request_size=4 [16:47:20]MH_SAM_APDU [16:47:20]CAPDU: 80 13 01 00 [16:47:20]Write to MH i2c: E2 08 00 CF 20 80 13 01 00 00 00 00 00 6C [16:47:20]Write i2c OK [16:47:20]MH_I2C_Read... [16:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:20]Read from MH i2c: E2 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 0E 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 0E 00 CF 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [16:47:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:47:20]wFMCommunicate OK [16:47:20]SAM_PROTO_GetShiftState done [16:47:20]FM_GetShiftState done [16:47:20]req_shift_opened done [16:47:20]requested_item shift.open_date is exist - process it [16:47:20]req_shift_open_date [16:47:20]req_shift_open_date done [16:47:20]produce_requested_data done [16:47:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70715,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:47:20]process_action_free close_receipt [16:47:20]json_value_free [16:47:20]json_value_free done [16:47:20]process_json_proto returns [16:47:20]Send response to host [16:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70715,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:47:20]free response buf [16:47:20]execute_script done [16:47:20]execute_script returns [16:47:20]free content buf [16:47:20]Sock 7.Close socket [16:47:20]Sock 7.Thread stoped [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:26]accept exits with 9 [16:48:26]New connection [16:48:26]New thread 3067034980 created [16:48:26]Thread 3066891620 joined [16:48:26]Waiting for new connection... [16:48:26] Sock 9.Parse request [16:48:26]Sock 9.Check first char [16:48:26]Sock 9.First char is OK [16:48:26]request: POST /json_proto HTTP/1.0 [16:48:26]Method: POST [16:48:26]URL: /json_proto [16:48:26]Method is POST - this is cgi request [16:48:26]url: /json_proto [16:48:26]query_string will be loaded in cgi processing [16:48:26]execute_cgi json_proto POST (null) [16:48:26]execute_cgi path=json_proto method=POST [16:48:26]POST find Content-Length [16:48:26]Host: 172.17.50.3:8080 [16:48:26]Content-Length: 679 [16:48:26]Content-Type: application/json [16:48:26] [16:48:26]POST finish read [16:48:26]Found Content-Length = 679 [16:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886496", "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" : 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" ] } } [16:48:26]execute_script... [16:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886496", "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" : 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" ] } } [16:48:26]POST & json_proto [16:48:26]process_json_proto [16:48:26]json parsed OK: [16:48:26]protocol is kg_v1.0 [16:48:26]action value=close_receipt [16:48:26]process_action close_receipt [16:48:26]cmd_close_receipt [16:48:26]MH_GetDate [16:48:26]Write to MH i2c: F0 00 00 D0 20 DF [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 D0 20 00 DC 28 19 67 6B 98 1E 66 F3 [16:48:26]GetLastDocTimeStamp 1729702038 [16:48:26]current date 1729702108 [16:48:26]FM_GetShiftState [16:48:26]SAM_PROTO_GetShiftState [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 13 01 00 [16:48:26]Write to MH i2c: E2 08 00 D1 20 80 13 01 00 00 00 00 00 6E [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 D1 20 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [16:48:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_GetShiftState done [16:48:26]FM_GetShiftState done [16:48:26]opened in 1729642435 [16:48:26]opened+sec_in_day 1729728835 [16:48:26]quantity*price = 80012 [16:48:26]sum+1 = 80013 [16:48:26]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 СНО: Общий режим Чек 232 23.10.2024 16:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70716 ФПД: 18641385255954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70716&fm=18641385255954&tin=02508201610067®Number=0000000000156251&sum=80000 [16:48:27]StoreToDocumentArchive [16:48:27]shift 196 fd 70716 [16:48:27]save to /storage/0196/doc_00070716 [16:48:27]save last doc name /storage/0196/doc_00070716 to /storage/kkm_last_doc_name [16:48:27]save OK [16:48:27]Clear old archive folders... [16:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:27]tlvbuf is B6EEEAB0 [16:48:27]SAM_PROTO_ClearQueue [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 09 00 00 [16:48:27]Write to MH i2c: E2 08 00 DE 20 80 09 00 00 00 00 00 00 70 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 DE 20 00 90 00 72 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_ClearQueue done [16:48:27]KKMCreateOFDPacket [16:48:27]OFDProtocolAddRootSTLVToBuf [16:48:27]FM_MakeSignedData [16:48:27]FM_MakeSignedData [16:48:27]SAM_PROTO_SignData [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 01 02 [16:48:27]Write to MH i2c: E2 08 00 DF 20 80 0D 01 02 00 00 00 00 78 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 DF 20 00 90 00 73 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=255 [16:48:27]MH_SAM_APDU [16:48: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 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 E8 00 00 00 F4 03 04 00 DC 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 [16:48:27]Write to MH i2c: E2 02 01 E0 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 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 E8 00 00 00 F4 03 04 00 DC 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 00 00 7E [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 E0 20 00 90 00 74 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=10 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 02 02 05 F4 49 25 74 12 [16:48:27]Write to MH i2c: E2 0D 00 E1 20 80 0D 02 02 05 00 F4 49 25 74 12 00 00 6D [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 E1 20 00 90 00 75 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 03 02 [16:48:27]Write to MH i2c: E2 08 00 E2 20 80 0D 03 02 00 00 00 00 7D [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 E2 20 00 4B 2C EE D1 42 E4 10 C9 90 00 B3 [16:48:27]RAPDU: 4B 2C EE D1 42 E4 10 C9 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_SignData done [16:48:27]FM_MakeSignedData done [16:48:27]CreateOFDProtocolMessage [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 11 00 00 [16:48:27]Write to MH i2c: E2 08 00 E3 20 80 11 00 00 00 00 00 00 7D [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 17 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 17 00 E3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [16:48: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:48:28]wFMCommunicate OK [16:48:28]CreateOFDProtocolMessage done [16:48:28]OFDSenderStorePacket 70716 [16:48:28]StoreOFDPacket docnum=70716 [16:48: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 2C 1E 07 01 D2 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 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 E8 00 00 00 F4 03 04 00 DC 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 F4 49 25 74 12 4B 2C EE D1 42 E4 10 C9 [16:48:28]CheckFolder [16:48:28]dirname=/storage/ofd_packets [16:48:28]CheckFolder done [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00070716 [16:48:28]NVStorageSaveData ofd_packets/00070716 [16:48:28]File name is /storage/ofd_packets/00070716 [16:48:28]Write 301 bytes [16:48:28]NVStorageSaveData done [16:48:28]OFDSenderStorePacket done [16:48:28]KKMCreateOFDPacket done [16:48:28]NVStorageSaveData kkm_last_timestamp [16:48:28]File name is /storage/kkm_last_timestamp [16:48:28]Write 4 bytes [16:48:28]NVStorageSaveData done [16:48:28]ExternCall_PrintAddStr [16:48:28]wPrintStart [16:48:28]Write to MH i2c: 01 00 00 E4 20 04 [16:48:28]OFD Sender: Processing packet 70716 [packets to send 18, broken 17] [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00070716 [16:48:28]OFD Sender: To server: pG, [16:48:28]CommunicateWithHost lk.salyk.kg:30040 [16:48:28]ConnectInit lk.salyk.kg [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 E4 20 00 00 00 00 00 FF 0F 19 [16:48:28]RasterBufferAndPrint [16:48:28]line Счет N : (1)2886496 [16:48:28]line ИНН: 02508201610067 [16:48:28]line Контрольно-Кассовый Чек [16:48:28]line ПРОДАЖА [16:48:28]line ТРК (МРК, ГНК) : 12 [16:48:28]line Товар: 2710124130 [16:48:28]line Аи-92-К-5 [16:48:28]line 11.960 * 66.90 [16:48:28]line = 800.12 [16:48:28]line НДС 12% НСП 1% [16:48:28]line > о реализуемом товаре [16:48:28]line ОКРУГЛЕНИЕ: -0.12 [16:48:28]line ИТОГО: 800.00 [16:48:28]line Внесено: 800.00 [16:48:28]line СДАЧА: 0.00 [16:48:28]line НСП 1% : 7.08 [16:48:28]line НДС 12% : 84.97 [16:48:28]line Наличными: 800.00 [16:48:28]line Безнал.: 0.00 [16:48:28]line Место: АЗС № 85 "Партнер Нефть" [16:48:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:48:28]line СНО: Общий режим [16:48:28]line Чек 232 23.10.2024 16:48 [16:48:28]line Смена: 196 ФФД: 1.0 [16:48:28]line ЗНМ: 0300000167 [16:48:28]line РНМ: 0000000000156251 [16:48:28]line Версия ККМ: v1.0 [16:48:28]line ФМ: 0000000000963346 [16:48:28]line ФД: 70716 [16:48:28]line ФПД: 18641385255954 [16:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70716&fm=18641385255954&tin=02508201610067®Number=0000000000156251&sum=80000 [16:48:28]Connected sock=10 [16:48: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 2C 1E 07 01 D2 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 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 E8 00 00 00 F4 03 04 00 DC 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 F4 49 25 74 12 4B 2C EE D1 42 E4 10 C9 [16:48:28]written 0, free lines is 4095 [16:48: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 9A FB 47 00 7E 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 3C 14 01 00 F4 03 04 00 79 D2 18 67 B6 04 01 00 00 A6 0A 6A B9 A1 1F 98 78 [16:48:28]CommunicateWithHost err = 0 [16:48:28]CheckOFDResponse [16:48:28]1017 (14) - 77093643461234 [16:48:28]1041 (16) - 0000000000963346 [16:48:28]1040 (4) - 70716 [16:48:28]1012 (4) - 23.10.2024 10:39 [16:48:28]1206 (1) - 0 [16:48:28]OFD Sender: Remove packet 70716 [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00070716 [16:48:28]NVStorageDeleteData [16:48:28]Write to MH i2c: 01 00 00 0F 21 30 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 0F 21 00 00 00 00 00 E4 0C 27 [16:48:28]RasterBufferAndPrint [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]written 0, free lines is 3306 [16:48:28]MH_Cut [16:48:28]Write to MH i2c: D1 01 00 16 21 01 09 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 01 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 01 00 16 21 00 08 [16:48:28]Write to MH i2c: 01 00 00 17 21 38 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:29]OFD Sender: No OFD packet to send [16:48:29]*** Cut start [16:48:29]*** Partial cut [16:48:29]*** CUTSNS_PIN = 1 [16:48:29]*** CUTSNS_PIN = 0 [16:48:29]*** Brake cut motor [16:48:30]Read from MH i2c: 01 [16:48:30]MH_I2C_Read... [16:48:30]*** Stop cut motor [16:48:30]*** Cut end [16:48:30]Read from MH i2c: 01 07 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 17 21 00 00 00 00 00 FF 0F 4D [16:48:30]process_action close_receipt done [16:48:30]requested_data is exist [16:48:30]produce_requested_data [16:48:30]requested_item fm.sn is exist - process it [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 11 00 00 [16:48:30]Write to MH i2c: E2 08 00 18 21 80 11 00 00 00 00 00 00 B3 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 18 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [16:48:30]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:30]wFMCommunicate OK [16:48:30]requested_item fd.num is exist - process it [16:48:30]SAM_PROTO_GetFieldsCounters [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 00 00 [16:48:30]Write to MH i2c: E2 08 00 19 21 80 13 00 00 00 00 00 00 B6 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 19 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 3C 14 01 00 0E 04 04 00 C4 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 9E [16:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 14 01 00 0E 04 04 00 C4 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 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_GetFieldsCounters done [16:48:30]requested_item shift.num is exist - process it [16:48:30]requested_item shift.opened is exist - process it [16:48:30]req_shift_opened [16:48:30]FM_GetShiftState [16:48:30]SAM_PROTO_GetShiftState [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 01 00 [16:48:30]Write to MH i2c: E2 08 00 1A 21 80 13 01 00 00 00 00 00 B8 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:30]Read from MH i2c: E2 0E 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 0E 00 1A 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 45 [16:48:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_GetShiftState done [16:48:30]FM_GetShiftState done [16:48:30]req_shift_opened done [16:48:30]requested_item shift.open_date is exist - process it [16:48:30]req_shift_open_date [16:48:30]req_shift_open_date done [16:48:30]produce_requested_data done [16:48:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70716,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:48:30]process_action_free close_receipt [16:48:30]json_value_free [16:48:30]json_value_free done [16:48:30]process_json_proto returns [16:48:30]Send response to host [16:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70716,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:48:30]free response buf [16:48:30]execute_script done [16:48:30]execute_script returns [16:48:30]free content buf [16:48:30]Sock 9.Close socket [16:48:30]Sock 9.Thread stoped [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:55]accept exits with 7 [16:48:55]New connection [16:48:55]New thread 3066891620 created [16:48:55]Thread 3067034980 joined [16:48:55]Waiting for new connection... [16:48:55] Sock 7.Parse request [16:48:55]Sock 7.Check first char [16:48:55]Sock 7.First char is OK [16:48:55]request: POST /json_proto HTTP/1.0 [16:48:55]Method: POST [16:48:55]URL: /json_proto [16:48:55]Method is POST - this is cgi request [16:48:55]url: /json_proto [16:48:55]query_string will be loaded in cgi processing [16:48:55]execute_cgi json_proto POST (null) [16:48:55]execute_cgi path=json_proto method=POST [16:48:55]POST find Content-Length [16:48:55]Host: 172.17.50.3:8080 [16:48:55]Content-Length: 683 [16:48:55]Content-Type: application/json [16:48:55] [16:48:55]POST finish read [16:48:55]Found Content-Length = 683 [16:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886497", "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" ] } } [16:48:55]execute_script... [16:48: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)2886497", "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" ] } } [16:48:55]POST & json_proto [16:48:55]process_json_proto [16:48:55]json parsed OK: [16:48:55]protocol is kg_v1.0 [16:48:55]action value=close_receipt [16:48:55]process_action close_receipt [16:48:55]cmd_close_receipt [16:48:55]MH_GetDate [16:48:55]Write to MH i2c: F0 00 00 1B 21 2B [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: F0 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: F0 09 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: F0 09 00 1B 21 00 F9 28 19 67 6B 98 1E 66 5C [16:48:55]GetLastDocTimeStamp 1729702108 [16:48:55]current date 1729702137 [16:48:55]FM_GetShiftState [16:48:55]SAM_PROTO_GetShiftState [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 13 01 00 [16:48:55]Write to MH i2c: E2 08 00 1C 21 80 13 01 00 00 00 00 00 BA [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0E 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0E 00 1C 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 47 [16:48:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:48:55]wFMCommunicate OK [16:48:55]SAM_PROTO_GetShiftState done [16:48:55]FM_GetShiftState done [16:48:55]opened in 1729642435 [16:48:55]opened+sec_in_day 1729728835 [16:48:55]quantity*price = 100015 [16:48:55]sum+1 = 100017 [16:48:55]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 23.10.2024 16:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70717 ФПД: 237528740957559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70717&fm=237528740957559&tin=02508201610067®Number=0000000000156251&sum=100000 [16:48:56]StoreToDocumentArchive [16:48:56]shift 196 fd 70717 [16:48:56]save to /storage/0196/doc_00070717 [16:48:56]save last doc name /storage/0196/doc_00070717 to /storage/kkm_last_doc_name [16:48:56]save OK [16:48:56]Clear old archive folders... [16:48:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:56]tlvbuf is 0020C150 [16:48:56]SAM_PROTO_ClearQueue [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 09 00 00 [16:48:56]Write to MH i2c: E2 08 00 29 21 80 09 00 00 00 00 00 00 BC [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 03 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 03 00 29 21 00 90 00 BE [16:48:56]RAPDU: 90 00 [16:48:56]wFMCommunicate OK [16:48:56]SAM_PROTO_ClearQueue done [16:48:56]KKMCreateOFDPacket [16:48:56]OFDProtocolAddRootSTLVToBuf [16:48:56]FM_MakeSignedData [16:48:56]FM_MakeSignedData [16:48:56]SAM_PROTO_SignData [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 0D 01 02 [16:48:56]Write to MH i2c: E2 08 00 2A 21 80 0D 01 02 00 00 00 00 C4 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 2A 21 00 90 00 BF [16:48:57]RAPDU: 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=255 [16:48:57]MH_SAM_APDU [16:48: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 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 F9 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D8 [16:48:57]Write to MH i2c: E2 02 01 2B 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 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 F9 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D8 00 00 BF [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [16:48:57]RAPDU: 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=10 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 0D 02 02 05 07 F8 3A 8D 77 [16:48:57]Write to MH i2c: E2 0D 00 2C 21 80 0D 02 02 05 00 07 F8 3A 8D 77 00 00 0E [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [16:48:57]RAPDU: 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 0D 03 02 [16:48:57]Write to MH i2c: E2 08 00 2D 21 80 0D 03 02 00 00 00 00 C9 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 0B 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 0B 00 2D 21 00 81 D4 96 3C B2 F6 44 35 90 00 12 [16:48:57]RAPDU: 81 D4 96 3C B2 F6 44 35 90 00 [16:48:57]wFMCommunicate OK [16:48:57]SAM_PROTO_SignData done [16:48:57]FM_MakeSignedData done [16:48:57]CreateOFDProtocolMessage [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 11 00 00 [16:48:57]Write to MH i2c: E2 08 00 2E 21 80 11 00 00 00 00 00 00 C9 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 17 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 17 00 2E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [16:48: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:48:57]wFMCommunicate OK [16:48:57]CreateOFDProtocolMessage done [16:48:57]OFDSenderStorePacket 70717 [16:48:57]StoreOFDPacket docnum=70717 [16:48: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 D4 7F 07 01 CE 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 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 F9 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D8 07 F8 3A 8D 77 81 D4 96 3C B2 F6 44 35 [16:48:57]CheckFolder [16:48:57]dirname=/storage/ofd_packets [16:48:57]CheckFolder done [16:48:57]ProducePacketName [16:48:57]name=ofd_packets/00070717 [16:48:57]NVStorageSaveData ofd_packets/00070717 [16:48:57]File name is /storage/ofd_packets/00070717 [16:48:57]Write 301 bytes [16:48:57]NVStorageSaveData done [16:48:57]OFDSenderStorePacket done [16:48:57]KKMCreateOFDPacket done [16:48:57]NVStorageSaveData kkm_last_timestamp [16:48:57]File name is /storage/kkm_last_timestamp [16:48:57]Write 4 bytes [16:48:57]NVStorageSaveData done [16:48:57]OFD Sender: Processing packet 70717 [packets to send 18, broken 17] [16:48:57]ProducePacketName [16:48:57]name=ofd_packets/00070717 [16:48:57]OFD Sender: To server: pG, [16:48:57]CommunicateWithHost lk.salyk.kg:30040 [16:48:57]ConnectInit lk.salyk.kg [16:48:57]ExternCall_PrintAddStr [16:48:57]wPrintStart [16:48:57]Write to MH i2c: 01 00 00 2F 21 50 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: 01 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: 01 07 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: 01 07 00 2F 21 00 00 00 00 00 FF 0F 65 [16:48:57]RasterBufferAndPrint [16:48:57]line Счет N : (1)2886497 [16:48:57]line ИНН: 02508201610067 [16:48:57]line Контрольно-Кассовый Чек [16:48:57]line ПРОДАЖА [16:48:57]line ТРК (МРК, ГНК) : 42 [16:48:57]line Товар: 2710124130 [16:48:57]line Аи-92-К-5 [16:48:57]line 14.950 * 66.90 [16:48:57]line = 1000.16 [16:48:57]line НДС 12% НСП 1% [16:48:57]line > о реализуемом товаре [16:48:57]line ОКРУГЛЕНИЕ: -0.16 [16:48:57]line ИТОГО: 1000.00 [16:48:57]line Внесено: 1000.00 [16:48:57]line СДАЧА: 0.00 [16:48:57]line НСП 1% : 8.85 [16:48:57]line НДС 12% : 106.21 [16:48:57]line Наличными: 1000.00 [16:48:57]line Безнал.: 0.00 [16:48:57]line Место: АЗС № 85 "Партнер Нефть" [16:48:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:48:57]line СНО: Общий режим [16:48:57]line Чек 233 23.10.2024 16:48 [16:48:57]line Смена: 196 ФФД: 1.0 [16:48:57]line ЗНМ: 0300000167 [16:48:57]line РНМ: 0000000000156251 [16:48:57]line Версия ККМ: v1.0 [16:48:57]line ФМ: 0000000000963346 [16:48:57]line ФД: 70717 [16:48:57]line ФПД: 237528740957559 [16:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70717&fm=237528740957559&tin=02508201610067®Number=0000000000156251&sum=100000 [16:48:57]Connected sock=10 [16:48: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 D4 7F 07 01 CE 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 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 F9 28 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D8 07 F8 3A 8D 77 81 D4 96 3C B2 F6 44 35 [16:48:57]written 0, free lines is 4095 [16:48: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 FB FC 47 00 38 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 14 01 00 F4 03 04 00 96 D2 18 67 B6 04 01 00 00 79 A3 B6 37 F0 5F B8 9B [16:48:57]CommunicateWithHost err = 0 [16:48:57]CheckOFDResponse [16:48:57]1017 (14) - 77093643461234 [16:48:57]1041 (16) - 0000000000963346 [16:48:57]1040 (4) - 70717 [16:48:57]1012 (4) - 23.10.2024 10:40 [16:48:57]1206 (1) - 0 [16:48:57]OFD Sender: Remove packet 70717 [16:48:57]ProducePacketName [16:48:57]name=ofd_packets/00070717 [16:48:57]NVStorageDeleteData [16:48:58]Write to MH i2c: 01 00 00 5A 21 7B [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 E7 0C 75 [16:48:58]RasterBufferAndPrint [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]written 0, free lines is 3309 [16:48:58]MH_Cut [16:48:58]Write to MH i2c: D1 01 00 61 21 01 54 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 01 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 01 00 61 21 00 53 [16:48:58]Write to MH i2c: 01 00 00 62 21 83 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]OFD Sender: No OFD packet to send [16:48:58]*** Cut start [16:48:58]*** Partial cut [16:48:58]*** CUTSNS_PIN = 1 [16:48:59]*** CUTSNS_PIN = 0 [16:48:59]*** Brake cut motor [16:48:59]Read from MH i2c: 01 [16:48:59]MH_I2C_Read... [16:48:59]*** Stop cut motor [16:48:59]*** Cut end [16:48:59]Read from MH i2c: 01 07 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [16:48:59]process_action close_receipt done [16:48:59]requested_data is exist [16:48:59]produce_requested_data [16:48:59]requested_item fm.sn is exist - process it [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 11 00 00 [16:48:59]Write to MH i2c: E2 08 00 63 21 80 11 00 00 00 00 00 00 FE [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 17 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 17 00 63 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [16:48: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:48:59]wFMCommunicate OK [16:48:59]requested_item fd.num is exist - process it [16:48:59]SAM_PROTO_GetFieldsCounters [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 13 00 00 [16:48:59]Write to MH i2c: E2 08 00 64 21 80 13 00 00 00 00 00 00 01 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 62 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 62 00 64 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 3D 14 01 00 0E 04 04 00 C4 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 ED [16:48: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 3D 14 01 00 0E 04 04 00 C4 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 [16:48:59]wFMCommunicate OK [16:48:59]SAM_PROTO_GetFieldsCounters done [16:48:59]requested_item shift.num is exist - process it [16:48:59]requested_item shift.opened is exist - process it [16:48:59]req_shift_opened [16:48:59]FM_GetShiftState [16:48:59]SAM_PROTO_GetShiftState [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 13 01 00 [16:48:59]Write to MH i2c: E2 08 00 65 21 80 13 01 00 00 00 00 00 03 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 0E 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 0E 00 65 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 90 [16:48:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:48:59]wFMCommunicate OK [16:48:59]SAM_PROTO_GetShiftState done [16:48:59]FM_GetShiftState done [16:48:59]req_shift_opened done [16:48:59]requested_item shift.open_date is exist - process it [16:48:59]req_shift_open_date [16:48:59]req_shift_open_date done [16:48:59]produce_requested_data done [16:48:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70717,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:48:59]process_action_free close_receipt [16:48:59]json_value_free [16:48:59]json_value_free done [16:48:59]process_json_proto returns [16:48:59]Send response to host [16:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70717,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:48:59]free response buf [16:48:59]execute_script done [16:48:59]execute_script returns [16:48:59]free content buf [16:48:59]Sock 7.Close socket [16:48:59]Sock 7.Thread stoped [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:17]accept exits with 9 [16:49:17]New connection [16:49:17]New thread 3067034980 created [16:49:17]Thread 3066891620 joined [16:49:17]Waiting for new connection... [16:49:17] Sock 9.Parse request [16:49:17]Sock 9.Check first char [16:49:17]Sock 9.First char is OK [16:49:17]request: POST /json_proto HTTP/1.0 [16:49:17]Method: POST [16:49:17]URL: /json_proto [16:49:17]Method is POST - this is cgi request [16:49:17]url: /json_proto [16:49:17]query_string will be loaded in cgi processing [16:49:17]execute_cgi json_proto POST (null) [16:49:17]execute_cgi path=json_proto method=POST [16:49:17]POST find Content-Length [16:49:17]Host: 172.17.50.3:8080 [16:49:17]Content-Length: 678 [16:49:17]Content-Type: application/json [16:49:17] [16:49:17]POST finish read [16:49:17]Found Content-Length = 678 [16:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886499", "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" ] } } [16:49:17]execute_script... [16:49: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)2886499", "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" ] } } [16:49:17]POST & json_proto [16:49:17]process_json_proto [16:49:17]json parsed OK: [16:49:17]protocol is kg_v1.0 [16:49:17]action value=close_receipt [16:49:17]process_action close_receipt [16:49:17]cmd_close_receipt [16:49:17]MH_GetDate [16:49:17]Write to MH i2c: F0 00 00 66 21 76 [16:49:17]Write i2c OK [16:49:17]MH_I2C_Read... [16:49:17]Read from MH i2c: F0 [16:49:17]MH_I2C_Read... [16:49:17]Read from MH i2c: F0 09 00 [16:49:17]MH_I2C_Read... [16:49:17]Read from MH i2c: F0 09 00 66 21 00 0F 29 19 67 6B 98 1E 66 BE [16:49:17]GetLastDocTimeStamp 1729702137 [16:49:17]current date 1729702159 [16:49:17]FM_GetShiftState [16:49:17]SAM_PROTO_GetShiftState [16:49:17]wFMCommunicate request_size=4 [16:49:17]MH_SAM_APDU [16:49:17]CAPDU: 80 13 01 00 [16:49:17]Write to MH i2c: E2 08 00 67 21 80 13 01 00 00 00 00 00 05 [16:49:17]Write i2c OK [16:49:17]MH_I2C_Read... [16:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:17]Read from MH i2c: E2 [16:49:17]MH_I2C_Read... [16:49:17]Read from MH i2c: E2 0E 00 [16:49:17]MH_I2C_Read... [16:49:17]Read from MH i2c: E2 0E 00 67 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 92 [16:49:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:49:17]wFMCommunicate OK [16:49:17]SAM_PROTO_GetShiftState done [16:49:17]FM_GetShiftState done [16:49:17]opened in 1729642435 [16:49:17]opened+sec_in_day 1729728835 [16:49:17]quantity*price = 40068 [16:49:17]sum+1 = 40069 [16:49:17]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 СНО: Общий режим Чек 234 23.10.2024 16:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70718 ФПД: 111664911824264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70718&fm=111664911824264&tin=02508201610067®Number=0000000000156251&sum=40000 [16:49:18]StoreToDocumentArchive [16:49:18]shift 196 fd 70718 [16:49:18]save to /storage/0196/doc_00070718 [16:49:18]save last doc name /storage/0196/doc_00070718 to /storage/kkm_last_doc_name [16:49:18]save OK [16:49:18]Clear old archive folders... [16:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:18]tlvbuf is B6EEE350 [16:49:18]SAM_PROTO_ClearQueue [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 09 00 00 [16:49:18]Write to MH i2c: E2 08 00 74 21 80 09 00 00 00 00 00 00 07 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 74 21 00 90 00 09 [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]SAM_PROTO_ClearQueue done [16:49:18]KKMCreateOFDPacket [16:49:18]OFDProtocolAddRootSTLVToBuf [16:49:18]FM_MakeSignedData [16:49:18]FM_MakeSignedData [16:49:18]SAM_PROTO_SignData [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 01 02 [16:49:18]Write to MH i2c: E2 08 00 75 21 80 0D 01 02 00 00 00 00 0F [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 75 21 00 90 00 0A [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=255 [16:49:18]MH_SAM_APDU [16:49: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 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 EA 00 00 00 F4 03 04 00 0F 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 [16:49:18]Write to MH i2c: E2 02 01 76 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 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 EA 00 00 00 F4 03 04 00 0F 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 00 00 65 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]OFD Sender: No OFD packet to send [16:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=10 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 02 02 05 8F 03 67 35 88 [16:49:18]Write to MH i2c: E2 0D 00 77 21 80 0D 02 02 05 00 8F 03 67 35 88 00 00 D2 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 03 02 [16:49:18]Write to MH i2c: E2 08 00 78 21 80 0D 03 02 00 00 00 00 14 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 0B 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 0B 00 78 21 00 49 E9 50 54 54 56 6E 02 90 00 05 [16:49:18]RAPDU: 49 E9 50 54 54 56 6E 02 90 00 [16:49:18]wFMCommunicate OK [16:49:18]SAM_PROTO_SignData done [16:49:18]FM_MakeSignedData done [16:49:18]CreateOFDProtocolMessage [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 11 00 00 [16:49:18]Write to MH i2c: E2 08 00 79 21 80 11 00 00 00 00 00 00 14 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 17 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 17 00 79 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [16:49: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:49:18]wFMCommunicate OK [16:49:18]CreateOFDProtocolMessage done [16:49:18]OFDSenderStorePacket 70718 [16:49:18]StoreOFDPacket docnum=70718 [16:49: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 3A 67 07 01 F8 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 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 EA 00 00 00 F4 03 04 00 0F 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 8F 03 67 35 88 49 E9 50 54 54 56 6E 02 [16:49:18]CheckFolder [16:49:18]dirname=/storage/ofd_packets [16:49:18]CheckFolder done [16:49:18]ProducePacketName [16:49:18]name=ofd_packets/00070718 [16:49:18]NVStorageSaveData ofd_packets/00070718 [16:49:18]File name is /storage/ofd_packets/00070718 [16:49:18]Write 301 bytes [16:49:18]NVStorageSaveData done [16:49:18]OFDSenderStorePacket done [16:49:18]KKMCreateOFDPacket done [16:49:18]NVStorageSaveData kkm_last_timestamp [16:49:18]File name is /storage/kkm_last_timestamp [16:49:18]Write 4 bytes [16:49:18]NVStorageSaveData done [16:49:18]ExternCall_PrintAddStr [16:49:18]wPrintStart [16:49:18]Write to MH i2c: 01 00 00 7A 21 9B [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 7A 21 00 00 00 00 00 FF 0F B0 [16:49:18]RasterBufferAndPrint [16:49:18]line Счет N : (1)2886499 [16:49:18]line ИНН: 02508201610067 [16:49:18]line Контрольно-Кассовый Чек [16:49:18]line ПРОДАЖА [16:49:18]line ТРК (МРК, ГНК) : 33 [16:49:18]line Товар: 2710124500 [16:49:18]line Аи-95-К-5 [16:49:18]line 5.400 * 74.20 [16:49:18]line = 400.68 [16:49:18]line НДС 12% НСП 1% [16:49:18]line > о реализуемом товаре [16:49:18]line ОКРУГЛЕНИЕ: -0.68 [16:49:18]line ИТОГО: 400.00 [16:49:18]line Внесено: 400.00 [16:49:18]line СДАЧА: 0.00 [16:49:18]line НСП 1% : 3.55 [16:49:18]line НДС 12% : 42.55 [16:49:18]line Наличными: 400.00 [16:49:18]line Безнал.: 0.00 [16:49:18]line Место: АЗС № 85 "Партнер Нефть" [16:49:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:49:18]line СНО: Общий режим [16:49:18]line Чек 234 23.10.2024 16:49 [16:49:18]line Смена: 196 ФФД: 1.0 [16:49:18]line ЗНМ: 0300000167 [16:49:18]line РНМ: 0000000000156251 [16:49:18]line Версия ККМ: v1.0 [16:49:18]line ФМ: 0000000000963346 [16:49:18]line ФД: 70718 [16:49:18]line ФПД: 111664911824264 [16:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70718&fm=111664911824264&tin=02508201610067®Number=0000000000156251&sum=40000 [16:49:19]OFD Sender: Processing packet 70718 [packets to send 18, broken 17] [16:49:19]ProducePacketName [16:49:19]name=ofd_packets/00070718 [16:49:19]OFD Sender: To server: pG, [16:49:19]CommunicateWithHost lk.salyk.kg:30040 [16:49:19]ConnectInit lk.salyk.kg [16:49:19]written 0, free lines is 4095 [16:49:19]Connected sock=10 [16:49: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 3A 67 07 01 F8 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 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 EA 00 00 00 F4 03 04 00 0F 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 8F 03 67 35 88 49 E9 50 54 54 56 6E 02 [16:49: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 2E 32 47 00 31 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 3E 14 01 00 F4 03 04 00 AC D2 18 67 B6 04 01 00 00 FE 3A BF FB 02 73 9A 77 [16:49:19]CommunicateWithHost err = 0 [16:49:19]CheckOFDResponse [16:49:19]1017 (14) - 77093643461234 [16:49:19]1041 (16) - 0000000000963346 [16:49:19]1040 (4) - 70718 [16:49:19]1012 (4) - 23.10.2024 10:40 [16:49:19]1206 (1) - 0 [16:49:19]OFD Sender: Remove packet 70718 [16:49:19]ProducePacketName [16:49:19]name=ofd_packets/00070718 [16:49:19]NVStorageDeleteData [16:49:19]Write to MH i2c: 01 00 00 A5 21 C6 [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 07 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 07 00 A5 21 00 00 00 00 00 F0 0C C9 [16:49:19]RasterBufferAndPrint [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]written 0, free lines is 3318 [16:49:19]MH_Cut [16:49:19]Write to MH i2c: D1 01 00 AC 21 01 9F [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 01 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 01 00 AC 21 00 9E [16:49:19]Write to MH i2c: 01 00 00 AD 21 CE [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:20]OFD Sender: No OFD packet to send [16:49:20]*** Cut start [16:49:20]*** Partial cut [16:49:20]*** CUTSNS_PIN = 1 [16:49:20]*** CUTSNS_PIN = 0 [16:49:20]*** Brake cut motor [16:49:20]Read from MH i2c: 01 [16:49:20]MH_I2C_Read... [16:49:20]*** Stop cut motor [16:49:20]*** Cut end [16:49:20]Read from MH i2c: 01 07 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FF 0F E3 [16:49:20]process_action close_receipt done [16:49:20]requested_data is exist [16:49:20]produce_requested_data [16:49:20]requested_item fm.sn is exist - process it [16:49:20]wFMCommunicate request_size=4 [16:49:20]MH_SAM_APDU [16:49:20]CAPDU: 80 11 00 00 [16:49:20]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [16:49:20]Write i2c OK [16:49:20]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 17 00 [16:49:21]MH_I2C_Read... [16:49:21]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 [16: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 [16:49:21]wFMCommunicate OK [16:49:21]requested_item fd.num is exist - process it [16:49:21]SAM_PROTO_GetFieldsCounters [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 13 00 00 [16:49:21]Write to MH i2c: E2 08 00 AF 21 80 13 00 00 00 00 00 00 4C [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 62 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 62 00 AF 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 3E 14 01 00 0E 04 04 00 C4 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 3C [16:49: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 3E 14 01 00 0E 04 04 00 C4 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 [16:49:21]wFMCommunicate OK [16:49:21]SAM_PROTO_GetFieldsCounters done [16:49:21]requested_item shift.num is exist - process it [16:49:21]requested_item shift.opened is exist - process it [16:49:21]req_shift_opened [16:49:21]FM_GetShiftState [16:49:21]SAM_PROTO_GetShiftState [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 13 01 00 [16:49:21]Write to MH i2c: E2 08 00 B0 21 80 13 01 00 00 00 00 00 4E [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 0E 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 0E 00 B0 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DB [16:49:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:49:21]wFMCommunicate OK [16:49:21]SAM_PROTO_GetShiftState done [16:49:21]FM_GetShiftState done [16:49:21]req_shift_opened done [16:49:21]requested_item shift.open_date is exist - process it [16:49:21]req_shift_open_date [16:49:21]req_shift_open_date done [16:49:21]produce_requested_data done [16:49:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70718,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:49:21]process_action_free close_receipt [16:49:21]json_value_free [16:49:21]json_value_free done [16:49:21]process_json_proto returns [16:49:21]Send response to host [16:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70718,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:49:21]free response buf [16:49:21]execute_script done [16:49:21]execute_script returns [16:49:21]free content buf [16:49:21]Sock 9.Close socket [16:49:21]Sock 9.Thread stoped [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:35]int [16:49:35]Write to MH i2c: 01 00 00 B1 21 D2 [16:49:35]*** FLAG_PRN_PAP1 set [16:49:35]Write i2c OK [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 B1 21 00 01 00 00 00 FF 0F E8 [16:49:35]state=0 [16:49:35]No paper [16:49:35]int [16:49:35]Write to MH i2c: 01 00 00 B2 21 D3 [16:49:35]*** FLAG_PRN_PAP2 set [16:49:35]Write i2c OK [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 B2 21 00 03 00 00 00 FF 0F EB [16:49:35]state=0 [16:49:35]No paper [16:49:35]Cover opened [16:49:35]int [16:49:35]Write to MH i2c: 01 00 00 B3 21 D4 [16:49:35]*** FLAG_PRN_PAP2 reset [16:49:35]Write i2c OK [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 [16:49:35]MH_I2C_Read... [16:49:35]Read from MH i2c: 01 07 00 B3 21 00 01 00 00 00 FF 0F EA [16:49:35]state=3 [16:49:35]No paper [16:49:35]Cover closed [16:49:36]int [16:49:36]Write to MH i2c: 01 00 00 B4 21 D5 [16:49:36]*** FLAG_PRN_PAP2 set [16:49:36]Write i2c OK [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: 01 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: 01 07 00 [16:49:36]MH_I2C_Read... [16:49:36]Read from MH i2c: 01 07 00 B4 21 00 03 00 00 00 FF 0F ED [16:49:36]state=0 [16:49:36]No paper [16:49:36]Cover opened [16:49:38]int [16:49:38]Write to MH i2c: 01 00 00 B5 21 D6 [16:49:38]*** FLAG_PRN_PAP2 reset [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 B5 21 00 01 00 00 00 FF 0F EC [16:49:38]state=3 [16:49:38]No paper [16:49:38]Cover closed [16:49:38]int [16:49:38]Write to MH i2c: 01 00 00 B6 21 D7 [16:49:38]*** FLAG_PRN_PAP2 set [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 B6 21 00 03 00 00 00 FF 0F EF [16:49:38]state=0 [16:49:38]No paper [16:49:38]Cover opened [16:49:38]int [16:49:38]Write to MH i2c: 01 00 00 B7 21 D8 [16:49:38]*** FLAG_PRN_PAP2 reset [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 B7 21 00 01 00 00 00 FF 0F EE [16:49:38]state=3 [16:49:38]No paper [16:49:38]Cover closed [16:49:38]int [16:49:38]Write to MH i2c: 01 00 00 B8 21 D9 [16:49:38]*** FLAG_PRN_PAP1 reset [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 FF 0F EE [16:49:38]state=0 [16:49:39]accept exits with 7 [16:49:39]New connection [16:49:39]New thread 3066891620 created [16:49:39]Thread 3067034980 joined [16:49:39]Waiting for new connection... [16:49:39] Sock 7.Parse request [16:49:39]Sock 7.Check first char [16:49:39]Sock 7.First char is OK [16:49:39]request: POST /json_proto HTTP/1.0 [16:49:39]Method: POST [16:49:39]URL: /json_proto [16:49:39]Method is POST - this is cgi request [16:49:39]url: /json_proto [16:49:39]query_string will be loaded in cgi processing [16:49:39]execute_cgi json_proto POST (null) [16:49:39]execute_cgi path=json_proto method=POST [16:49:39]POST find Content-Length [16:49:39]Host: 172.17.50.3:8080 [16:49:39]Content-Length: 767 [16:49:39]Content-Type: application/json [16:49:39] [16:49:39]POST finish read [16:49:39]Found Content-Length = 767 [16:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886500", "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" : 2.700, "sum" : 200.34, "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" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:39]execute_script... [16:49: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)2886500", "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" : 2.700, "sum" : 200.34, "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" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:39]POST & json_proto [16:49:39]process_json_proto [16:49:39]json parsed OK: [16:49:39]protocol is kg_v1.0 [16:49:39]action value=close_receipt [16:49:39]process_action close_receipt [16:49:39]cmd_close_receipt [16:49:39]MH_GetDate [16:49:39]Write to MH i2c: F0 00 00 B9 21 C9 [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: F0 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: F0 09 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: F0 09 00 B9 21 00 25 29 19 67 6B 98 1E 66 27 [16:49:39]GetLastDocTimeStamp 1729702159 [16:49:39]current date 1729702181 [16:49:39]FM_GetShiftState [16:49:39]SAM_PROTO_GetShiftState [16:49:39]wFMCommunicate request_size=4 [16:49:39]MH_SAM_APDU [16:49:39]CAPDU: 80 13 01 00 [16:49:39]Write to MH i2c: E2 08 00 BA 21 80 13 01 00 00 00 00 00 58 [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:39]Read from MH i2c: E2 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 0E 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 0E 00 BA 21 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E5 [16:49:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:49:39]wFMCommunicate OK [16:49:39]SAM_PROTO_GetShiftState done [16:49:39]FM_GetShiftState done [16:49:39]opened in 1729642435 [16:49:39]opened+sec_in_day 1729728835 [16:49:39]quantity*price = 20034 [16:49:39]sum+1 = 20035 [16:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 235 23.10.2024 16:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70719 ФПД: 223190982740165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70719&fm=223190982740165&tin=02508201610067®Number=0000000000156251&sum=20034 [16:49:40]StoreToDocumentArchive [16:49:40]shift 196 fd 70719 [16:49:40]save to /storage/0196/doc_00070719 [16:49:40]save last doc name /storage/0196/doc_00070719 to /storage/kkm_last_doc_name [16:49:40]save OK [16:49:40]Clear old archive folders... [16:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:40]tlvbuf is 001DF550 [16:49:40]SAM_PROTO_ClearQueue [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 09 00 00 [16:49:40]Write to MH i2c: E2 08 00 C7 21 80 09 00 00 00 00 00 00 5A [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]SAM_PROTO_ClearQueue done [16:49:40]KKMCreateOFDPacket [16:49:40]OFDProtocolAddRootSTLVToBuf [16:49:40]FM_MakeSignedData [16:49:40]FM_MakeSignedData [16:49:40]SAM_PROTO_SignData [16:49:40]wFMCommunicate request_size=4 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 01 02 [16:49:40]Write to MH i2c: E2 08 00 C8 21 80 0D 01 02 00 00 00 00 62 [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:40]Read from MH i2c: E2 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 [16:49:40]MH_I2C_Read... [16:49:40]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [16:49:40]RAPDU: 90 00 [16:49:40]wFMCommunicate OK [16:49:40]wFMCommunicate request_size=255 [16:49:40]MH_SAM_APDU [16:49:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 25 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CA [16:49:40]Write to MH i2c: E2 02 01 C9 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 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 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 25 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CA 00 00 6B [16:49:40]Write i2c OK [16:49:40]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:41]Read from MH i2c: E2 03 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [16:49:41]RAPDU: 90 00 [16:49:41]wFMCommunicate OK [16:49:41]wFMCommunicate request_size=10 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 0D 02 02 05 FD B3 3E 48 C5 [16:49:41]Write to MH i2c: E2 0D 00 CA 21 80 0D 02 02 05 00 FD B3 3E 48 C5 00 00 6A [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 03 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [16:49:41]RAPDU: 90 00 [16:49:41]wFMCommunicate OK [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 0D 03 02 [16:49:41]Write to MH i2c: E2 08 00 CB 21 80 0D 03 02 00 00 00 00 67 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 0B 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 0B 00 CB 21 00 36 26 38 79 FC DD 09 13 90 00 6A [16:49:41]RAPDU: 36 26 38 79 FC DD 09 13 90 00 [16:49:41]wFMCommunicate OK [16:49:41]SAM_PROTO_SignData done [16:49:41]FM_MakeSignedData done [16:49:41]CreateOFDProtocolMessage [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 11 00 00 [16:49:41]Write to MH i2c: E2 08 00 CC 21 80 11 00 00 00 00 00 00 67 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 CC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [16:49: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:49:41]wFMCommunicate OK [16:49:41]CreateOFDProtocolMessage done [16:49:41]OFDSenderStorePacket 70719 [16:49:41]StoreOFDPacket docnum=70719 [16:49: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 0F 01 00 00 31 7B 07 01 4E 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 25 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CA FD B3 3E 48 C5 36 26 38 79 FC DD 09 13 [16:49:41]CheckFolder [16:49:41]dirname=/storage/ofd_packets [16:49:41]CheckFolder done [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00070719 [16:49:41]NVStorageSaveData ofd_packets/00070719 [16:49:41]File name is /storage/ofd_packets/00070719 [16:49:41]Write 301 bytes [16:49:41]NVStorageSaveData done [16:49:41]OFDSenderStorePacket done [16:49:41]KKMCreateOFDPacket done [16:49:41]NVStorageSaveData kkm_last_timestamp [16:49:41]File name is /storage/kkm_last_timestamp [16:49:41]Write 4 bytes [16:49:41]NVStorageSaveData done [16:49:41]ExternCall_PrintAddStr [16:49:41]wPrintStart [16:49:41]Write to MH i2c: 01 00 00 CD 21 EE [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 07 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 07 00 CD 21 00 00 00 00 00 FF 0F 03 [16:49:41]RasterBufferAndPrint [16:49:41]line Счет N : (1)2886500 [16:49:41]line ИНН: 02508201610067 [16:49:41]line Контрольно-Кассовый Чек [16:49:41]line ПРОДАЖА [16:49:41]line ТРК (МРК, ГНК) : 33 [16:49:41]line Товар: 2710124500 [16:49:41]line Аи-95-К-5 [16:49:41]line 2.700 * 74.20 [16:49:41]line = 200.34 [16:49:41]line НДС 12% НСП 1% [16:49:41]line > о реализуемом товаре [16:49:41]line ИТОГО: 200.34 [16:49:41]line НСП 1% : 1.77 [16:49:41]line НДС 12% : 21.27 [16:49:41]line Наличными: 0.00 [16:49:41]line Безнал.: 200.34 [16:49:41]line Место: АЗС № 85 "Партнер Нефть" [16:49:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:49:41]line СНО: Общий режим [16:49:41]line Чек 235 23.10.2024 16:49 [16:49:41]line Смена: 196 ФФД: 1.0 [16:49:41]line ЗНМ: 0300000167 [16:49:41]line РНМ: 0000000000156251 [16:49:41]line Версия ККМ: v1.0 [16:49:41]line Платежная система: Mbank [16:49:41]line ФМ: 0000000000963346 [16:49:41]line ФД: 70719 [16:49:41]line ФПД: 223190982740165 [16:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70719&fm=223190982740165&tin=02508201610067®Number=0000000000156251&sum=20034 [16:49:41]OFD Sender: Processing packet 70719 [packets to send 18, broken 17] [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00070719 [16:49:41]OFD Sender: To server: pG, [16:49:41]CommunicateWithHost lk.salyk.kg:30040 [16:49:41]ConnectInit lk.salyk.kg [16:49:41]written 0, free lines is 4095 [16:49:41]Connected sock=10 [16:49: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 31 7B 07 01 4E 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 25 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CA FD B3 3E 48 C5 36 26 38 79 FC DD 09 13 [16:49: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 EF C5 47 00 08 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 3F 14 01 00 F4 03 04 00 C2 D2 18 67 B6 04 01 00 00 0E DF D5 BB D0 EE C0 0B [16:49:41]CommunicateWithHost err = 0 [16:49:41]CheckOFDResponse [16:49:41]1017 (14) - 77093643461234 [16:49:41]1041 (16) - 0000000000963346 [16:49:41]1040 (4) - 70719 [16:49:41]1012 (4) - 23.10.2024 10:41 [16:49:41]1206 (1) - 0 [16:49:41]OFD Sender: Remove packet 70719 [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00070719 [16:49:41]NVStorageDeleteData [16:49:42]Write to MH i2c: 01 00 00 F6 21 17 [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 07 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 10 0D 3B [16:49:42]RasterBufferAndPrint [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]line [16:49:42]written 0, free lines is 3350 [16:49:42]MH_Cut [16:49:42]Write to MH i2c: D1 01 00 FD 21 01 F0 [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 01 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: D1 01 00 FD 21 00 EF [16:49:42]Write to MH i2c: 01 00 00 FE 21 1F [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]OFD Sender: No OFD packet to send [16:49:42]*** Cut start [16:49:42]*** Partial cut [16:49:42]*** CUTSNS_PIN = 1 [16:49:42]*** CUTSNS_PIN = 0 [16:49:43]*** Brake cut motor [16:49:43]Read from MH i2c: 01 [16:49:43]MH_I2C_Read... [16:49:43]*** Stop cut motor [16:49:43]*** Cut end [16:49:43]Read from MH i2c: 01 07 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 07 00 FE 21 00 00 00 00 00 FF 0F 34 [16:49:43]process_action close_receipt done [16:49:43]requested_data is exist [16:49:43]produce_requested_data [16:49:43]requested_item fm.sn is exist - process it [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 11 00 00 [16:49:43]Write to MH i2c: E2 08 00 FF 21 80 11 00 00 00 00 00 00 9A [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 17 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 17 00 FF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [16:49: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:49:43]wFMCommunicate OK [16:49:43]requested_item fd.num is exist - process it [16:49:43]SAM_PROTO_GetFieldsCounters [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 13 00 00 [16:49:43]Write to MH i2c: E2 08 00 00 22 80 13 00 00 00 00 00 00 9E [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 62 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 62 00 00 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 3F 14 01 00 0E 04 04 00 C4 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 92 [16:49: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 3F 14 01 00 0E 04 04 00 C4 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 [16:49:43]wFMCommunicate OK [16:49:43]SAM_PROTO_GetFieldsCounters done [16:49:43]requested_item shift.num is exist - process it [16:49:43]requested_item shift.opened is exist - process it [16:49:43]req_shift_opened [16:49:43]FM_GetShiftState [16:49:43]SAM_PROTO_GetShiftState [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 13 01 00 [16:49:43]Write to MH i2c: E2 08 00 01 22 80 13 01 00 00 00 00 00 A0 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 01 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2D [16:49:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:49:43]wFMCommunicate OK [16:49:43]SAM_PROTO_GetShiftState done [16:49:43]FM_GetShiftState done [16:49:43]req_shift_opened done [16:49:43]requested_item shift.open_date is exist - process it [16:49:43]req_shift_open_date [16:49:43]req_shift_open_date done [16:49:43]produce_requested_data done [16:49:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70719,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:49:43]process_action_free close_receipt [16:49:43]json_value_free [16:49:43]json_value_free done [16:49:43]process_json_proto returns [16:49:43]Send response to host [16:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70719,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:49:43]free response buf [16:49:43]execute_script done [16:49:43]execute_script returns [16:49:43]free content buf [16:49:43]Sock 7.Close socket [16:49:43]Sock 7.Thread stoped [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:01]accept exits with 9 [16:50:01]New connection [16:50:01]New thread 3067034980 created [16:50:01]Thread 3066891620 joined [16:50:01]Waiting for new connection... [16:50:01] Sock 9.Parse request [16:50:01]Sock 9.Check first char [16:50:01]Sock 9.First char is OK [16:50:01]request: POST /json_proto HTTP/1.0 [16:50:01]Method: POST [16:50:01]URL: /json_proto [16:50:01]Method is POST - this is cgi request [16:50:01]url: /json_proto [16:50:01]query_string will be loaded in cgi processing [16:50:01]execute_cgi json_proto POST (null) [16:50:01]execute_cgi path=json_proto method=POST [16:50:01]POST find Content-Length [16:50:01]Host: 172.17.50.3:8080 [16:50:01]Content-Length: 689 [16:50:01]Content-Type: application/json [16:50:01] [16:50:01]POST finish read [16:50:01]Found Content-Length = 689 [16:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886498", "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" : 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" ] } } [16:50:01]execute_script... [16:50: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)2886498", "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" : 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" ] } } [16:50:01]POST & json_proto [16:50:01]process_json_proto [16:50:01]json parsed OK: [16:50:01]protocol is kg_v1.0 [16:50:01]action value=close_receipt [16:50:01]process_action close_receipt [16:50:01]cmd_close_receipt [16:50:01]MH_GetDate [16:50:01]Write to MH i2c: F0 00 00 02 22 13 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 02 22 00 3B 29 19 67 6B 98 1E 66 87 [16:50:01]GetLastDocTimeStamp 1729702181 [16:50:01]current date 1729702203 [16:50:01]FM_GetShiftState [16:50:01]SAM_PROTO_GetShiftState [16:50:01]wFMCommunicate request_size=4 [16:50:01]MH_SAM_APDU [16:50:01]CAPDU: 80 13 01 00 [16:50:01]Write to MH i2c: E2 08 00 03 22 80 13 01 00 00 00 00 00 A2 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:01]Read from MH i2c: E2 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 03 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2F [16:50:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:50:01]wFMCommunicate OK [16:50:01]SAM_PROTO_GetShiftState done [16:50:01]FM_GetShiftState done [16:50:01]opened in 1729642435 [16:50:01]opened+sec_in_day 1729728835 [16:50:01]quantity*price = 160035 [16:50:01]sum+1 = 160037 [16:50:01]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 СНО: Общий режим Чек 236 23.10.2024 16:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70720 ФПД: 26482929864767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70720&fm=26482929864767&tin=02508201610067®Number=0000000000156251&sum=160000 [16:50:02]StoreToDocumentArchive [16:50:02]shift 196 fd 70720 [16:50:02]save to /storage/0196/doc_00070720 [16:50:02]save last doc name /storage/0196/doc_00070720 to /storage/kkm_last_doc_name [16:50:02]save OK [16:50:02]Clear old archive folders... [16:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:50:02]tlvbuf is 001AA050 [16:50:02]SAM_PROTO_ClearQueue [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 09 00 00 [16:50:02]Write to MH i2c: E2 08 00 10 22 80 09 00 00 00 00 00 00 A4 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_ClearQueue done [16:50:02]KKMCreateOFDPacket [16:50:02]OFDProtocolAddRootSTLVToBuf [16:50:02]FM_MakeSignedData [16:50:02]FM_MakeSignedData [16:50:02]SAM_PROTO_SignData [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 01 02 [16:50:02]Write to MH i2c: E2 08 00 11 22 80 0D 01 02 00 00 00 00 AC [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]OFD Sender: No OFD packet to send [16:50:02]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=255 [16:50:02]MH_SAM_APDU [16:50:02]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 EC 00 00 00 F4 03 04 00 3B 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [16:50:02]Write to MH i2c: E2 02 01 12 22 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 EC 00 00 00 F4 03 04 00 3B 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 44 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=16 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 16 09 A0 90 3F [16:50:02]Write to MH i2c: E2 13 00 13 22 80 0D 02 02 0B 00 00 35 04 06 00 18 16 09 A0 90 3F 00 00 AA [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 03 02 [16:50:02]Write to MH i2c: E2 08 00 14 22 80 0D 03 02 00 00 00 00 B1 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0B 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0B 00 14 22 00 D2 04 28 EA B8 3E AF 3C 90 00 7B [16:50:02]RAPDU: D2 04 28 EA B8 3E AF 3C 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_SignData done [16:50:02]FM_MakeSignedData done [16:50:02]CreateOFDProtocolMessage [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 11 00 00 [16:50:02]Write to MH i2c: E2 08 00 15 22 80 11 00 00 00 00 00 00 B1 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 17 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 17 00 15 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [16:50: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:50:02]wFMCommunicate OK [16:50:02]CreateOFDProtocolMessage done [16:50:02]OFDSenderStorePacket 70720 [16:50:02]StoreOFDPacket docnum=70720 [16:50: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 15 01 00 00 E3 64 0D 01 E9 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 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 EC 00 00 00 F4 03 04 00 3B 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 18 16 09 A0 90 3F D2 04 28 EA B8 3E AF 3C [16:50:02]CheckFolder [16:50:02]dirname=/storage/ofd_packets [16:50:02]CheckFolder done [16:50:02]ProducePacketName [16:50:02]name=ofd_packets/00070720 [16:50:02]NVStorageSaveData ofd_packets/00070720 [16:50:02]File name is /storage/ofd_packets/00070720 [16:50:02]Write 307 bytes [16:50:02]NVStorageSaveData done [16:50:02]OFDSenderStorePacket done [16:50:02]KKMCreateOFDPacket done [16:50:02]NVStorageSaveData kkm_last_timestamp [16:50:02]File name is /storage/kkm_last_timestamp [16:50:02]Write 4 bytes [16:50:02]NVStorageSaveData done [16:50:02]ExternCall_PrintAddStr [16:50:02]wPrintStart [16:50:02]Write to MH i2c: 01 00 00 16 22 38 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 07 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 FF 0F 4D [16:50:02]RasterBufferAndPrint [16:50:02]line Счет N : (1)2886498 [16:50:02]line ИНН: 02508201610067 [16:50:02]line Контрольно-Кассовый Чек [16:50:02]line ПРОДАЖА [16:50:02]line ТРК (МРК, ГНК) : 21 [16:50:02]line Товар: 2710194240 [16:50:02]line D-ENERGY Дт-К-2 [16:50:02]line 20.730 * 77.20 [16:50:02]line = 1600.36 [16:50:02]line НДС 12% НСП 1% [16:50:02]line > о реализуемом товаре [16:50:02]line ОКРУГЛЕНИЕ: -0.36 [16:50:02]line ИТОГО: 1600.00 [16:50:02]line Внесено: 1600.00 [16:50:02]line СДАЧА: 0.00 [16:50:02]line НСП 1% : 14.16 [16:50:02]line НДС 12% : 169.95 [16:50:02]line Наличными: 1600.00 [16:50:02]line Безнал.: 0.00 [16:50:02]line Место: АЗС № 85 "Партнер Нефть" [16:50:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:50:02]line СНО: Общий режим [16:50:02]line Чек 236 23.10.2024 16:50 [16:50:02]line Смена: 196 ФФД: 1.0 [16:50:02]line ЗНМ: 0300000167 [16:50:02]line РНМ: 0000000000156251 [16:50:02]line Версия ККМ: v1.0 [16:50:02]line ФМ: 0000000000963346 [16:50:02]line ФД: 70720 [16:50:02]line ФПД: 26482929864767 [16:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70720&fm=26482929864767&tin=02508201610067®Number=0000000000156251&sum=160000 [16:50:03]OFD Sender: Processing packet 70720 [packets to send 18, broken 17] [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00070720 [16:50:03]OFD Sender: To server: pG, [16:50:03]CommunicateWithHost lk.salyk.kg:30040 [16:50:03]ConnectInit lk.salyk.kg [16:50:03]written 0, free lines is 4095 [16:50:03]Connected sock=10 [16:50: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 15 01 00 00 E3 64 0D 01 E9 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 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 EC 00 00 00 F4 03 04 00 3B 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 18 16 09 A0 90 3F D2 04 28 EA B8 3E AF 3C [16:50: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 34 EE 47 00 90 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 40 14 01 00 F4 03 04 00 D8 D2 18 67 B6 04 01 00 00 A2 E1 23 2C 37 E0 C4 0F [16:50:03]CommunicateWithHost err = 0 [16:50:03]CheckOFDResponse [16:50:03]1017 (14) - 77093643461234 [16:50:03]1041 (16) - 0000000000963346 [16:50:03]1040 (4) - 70720 [16:50:03]1012 (4) - 23.10.2024 10:41 [16:50:03]1206 (1) - 0 [16:50:03]OFD Sender: Remove packet 70720 [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00070720 [16:50:03]NVStorageDeleteData [16:50:03]Write to MH i2c: 01 00 00 41 22 63 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 F9 0C 6F [16:50:03]RasterBufferAndPrint [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]written 0, free lines is 3328 [16:50:03]MH_Cut [16:50:03]Write to MH i2c: D1 01 00 48 22 01 3C [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 48 22 00 3B [16:50:03]Write to MH i2c: 01 00 00 49 22 6B [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:04]OFD Sender: No OFD packet to send [16:50:04]*** Cut start [16:50:04]*** Partial cut [16:50:04]*** CUTSNS_PIN = 1 [16:50:04]*** CUTSNS_PIN = 0 [16:50:04]*** Brake cut motor [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]*** Stop cut motor [16:50:05]*** Cut end [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 49 22 00 00 00 00 00 FF 0F 80 [16:50:05]process_action close_receipt done [16:50:05]requested_data is exist [16:50:05]produce_requested_data [16:50:05]requested_item fm.sn is exist - process it [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 11 00 00 [16:50:05]Write to MH i2c: E2 08 00 4A 22 80 11 00 00 00 00 00 00 E6 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 4A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [16:50: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:50:05]wFMCommunicate OK [16:50:05]requested_item fd.num is exist - process it [16:50:05]SAM_PROTO_GetFieldsCounters [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 00 00 [16:50:05]Write to MH i2c: E2 08 00 4B 22 80 13 00 00 00 00 00 00 E9 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 4B 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 40 14 01 00 0E 04 04 00 C4 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 E1 [16:50: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 40 14 01 00 0E 04 04 00 C4 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 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetFieldsCounters done [16:50:05]requested_item shift.num is exist - process it [16:50:05]requested_item shift.opened is exist - process it [16:50:05]req_shift_opened [16:50:05]FM_GetShiftState [16:50:05]SAM_PROTO_GetShiftState [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 01 00 [16:50:05]Write to MH i2c: E2 08 00 4C 22 80 13 01 00 00 00 00 00 EB [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 4C 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 78 [16:50:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetShiftState done [16:50:05]FM_GetShiftState done [16:50:05]req_shift_opened done [16:50:05]requested_item shift.open_date is exist - process it [16:50:05]req_shift_open_date [16:50:05]req_shift_open_date done [16:50:05]produce_requested_data done [16:50:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70720,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:50:05]process_action_free close_receipt [16:50:05]json_value_free [16:50:05]json_value_free done [16:50:05]process_json_proto returns [16:50:05]Send response to host [16:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70720,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:50:05]free response buf [16:50:05]execute_script done [16:50:05]execute_script returns [16:50:05]free content buf [16:50:05]Sock 9.Close socket [16:50:05]Sock 9.Thread stoped [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:01]accept exits with 7 [16:51:01]New connection [16:51:01]New thread 3066891620 created [16:51:01]Thread 3067034980 joined [16:51:01]Waiting for new connection... [16:51:01] Sock 7.Parse request [16:51:01]Sock 7.Check first char [16:51:01]Sock 7.First char is OK [16:51:01]request: POST /json_proto HTTP/1.0 [16:51:01]Method: POST [16:51:01]URL: /json_proto [16:51:01]Method is POST - this is cgi request [16:51:01]url: /json_proto [16:51:01]query_string will be loaded in cgi processing [16:51:01]execute_cgi json_proto POST (null) [16:51:01]execute_cgi path=json_proto method=POST [16:51:01]POST find Content-Length [16:51:01]Host: 172.17.50.3:8080 [16:51:01]Content-Length: 683 [16:51:01]Content-Type: application/json [16:51:01] [16:51:01]POST finish read [16:51:01]Found Content-Length = 683 [16:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886501", "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" ] } } [16:51:01]execute_script... [16:51: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)2886501", "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" ] } } [16:51:01]POST & json_proto [16:51:01]process_json_proto [16:51:01]json parsed OK: [16:51:01]protocol is kg_v1.0 [16:51:01]action value=close_receipt [16:51:01]process_action close_receipt [16:51:01]cmd_close_receipt [16:51:01]MH_GetDate [16:51:01]Write to MH i2c: F0 00 00 4D 22 5E [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: F0 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: F0 09 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: F0 09 00 4D 22 00 77 29 19 67 6B 98 1E 66 0E [16:51:01]GetLastDocTimeStamp 1729702203 [16:51:01]current date 1729702263 [16:51:01]FM_GetShiftState [16:51:01]SAM_PROTO_GetShiftState [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 13 01 00 [16:51:01]Write to MH i2c: E2 08 00 4E 22 80 13 01 00 00 00 00 00 ED [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 4E 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [16:51:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_GetShiftState done [16:51:01]FM_GetShiftState done [16:51:01]opened in 1729642435 [16:51:01]opened+sec_in_day 1729728835 [16:51:01]quantity*price = 100021 [16:51:01]sum+1 = 100023 [16:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 237 23.10.2024 16:51 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70721 ФПД: 245117099775370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70721&fm=245117099775370&tin=02508201610067®Number=0000000000156251&sum=100000 [16:51:02]StoreToDocumentArchive [16:51:02]shift 196 fd 70721 [16:51:02]save to /storage/0196/doc_00070721 [16:51:02]save last doc name /storage/0196/doc_00070721 to /storage/kkm_last_doc_name [16:51:02]save OK [16:51:02]Clear old archive folders... [16:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:02]tlvbuf is 0017F280 [16:51:02]SAM_PROTO_ClearQueue [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 09 00 00 [16:51:02]Write to MH i2c: E2 08 00 5B 22 80 09 00 00 00 00 00 00 EF [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]SAM_PROTO_ClearQueue done [16:51:02]KKMCreateOFDPacket [16:51:02]OFDProtocolAddRootSTLVToBuf [16:51:02]FM_MakeSignedData [16:51:02]FM_MakeSignedData [16:51:02]SAM_PROTO_SignData [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 0D 01 02 [16:51:02]Write to MH i2c: E2 08 00 5C 22 80 0D 01 02 00 00 00 00 F7 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 5C 22 00 90 00 F2 [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]wFMCommunicate request_size=255 [16:51:02]MH_SAM_APDU [16:51: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 ED 00 00 00 F4 03 04 00 77 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DE [16:51:02]Write to MH i2c: E2 02 01 5D 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 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 ED 00 00 00 F4 03 04 00 77 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DE 00 00 A2 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]wFMCommunicate request_size=10 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 0D 02 02 05 EE C5 A9 15 8A [16:51:02]Write to MH i2c: E2 0D 00 5E 22 80 0D 02 02 05 00 EE C5 A9 15 8A 00 00 FF [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 0D 03 02 [16:51:02]Write to MH i2c: E2 08 00 5F 22 80 0D 03 02 00 00 00 00 FC [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0B 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0B 00 5F 22 00 E5 F9 14 62 92 E0 24 9A 90 00 81 [16:51:02]RAPDU: E5 F9 14 62 92 E0 24 9A 90 00 [16:51:02]wFMCommunicate OK [16:51:02]SAM_PROTO_SignData done [16:51:02]FM_MakeSignedData done [16:51:02]CreateOFDProtocolMessage [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 11 00 00 [16:51:02]Write to MH i2c: E2 08 00 60 22 80 11 00 00 00 00 00 00 FC [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 60 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [16:51:03]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:03]wFMCommunicate OK [16:51:03]CreateOFDProtocolMessage done [16:51:03]OFDSenderStorePacket 70721 [16:51:03]StoreOFDPacket docnum=70721 [16:51: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 E0 56 07 01 6C 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 77 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DE EE C5 A9 15 8A E5 F9 14 62 92 E0 24 9A [16:51:03]CheckFolder [16:51:03]dirname=/storage/ofd_packets [16:51:03]CheckFolder done [16:51:03]ProducePacketName [16:51:03]name=ofd_packets/00070721 [16:51:03]NVStorageSaveData ofd_packets/00070721 [16:51:03]File name is /storage/ofd_packets/00070721 [16:51:03]Write 301 bytes [16:51:03]NVStorageSaveData done [16:51:03]OFDSenderStorePacket done [16:51:03]KKMCreateOFDPacket done [16:51:03]NVStorageSaveData kkm_last_timestamp [16:51:03]File name is /storage/kkm_last_timestamp [16:51:03]Write 4 bytes [16:51:03]NVStorageSaveData done [16:51:03]OFD Sender: Processing packet 70721 [packets to send 18, broken 17] [16:51:03]ProducePacketName [16:51:03]name=ofd_packets/00070721 [16:51:03]OFD Sender: To server: pG, [16:51:03]CommunicateWithHost lk.salyk.kg:30040 [16:51:03]ConnectInit lk.salyk.kg [16:51:03]ExternCall_PrintAddStr [16:51:03]wPrintStart [16:51:03]Write to MH i2c: 01 00 00 61 22 83 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 61 22 00 00 00 00 00 FF 0F 98 [16:51:03]RasterBufferAndPrint [16:51:03]line Счет N : (1)2886501 [16:51:03]line ИНН: 02508201610067 [16:51:03]line Контрольно-Кассовый Чек [16:51:03]line ПРОДАЖА [16:51:03]line ТРК (МРК, ГНК) : 13 [16:51:03]line Товар: 2710124500 [16:51:03]line Аи-95-К-5 [16:51:03]line 13.480 * 74.20 [16:51:03]line = 1000.22 [16:51:03]line НДС 12% НСП 1% [16:51:03]line > о реализуемом товаре [16:51:03]line ОКРУГЛЕНИЕ: -0.22 [16:51:03]line ИТОГО: 1000.00 [16:51:03]line Внесено: 1000.00 [16:51:03]line СДАЧА: 0.00 [16:51:03]line НСП 1% : 8.85 [16:51:03]line НДС 12% : 106.22 [16:51:03]line Наличными: 1000.00 [16:51:03]line Безнал.: 0.00 [16:51:03]line Место: АЗС № 85 "Партнер Нефть" [16:51:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:51:03]line СНО: Общий режим [16:51:03]line Чек 237 23.10.2024 16:51 [16:51:03]line Смена: 196 ФФД: 1.0 [16:51:03]line ЗНМ: 0300000167 [16:51:03]line РНМ: 0000000000156251 [16:51:03]line Версия ККМ: v1.0 [16:51:03]line ФМ: 0000000000963346 [16:51:03]line ФД: 70721 [16:51:03]line ФПД: 245117099775370 [16:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70721&fm=245117099775370&tin=02508201610067®Number=0000000000156251&sum=100000 [16:51:03]Connected sock=11 [16:51: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 E0 56 07 01 6C 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 77 29 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DE EE C5 A9 15 8A E5 F9 14 62 92 E0 24 9A [16:51:03]written 0, free lines is 4095 [16:51: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 61 2E 47 00 2F 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 41 14 01 00 F4 03 04 00 14 D3 18 67 B6 04 01 00 00 0A 5B 45 C4 D7 40 42 6B [16:51:03]CommunicateWithHost err = 0 [16:51:03]CheckOFDResponse [16:51:03]1017 (14) - 77093643461234 [16:51:03]1041 (16) - 0000000000963346 [16:51:03]1040 (4) - 70721 [16:51:03]1012 (4) - 23.10.2024 10:42 [16:51:03]1206 (1) - 0 [16:51:03]OFD Sender: Remove packet 70721 [16:51:03]ProducePacketName [16:51:03]name=ofd_packets/00070721 [16:51:03]NVStorageDeleteData [16:51:03]Write to MH i2c: 01 00 00 8C 22 AE [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 8C 22 00 00 00 00 00 E4 0C A5 [16:51:03]RasterBufferAndPrint [16:51:03]line [16:51:03]line [16:51:03]line [16:51:03]line [16:51:03]line [16:51:03]written 0, free lines is 3306 [16:51:03]MH_Cut [16:51:03]Write to MH i2c: D1 01 00 93 22 01 87 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: D1 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: D1 01 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: D1 01 00 93 22 00 86 [16:51:03]Write to MH i2c: 01 00 00 94 22 B6 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:04]OFD Sender: No OFD packet to send [16:51:04]*** Cut start [16:51:04]*** Partial cut [16:51:04]*** CUTSNS_PIN = 1 [16:51:04]*** CUTSNS_PIN = 0 [16:51:04]*** Brake cut motor [16:51:05]Read from MH i2c: 01 [16:51:05]MH_I2C_Read... [16:51:05]*** Stop cut motor [16:51:05]*** Cut end [16:51:05]Read from MH i2c: 01 07 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 FF 0F CB [16:51:05]process_action close_receipt done [16:51:05]requested_data is exist [16:51:05]produce_requested_data [16:51:05]requested_item fm.sn is exist - process it [16:51:05]wFMCommunicate request_size=4 [16:51:05]MH_SAM_APDU [16:51:05]CAPDU: 80 11 00 00 [16:51:05]Write to MH i2c: E2 08 00 95 22 80 11 00 00 00 00 00 00 31 [16:51:05]Write i2c OK [16:51:05]MH_I2C_Read... [16:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:05]Read from MH i2c: E2 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 17 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 17 00 95 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [16:51: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:51:05]wFMCommunicate OK [16:51:05]requested_item fd.num is exist - process it [16:51:05]SAM_PROTO_GetFieldsCounters [16:51:05]wFMCommunicate request_size=4 [16:51:05]MH_SAM_APDU [16:51:05]CAPDU: 80 13 00 00 [16:51:05]Write to MH i2c: E2 08 00 96 22 80 13 00 00 00 00 00 00 34 [16:51:05]Write i2c OK [16:51:05]MH_I2C_Read... [16:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:05]Read from MH i2c: E2 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 62 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 62 00 96 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 41 14 01 00 0E 04 04 00 C4 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 30 [16:51: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 41 14 01 00 0E 04 04 00 C4 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 [16:51:05]wFMCommunicate OK [16:51:05]SAM_PROTO_GetFieldsCounters done [16:51:05]requested_item shift.num is exist - process it [16:51:05]requested_item shift.opened is exist - process it [16:51:05]req_shift_opened [16:51:05]FM_GetShiftState [16:51:05]SAM_PROTO_GetShiftState [16:51:05]wFMCommunicate request_size=4 [16:51:05]MH_SAM_APDU [16:51:05]CAPDU: 80 13 01 00 [16:51:05]Write to MH i2c: E2 08 00 97 22 80 13 01 00 00 00 00 00 36 [16:51:05]Write i2c OK [16:51:05]MH_I2C_Read... [16:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:05]Read from MH i2c: E2 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 0E 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 0E 00 97 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C3 [16:51:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:51:05]wFMCommunicate OK [16:51:05]SAM_PROTO_GetShiftState done [16:51:05]FM_GetShiftState done [16:51:05]req_shift_opened done [16:51:05]requested_item shift.open_date is exist - process it [16:51:05]req_shift_open_date [16:51:05]req_shift_open_date done [16:51:05]produce_requested_data done [16:51:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70721,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:51:05]process_action_free close_receipt [16:51:05]json_value_free [16:51:05]json_value_free done [16:51:05]process_json_proto returns [16:51:05]Send response to host [16:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70721,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:51:05]free response buf [16:51:05]execute_script done [16:51:05]execute_script returns [16:51:05]free content buf [16:51:05]Sock 7.Close socket [16:51:05]Sock 7.Thread stoped [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]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:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]accept exits with 9 [16:57:19]New connection [16:57:19]New thread 3067034980 created [16:57:19]Thread 3066891620 joined [16:57:19]Waiting for new connection... [16:57:19] Sock 9.Parse request [16:57:19]Sock 9.Check first char [16:57:19]Sock 9.First char is OK [16:57:19]request: POST /json_proto HTTP/1.0 [16:57:19]Method: POST [16:57:19]URL: /json_proto [16:57:19]Method is POST - this is cgi request [16:57:19]url: /json_proto [16:57:19]query_string will be loaded in cgi processing [16:57:19]execute_cgi json_proto POST (null) [16:57:19]execute_cgi path=json_proto method=POST [16:57:19]POST find Content-Length [16:57:19]Host: 172.17.50.3:8080 [16:57:19]Content-Length: 793 [16:57:19]Content-Type: application/json [16:57:19] [16:57:19]POST finish read [16:57:19]Found Content-Length = 793 [16:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886503", "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.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" ] } } [16:57:19]execute_script... [16:57: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)2886503", "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.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" ] } } [16:57:19]POST & json_proto [16:57:19]process_json_proto [16:57:19]json parsed OK: [16:57:19]protocol is kg_v1.0 [16:57:19]action value=close_receipt [16:57:19]process_action close_receipt [16:57:19]cmd_close_receipt [16:57:19]MH_GetDate [16:57:19]Write to MH i2c: F0 00 00 98 22 A9 [16:57:19]Write i2c OK [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: F0 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: F0 09 00 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: F0 09 00 98 22 00 F1 2A 19 67 6B 98 1E 66 D4 [16:57:19]GetLastDocTimeStamp 1729702263 [16:57:19]current date 1729702641 [16:57:19]FM_GetShiftState [16:57:19]SAM_PROTO_GetShiftState [16:57:19]wFMCommunicate request_size=4 [16:57:19]MH_SAM_APDU [16:57:19]CAPDU: 80 13 01 00 [16:57:19]Write to MH i2c: E2 08 00 99 22 80 13 01 00 00 00 00 00 38 [16:57:19]Write i2c OK [16:57:19]MH_I2C_Read... [16:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:19]Read from MH i2c: E2 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: E2 0E 00 [16:57:19]MH_I2C_Read... [16:57:19]Read from MH i2c: E2 0E 00 99 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [16:57:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:57:19]wFMCommunicate OK [16:57:19]SAM_PROTO_GetShiftState done [16:57:19]FM_GetShiftState done [16:57:19]opened in 1729642435 [16:57:19]opened+sec_in_day 1729728835 [16:57:19]quantity*price = 0 [16:57:19]sum+1 = 1 [16:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 238 23.10.2024 16:57 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 74592 ФМ: 0000000000963346 ФД: 70722 ФПД: 18826890531100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70722&fm=18826890531100&tin=02508201610067®Number=0000000000156251&sum=0 [16:57:20]StoreToDocumentArchive [16:57:20]shift 196 fd 70722 [16:57:20]save to /storage/0196/doc_00070722 [16:57:20]save last doc name /storage/0196/doc_00070722 to /storage/kkm_last_doc_name [16:57:20]save OK [16:57:20]Clear old archive folders... [16:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:20]tlvbuf is 001A9CE0 [16:57:20]SAM_PROTO_ClearQueue [16:57:20]wFMCommunicate request_size=4 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 09 00 00 [16:57:20]Write to MH i2c: E2 08 00 A6 22 80 09 00 00 00 00 00 00 3A [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [16:57:20]RAPDU: 90 00 [16:57:20]wFMCommunicate OK [16:57:20]SAM_PROTO_ClearQueue done [16:57:20]KKMCreateOFDPacket [16:57:20]OFDProtocolAddRootSTLVToBuf [16:57:20]FM_MakeSignedData [16:57:20]FM_MakeSignedData [16:57:20]SAM_PROTO_SignData [16:57:20]wFMCommunicate request_size=4 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 0D 01 02 [16:57:20]Write to MH i2c: E2 08 00 A7 22 80 0D 01 02 00 00 00 00 42 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [16:57:20]RAPDU: 90 00 [16:57:20]wFMCommunicate OK [16:57:20]wFMCommunicate request_size=255 [16:57:20]MH_SAM_APDU [16:57: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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 F1 2A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 11 [16:57:20]Write to MH i2c: E2 02 01 A8 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 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 EE 00 00 00 F4 03 04 00 F1 2A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 11 00 00 9B [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [16:57:20]RAPDU: 90 00 [16:57:20]wFMCommunicate OK [16:57:20]wFMCommunicate request_size=10 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 0D 02 02 05 1F 7A 1F 51 1C [16:57:20]Write to MH i2c: E2 0D 00 A9 22 80 0D 02 02 05 00 1F 7A 1F 51 1C 00 00 74 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [16:57:20]RAPDU: 90 00 [16:57:20]wFMCommunicate OK [16:57:20]wFMCommunicate request_size=4 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 0D 03 02 [16:57:20]Write to MH i2c: E2 08 00 AA 22 80 0D 03 02 00 00 00 00 47 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 0B 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 0B 00 AA 22 00 AA AD 12 DA 94 D6 05 E5 90 00 DF [16:57:20]RAPDU: AA AD 12 DA 94 D6 05 E5 90 00 [16:57:20]wFMCommunicate OK [16:57:20]SAM_PROTO_SignData done [16:57:20]FM_MakeSignedData done [16:57:20]CreateOFDProtocolMessage [16:57:20]wFMCommunicate request_size=4 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 11 00 00 [16:57:20]Write to MH i2c: E2 08 00 AB 22 80 11 00 00 00 00 00 00 47 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 17 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 17 00 AB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [16:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:20]wFMCommunicate OK [16:57:20]CreateOFDProtocolMessage done [16:57:20]OFDSenderStorePacket 70722 [16:57:20]StoreOFDPacket docnum=70722 [16:57: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 EF 07 01 63 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 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 EE 00 00 00 F4 03 04 00 F1 2A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 11 1F 7A 1F 51 1C AA AD 12 DA 94 D6 05 E5 [16:57:20]CheckFolder [16:57:20]dirname=/storage/ofd_packets [16:57:20]CheckFolder done [16:57:20]ProducePacketName [16:57:20]name=ofd_packets/00070722 [16:57:20]NVStorageSaveData ofd_packets/00070722 [16:57:20]File name is /storage/ofd_packets/00070722 [16:57:20]Write 301 bytes [16:57:20]NVStorageSaveData done [16:57:20]OFDSenderStorePacket done [16:57:20]KKMCreateOFDPacket done [16:57:20]NVStorageSaveData kkm_last_timestamp [16:57:20]File name is /storage/kkm_last_timestamp [16:57:20]Write 4 bytes [16:57:20]NVStorageSaveData done [16:57:20]ExternCall_PrintAddStr [16:57:20]wPrintStart [16:57:20]Write to MH i2c: 01 00 00 AC 22 CE [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 07 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: 01 07 00 AC 22 00 00 00 00 00 FF 0F E3 [16:57:20]RasterBufferAndPrint [16:57:20]line Счет N : (1)2886503 [16:57:20]line ИНН: 02508201610067 [16:57:20]line Контрольно-Кассовый Чек [16:57:20]line ПРОДАЖА [16:57:20]line ТРК (МРК, ГНК) : 42 [16:57:20]line Товар: 2710124130 [16:57:20]line Аи-92-К-5 [16:57:20]line 14.950 * 0.00 [16:57:20]line = 0.00 [16:57:20]line НДС 12% НСП 1% [16:57:20]line > о реализуемом товаре [16:57:20]line ИТОГО: 0.00 [16:57:20]line НСП 1% : 0.00 [16:57:20]line НДС 12% : 0.00 [16:57:20]line Наличными: 0.00 [16:57:20]line Безнал.: 0.00 [16:57:20]line Место: АЗС № 85 "Партнер Нефть" [16:57:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:57:20]line СНО: Общий режим [16:57:20]line Чек 238 23.10.2024 16:57 [16:57:20]line Смена: 196 ФФД: 1.0 [16:57:20]line ЗНМ: 0300000167 [16:57:20]line РНМ: 0000000000156251 [16:57:20]line Версия ККМ: v1.0 [16:57:20]line Талоны: Топливная Карта [16:57:20]line 74592 [16:57:20]line ФМ: 0000000000963346 [16:57:20]line ФД: 70722 [16:57:20]line ФПД: 18826890531100 [16:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70722&fm=18826890531100&tin=02508201610067®Number=0000000000156251&sum=0 [16:57:21]OFD Sender: Processing packet 70722 [packets to send 18, broken 17] [16:57:21]ProducePacketName [16:57:21]name=ofd_packets/00070722 [16:57:21]OFD Sender: To server: pG, [16:57:21]CommunicateWithHost lk.salyk.kg:30040 [16:57:21]ConnectInit lk.salyk.kg [16:57:21]written 0, free lines is 4095 [16:57:21]Connected sock=10 [16:57: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 03 EF 07 01 63 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 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 EE 00 00 00 F4 03 04 00 F1 2A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 11 1F 7A 1F 51 1C AA AD 12 DA 94 D6 05 E5 [16:57: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 8B 16 47 00 3F 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 42 14 01 00 F4 03 04 00 8E D4 18 67 B6 04 01 00 00 2F EF 97 44 AB 77 6C 91 [16:57:21]CommunicateWithHost err = 0 [16:57:21]CheckOFDResponse [16:57:21]1017 (14) - 77093643461234 [16:57:21]1041 (16) - 0000000000963346 [16:57:21]1040 (4) - 70722 [16:57:21]1012 (4) - 23.10.2024 10:48 [16:57:21]1206 (1) - 0 [16:57:21]OFD Sender: Remove packet 70722 [16:57:21]ProducePacketName [16:57:21]name=ofd_packets/00070722 [16:57:21]NVStorageDeleteData [16:57:21]Write to MH i2c: 01 00 00 D6 22 F8 [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 FB 0C 06 [16:57:21]RasterBufferAndPrint [16:57:21]line [16:57:21]line [16:57:21]line [16:57:21]line [16:57:21]line [16:57:21]written 0, free lines is 3329 [16:57:21]MH_Cut [16:57:21]Write to MH i2c: D1 01 00 DD 22 01 D1 [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: D1 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: D1 01 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: D1 01 00 DD 22 00 D0 [16:57:21]Write to MH i2c: 01 00 00 DE 22 00 [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]OFD Sender: No OFD packet to send [16:57:22]*** Cut start [16:57:22]*** Partial cut [16:57:22]*** CUTSNS_PIN = 1 [16:57:22]*** CUTSNS_PIN = 0 [16:57:22]*** Brake cut motor [16:57:22]Read from MH i2c: 01 [16:57:22]MH_I2C_Read... [16:57:22]*** Stop cut motor [16:57:22]*** Cut end [16:57:22]Read from MH i2c: 01 07 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 07 00 DE 22 00 00 00 00 00 FF 0F 15 [16:57:22]process_action close_receipt done [16:57:22]requested_data is exist [16:57:22]produce_requested_data [16:57:22]requested_item fm.sn is exist - process it [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 11 00 00 [16:57:22]Write to MH i2c: E2 08 00 DF 22 80 11 00 00 00 00 00 00 7B [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 17 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 17 00 DF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [16:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:57:22]wFMCommunicate OK [16:57:22]requested_item fd.num is exist - process it [16:57:22]SAM_PROTO_GetFieldsCounters [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 13 00 00 [16:57:22]Write to MH i2c: E2 08 00 E0 22 80 13 00 00 00 00 00 00 7E [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 62 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 62 00 E0 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 42 14 01 00 0E 04 04 00 C4 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 7E [16:57: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 42 14 01 00 0E 04 04 00 C4 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 [16:57:23]wFMCommunicate OK [16:57:23]SAM_PROTO_GetFieldsCounters done [16:57:23]requested_item shift.num is exist - process it [16:57:23]requested_item shift.opened is exist - process it [16:57:23]req_shift_opened [16:57:23]FM_GetShiftState [16:57:23]SAM_PROTO_GetShiftState [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 13 01 00 [16:57:23]Write to MH i2c: E2 08 00 E1 22 80 13 01 00 00 00 00 00 80 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 0E 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 0E 00 E1 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0D [16:57:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [16:57:23]wFMCommunicate OK [16:57:23]SAM_PROTO_GetShiftState done [16:57:23]FM_GetShiftState done [16:57:23]req_shift_opened done [16:57:23]requested_item shift.open_date is exist - process it [16:57:23]req_shift_open_date [16:57:23]req_shift_open_date done [16:57:23]produce_requested_data done [16:57:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70722,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [16:57:23]process_action_free close_receipt [16:57:23]json_value_free [16:57:23]json_value_free done [16:57:23]process_json_proto returns [16:57:23]Send response to host [16:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70722,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [16:57:23]free response buf [16:57:23]execute_script done [16:57:23]execute_script returns [16:57:23]free content buf [16:57:23]Sock 9.Close socket [16:57:23]Sock 9.Thread stoped [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]accept exits with 7 [17:04:42]New connection [17:04:42]New thread 3066891620 created [17:04:42]Thread 3067034980 joined [17:04:42]Waiting for new connection... [17:04:42] Sock 7.Parse request [17:04:42]Sock 7.Check first char [17:04:42]Sock 7.First char is OK [17:04:42]request: POST /json_proto HTTP/1.0 [17:04:42]Method: POST [17:04:42]URL: /json_proto [17:04:42]Method is POST - this is cgi request [17:04:42]url: /json_proto [17:04:42]query_string will be loaded in cgi processing [17:04:42]execute_cgi json_proto POST (null) [17:04:42]execute_cgi path=json_proto method=POST [17:04:42]POST find Content-Length [17:04:42]Host: 172.17.50.3:8080 [17:04:42]Content-Length: 678 [17:04:42]Content-Type: application/json [17:04:42] [17:04:42]POST finish read [17:04:42]Found Content-Length = 678 [17:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886504", "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" ] } } [17:04:42]execute_script... [17:04: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)2886504", "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" ] } } [17:04:42]POST & json_proto [17:04:42]process_json_proto [17:04:42]json parsed OK: [17:04:42]protocol is kg_v1.0 [17:04:42]action value=close_receipt [17:04:42]process_action close_receipt [17:04:42]cmd_close_receipt [17:04:42]MH_GetDate [17:04:42]Write to MH i2c: F0 00 00 E2 22 F3 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 E2 22 00 AC 2C 19 67 6B 98 1E 66 DB [17:04:42]GetLastDocTimeStamp 1729702641 [17:04:42]current date 1729703084 [17:04:42]FM_GetShiftState [17:04:42]SAM_PROTO_GetShiftState [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 13 01 00 [17:04:42]Write to MH i2c: E2 08 00 E3 22 80 13 01 00 00 00 00 00 82 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 E3 22 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0F [17:04:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:04:42]wFMCommunicate OK [17:04:42]SAM_PROTO_GetShiftState done [17:04:42]FM_GetShiftState done [17:04:42]opened in 1729642435 [17:04:42]opened+sec_in_day 1729728835 [17:04:42]quantity*price = 60009 [17:04:42]sum+1 = 60010 [17:04:42]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 СНО: Общий режим Чек 239 23.10.2024 17:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70723 ФПД: 81154792009908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170444&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70723&fm=81154792009908&tin=02508201610067®Number=0000000000156251&sum=60000 [17:04:43]StoreToDocumentArchive [17:04:43]shift 196 fd 70723 [17:04:43]save to /storage/0196/doc_00070723 [17:04:43]save last doc name /storage/0196/doc_00070723 to /storage/kkm_last_doc_name [17:04:43]save OK [17:04:43]Clear old archive folders... [17:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:43]tlvbuf is 001606C0 [17:04:43]SAM_PROTO_ClearQueue [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 09 00 00 [17:04:43]Write to MH i2c: E2 08 00 F0 22 80 09 00 00 00 00 00 00 84 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_ClearQueue done [17:04:43]KKMCreateOFDPacket [17:04:43]OFDProtocolAddRootSTLVToBuf [17:04:43]FM_MakeSignedData [17:04:43]FM_MakeSignedData [17:04:43]SAM_PROTO_SignData [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 01 02 [17:04:43]Write to MH i2c: E2 08 00 F1 22 80 0D 01 02 00 00 00 00 8C [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=255 [17:04:43]MH_SAM_APDU [17:04: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 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 EF 00 00 00 F4 03 04 00 AC 2C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 [17:04:43]Write to MH i2c: E2 02 01 F2 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 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 EF 00 00 00 F4 03 04 00 AC 2C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 00 00 9E [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=10 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 02 02 05 CF 52 8C B0 B4 [17:04:43]Write to MH i2c: E2 0D 00 F3 22 80 0D 02 02 05 00 CF 52 8C B0 B4 00 00 AA [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 03 02 [17:04:43]Write to MH i2c: E2 08 00 F4 22 80 0D 03 02 00 00 00 00 91 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 F4 22 00 F5 86 DD 11 88 1D 85 12 90 00 37 [17:04:43]RAPDU: F5 86 DD 11 88 1D 85 12 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_SignData done [17:04:43]FM_MakeSignedData done [17:04:43]CreateOFDProtocolMessage [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 11 00 00 [17:04:43]Write to MH i2c: E2 08 00 F5 22 80 11 00 00 00 00 00 00 91 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 F5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [17:04:43]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:43]wFMCommunicate OK [17:04:43]CreateOFDProtocolMessage done [17:04:43]OFDSenderStorePacket 70723 [17:04:43]StoreOFDPacket docnum=70723 [17:04: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 C5 98 07 01 64 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EF 00 00 00 F4 03 04 00 AC 2C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 CF 52 8C B0 B4 F5 86 DD 11 88 1D 85 12 [17:04:43]CheckFolder [17:04:43]dirname=/storage/ofd_packets [17:04:43]CheckFolder done [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00070723 [17:04:43]NVStorageSaveData ofd_packets/00070723 [17:04:43]File name is /storage/ofd_packets/00070723 [17:04:43]Write 301 bytes [17:04:43]NVStorageSaveData done [17:04:43]OFDSenderStorePacket done [17:04:43]KKMCreateOFDPacket done [17:04:43]NVStorageSaveData kkm_last_timestamp [17:04:43]File name is /storage/kkm_last_timestamp [17:04:43]Write 4 bytes [17:04:43]NVStorageSaveData done [17:04:43]ExternCall_PrintAddStr [17:04:43]wPrintStart [17:04:43]Write to MH i2c: 01 00 00 F6 22 18 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 FF 0F 2D [17:04:43]RasterBufferAndPrint [17:04:43]line Счет N : (1)2886504 [17:04:43]line ИНН: 02508201610067 [17:04:43]line Контрольно-Кассовый Чек [17:04:43]line ПРОДАЖА [17:04:43]line ТРК (МРК, ГНК) : 42 [17:04:43]line Товар: 2710124130 [17:04:43]line Аи-92-К-5 [17:04:43]line 8.970 * 66.90 [17:04:43]line = 600.09 [17:04:43]line НДС 12% НСП 1% [17:04:43]line > о реализуемом товаре [17:04:43]line ОКРУГЛЕНИЕ: -0.09 [17:04:43]line ИТОГО: 600.00 [17:04:43]line Внесено: 600.00 [17:04:43]line СДАЧА: 0.00 [17:04:43]line НСП 1% : 5.31 [17:04:43]line НДС 12% : 63.73 [17:04:43]line Наличными: 600.00 [17:04:43]line Безнал.: 0.00 [17:04:43]line Место: АЗС № 85 "Партнер Нефть" [17:04:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:04:43]line СНО: Общий режим [17:04:43]line Чек 239 23.10.2024 17:04 [17:04:43]line Смена: 196 ФФД: 1.0 [17:04:43]line ЗНМ: 0300000167 [17:04:43]line РНМ: 0000000000156251 [17:04:43]line Версия ККМ: v1.0 [17:04:43]line ФМ: 0000000000963346 [17:04:43]line ФД: 70723 [17:04:43]line ФПД: 81154792009908 [17:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170444&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70723&fm=81154792009908&tin=02508201610067®Number=0000000000156251&sum=60000 [17:04:44]OFD Sender: Processing packet 70723 [packets to send 18, broken 17] [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00070723 [17:04:44]OFD Sender: To server: pG, [17:04:44]CommunicateWithHost lk.salyk.kg:30040 [17:04:44]ConnectInit lk.salyk.kg [17:04:44]written 0, free lines is 4095 [17:04:44]Connected sock=10 [17:04: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 C5 98 07 01 64 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EF 00 00 00 F4 03 04 00 AC 2C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 49 CF 52 8C B0 B4 F5 86 DD 11 88 1D 85 12 [17:04:44]Write to MH i2c: 01 00 00 21 23 44 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 21 23 00 00 00 00 00 D9 0C 30 [17:04:44]RasterBufferAndPrint [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]written 0, free lines is 3296 [17:04:44]MH_Cut [17:04:44]Write to MH i2c: D1 01 00 28 23 01 1D [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 28 23 00 1C [17:04:44]Write to MH i2c: 01 00 00 29 23 4C [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04: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 6A B9 47 00 6C 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 43 14 01 00 F4 03 04 00 49 D6 18 67 B6 04 01 00 00 10 E3 06 4D 4F 9F 12 EA [17:04:44]CommunicateWithHost err = 0 [17:04:44]CheckOFDResponse [17:04:44]1017 (14) - 77093643461234 [17:04:44]1041 (16) - 0000000000963346 [17:04:44]1040 (4) - 70723 [17:04:44]1012 (4) - 23.10.2024 10:56 [17:04:44]1206 (1) - 0 [17:04:44]OFD Sender: Remove packet 70723 [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00070723 [17:04:44]NVStorageDeleteData [17:04:45]OFD Sender: No OFD packet to send [17:04:45]*** Cut start [17:04:45]*** Partial cut [17:04:45]*** CUTSNS_PIN = 1 [17:04:45]*** CUTSNS_PIN = 0 [17:04:45]*** Brake cut motor [17:04:46]Read from MH i2c: 01 [17:04:46]MH_I2C_Read... [17:04:46]*** Stop cut motor [17:04:46]*** Cut end [17:04:46]Read from MH i2c: 01 07 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: 01 07 00 29 23 00 00 00 00 00 FF 0F 61 [17:04:46]process_action close_receipt done [17:04:46]requested_data is exist [17:04:46]produce_requested_data [17:04:46]requested_item fm.sn is exist - process it [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 11 00 00 [17:04:46]Write to MH i2c: E2 08 00 2A 23 80 11 00 00 00 00 00 00 C7 [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 2A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [17:04: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:04:46]wFMCommunicate OK [17:04:46]requested_item fd.num is exist - process it [17:04:46]SAM_PROTO_GetFieldsCounters [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 00 00 [17:04:46]Write to MH i2c: E2 08 00 2B 23 80 13 00 00 00 00 00 00 CA [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 2B 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 43 14 01 00 0E 04 04 00 C4 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 CE [17:04: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 43 14 01 00 0E 04 04 00 C4 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 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetFieldsCounters done [17:04:46]requested_item shift.num is exist - process it [17:04:46]requested_item shift.opened is exist - process it [17:04:46]req_shift_opened [17:04:46]FM_GetShiftState [17:04:46]SAM_PROTO_GetShiftState [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 01 00 [17:04:46]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [17:04:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetShiftState done [17:04:46]FM_GetShiftState done [17:04:46]req_shift_opened done [17:04:46]requested_item shift.open_date is exist - process it [17:04:46]req_shift_open_date [17:04:46]req_shift_open_date done [17:04:46]produce_requested_data done [17:04:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70723,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:04:46]process_action_free close_receipt [17:04:46]json_value_free [17:04:46]json_value_free done [17:04:46]process_json_proto returns [17:04:46]Send response to host [17:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70723,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:04:46]free response buf [17:04:46]execute_script done [17:04:46]execute_script returns [17:04:46]free content buf [17:04:46]Sock 7.Close socket [17:04:46]Sock 7.Thread stoped [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:39]accept exits with 9 [17:06:39]New connection [17:06:39]New thread 3067034980 created [17:06:39]Thread 3066891620 joined [17:06:39]Waiting for new connection... [17:06:39] Sock 9.Parse request [17:06:39]Sock 9.Check first char [17:06:39]Sock 9.First char is OK [17:06:39]request: POST /json_proto HTTP/1.0 [17:06:39]Method: POST [17:06:39]URL: /json_proto [17:06:39]Method is POST - this is cgi request [17:06:39]url: /json_proto [17:06:39]query_string will be loaded in cgi processing [17:06:39]execute_cgi json_proto POST (null) [17:06:39]execute_cgi path=json_proto method=POST [17:06:39]POST find Content-Length [17:06:39]Host: 172.17.50.3:8080 [17:06:39]Content-Length: 678 [17:06:39]Content-Type: application/json [17:06:39] [17:06:39]POST finish read [17:06:39]Found Content-Length = 678 [17:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886505", "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" ] } } [17:06:39]execute_script... [17:06: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)2886505", "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" ] } } [17:06:39]POST & json_proto [17:06:39]process_json_proto [17:06:39]json parsed OK: [17:06:39]protocol is kg_v1.0 [17:06:39]action value=close_receipt [17:06:39]process_action close_receipt [17:06:39]cmd_close_receipt [17:06:39]MH_GetDate [17:06:39]Write to MH i2c: F0 00 00 2D 23 3F [17:06:39]Write i2c OK [17:06:39]MH_I2C_Read... [17:06:39]Read from MH i2c: F0 [17:06:39]MH_I2C_Read... [17:06:39]Read from MH i2c: F0 09 00 [17:06:39]MH_I2C_Read... [17:06:39]Read from MH i2c: F0 09 00 2D 23 00 21 2D 19 67 6B 98 1E 66 9D [17:06:39]GetLastDocTimeStamp 1729703084 [17:06:39]current date 1729703201 [17:06:39]FM_GetShiftState [17:06:39]SAM_PROTO_GetShiftState [17:06:39]wFMCommunicate request_size=4 [17:06:39]MH_SAM_APDU [17:06:39]CAPDU: 80 13 01 00 [17:06:39]Write to MH i2c: E2 08 00 2E 23 80 13 01 00 00 00 00 00 CE [17:06:39]Write i2c OK [17:06:39]MH_I2C_Read... [17:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:39]Read from MH i2c: E2 [17:06:39]MH_I2C_Read... [17:06:39]Read from MH i2c: E2 0E 00 [17:06:39]MH_I2C_Read... [17:06:39]Read from MH i2c: E2 0E 00 2E 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5B [17:06:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:06:39]wFMCommunicate OK [17:06:39]SAM_PROTO_GetShiftState done [17:06:39]FM_GetShiftState done [17:06:39]opened in 1729642435 [17:06:39]opened+sec_in_day 1729728835 [17:06:39]quantity*price = 60009 [17:06:39]sum+1 = 60010 [17:06:39]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 СНО: Общий режим Чек 240 23.10.2024 17:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70724 ФПД: 17417563174256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70724&fm=17417563174256&tin=02508201610067®Number=0000000000156251&sum=60000 [17:06:40]StoreToDocumentArchive [17:06:40]shift 196 fd 70724 [17:06:40]save to /storage/0196/doc_00070724 [17:06:40]save last doc name /storage/0196/doc_00070724 to /storage/kkm_last_doc_name [17:06:40]save OK [17:06:40]Clear old archive folders... [17:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:40]tlvbuf is 00145E80 [17:06:40]SAM_PROTO_ClearQueue [17:06:40]wFMCommunicate request_size=4 [17:06:40]MH_SAM_APDU [17:06:40]CAPDU: 80 09 00 00 [17:06:40]Write to MH i2c: E2 08 00 3B 23 80 09 00 00 00 00 00 00 D0 [17:06:40]Write i2c OK [17:06:40]MH_I2C_Read... [17:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:40]Read from MH i2c: E2 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: E2 03 00 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [17:06:40]RAPDU: 90 00 [17:06:40]wFMCommunicate OK [17:06:40]SAM_PROTO_ClearQueue done [17:06:40]KKMCreateOFDPacket [17:06:40]OFDProtocolAddRootSTLVToBuf [17:06:40]FM_MakeSignedData [17:06:40]FM_MakeSignedData [17:06:40]SAM_PROTO_SignData [17:06:40]wFMCommunicate request_size=4 [17:06:40]MH_SAM_APDU [17:06:40]CAPDU: 80 0D 01 02 [17:06:40]Write to MH i2c: E2 08 00 3C 23 80 0D 01 02 00 00 00 00 D8 [17:06:40]Write i2c OK [17:06:40]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=255 [17:06:41]MH_SAM_APDU [17:06: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 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 F0 00 00 00 F4 03 04 00 21 2D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0F [17:06:41]Write to MH i2c: E2 02 01 3D 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 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 F0 00 00 00 F4 03 04 00 21 2D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0F 00 00 28 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=10 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 02 02 05 D7 57 AA 75 70 [17:06:41]Write to MH i2c: E2 0D 00 3E 23 80 0D 02 02 05 00 D7 57 AA 75 70 00 00 A2 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 3E 23 00 90 00 D5 [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 03 02 [17:06:41]Write to MH i2c: E2 08 00 3F 23 80 0D 03 02 00 00 00 00 DD [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0B 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0B 00 3F 23 00 A2 71 EC 2E DF 8A C0 C8 90 00 FC [17:06:41]RAPDU: A2 71 EC 2E DF 8A C0 C8 90 00 [17:06:41]wFMCommunicate OK [17:06:41]SAM_PROTO_SignData done [17:06:41]FM_MakeSignedData done [17:06:41]CreateOFDProtocolMessage [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 11 00 00 [17:06:41]Write to MH i2c: E2 08 00 40 23 80 11 00 00 00 00 00 00 DD [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 17 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 17 00 40 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [17:06:41]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:41]wFMCommunicate OK [17:06:41]CreateOFDProtocolMessage done [17:06:41]OFDSenderStorePacket 70724 [17:06:41]StoreOFDPacket docnum=70724 [17:06: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 0F 01 00 00 40 88 07 01 31 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 21 2D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0F D7 57 AA 75 70 A2 71 EC 2E DF 8A C0 C8 [17:06:41]CheckFolder [17:06:41]dirname=/storage/ofd_packets [17:06:41]CheckFolder done [17:06:41]ProducePacketName [17:06:41]name=ofd_packets/00070724 [17:06:41]NVStorageSaveData ofd_packets/00070724 [17:06:41]File name is /storage/ofd_packets/00070724 [17:06:41]Write 301 bytes [17:06:41]NVStorageSaveData done [17:06:41]OFDSenderStorePacket done [17:06:41]KKMCreateOFDPacket done [17:06:41]NVStorageSaveData kkm_last_timestamp [17:06:41]File name is /storage/kkm_last_timestamp [17:06:41]Write 4 bytes [17:06:41]NVStorageSaveData done [17:06:41]ExternCall_PrintAddStr [17:06:41]wPrintStart [17:06:41]Write to MH i2c: 01 00 00 41 23 64 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 07 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 07 00 41 23 00 00 00 00 00 FF 0F 79 [17:06:41]RasterBufferAndPrint [17:06:41]line Счет N : (1)2886505 [17:06:41]line ИНН: 02508201610067 [17:06:41]line Контрольно-Кассовый Чек [17:06:41]line ПРОДАЖА [17:06:41]line ТРК (МРК, ГНК) : 22 [17:06:41]line Товар: 2710124130 [17:06:41]line Аи-92-К-5 [17:06:41]line 8.970 * 66.90 [17:06:41]line = 600.09 [17:06:41]line НДС 12% НСП 1% [17:06:41]line > о реализуемом товаре [17:06:41]line ОКРУГЛЕНИЕ: -0.09 [17:06:41]line ИТОГО: 600.00 [17:06:41]line Внесено: 600.00 [17:06:41]line СДАЧА: 0.00 [17:06:41]line НСП 1% : 5.31 [17:06:41]line НДС 12% : 63.73 [17:06:41]line Наличными: 600.00 [17:06:41]line Безнал.: 0.00 [17:06:41]line Место: АЗС № 85 "Партнер Нефть" [17:06:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:06:41]line СНО: Общий режим [17:06:41]line Чек 240 23.10.2024 17:06 [17:06:41]line Смена: 196 ФФД: 1.0 [17:06:41]line ЗНМ: 0300000167 [17:06:41]line РНМ: 0000000000156251 [17:06:41]line Версия ККМ: v1.0 [17:06:41]line ФМ: 0000000000963346 [17:06:41]line ФД: 70724 [17:06:41]line ФПД: 17417563174256 [17:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70724&fm=17417563174256&tin=02508201610067®Number=0000000000156251&sum=60000 [17:06:41]OFD Sender: Processing packet 70724 [packets to send 18, broken 17] [17:06:41]ProducePacketName [17:06:41]name=ofd_packets/00070724 [17:06:41]OFD Sender: To server: pG, [17:06:41]CommunicateWithHost lk.salyk.kg:30040 [17:06:41]ConnectInit lk.salyk.kg [17:06:41]written 0, free lines is 4095 [17:06:41]Connected sock=10 [17:06: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 40 88 07 01 31 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 21 2D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0F D7 57 AA 75 70 A2 71 EC 2E DF 8A C0 C8 [17:06: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 52 F5 47 00 C2 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 44 14 01 00 F4 03 04 00 BF D6 18 67 B6 04 01 00 00 69 CA 5C 38 E3 B2 11 D1 [17:06:42]CommunicateWithHost err = 0 [17:06:42]CheckOFDResponse [17:06:42]1017 (14) - 77093643461234 [17:06:42]1041 (16) - 0000000000963346 [17:06:42]1040 (4) - 70724 [17:06:42]1012 (4) - 23.10.2024 10:58 [17:06:42]1206 (1) - 0 [17:06:42]OFD Sender: Remove packet 70724 [17:06:42]ProducePacketName [17:06:42]name=ofd_packets/00070724 [17:06:42]NVStorageDeleteData [17:06:42]Write to MH i2c: 01 00 00 6C 23 8F [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 6C 23 00 00 00 00 00 E2 0C 84 [17:06:42]RasterBufferAndPrint [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]written 0, free lines is 3304 [17:06:42]MH_Cut [17:06:42]Write to MH i2c: D1 01 00 73 23 01 68 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 01 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 01 00 73 23 00 67 [17:06:42]Write to MH i2c: 01 00 00 74 23 97 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]OFD Sender: No OFD packet to send [17:06:42]*** Cut start [17:06:42]*** Partial cut [17:06:42]*** CUTSNS_PIN = 1 [17:06:43]*** CUTSNS_PIN = 0 [17:06:43]*** Brake cut motor [17:06:43]Read from MH i2c: 01 [17:06:43]MH_I2C_Read... [17:06:43]*** Stop cut motor [17:06:43]*** Cut end [17:06:43]Read from MH i2c: 01 07 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 74 23 00 00 00 00 00 FF 0F AC [17:06:43]process_action close_receipt done [17:06:43]requested_data is exist [17:06:43]produce_requested_data [17:06:43]requested_item fm.sn is exist - process it [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 11 00 00 [17:06:43]Write to MH i2c: E2 08 00 75 23 80 11 00 00 00 00 00 00 12 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 75 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [17:06:43]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:43]wFMCommunicate OK [17:06:43]requested_item fd.num is exist - process it [17:06:43]SAM_PROTO_GetFieldsCounters [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 13 00 00 [17:06:43]Write to MH i2c: E2 08 00 76 23 80 13 00 00 00 00 00 00 15 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 62 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 62 00 76 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 44 14 01 00 0E 04 04 00 C4 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 1D [17:06: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 44 14 01 00 0E 04 04 00 C4 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 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_GetFieldsCounters done [17:06:43]requested_item shift.num is exist - process it [17:06:43]requested_item shift.opened is exist - process it [17:06:43]req_shift_opened [17:06:43]FM_GetShiftState [17:06:43]SAM_PROTO_GetShiftState [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 13 01 00 [17:06:43]Write to MH i2c: E2 08 00 77 23 80 13 01 00 00 00 00 00 17 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0E 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0E 00 77 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A4 [17:06:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_GetShiftState done [17:06:43]FM_GetShiftState done [17:06:43]req_shift_opened done [17:06:43]requested_item shift.open_date is exist - process it [17:06:43]req_shift_open_date [17:06:43]req_shift_open_date done [17:06:43]produce_requested_data done [17:06:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70724,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:06:43]process_action_free close_receipt [17:06:43]json_value_free [17:06:43]json_value_free done [17:06:43]process_json_proto returns [17:06:43]Send response to host [17:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70724,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:06:43]free response buf [17:06:43]execute_script done [17:06:43]execute_script returns [17:06:43]free content buf [17:06:43]Sock 9.Close socket [17:06:43]Sock 9.Thread stoped [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:23]accept exits with 7 [17:12:23]New connection [17:12:23]New thread 3066891620 created [17:12:23]Thread 3067034980 joined [17:12:23]Waiting for new connection... [17:12:23] Sock 7.Parse request [17:12:23]Sock 7.Check first char [17:12:23]Sock 7.First char is OK [17:12:23]request: POST /json_proto HTTP/1.0 [17:12:23]Method: POST [17:12:23]URL: /json_proto [17:12:23]Method is POST - this is cgi request [17:12:23]url: /json_proto [17:12:23]query_string will be loaded in cgi processing [17:12:23]execute_cgi json_proto POST (null) [17:12:23]execute_cgi path=json_proto method=POST [17:12:23]POST find Content-Length [17:12:23]Host: 172.17.50.3:8080 [17:12:23]Content-Length: 678 [17:12:23]Content-Type: application/json [17:12:23] [17:12:23]POST finish read [17:12:23]Found Content-Length = 678 [17:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886506", "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:12:23]execute_script... [17:12: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)2886506", "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:12:23]POST & json_proto [17:12:23]process_json_proto [17:12:23]json parsed OK: [17:12:23]protocol is kg_v1.0 [17:12:23]action value=close_receipt [17:12:23]process_action close_receipt [17:12:23]cmd_close_receipt [17:12:23]MH_GetDate [17:12:23]Write to MH i2c: F0 00 00 78 23 8A [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: F0 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: F0 09 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: F0 09 00 78 23 00 79 2E 19 67 6B 98 1E 66 41 [17:12:23]GetLastDocTimeStamp 1729703201 [17:12:23]current date 1729703545 [17:12:23]FM_GetShiftState [17:12:23]SAM_PROTO_GetShiftState [17:12:23]wFMCommunicate request_size=4 [17:12:23]MH_SAM_APDU [17:12:23]CAPDU: 80 13 01 00 [17:12:23]Write to MH i2c: E2 08 00 79 23 80 13 01 00 00 00 00 00 19 [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:23]Read from MH i2c: E2 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 0E 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 0E 00 79 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A6 [17:12:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:12:23]wFMCommunicate OK [17:12:23]SAM_PROTO_GetShiftState done [17:12:23]FM_GetShiftState done [17:12:23]opened in 1729642435 [17:12:23]opened+sec_in_day 1729728835 [17:12:23]quantity*price = 50041 [17:12:23]sum+1 = 50042 [17:12: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 СНО: Общий режим Чек 241 23.10.2024 17:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70725 ФПД: 250999673243507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171225&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70725&fm=250999673243507&tin=02508201610067®Number=0000000000156251&sum=50000 [17:12:24]StoreToDocumentArchive [17:12:24]shift 196 fd 70725 [17:12:24]save to /storage/0196/doc_00070725 [17:12:24]save last doc name /storage/0196/doc_00070725 to /storage/kkm_last_doc_name [17:12:24]save OK [17:12:24]Clear old archive folders... [17:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:24]tlvbuf is B6F696F0 [17:12:24]SAM_PROTO_ClearQueue [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 09 00 00 [17:12:24]Write to MH i2c: E2 08 00 86 23 80 09 00 00 00 00 00 00 1B [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [17:12:24]RAPDU: 90 00 [17:12:24]wFMCommunicate OK [17:12:24]SAM_PROTO_ClearQueue done [17:12:24]KKMCreateOFDPacket [17:12:24]OFDProtocolAddRootSTLVToBuf [17:12:24]FM_MakeSignedData [17:12:24]FM_MakeSignedData [17:12:24]SAM_PROTO_SignData [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 0D 01 02 [17:12:24]Write to MH i2c: E2 08 00 87 23 80 0D 01 02 00 00 00 00 23 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [17:12:24]RAPDU: 90 00 [17:12:24]wFMCommunicate OK [17:12:24]wFMCommunicate request_size=255 [17:12:24]MH_SAM_APDU [17:12: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 F1 00 00 00 F4 03 04 00 79 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E4 [17:12:24]Write to MH i2c: E2 02 01 88 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 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 F1 00 00 00 F4 03 04 00 79 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E4 00 00 C6 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [17:12:24]RAPDU: 90 00 [17:12:24]wFMCommunicate OK [17:12:24]wFMCommunicate request_size=10 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 0D 02 02 05 48 6A 5C C7 73 [17:12:24]Write to MH i2c: E2 0D 00 89 23 80 0D 02 02 05 00 48 6A 5C C7 73 00 00 78 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 03 00 89 23 00 90 00 20 [17:12:24]RAPDU: 90 00 [17:12:24]wFMCommunicate OK [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 0D 03 02 [17:12:24]Write to MH i2c: E2 08 00 8A 23 80 0D 03 02 00 00 00 00 28 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0B 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0B 00 8A 23 00 4C 7A 03 75 EE 22 D9 17 90 00 67 [17:12:24]RAPDU: 4C 7A 03 75 EE 22 D9 17 90 00 [17:12:24]wFMCommunicate OK [17:12:24]SAM_PROTO_SignData done [17:12:24]FM_MakeSignedData done [17:12:24]CreateOFDProtocolMessage [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 11 00 00 [17:12:24]Write to MH i2c: E2 08 00 8B 23 80 11 00 00 00 00 00 00 28 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 17 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 17 00 8B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [17:12:24]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:24]wFMCommunicate OK [17:12:24]CreateOFDProtocolMessage done [17:12:24]OFDSenderStorePacket 70725 [17:12:24]StoreOFDPacket docnum=70725 [17:12: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 7A 00 07 01 D6 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 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 F1 00 00 00 F4 03 04 00 79 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E4 48 6A 5C C7 73 4C 7A 03 75 EE 22 D9 17 [17:12:24]CheckFolder [17:12:24]dirname=/storage/ofd_packets [17:12:24]CheckFolder done [17:12:24]ProducePacketName [17:12:24]name=ofd_packets/00070725 [17:12:24]NVStorageSaveData ofd_packets/00070725 [17:12:24]File name is /storage/ofd_packets/00070725 [17:12:24]Write 301 bytes [17:12:24]NVStorageSaveData done [17:12:24]OFDSenderStorePacket done [17:12:24]KKMCreateOFDPacket done [17:12:24]NVStorageSaveData kkm_last_timestamp [17:12:24]File name is /storage/kkm_last_timestamp [17:12:24]Write 4 bytes [17:12:24]NVStorageSaveData done [17:12:24]ExternCall_PrintAddStr [17:12:24]wPrintStart [17:12:24]Write to MH i2c: 01 00 00 8C 23 AF [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: 01 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: 01 07 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: 01 07 00 8C 23 00 00 00 00 00 FF 0F C4 [17:12:24]RasterBufferAndPrint [17:12:24]line Счет N : (1)2886506 [17:12:24]line ИНН: 02508201610067 [17:12:24]line Контрольно-Кассовый Чек [17:12:24]line ПРОДАЖА [17:12:24]line ТРК (МРК, ГНК) : 42 [17:12:24]line Товар: 2710124130 [17:12:24]line Аи-92-К-5 [17:12:24]line 7.480 * 66.90 [17:12:24]line = 500.41 [17:12:24]line НДС 12% НСП 1% [17:12:24]line > о реализуемом товаре [17:12:24]line ОКРУГЛЕНИЕ: -0.41 [17:12:24]line ИТОГО: 500.00 [17:12:24]line Внесено: 500.00 [17:12:24]line СДАЧА: 0.00 [17:12:24]line НСП 1% : 4.43 [17:12:24]line НДС 12% : 53.14 [17:12:24]line Наличными: 500.00 [17:12:24]line Безнал.: 0.00 [17:12:24]line Место: АЗС № 85 "Партнер Нефть" [17:12:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:12:24]line СНО: Общий режим [17:12:24]line Чек 241 23.10.2024 17:12 [17:12:24]line Смена: 196 ФФД: 1.0 [17:12:24]line ЗНМ: 0300000167 [17:12:24]line РНМ: 0000000000156251 [17:12:24]line Версия ККМ: v1.0 [17:12:24]line ФМ: 0000000000963346 [17:12:24]line ФД: 70725 [17:12:24]line ФПД: 250999673243507 [17:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171225&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70725&fm=250999673243507&tin=02508201610067®Number=0000000000156251&sum=50000 [17:12:25]OFD Sender: Processing packet 70725 [packets to send 18, broken 17] [17:12:25]ProducePacketName [17:12:25]name=ofd_packets/00070725 [17:12:25]OFD Sender: To server: pG, [17:12:25]CommunicateWithHost lk.salyk.kg:30040 [17:12:25]ConnectInit lk.salyk.kg [17:12:25]written 0, free lines is 4095 [17:12:25]Connected sock=10 [17:12: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 7A 00 07 01 D6 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 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 F1 00 00 00 F4 03 04 00 79 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E4 48 6A 5C C7 73 4C 7A 03 75 EE 22 D9 17 [17:12: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 B4 E0 47 00 43 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 45 14 01 00 F4 03 04 00 16 D8 18 67 B6 04 01 00 00 E5 09 D7 A5 B7 FF 93 BB [17:12:25]CommunicateWithHost err = 0 [17:12:25]CheckOFDResponse [17:12:25]1017 (14) - 77093643461234 [17:12:25]1041 (16) - 0000000000963346 [17:12:25]1040 (4) - 70725 [17:12:25]1012 (4) - 23.10.2024 11:03 [17:12:25]1206 (1) - 0 [17:12:25]OFD Sender: Remove packet 70725 [17:12:25]ProducePacketName [17:12:25]name=ofd_packets/00070725 [17:12:25]NVStorageDeleteData [17:12:25]Write to MH i2c: 01 00 00 B7 23 DA [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 07 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 EC 0C D9 [17:12:25]RasterBufferAndPrint [17:12:25]line [17:12:25]line [17:12:25]line [17:12:25]line [17:12:25]line [17:12:25]written 0, free lines is 3314 [17:12:25]MH_Cut [17:12:25]Write to MH i2c: D1 01 00 BE 23 01 B3 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: D1 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: D1 01 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: D1 01 00 BE 23 00 B2 [17:12:25]Write to MH i2c: 01 00 00 BF 23 E2 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]OFD Sender: No OFD packet to send [17:12:26]*** Cut start [17:12:26]*** Partial cut [17:12:26]*** CUTSNS_PIN = 1 [17:12:26]*** CUTSNS_PIN = 0 [17:12:26]*** Brake cut motor [17:12:26]Read from MH i2c: 01 [17:12:26]MH_I2C_Read... [17:12:26]*** Stop cut motor [17:12:26]*** Cut end [17:12:26]Read from MH i2c: 01 07 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 BF 23 00 00 00 00 00 FF 0F F7 [17:12:26]process_action close_receipt done [17:12:26]requested_data is exist [17:12:26]produce_requested_data [17:12:26]requested_item fm.sn is exist - process it [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 11 00 00 [17:12:26]Write to MH i2c: E2 08 00 C0 23 80 11 00 00 00 00 00 00 5D [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 C0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [17: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 [17:12:27]wFMCommunicate OK [17:12:27]requested_item fd.num is exist - process it [17:12:27]SAM_PROTO_GetFieldsCounters [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 13 00 00 [17:12:27]Write to MH i2c: E2 08 00 C1 23 80 13 00 00 00 00 00 00 60 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 62 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 62 00 C1 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 45 14 01 00 0E 04 04 00 C4 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 6C [17:12: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 45 14 01 00 0E 04 04 00 C4 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 [17:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_GetFieldsCounters done [17:12:27]requested_item shift.num is exist - process it [17:12:27]requested_item shift.opened is exist - process it [17:12:27]req_shift_opened [17:12:27]FM_GetShiftState [17:12:27]SAM_PROTO_GetShiftState [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 13 01 00 [17:12:27]Write to MH i2c: E2 08 00 C2 23 80 13 01 00 00 00 00 00 62 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0E 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0E 00 C2 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EF [17:12:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_GetShiftState done [17:12:27]FM_GetShiftState done [17:12:27]req_shift_opened done [17:12:27]requested_item shift.open_date is exist - process it [17:12:27]req_shift_open_date [17:12:27]req_shift_open_date done [17:12:27]produce_requested_data done [17:12:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70725,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:12:27]process_action_free close_receipt [17:12:27]json_value_free [17:12:27]json_value_free done [17:12:27]process_json_proto returns [17:12:27]Send response to host [17:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70725,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:12:27]free response buf [17:12:27]execute_script done [17:12:27]execute_script returns [17:12:27]free content buf [17:12:27]Sock 7.Close socket [17:12:27]Sock 7.Thread stoped [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:16]accept exits with 9 [17:13:16]New connection [17:13:16]New thread 3067034980 created [17:13:16]Thread 3066891620 joined [17:13:16]Waiting for new connection... [17:13:16] Sock 9.Parse request [17:13:16]Sock 9.Check first char [17:13:16]Sock 9.First char is OK [17:13:16]request: POST /json_proto HTTP/1.0 [17:13:16]Method: POST [17:13:16]URL: /json_proto [17:13:16]Method is POST - this is cgi request [17:13:16]url: /json_proto [17:13:16]query_string will be loaded in cgi processing [17:13:16]execute_cgi json_proto POST (null) [17:13:16]execute_cgi path=json_proto method=POST [17:13:16]POST find Content-Length [17:13:16]Host: 172.17.50.3:8080 [17:13:16]Content-Length: 683 [17:13:16]Content-Type: application/json [17:13:16] [17:13:16]POST finish read [17:13:16]Found Content-Length = 683 [17:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886507", "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" ] } } [17:13:16]execute_script... [17:13: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)2886507", "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" ] } } [17:13:16]POST & json_proto [17:13:16]process_json_proto [17:13:16]json parsed OK: [17:13:16]protocol is kg_v1.0 [17:13:16]action value=close_receipt [17:13:16]process_action close_receipt [17:13:16]cmd_close_receipt [17:13:16]MH_GetDate [17:13:16]Write to MH i2c: F0 00 00 C3 23 D5 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: F0 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: F0 09 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: F0 09 00 C3 23 00 AE 2E 19 67 6B 98 1E 66 C1 [17:13:16]GetLastDocTimeStamp 1729703545 [17:13:16]current date 1729703598 [17:13:16]FM_GetShiftState [17:13:16]SAM_PROTO_GetShiftState [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 13 01 00 [17:13:16]Write to MH i2c: E2 08 00 C4 23 80 13 01 00 00 00 00 00 64 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0E 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0E 00 C4 23 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F1 [17:13:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_GetShiftState done [17:13:16]FM_GetShiftState done [17:13:16]opened in 1729642435 [17:13:16]opened+sec_in_day 1729728835 [17:13:16]quantity*price = 150056 [17:13:16]sum+1 = 150058 [17:13:16]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 СНО: Общий режим Чек 242 23.10.2024 17:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70726 ФПД: 49685435656532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70726&fm=49685435656532&tin=02508201610067®Number=0000000000156251&sum=150000 [17:13:17]StoreToDocumentArchive [17:13:17]shift 196 fd 70726 [17:13:17]save to /storage/0196/doc_00070726 [17:13:17]save last doc name /storage/0196/doc_00070726 to /storage/kkm_last_doc_name [17:13:17]save OK [17:13:17]Clear old archive folders... [17:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:17]tlvbuf is 00146100 [17:13:17]SAM_PROTO_ClearQueue [17:13:17]wFMCommunicate request_size=4 [17:13:17]MH_SAM_APDU [17:13:17]CAPDU: 80 09 00 00 [17:13:17]Write to MH i2c: E2 08 00 D1 23 80 09 00 00 00 00 00 00 66 [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [17:13:17]RAPDU: 90 00 [17:13:17]wFMCommunicate OK [17:13:17]SAM_PROTO_ClearQueue done [17:13:17]KKMCreateOFDPacket [17:13:17]OFDProtocolAddRootSTLVToBuf [17:13:17]FM_MakeSignedData [17:13:17]FM_MakeSignedData [17:13:17]SAM_PROTO_SignData [17:13:17]wFMCommunicate request_size=4 [17:13:17]MH_SAM_APDU [17:13:17]CAPDU: 80 0D 01 02 [17:13:17]Write to MH i2c: E2 08 00 D2 23 80 0D 01 02 00 00 00 00 6E [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [17:13:17]RAPDU: 90 00 [17:13:17]wFMCommunicate OK [17:13:17]wFMCommunicate request_size=255 [17:13:17]MH_SAM_APDU [17:13: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 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 F2 00 00 00 F4 03 04 00 AE 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D [17:13:17]Write to MH i2c: E2 02 01 D3 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 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 F2 00 00 00 F4 03 04 00 AE 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 00 00 DA [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [17:13:17]RAPDU: 90 00 [17:13:17]wFMCommunicate OK [17:13:17]wFMCommunicate request_size=10 [17:13:17]MH_SAM_APDU [17:13:17]CAPDU: 80 0D 02 02 05 30 4A BE 29 54 [17:13:17]Write to MH i2c: E2 0D 00 D4 23 80 0D 02 02 05 00 30 4A BE 29 54 00 00 30 [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 03 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 03 00 D4 23 00 90 00 6B [17:13:18]RAPDU: 90 00 [17:13:18]wFMCommunicate OK [17:13:18]wFMCommunicate request_size=4 [17:13:18]MH_SAM_APDU [17:13:18]CAPDU: 80 0D 03 02 [17:13:18]Write to MH i2c: E2 08 00 D5 23 80 0D 03 02 00 00 00 00 73 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 0B 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 0B 00 D5 23 00 42 40 51 D7 97 67 77 2F 90 00 C2 [17:13:18]RAPDU: 42 40 51 D7 97 67 77 2F 90 00 [17:13:18]wFMCommunicate OK [17:13:18]SAM_PROTO_SignData done [17:13:18]FM_MakeSignedData done [17:13:18]CreateOFDProtocolMessage [17:13:18]wFMCommunicate request_size=4 [17:13:18]MH_SAM_APDU [17:13:18]CAPDU: 80 11 00 00 [17:13:18]Write to MH i2c: E2 08 00 D6 23 80 11 00 00 00 00 00 00 73 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 17 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 17 00 D6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [17:13: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:13:18]wFMCommunicate OK [17:13:18]CreateOFDProtocolMessage done [17:13:18]OFDSenderStorePacket 70726 [17:13:18]StoreOFDPacket docnum=70726 [17:13: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 E5 F0 07 01 29 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 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 F2 00 00 00 F4 03 04 00 AE 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 30 4A BE 29 54 42 40 51 D7 97 67 77 2F [17:13:18]CheckFolder [17:13:18]dirname=/storage/ofd_packets [17:13:18]CheckFolder done [17:13:18]ProducePacketName [17:13:18]name=ofd_packets/00070726 [17:13:18]NVStorageSaveData ofd_packets/00070726 [17:13:18]File name is /storage/ofd_packets/00070726 [17:13:18]Write 301 bytes [17:13:18]NVStorageSaveData done [17:13:18]OFDSenderStorePacket done [17:13:18]KKMCreateOFDPacket done [17:13:18]NVStorageSaveData kkm_last_timestamp [17:13:18]File name is /storage/kkm_last_timestamp [17:13:18]Write 4 bytes [17:13:18]NVStorageSaveData done [17:13:18]ExternCall_PrintAddStr [17:13:18]wPrintStart [17:13:18]Write to MH i2c: 01 00 00 D7 23 FA [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 FF 0F 0F [17:13:18]RasterBufferAndPrint [17:13:18]line Счет N : (1)2886507 [17:13:18]line ИНН: 02508201610067 [17:13:18]line Контрольно-Кассовый Чек [17:13:18]line ПРОДАЖА [17:13:18]line ТРК (МРК, ГНК) : 12 [17:13:18]line Товар: 2710124130 [17:13:18]line Аи-92-К-5 [17:13:18]line 22.430 * 66.90 [17:13:18]line = 1500.57 [17:13:18]line НДС 12% НСП 1% [17:13:18]line > о реализуемом товаре [17:13:18]line ОКРУГЛЕНИЕ: -0.57 [17:13:18]line ИТОГО: 1500.00 [17:13:18]line Внесено: 1500.00 [17:13:18]line СДАЧА: 0.00 [17:13:18]line НСП 1% : 13.28 [17:13:18]line НДС 12% : 159.35 [17:13:18]line Наличными: 1500.00 [17:13:18]line Безнал.: 0.00 [17:13:18]line Место: АЗС № 85 "Партнер Нефть" [17:13:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:13:18]line СНО: Общий режим [17:13:18]line Чек 242 23.10.2024 17:13 [17:13:18]line Смена: 196 ФФД: 1.0 [17:13:18]line ЗНМ: 0300000167 [17:13:18]line РНМ: 0000000000156251 [17:13:18]line Версия ККМ: v1.0 [17:13:18]line ФМ: 0000000000963346 [17:13:18]line ФД: 70726 [17:13:18]line ФПД: 49685435656532 [17:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70726&fm=49685435656532&tin=02508201610067®Number=0000000000156251&sum=150000 [17:13:18]OFD Sender: Processing packet 70726 [packets to send 18, broken 17] [17:13:18]ProducePacketName [17:13:18]name=ofd_packets/00070726 [17:13:18]OFD Sender: To server: pG, [17:13:18]CommunicateWithHost lk.salyk.kg:30040 [17:13:18]ConnectInit lk.salyk.kg [17:13:18]written 0, free lines is 4095 [17:13:18]Connected sock=10 [17:13: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 E5 F0 07 01 29 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 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 F2 00 00 00 F4 03 04 00 AE 2E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2D 30 4A BE 29 54 42 40 51 D7 97 67 77 2F [17:13: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 AE C5 47 00 7F 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 46 14 01 00 F4 03 04 00 4B D8 18 67 B6 04 01 00 00 CA 7F 61 AB EC 0F DF 9A [17:13:18]CommunicateWithHost err = 0 [17:13:18]CheckOFDResponse [17:13:18]1017 (14) - 77093643461234 [17:13:18]1041 (16) - 0000000000963346 [17:13:18]1040 (4) - 70726 [17:13:18]1012 (4) - 23.10.2024 11:04 [17:13:18]1206 (1) - 0 [17:13:18]OFD Sender: Remove packet 70726 [17:13:18]ProducePacketName [17:13:18]name=ofd_packets/00070726 [17:13:18]NVStorageDeleteData [17:13:18]Write to MH i2c: 01 00 00 02 24 26 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: 01 07 00 02 24 00 00 00 00 00 F8 0C 31 [17:13:18]RasterBufferAndPrint [17:13:18]line [17:13:18]line [17:13:18]line [17:13:18]line [17:13:18]line [17:13:18]written 0, free lines is 3330 [17:13:18]MH_Cut [17:13:18]Write to MH i2c: D1 01 00 09 24 01 FF [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: D1 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: D1 01 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: D1 01 00 09 24 00 FE [17:13:18]Write to MH i2c: 01 00 00 0A 24 2E [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:19]OFD Sender: No OFD packet to send [17:13:19]*** Cut start [17:13:19]*** Partial cut [17:13:19]*** CUTSNS_PIN = 1 [17:13:19]*** CUTSNS_PIN = 0 [17:13:19]*** Brake cut motor [17:13:20]Read from MH i2c: 01 [17:13:20]MH_I2C_Read... [17:13:20]*** Stop cut motor [17:13:20]*** Cut end [17:13:20]Read from MH i2c: 01 07 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: 01 07 00 0A 24 00 00 00 00 00 FF 0F 43 [17:13:20]process_action close_receipt done [17:13:20]requested_data is exist [17:13:20]produce_requested_data [17:13:20]requested_item fm.sn is exist - process it [17:13:20]wFMCommunicate request_size=4 [17:13:20]MH_SAM_APDU [17:13:20]CAPDU: 80 11 00 00 [17:13:20]Write to MH i2c: E2 08 00 0B 24 80 11 00 00 00 00 00 00 A9 [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 17 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 17 00 0B 24 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:13: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:13:20]wFMCommunicate OK [17:13:20]requested_item fd.num is exist - process it [17:13:20]SAM_PROTO_GetFieldsCounters [17:13:20]wFMCommunicate request_size=4 [17:13:20]MH_SAM_APDU [17:13:20]CAPDU: 80 13 00 00 [17:13:20]Write to MH i2c: E2 08 00 0C 24 80 13 00 00 00 00 00 00 AC [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 62 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 62 00 0C 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 46 14 01 00 0E 04 04 00 C4 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 BC [17:13: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 46 14 01 00 0E 04 04 00 C4 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 [17:13:20]wFMCommunicate OK [17:13:20]SAM_PROTO_GetFieldsCounters done [17:13:20]requested_item shift.num is exist - process it [17:13:20]requested_item shift.opened is exist - process it [17:13:20]req_shift_opened [17:13:20]FM_GetShiftState [17:13:20]SAM_PROTO_GetShiftState [17:13:20]wFMCommunicate request_size=4 [17:13:20]MH_SAM_APDU [17:13:20]CAPDU: 80 13 01 00 [17:13:20]Write to MH i2c: E2 08 00 0D 24 80 13 01 00 00 00 00 00 AE [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 0E 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 0E 00 0D 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3B [17:13:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:13:20]wFMCommunicate OK [17:13:20]SAM_PROTO_GetShiftState done [17:13:20]FM_GetShiftState done [17:13:20]req_shift_opened done [17:13:20]requested_item shift.open_date is exist - process it [17:13:20]req_shift_open_date [17:13:20]req_shift_open_date done [17:13:20]produce_requested_data done [17:13:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70726,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:13:20]process_action_free close_receipt [17:13:20]json_value_free [17:13:20]json_value_free done [17:13:20]process_json_proto returns [17:13:20]Send response to host [17:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70726,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:13:20]free response buf [17:13:20]execute_script done [17:13:20]execute_script returns [17:13:20]free content buf [17:13:20]Sock 9.Close socket [17:13:20]Sock 9.Thread stoped [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:41]accept exits with 7 [17:16:41]New connection [17:16:41]New thread 3066891620 created [17:16:41]Thread 3067034980 joined [17:16:41]Waiting for new connection... [17:16:41] Sock 7.Parse request [17:16:41]Sock 7.Check first char [17:16:41]Sock 7.First char is OK [17:16:41]request: POST /json_proto HTTP/1.0 [17:16:41]Method: POST [17:16:41]URL: /json_proto [17:16:41]Method is POST - this is cgi request [17:16:41]url: /json_proto [17:16:41]query_string will be loaded in cgi processing [17:16:41]execute_cgi json_proto POST (null) [17:16:41]execute_cgi path=json_proto method=POST [17:16:41]POST find Content-Length [17:16:41]Host: 172.17.50.3:8080 [17:16:41]Content-Length: 678 [17:16:41]Content-Type: application/json [17:16:41] [17:16:41]POST finish read [17:16:41]Found Content-Length = 678 [17:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886508", "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" ] } } [17:16:41]execute_script... [17:16: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)2886508", "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" ] } } [17:16:41]POST & json_proto [17:16:41]process_json_proto [17:16:41]json parsed OK: [17:16:41]protocol is kg_v1.0 [17:16:41]action value=close_receipt [17:16:41]process_action close_receipt [17:16:41]cmd_close_receipt [17:16:41]MH_GetDate [17:16:41]Write to MH i2c: F0 00 00 0E 24 21 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: F0 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: F0 09 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: F0 09 00 0E 24 00 7B 2F 19 67 6B 98 1E 66 DB [17:16:41]GetLastDocTimeStamp 1729703598 [17:16:41]current date 1729703803 [17:16:41]FM_GetShiftState [17:16:41]SAM_PROTO_GetShiftState [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 13 01 00 [17:16:41]Write to MH i2c: E2 08 00 0F 24 80 13 01 00 00 00 00 00 B0 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0E 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0E 00 0F 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3D [17:16:41]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:16:41]wFMCommunicate OK [17:16:41]SAM_PROTO_GetShiftState done [17:16:41]FM_GetShiftState done [17:16:41]opened in 1729642435 [17:16:41]opened+sec_in_day 1729728835 [17:16:41]quantity*price = 50041 [17:16:41]sum+1 = 50042 [17:16:41]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 СНО: Общий режим Чек 243 23.10.2024 17:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70727 ФПД: 112044628904363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70727&fm=112044628904363&tin=02508201610067®Number=0000000000156251&sum=50000 [17:16:42]StoreToDocumentArchive [17:16:42]shift 196 fd 70727 [17:16:42]save to /storage/0196/doc_00070727 [17:16:42]save last doc name /storage/0196/doc_00070727 to /storage/kkm_last_doc_name [17:16:42]save OK [17:16:42]Clear old archive folders... [17:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:42]tlvbuf is 00176040 [17:16:42]SAM_PROTO_ClearQueue [17:16:42]wFMCommunicate request_size=4 [17:16:42]MH_SAM_APDU [17:16:42]CAPDU: 80 09 00 00 [17:16:42]Write to MH i2c: E2 08 00 1C 24 80 09 00 00 00 00 00 00 B2 [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [17:16:42]RAPDU: 90 00 [17:16:42]wFMCommunicate OK [17:16:42]SAM_PROTO_ClearQueue done [17:16:42]KKMCreateOFDPacket [17:16:42]OFDProtocolAddRootSTLVToBuf [17:16:42]FM_MakeSignedData [17:16:42]FM_MakeSignedData [17:16:42]SAM_PROTO_SignData [17:16:42]wFMCommunicate request_size=4 [17:16:42]MH_SAM_APDU [17:16:42]CAPDU: 80 0D 01 02 [17:16:42]Write to MH i2c: E2 08 00 1D 24 80 0D 01 02 00 00 00 00 BA [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [17:16:42]RAPDU: 90 00 [17:16:42]wFMCommunicate OK [17:16:42]wFMCommunicate request_size=255 [17:16:42]MH_SAM_APDU [17:16: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 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 F3 00 00 00 F4 03 04 00 7B 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 [17:16:42]Write to MH i2c: E2 02 01 1E 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 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 F3 00 00 00 F4 03 04 00 7B 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 00 00 E5 [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 1E 24 00 90 00 B6 [17:16:42]RAPDU: 90 00 [17:16:42]wFMCommunicate OK [17:16:42]wFMCommunicate request_size=10 [17:16:42]MH_SAM_APDU [17:16:42]CAPDU: 80 0D 02 02 05 E7 6C 4E 09 AB [17:16:42]Write to MH i2c: E2 0D 00 1F 24 80 0D 02 02 05 00 E7 6C 4E 09 AB 00 00 1C [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 03 00 1F 24 00 90 00 B7 [17:16:42]RAPDU: 90 00 [17:16:42]wFMCommunicate OK [17:16:42]wFMCommunicate request_size=4 [17:16:42]MH_SAM_APDU [17:16:42]CAPDU: 80 0D 03 02 [17:16:42]Write to MH i2c: E2 08 00 20 24 80 0D 03 02 00 00 00 00 BF [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 0B 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 0B 00 20 24 00 C8 CE 2A 4F 1B 0A 8E E7 90 00 69 [17:16:42]RAPDU: C8 CE 2A 4F 1B 0A 8E E7 90 00 [17:16:42]wFMCommunicate OK [17:16:42]SAM_PROTO_SignData done [17:16:42]FM_MakeSignedData done [17:16:42]CreateOFDProtocolMessage [17:16:42]wFMCommunicate request_size=4 [17:16:42]MH_SAM_APDU [17:16:42]CAPDU: 80 11 00 00 [17:16:42]Write to MH i2c: E2 08 00 21 24 80 11 00 00 00 00 00 00 BF [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:42]Read from MH i2c: E2 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 17 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: E2 17 00 21 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [17:16: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:16:42]wFMCommunicate OK [17:16:42]CreateOFDProtocolMessage done [17:16:42]OFDSenderStorePacket 70727 [17:16:42]StoreOFDPacket docnum=70727 [17:16: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 48 DA 07 01 D5 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 7B 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 E7 6C 4E 09 AB C8 CE 2A 4F 1B 0A 8E E7 [17:16:42]CheckFolder [17:16:42]dirname=/storage/ofd_packets [17:16:42]CheckFolder done [17:16:42]ProducePacketName [17:16:42]name=ofd_packets/00070727 [17:16:42]NVStorageSaveData ofd_packets/00070727 [17:16:42]File name is /storage/ofd_packets/00070727 [17:16:42]Write 301 bytes [17:16:42]NVStorageSaveData done [17:16:42]OFDSenderStorePacket done [17:16:42]KKMCreateOFDPacket done [17:16:42]NVStorageSaveData kkm_last_timestamp [17:16:42]File name is /storage/kkm_last_timestamp [17:16:42]Write 4 bytes [17:16:42]NVStorageSaveData done [17:16:42]ExternCall_PrintAddStr [17:16:42]wPrintStart [17:16:42]Write to MH i2c: 01 00 00 22 24 46 [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 07 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 07 00 22 24 00 00 00 00 00 FF 0F 5B [17:16:42]RasterBufferAndPrint [17:16:42]line Счет N : (1)2886508 [17:16:42]line ИНН: 02508201610067 [17:16:42]line Контрольно-Кассовый Чек [17:16:42]line ПРОДАЖА [17:16:42]line ТРК (МРК, ГНК) : 32 [17:16:42]line Товар: 2710124130 [17:16:42]line Аи-92-К-5 [17:16:42]line 7.480 * 66.90 [17:16:42]line = 500.41 [17:16:42]line НДС 12% НСП 1% [17:16:42]line > о реализуемом товаре [17:16:42]line ОКРУГЛЕНИЕ: -0.41 [17:16:42]line ИТОГО: 500.00 [17:16:42]line Внесено: 500.00 [17:16:42]line СДАЧА: 0.00 [17:16:42]line НСП 1% : 4.43 [17:16:42]line НДС 12% : 53.14 [17:16:42]line Наличными: 500.00 [17:16:42]line Безнал.: 0.00 [17:16:42]line Место: АЗС № 85 "Партнер Нефть" [17:16:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:16:42]line СНО: Общий режим [17:16:42]line Чек 243 23.10.2024 17:16 [17:16:43]line Смена: 196 ФФД: 1.0 [17:16:43]line ЗНМ: 0300000167 [17:16:43]line РНМ: 0000000000156251 [17:16:43]line Версия ККМ: v1.0 [17:16:43]line ФМ: 0000000000963346 [17:16:43]line ФД: 70727 [17:16:43]line ФПД: 112044628904363 [17:16:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70727&fm=112044628904363&tin=02508201610067®Number=0000000000156251&sum=50000 [17:16:43]OFD Sender: Processing packet 70727 [packets to send 18, broken 17] [17:16:43]ProducePacketName [17:16:43]name=ofd_packets/00070727 [17:16:43]OFD Sender: To server: pG, [17:16:43]CommunicateWithHost lk.salyk.kg:30040 [17:16:43]ConnectInit lk.salyk.kg [17:16:43]written 0, free lines is 4095 [17:16:43]Connected sock=10 [17:16: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 48 DA 07 01 D5 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 7B 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 65 E7 6C 4E 09 AB C8 CE 2A 4F 1B 0A 8E E7 [17:16: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 84 89 47 00 E1 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 47 14 01 00 F4 03 04 00 18 D9 18 67 B6 04 01 00 00 4F EA 98 13 96 60 55 97 [17:16:43]CommunicateWithHost err = 0 [17:16:43]CheckOFDResponse [17:16:43]1017 (14) - 77093643461234 [17:16:43]1041 (16) - 0000000000963346 [17:16:43]1040 (4) - 70727 [17:16:43]1012 (4) - 23.10.2024 11:08 [17:16:43]1206 (1) - 0 [17:16:43]OFD Sender: Remove packet 70727 [17:16:43]ProducePacketName [17:16:43]name=ofd_packets/00070727 [17:16:43]NVStorageDeleteData [17:16:43]Write to MH i2c: 01 00 00 4D 24 71 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 4D 24 00 00 00 00 00 F3 0C 77 [17:16:43]RasterBufferAndPrint [17:16:43]line [17:16:43]line [17:16:43]line [17:16:43]line [17:16:43]line [17:16:43]written 0, free lines is 3321 [17:16:43]MH_Cut [17:16:43]Write to MH i2c: D1 01 00 54 24 01 4A [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: D1 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: D1 01 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: D1 01 00 54 24 00 49 [17:16:43]Write to MH i2c: 01 00 00 55 24 79 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]OFD Sender: No OFD packet to send [17:16:44]*** Cut start [17:16:44]*** Partial cut [17:16:44]*** CUTSNS_PIN = 1 [17:16:44]*** CUTSNS_PIN = 0 [17:16:44]*** Brake cut motor [17:16:44]Read from MH i2c: 01 [17:16:44]MH_I2C_Read... [17:16:44]*** Stop cut motor [17:16:44]*** Cut end [17:16:44]Read from MH i2c: 01 07 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: 01 07 00 55 24 00 00 00 00 00 FF 0F 8E [17:16:44]process_action close_receipt done [17:16:44]requested_data is exist [17:16:44]produce_requested_data [17:16:44]requested_item fm.sn is exist - process it [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 11 00 00 [17:16:44]Write to MH i2c: E2 08 00 56 24 80 11 00 00 00 00 00 00 F4 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 17 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 17 00 56 24 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: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 [17:16:44]wFMCommunicate OK [17:16:44]requested_item fd.num is exist - process it [17:16:44]SAM_PROTO_GetFieldsCounters [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 13 00 00 [17:16:44]Write to MH i2c: E2 08 00 57 24 80 13 00 00 00 00 00 00 F7 [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 62 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 62 00 57 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 47 14 01 00 0E 04 04 00 C4 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 0B [17:16: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 47 14 01 00 0E 04 04 00 C4 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 [17:16:45]wFMCommunicate OK [17:16:45]SAM_PROTO_GetFieldsCounters done [17:16:45]requested_item shift.num is exist - process it [17:16:45]requested_item shift.opened is exist - process it [17:16:45]req_shift_opened [17:16:45]FM_GetShiftState [17:16:45]SAM_PROTO_GetShiftState [17:16:45]wFMCommunicate request_size=4 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 13 01 00 [17:16:45]Write to MH i2c: E2 08 00 58 24 80 13 01 00 00 00 00 00 F9 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 0E 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 0E 00 58 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 86 [17:16:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:16:45]wFMCommunicate OK [17:16:45]SAM_PROTO_GetShiftState done [17:16:45]FM_GetShiftState done [17:16:45]req_shift_opened done [17:16:45]requested_item shift.open_date is exist - process it [17:16:45]req_shift_open_date [17:16:45]req_shift_open_date done [17:16:45]produce_requested_data done [17:16:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70727,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:16:45]process_action_free close_receipt [17:16:45]json_value_free [17:16:45]json_value_free done [17:16:45]process_json_proto returns [17:16:45]Send response to host [17:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70727,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:16:45]free response buf [17:16:45]execute_script done [17:16:45]execute_script returns [17:16:45]free content buf [17:16:45]Sock 7.Close socket [17:16:45]Sock 7.Thread stoped [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:34]accept exits with 9 [17:17:34]New connection [17:17:34]New thread 3067034980 created [17:17:34]Thread 3066891620 joined [17:17:34]Waiting for new connection... [17:17:34] Sock 9.Parse request [17:17:34]Sock 9.Check first char [17:17:34]Sock 9.First char is OK [17:17:34]request: POST /json_proto HTTP/1.0 [17:17:34]Method: POST [17:17:34]URL: /json_proto [17:17:34]Method is POST - this is cgi request [17:17:34]url: /json_proto [17:17:34]query_string will be loaded in cgi processing [17:17:34]execute_cgi json_proto POST (null) [17:17:34]execute_cgi path=json_proto method=POST [17:17:34]POST find Content-Length [17:17:34]Host: 172.17.50.3:8080 [17:17:34]Content-Length: 675 [17:17:34]Content-Type: application/json [17:17:34] [17:17:34]POST finish read [17:17:34]Found Content-Length = 675 [17:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886509", "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" : 8.800, "sum" : 670.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:34]execute_script... [17:17: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)2886509", "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" : 8.800, "sum" : 670.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:34]POST & json_proto [17:17:34]process_json_proto [17:17:34]json parsed OK: [17:17:34]protocol is kg_v1.0 [17:17:34]action value=close_receipt [17:17:34]process_action close_receipt [17:17:34]cmd_close_receipt [17:17:34]MH_GetDate [17:17:34]Write to MH i2c: F0 00 00 59 24 6C [17:17:34]Write i2c OK [17:17:34]MH_I2C_Read... [17:17:34]Read from MH i2c: F0 [17:17:34]MH_I2C_Read... [17:17:34]Read from MH i2c: F0 09 00 [17:17:34]MH_I2C_Read... [17:17:34]Read from MH i2c: F0 09 00 59 24 00 B0 2F 19 67 6B 98 1E 66 5B [17:17:34]GetLastDocTimeStamp 1729703803 [17:17:34]current date 1729703856 [17:17:34]FM_GetShiftState [17:17:34]SAM_PROTO_GetShiftState [17:17:34]wFMCommunicate request_size=4 [17:17:34]MH_SAM_APDU [17:17:34]CAPDU: 80 13 01 00 [17:17:34]Write to MH i2c: E2 08 00 5A 24 80 13 01 00 00 00 00 00 FB [17:17:34]Write i2c OK [17:17:34]MH_I2C_Read... [17:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:34]Read from MH i2c: E2 [17:17:34]MH_I2C_Read... [17:17:34]Read from MH i2c: E2 0E 00 [17:17:34]MH_I2C_Read... [17:17:34]Read from MH i2c: E2 0E 00 5A 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 88 [17:17:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:34]wFMCommunicate OK [17:17:34]SAM_PROTO_GetShiftState done [17:17:34]FM_GetShiftState done [17:17:34]opened in 1729642435 [17:17:34]opened+sec_in_day 1729728835 [17:17:34]quantity*price = 67056 [17:17:34]sum+1 = 67057 [17:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.21 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 244 23.10.2024 17:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70728 ФПД: 262178947804422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171736&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70728&fm=262178947804422&tin=02508201610067®Number=0000000000156251&sum=67000 [17:17:35]StoreToDocumentArchive [17:17:35]shift 196 fd 70728 [17:17:35]save to /storage/0196/doc_00070728 [17:17:35]save last doc name /storage/0196/doc_00070728 to /storage/kkm_last_doc_name [17:17:35]save OK [17:17:35]Clear old archive folders... [17:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:17:35]tlvbuf is 001FB200 [17:17:35]SAM_PROTO_ClearQueue [17:17:35]wFMCommunicate request_size=4 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 09 00 00 [17:17:35]Write to MH i2c: E2 08 00 67 24 80 09 00 00 00 00 00 00 FD [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 67 24 00 90 00 FF [17:17:35]RAPDU: 90 00 [17:17:35]wFMCommunicate OK [17:17:35]SAM_PROTO_ClearQueue done [17:17:35]KKMCreateOFDPacket [17:17:35]OFDProtocolAddRootSTLVToBuf [17:17:35]FM_MakeSignedData [17:17:35]FM_MakeSignedData [17:17:35]SAM_PROTO_SignData [17:17:35]wFMCommunicate request_size=4 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 0D 01 02 [17:17:35]Write to MH i2c: E2 08 00 68 24 80 0D 01 02 00 00 00 00 05 [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [17:17:35]RAPDU: 90 00 [17:17:35]wFMCommunicate OK [17:17:35]wFMCommunicate request_size=255 [17:17:35]MH_SAM_APDU [17:17: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 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 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 B0 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EE 73 4B 0D [17:17:35]Write to MH i2c: E2 02 01 69 24 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 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 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 B0 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EE 73 4B 0D 00 00 9D [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [17:17:35]RAPDU: 90 00 [17:17:35]wFMCommunicate OK [17:17:35]wFMCommunicate request_size=7 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 0D 02 02 02 2D 06 [17:17:35]Write to MH i2c: E2 0A 00 6A 24 80 0D 02 02 02 00 2D 06 00 00 3F [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [17:17:35]RAPDU: 90 00 [17:17:35]wFMCommunicate OK [17:17:35]wFMCommunicate request_size=4 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 0D 03 02 [17:17:35]Write to MH i2c: E2 08 00 6B 24 80 0D 03 02 00 00 00 00 0A [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 0B 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 0B 00 6B 24 00 78 BB 5D 49 0F 99 45 BC 90 00 8D [17:17:35]RAPDU: 78 BB 5D 49 0F 99 45 BC 90 00 [17:17:35]wFMCommunicate OK [17:17:35]SAM_PROTO_SignData done [17:17:35]FM_MakeSignedData done [17:17:35]CreateOFDProtocolMessage [17:17:35]wFMCommunicate request_size=4 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 11 00 00 [17:17:35]Write to MH i2c: E2 08 00 6C 24 80 11 00 00 00 00 00 00 0A [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 17 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 17 00 6C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [17:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:17:35]wFMCommunicate OK [17:17:35]CreateOFDProtocolMessage done [17:17:35]OFDSenderStorePacket 70728 [17:17:35]StoreOFDPacket docnum=70728 [17:17: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 D9 96 04 01 C8 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 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 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 B0 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EE 73 4B 0D 2D 06 78 BB 5D 49 0F 99 45 BC [17:17:35]CheckFolder [17:17:35]dirname=/storage/ofd_packets [17:17:35]CheckFolder done [17:17:35]ProducePacketName [17:17:35]name=ofd_packets/00070728 [17:17:35]NVStorageSaveData ofd_packets/00070728 [17:17:35]File name is /storage/ofd_packets/00070728 [17:17:35]Write 298 bytes [17:17:35]NVStorageSaveData done [17:17:35]OFDSenderStorePacket done [17:17:35]KKMCreateOFDPacket done [17:17:35]NVStorageSaveData kkm_last_timestamp [17:17:35]File name is /storage/kkm_last_timestamp [17:17:35]Write 4 bytes [17:17:35]NVStorageSaveData done [17:17:35]ExternCall_PrintAddStr [17:17:35]wPrintStart [17:17:35]Write to MH i2c: 01 00 00 6D 24 91 [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: 01 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: 01 07 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: 01 07 00 6D 24 00 00 00 00 00 FF 0F A6 [17:17:35]RasterBufferAndPrint [17:17:35]line Счет N : (1)2886509 [17:17:35]line ИНН: 02508201610067 [17:17:35]line Контрольно-Кассовый Чек [17:17:35]line ПРОДАЖА [17:17:35]line ТРК (МРК, ГНК) : 51 [17:17:35]line Товар: 2710194210 [17:17:35]line ДТ-К-5 [17:17:35]line 8.800 * 76.20 [17:17:35]line = 670.56 [17:17:35]line НДС 12% НСП 1% [17:17:35]line > о реализуемом товаре [17:17:35]line ОКРУГЛЕНИЕ: -0.56 [17:17:35]line ИТОГО: 670.00 [17:17:35]line Внесено: 670.00 [17:17:35]line СДАЧА: 0.00 [17:17:35]line НСП 1% : 5.93 [17:17:35]line НДС 12% : 71.21 [17:17:35]line Наличными: 670.00 [17:17:35]line Безнал.: 0.00 [17:17:35]line Место: АЗС № 85 "Партнер Нефть" [17:17:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:17:35]line СНО: Общий режим [17:17:36]line Чек 244 23.10.2024 17:17 [17:17:36]line Смена: 196 ФФД: 1.0 [17:17:36]line ЗНМ: 0300000167 [17:17:36]line РНМ: 0000000000156251 [17:17:36]line Версия ККМ: v1.0 [17:17:36]line ФМ: 0000000000963346 [17:17:36]line ФД: 70728 [17:17:36]line ФПД: 262178947804422 [17:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171736&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70728&fm=262178947804422&tin=02508201610067®Number=0000000000156251&sum=67000 [17:17:36]OFD Sender: Processing packet 70728 [packets to send 18, broken 17] [17:17:36]ProducePacketName [17:17:36]name=ofd_packets/00070728 [17:17:36]OFD Sender: To server: pG, [17:17:36]CommunicateWithHost lk.salyk.kg:30040 [17:17:36]ConnectInit lk.salyk.kg [17:17:36]written 0, free lines is 4095 [17:17:36]Connected sock=10 [17:17: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 D9 96 04 01 C8 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 60 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 1B 00 00 00 00 07 04 06 00 B8 05 01 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 B0 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EE 73 4B 0D 2D 06 78 BB 5D 49 0F 99 45 BC [17:17: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 5B 27 47 00 E9 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 4D D9 18 67 B6 04 01 00 00 FC FE 4C FC 4B E5 CC 3C [17:17:36]CommunicateWithHost err = 0 [17:17:36]CheckOFDResponse [17:17:36]1017 (14) - 77093643461234 [17:17:36]1041 (16) - 0000000000963346 [17:17:36]1040 (4) - 70728 [17:17:36]1012 (4) - 23.10.2024 11:09 [17:17:36]1206 (1) - 0 [17:17:36]OFD Sender: Remove packet 70728 [17:17:36]ProducePacketName [17:17:36]name=ofd_packets/00070728 [17:17:36]NVStorageDeleteData [17:17:36]Write to MH i2c: 01 00 00 98 24 BC [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: 01 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: 01 07 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: 01 07 00 98 24 00 00 00 00 00 F1 0C C0 [17:17:36]RasterBufferAndPrint [17:17:36]line [17:17:36]line [17:17:36]line [17:17:36]line [17:17:36]line [17:17:36]written 0, free lines is 3319 [17:17:36]MH_Cut [17:17:36]Write to MH i2c: D1 01 00 9F 24 01 95 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: D1 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: D1 01 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: D1 01 00 9F 24 00 94 [17:17:36]Write to MH i2c: 01 00 00 A0 24 C4 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:37]OFD Sender: No OFD packet to send [17:17:37]*** Cut start [17:17:37]*** Partial cut [17:17:37]*** CUTSNS_PIN = 1 [17:17:37]*** CUTSNS_PIN = 0 [17:17:37]*** Brake cut motor [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]*** Stop cut motor [17:17:38]*** Cut end [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 A0 24 00 00 00 00 00 FF 0F D9 [17:17:38]process_action close_receipt done [17:17:38]requested_data is exist [17:17:38]produce_requested_data [17:17:38]requested_item fm.sn is exist - process it [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 11 00 00 [17:17:38]Write to MH i2c: E2 08 00 A1 24 80 11 00 00 00 00 00 00 3F [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 A1 24 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:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:17:38]wFMCommunicate OK [17:17:38]requested_item fd.num is exist - process it [17:17:38]SAM_PROTO_GetFieldsCounters [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 13 00 00 [17:17:38]Write to MH i2c: E2 08 00 A2 24 80 13 00 00 00 00 00 00 42 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 62 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 62 00 A2 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 48 14 01 00 0E 04 04 00 C4 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 5A [17:17: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 48 14 01 00 0E 04 04 00 C4 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 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_GetFieldsCounters done [17:17:38]requested_item shift.num is exist - process it [17:17:38]requested_item shift.opened is exist - process it [17:17:38]req_shift_opened [17:17:38]FM_GetShiftState [17:17:38]SAM_PROTO_GetShiftState [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 13 01 00 [17:17:38]Write to MH i2c: E2 08 00 A3 24 80 13 01 00 00 00 00 00 44 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0E 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0E 00 A3 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D1 [17:17:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_GetShiftState done [17:17:38]FM_GetShiftState done [17:17:38]req_shift_opened done [17:17:38]requested_item shift.open_date is exist - process it [17:17:38]req_shift_open_date [17:17:38]req_shift_open_date done [17:17:38]produce_requested_data done [17:17:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70728,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:17:38]process_action_free close_receipt [17:17:38]json_value_free [17:17:38]json_value_free done [17:17:38]process_json_proto returns [17:17:38]Send response to host [17:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70728,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:17:38]free response buf [17:17:38]execute_script done [17:17:38]execute_script returns [17:17:38]free content buf [17:17:38]Sock 9.Close socket [17:17:38]Sock 9.Thread stoped [17:17:38]accept exits with 7 [17:17:38]New connection [17:17:38]New thread 3066891620 created [17:17:38]Thread 3067034980 joined [17:17:38]Waiting for new connection... [17:17:38] Sock 7.Parse request [17:17:38]Sock 7.Check first char [17:17:38]Sock 7.First char is OK [17:17:38]request: POST /json_proto HTTP/1.0 [17:17:38]Method: POST [17:17:38]URL: /json_proto [17:17:38]Method is POST - this is cgi request [17:17:38]url: /json_proto [17:17:38]query_string will be loaded in cgi processing [17:17:38]execute_cgi json_proto POST (null) [17:17:38]execute_cgi path=json_proto method=POST [17:17:38]POST find Content-Length [17:17:38]Host: 172.17.50.3:8080 [17:17:38]Content-Length: 678 [17:17:38]Content-Type: application/json [17:17:38] [17:17:38]POST finish read [17:17:38]Found Content-Length = 678 [17:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886510", "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:17:38]execute_script... [17:17: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)2886510", "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:17:38]POST & json_proto [17:17:38]process_json_proto [17:17:38]json parsed OK: [17:17:38]protocol is kg_v1.0 [17:17:38]action value=close_receipt [17:17:38]process_action close_receipt [17:17:38]cmd_close_receipt [17:17:38]MH_GetDate [17:17:38]Write to MH i2c: F0 00 00 A4 24 B7 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: F0 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: F0 09 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: F0 09 00 A4 24 00 B4 2F 19 67 6B 98 1E 66 AA [17:17:38]GetLastDocTimeStamp 1729703856 [17:17:38]current date 1729703860 [17:17:38]FM_GetShiftState [17:17:38]SAM_PROTO_GetShiftState [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 13 01 00 [17:17:38]Write to MH i2c: E2 08 00 A5 24 80 13 01 00 00 00 00 00 46 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0E 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0E 00 A5 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D3 [17:17:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_GetShiftState done [17:17:38]FM_GetShiftState done [17:17:38]opened in 1729642435 [17:17:38]opened+sec_in_day 1729728835 [17:17:38]quantity*price = 50041 [17:17:38]sum+1 = 50042 [17:17: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 СНО: Общий режим Чек 245 23.10.2024 17:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70729 ФПД: 245493607626871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171740&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70729&fm=245493607626871&tin=02508201610067®Number=0000000000156251&sum=50000 [17:17:40]StoreToDocumentArchive [17:17:40]shift 196 fd 70729 [17:17:40]save to /storage/0196/doc_00070729 [17:17:40]save last doc name /storage/0196/doc_00070729 to /storage/kkm_last_doc_name [17:17:40]save OK [17:17:40]Clear old archive folders... [17:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:40]tlvbuf is 001BB500 [17:17:40]SAM_PROTO_ClearQueue [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 09 00 00 [17:17:40]Write to MH i2c: E2 08 00 B2 24 80 09 00 00 00 00 00 00 48 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 B2 24 00 90 00 4A [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_ClearQueue done [17:17:40]KKMCreateOFDPacket [17:17:40]OFDProtocolAddRootSTLVToBuf [17:17:40]FM_MakeSignedData [17:17:40]FM_MakeSignedData [17:17:40]SAM_PROTO_SignData [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 01 02 [17:17:40]Write to MH i2c: E2 08 00 B3 24 80 0D 01 02 00 00 00 00 50 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 B3 24 00 90 00 4B [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=255 [17:17:40]MH_SAM_APDU [17: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 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 F5 00 00 00 F4 03 04 00 B4 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF [17:17:40]Write to MH i2c: E2 02 01 B4 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 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 F5 00 00 00 F4 03 04 00 B4 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF 00 00 32 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=10 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 02 02 05 46 6F 46 F8 77 [17:17:40]Write to MH i2c: E2 0D 00 B5 24 80 0D 02 02 05 00 46 6F 46 F8 77 00 00 C7 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 03 02 [17:17:40]Write to MH i2c: E2 08 00 B6 24 80 0D 03 02 00 00 00 00 55 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0B 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0B 00 B6 24 00 42 61 20 2D C5 CE 83 9C 90 00 F8 [17:17:40]RAPDU: 42 61 20 2D C5 CE 83 9C 90 00 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_SignData done [17:17:40]FM_MakeSignedData done [17:17:40]CreateOFDProtocolMessage [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 11 00 00 [17:17:40]Write to MH i2c: E2 08 00 B7 24 80 11 00 00 00 00 00 00 55 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 B7 24 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: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 [17:17:40]wFMCommunicate OK [17:17:40]CreateOFDProtocolMessage done [17:17:40]OFDSenderStorePacket 70729 [17:17:40]StoreOFDPacket docnum=70729 [17: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 A8 30 07 01 85 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F5 00 00 00 F4 03 04 00 B4 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF 46 6F 46 F8 77 42 61 20 2D C5 CE 83 9C [17:17:40]CheckFolder [17:17:40]dirname=/storage/ofd_packets [17:17:40]CheckFolder done [17:17:40]ProducePacketName [17:17:40]name=ofd_packets/00070729 [17:17:40]NVStorageSaveData ofd_packets/00070729 [17:17:40]File name is /storage/ofd_packets/00070729 [17:17:40]Write 301 bytes [17:17:40]NVStorageSaveData done [17:17:40]OFDSenderStorePacket done [17:17:40]KKMCreateOFDPacket done [17:17:40]NVStorageSaveData kkm_last_timestamp [17:17:40]File name is /storage/kkm_last_timestamp [17:17:40]Write 4 bytes [17:17:40]NVStorageSaveData done [17:17:40]ExternCall_PrintAddStr [17:17:40]wPrintStart [17:17:40]Write to MH i2c: 01 00 00 B8 24 DC [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: 01 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: 01 07 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: 01 07 00 B8 24 00 00 00 00 00 FF 0F F1 [17:17:40]RasterBufferAndPrint [17:17:40]line Счет N : (1)2886510 [17:17:40]line ИНН: 02508201610067 [17:17:40]line Контрольно-Кассовый Чек [17:17:40]line ПРОДАЖА [17:17:40]line ТРК (МРК, ГНК) : 42 [17:17:40]line Товар: 2710124130 [17:17:40]line Аи-92-К-5 [17:17:40]line 7.480 * 66.90 [17:17:40]line = 500.41 [17:17:40]line НДС 12% НСП 1% [17:17:40]line > о реализуемом товаре [17:17:41]line ОКРУГЛЕНИЕ: -0.41 [17:17:41]line ИТОГО: 500.00 [17:17:41]line Внесено: 500.00 [17:17:41]line СДАЧА: 0.00 [17:17:41]line НСП 1% : 4.43 [17:17:41]line НДС 12% : 53.14 [17:17:41]line Наличными: 500.00 [17:17:41]line Безнал.: 0.00 [17:17:41]line Место: АЗС № 85 "Партнер Нефть" [17:17:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:17:41]line СНО: Общий режим [17:17:41]line Чек 245 23.10.2024 17:17 [17:17:41]line Смена: 196 ФФД: 1.0 [17:17:41]line ЗНМ: 0300000167 [17:17:41]line РНМ: 0000000000156251 [17:17:41]line Версия ККМ: v1.0 [17:17:41]line ФМ: 0000000000963346 [17:17:41]line ФД: 70729 [17:17:41]line ФПД: 245493607626871 [17:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171740&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70729&fm=245493607626871&tin=02508201610067®Number=0000000000156251&sum=50000 [17:17:41]OFD Sender: Processing packet 70729 [packets to send 18, broken 17] [17:17:41]ProducePacketName [17:17:41]name=ofd_packets/00070729 [17:17:41]OFD Sender: To server: pG, [17:17:41]CommunicateWithHost lk.salyk.kg:30040 [17:17:41]ConnectInit lk.salyk.kg [17:17:41]written 0, free lines is 4095 [17:17:41]Connected sock=10 [17: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 A8 30 07 01 85 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F5 00 00 00 F4 03 04 00 B4 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DF 46 6F 46 F8 77 42 61 20 2D C5 CE 83 9C [17: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 A5 51 47 00 EB 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 49 14 01 00 F4 03 04 00 52 D9 18 67 B6 04 01 00 00 78 31 E5 FF 63 F7 E8 31 [17:17:41]CommunicateWithHost err = 0 [17:17:41]CheckOFDResponse [17:17:41]1017 (14) - 77093643461234 [17:17:41]1041 (16) - 0000000000963346 [17:17:41]1040 (4) - 70729 [17:17:41]1012 (4) - 23.10.2024 11:09 [17:17:41]1206 (1) - 0 [17:17:41]OFD Sender: Remove packet 70729 [17:17:41]ProducePacketName [17:17:41]name=ofd_packets/00070729 [17:17:41]NVStorageDeleteData [17:17:41]Write to MH i2c: 01 00 00 E3 24 07 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 05 0D 20 [17:17:41]RasterBufferAndPrint [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]written 0, free lines is 3345 [17:17:41]MH_Cut [17:17:41]Write to MH i2c: D1 01 00 EA 24 01 E0 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 01 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 01 00 EA 24 00 DF [17:17:41]Write to MH i2c: 01 00 00 EB 24 0F [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]OFD Sender: No OFD packet to send [17:17:42]*** Cut start [17:17:42]*** Partial cut [17:17:42]*** CUTSNS_PIN = 1 [17:17:42]*** CUTSNS_PIN = 0 [17:17:42]*** Brake cut motor [17:17:42]Read from MH i2c: 01 [17:17:42]MH_I2C_Read... [17:17:42]*** Stop cut motor [17:17:42]*** Cut end [17:17:42]Read from MH i2c: 01 07 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: 01 07 00 EB 24 00 00 00 00 00 FF 0F 24 [17:17:42]process_action close_receipt done [17:17:42]requested_data is exist [17:17:42]produce_requested_data [17:17:42]requested_item fm.sn is exist - process it [17:17:42]wFMCommunicate request_size=4 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 11 00 00 [17:17:42]Write to MH i2c: E2 08 00 EC 24 80 11 00 00 00 00 00 00 8A [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:42]Read from MH i2c: E2 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 17 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 17 00 EC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [17: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 [17:17:42]wFMCommunicate OK [17:17:42]requested_item fd.num is exist - process it [17:17:42]SAM_PROTO_GetFieldsCounters [17:17:42]wFMCommunicate request_size=4 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 13 00 00 [17:17:42]Write to MH i2c: E2 08 00 ED 24 80 13 00 00 00 00 00 00 8D [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 62 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 62 00 ED 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 49 14 01 00 0E 04 04 00 C4 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 A9 [17: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 49 14 01 00 0E 04 04 00 C4 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 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetFieldsCounters done [17:17:43]requested_item shift.num is exist - process it [17:17:43]requested_item shift.opened is exist - process it [17:17:43]req_shift_opened [17:17:43]FM_GetShiftState [17:17:43]SAM_PROTO_GetShiftState [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 01 00 [17:17:43]Write to MH i2c: E2 08 00 EE 24 80 13 01 00 00 00 00 00 8F [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 EE 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1C [17:17:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetShiftState done [17:17:43]FM_GetShiftState done [17:17:43]req_shift_opened done [17:17:43]requested_item shift.open_date is exist - process it [17:17:43]req_shift_open_date [17:17:43]req_shift_open_date done [17:17:43]produce_requested_data done [17:17:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70729,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:17:43]process_action_free close_receipt [17:17:43]json_value_free [17:17:43]json_value_free done [17:17:43]process_json_proto returns [17:17:43]Send response to host [17:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70729,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:17:43]free response buf [17:17:43]execute_script done [17:17:43]execute_script returns [17:17:43]free content buf [17:17:43]Sock 7.Close socket [17:17:43]Sock 7.Thread stoped [17:17:43]accept exits with 9 [17:17:43]New connection [17:17:43]New thread 3067034980 created [17:17:43]Thread 3066891620 joined [17:17:43]Waiting for new connection... [17:17:43] Sock 9.Parse request [17:17:43]Sock 9.Check first char [17:17:43]Sock 9.First char is OK [17:17:43]request: POST /json_proto HTTP/1.0 [17:17:43]Method: POST [17:17:43]URL: /json_proto [17:17:43]Method is POST - this is cgi request [17:17:43]url: /json_proto [17:17:43]query_string will be loaded in cgi processing [17:17:43]execute_cgi json_proto POST (null) [17:17:43]execute_cgi path=json_proto method=POST [17:17:43]POST find Content-Length [17:17:43]Host: 172.17.50.3:8080 [17:17:43]Content-Length: 678 [17:17:43]Content-Type: application/json [17:17:43] [17:17:43]POST finish read [17:17:43]Found Content-Length = 678 [17:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886511", "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:17:43]execute_script... [17:17: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)2886511", "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:17:43]POST & json_proto [17:17:43]process_json_proto [17:17:43]json parsed OK: [17:17:43]protocol is kg_v1.0 [17:17:43]action value=close_receipt [17:17:43]process_action close_receipt [17:17:43]cmd_close_receipt [17:17:43]MH_GetDate [17:17:43]Write to MH i2c: F0 00 00 EF 24 02 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 09 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 09 00 EF 24 00 B9 2F 19 67 6B 98 1E 66 FA [17:17:43]GetLastDocTimeStamp 1729703860 [17:17:43]current date 1729703865 [17:17:43]FM_GetShiftState [17:17:43]SAM_PROTO_GetShiftState [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 01 00 [17:17:43]Write to MH i2c: E2 08 00 F0 24 80 13 01 00 00 00 00 00 91 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 F0 24 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1E [17:17:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetShiftState done [17:17:43]FM_GetShiftState done [17:17:43]opened in 1729642435 [17:17:43]opened+sec_in_day 1729728835 [17:17:43]quantity*price = 50041 [17:17:43]sum+1 = 50042 [17:17:43]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 СНО: Общий режим Чек 246 23.10.2024 17:17 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70730 ФПД: 27765237870738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70730&fm=27765237870738&tin=02508201610067®Number=0000000000156251&sum=50000 [17:17:44]StoreToDocumentArchive [17:17:44]shift 196 fd 70730 [17:17:44]save to /storage/0196/doc_00070730 [17:17:44]save last doc name /storage/0196/doc_00070730 to /storage/kkm_last_doc_name [17:17:44]save OK [17:17:44]Clear old archive folders... [17:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:44]tlvbuf is 002325A0 [17:17:44]SAM_PROTO_ClearQueue [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 09 00 00 [17:17:44]Write to MH i2c: E2 08 00 FD 24 80 09 00 00 00 00 00 00 93 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_ClearQueue done [17:17:44]KKMCreateOFDPacket [17:17:44]OFDProtocolAddRootSTLVToBuf [17:17:44]FM_MakeSignedData [17:17:44]FM_MakeSignedData [17:17:44]SAM_PROTO_SignData [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 01 02 [17:17:44]Write to MH i2c: E2 08 00 FE 24 80 0D 01 02 00 00 00 00 9B [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=255 [17:17:44]MH_SAM_APDU [17:17: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 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 F6 00 00 00 F4 03 04 00 B9 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 [17:17:44]Write to MH i2c: E2 02 01 FF 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 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 F6 00 00 00 F4 03 04 00 B9 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 00 00 BE [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [17:17:45]RAPDU: 90 00 [17:17:45]wFMCommunicate OK [17:17:45]wFMCommunicate request_size=10 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 0D 02 02 05 40 99 23 F0 92 [17:17:45]Write to MH i2c: E2 0D 00 00 25 80 0D 02 02 05 00 40 99 23 F0 92 00 00 27 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 00 25 00 90 00 99 [17:17:45]RAPDU: 90 00 [17:17:45]wFMCommunicate OK [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 0D 03 02 [17:17:45]Write to MH i2c: E2 08 00 01 25 80 0D 03 02 00 00 00 00 A1 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0B 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0B 00 01 25 00 85 E4 BC 5C C7 82 AE A8 90 00 C2 [17:17:45]RAPDU: 85 E4 BC 5C C7 82 AE A8 90 00 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_SignData done [17:17:45]FM_MakeSignedData done [17:17:45]CreateOFDProtocolMessage [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 11 00 00 [17:17:45]Write to MH i2c: E2 08 00 02 25 80 11 00 00 00 00 00 00 A1 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 02 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [17:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:17:45]wFMCommunicate OK [17:17:45]CreateOFDProtocolMessage done [17:17:45]OFDSenderStorePacket 70730 [17:17:45]StoreOFDPacket docnum=70730 [17:17: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 48 1C 07 01 5B FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 00 00 00 F4 03 04 00 B9 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 40 99 23 F0 92 85 E4 BC 5C C7 82 AE A8 [17:17:45]CheckFolder [17:17:45]dirname=/storage/ofd_packets [17:17:45]CheckFolder done [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00070730 [17:17:45]NVStorageSaveData ofd_packets/00070730 [17:17:45]File name is /storage/ofd_packets/00070730 [17:17:45]Write 301 bytes [17:17:45]NVStorageSaveData done [17:17:45]OFDSenderStorePacket done [17:17:45]KKMCreateOFDPacket done [17:17:45]NVStorageSaveData kkm_last_timestamp [17:17:45]File name is /storage/kkm_last_timestamp [17:17:45]Write 4 bytes [17:17:45]NVStorageSaveData done [17:17:45]ExternCall_PrintAddStr [17:17:45]wPrintStart [17:17:45]Write to MH i2c: 01 00 00 03 25 28 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 03 25 00 00 00 00 00 FF 0F 3D [17:17:45]RasterBufferAndPrint [17:17:45]line Счет N : (1)2886511 [17:17:45]line ИНН: 02508201610067 [17:17:45]line Контрольно-Кассовый Чек [17:17:45]line ПРОДАЖА [17:17:45]line ТРК (МРК, ГНК) : 12 [17:17:45]line Товар: 2710124130 [17:17:45]line Аи-92-К-5 [17:17:45]line 7.480 * 66.90 [17:17:45]line = 500.41 [17:17:45]line НДС 12% НСП 1% [17:17:45]line > о реализуемом товаре [17:17:45]line ОКРУГЛЕНИЕ: -0.41 [17:17:45]line ИТОГО: 500.00 [17:17:45]line Внесено: 500.00 [17:17:45]line СДАЧА: 0.00 [17:17:45]line НСП 1% : 4.43 [17:17:45]line НДС 12% : 53.14 [17:17:45]line Наличными: 500.00 [17:17:45]line Безнал.: 0.00 [17:17:45]line Место: АЗС № 85 "Партнер Нефть" [17:17:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:17:45]line СНО: Общий режим [17:17:45]line Чек 246 23.10.2024 17:17 [17:17:45]line Смена: 196 ФФД: 1.0 [17:17:45]line ЗНМ: 0300000167 [17:17:45]line РНМ: 0000000000156251 [17:17:45]line Версия ККМ: v1.0 [17:17:45]line ФМ: 0000000000963346 [17:17:45]line ФД: 70730 [17:17:45]line ФПД: 27765237870738 [17:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70730&fm=27765237870738&tin=02508201610067®Number=0000000000156251&sum=50000 [17:17:45]written 0, free lines is 4095 [17:17:45]OFD Sender: Processing packet 70730 [packets to send 18, broken 17] [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00070730 [17:17:45]OFD Sender: To server: pG, [17:17:45]CommunicateWithHost lk.salyk.kg:30040 [17:17:45]ConnectInit lk.salyk.kg [17:17:45]Connected sock=11 [17:17: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 48 1C 07 01 5B FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 00 00 00 F4 03 04 00 B9 2F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 40 99 23 F0 92 85 E4 BC 5C C7 82 AE A8 [17:17: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 2B 7F 47 00 26 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 4A 14 01 00 F4 03 04 00 57 D9 18 67 B6 04 01 00 00 A9 89 48 A5 E4 78 D6 50 [17:17:46]CommunicateWithHost err = 0 [17:17:46]CheckOFDResponse [17:17:46]1017 (14) - 77093643461234 [17:17:46]1041 (16) - 0000000000963346 [17:17:46]1040 (4) - 70730 [17:17:46]1012 (4) - 23.10.2024 11:09 [17:17:46]1206 (1) - 0 [17:17:46]OFD Sender: Remove packet 70730 [17:17:46]ProducePacketName [17:17:46]name=ofd_packets/00070730 [17:17:46]NVStorageDeleteData [17:17:46]Write to MH i2c: 01 00 00 2E 25 53 [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 07 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FB 0C 61 [17:17:46]RasterBufferAndPrint [17:17:46]line [17:17:46]line [17:17:46]line [17:17:46]line [17:17:46]line [17:17:46]written 0, free lines is 3341 [17:17:46]MH_Cut [17:17:46]Write to MH i2c: D1 01 00 35 25 01 2C [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: D1 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: D1 01 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: D1 01 00 35 25 00 2B [17:17:46]Write to MH i2c: 01 00 00 36 25 5B [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]OFD Sender: No OFD packet to send [17:17:46]*** Cut start [17:17:46]*** Partial cut [17:17:46]*** CUTSNS_PIN = 1 [17:17:46]*** CUTSNS_PIN = 0 [17:17:47]*** Brake cut motor [17:17:47]Read from MH i2c: 01 [17:17:47]MH_I2C_Read... [17:17:47]*** Stop cut motor [17:17:47]*** Cut end [17:17:47]Read from MH i2c: 01 07 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: 01 07 00 36 25 00 00 00 00 00 FF 0F 70 [17:17:47]process_action close_receipt done [17:17:47]requested_data is exist [17:17:47]produce_requested_data [17:17:47]requested_item fm.sn is exist - process it [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 11 00 00 [17:17:47]Write to MH i2c: E2 08 00 37 25 80 11 00 00 00 00 00 00 D6 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 17 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 17 00 37 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [17:17: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:17:47]wFMCommunicate OK [17:17:47]requested_item fd.num is exist - process it [17:17:47]SAM_PROTO_GetFieldsCounters [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 00 00 [17:17:47]Write to MH i2c: E2 08 00 38 25 80 13 00 00 00 00 00 00 D9 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 62 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 62 00 38 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 4A 14 01 00 0E 04 04 00 C4 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 F9 [17:17: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 4A 14 01 00 0E 04 04 00 C4 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 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetFieldsCounters done [17:17:47]requested_item shift.num is exist - process it [17:17:47]requested_item shift.opened is exist - process it [17:17:47]req_shift_opened [17:17:47]FM_GetShiftState [17:17:47]SAM_PROTO_GetShiftState [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 01 00 [17:17:47]Write to MH i2c: E2 08 00 39 25 80 13 01 00 00 00 00 00 DB [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 39 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 68 [17:17:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetShiftState done [17:17:47]FM_GetShiftState done [17:17:47]req_shift_opened done [17:17:47]requested_item shift.open_date is exist - process it [17:17:47]req_shift_open_date [17:17:47]req_shift_open_date done [17:17:47]produce_requested_data done [17:17:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70730,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:17:47]process_action_free close_receipt [17:17:47]json_value_free [17:17:47]json_value_free done [17:17:47]process_json_proto returns [17:17:47]Send response to host [17:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70730,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:17:47]free response buf [17:17:47]execute_script done [17:17:47]execute_script returns [17:17:47]free content buf [17:17:47]Sock 9.Close socket [17:17:47]Sock 9.Thread stoped [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:33]accept exits with 7 [17:22:33]New connection [17:22:33]New thread 3066891620 created [17:22:33]Thread 3067034980 joined [17:22:33]Waiting for new connection... [17:22:33] Sock 7.Parse request [17:22:33]Sock 7.Check first char [17:22:33]Sock 7.First char is OK [17:22:33]request: POST /json_proto HTTP/1.0 [17:22:33]Method: POST [17:22:33]URL: /json_proto [17:22:33]Method is POST - this is cgi request [17:22:33]url: /json_proto [17:22:33]query_string will be loaded in cgi processing [17:22:33]execute_cgi json_proto POST (null) [17:22:33]execute_cgi path=json_proto method=POST [17:22:33]POST find Content-Length [17:22:33]Host: 172.17.50.3:8080 [17:22:33]Content-Length: 678 [17:22:33]Content-Type: application/json [17:22:33] [17:22:33]POST finish read [17:22:33]Found Content-Length = 678 [17:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886512", "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.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" ] } } [17:22:33]execute_script... [17:22: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)2886512", "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.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" ] } } [17:22:33]POST & json_proto [17:22:33]process_json_proto [17:22:33]json parsed OK: [17:22:33]protocol is kg_v1.0 [17:22:33]action value=close_receipt [17:22:33]process_action close_receipt [17:22:33]cmd_close_receipt [17:22:33]MH_GetDate [17:22:33]Write to MH i2c: F0 00 00 3A 25 4E [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: F0 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: F0 09 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: F0 09 00 3A 25 00 DB 30 19 67 6B 98 1E 66 69 [17:22:33]GetLastDocTimeStamp 1729703865 [17:22:33]current date 1729704155 [17:22:33]FM_GetShiftState [17:22:33]SAM_PROTO_GetShiftState [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 13 01 00 [17:22:33]Write to MH i2c: E2 08 00 3B 25 80 13 01 00 00 00 00 00 DD [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0E 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0E 00 3B 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6A [17:22:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:22:33]wFMCommunicate OK [17:22:33]SAM_PROTO_GetShiftState done [17:22:33]FM_GetShiftState done [17:22:33]opened in 1729642435 [17:22:33]opened+sec_in_day 1729728835 [17:22:33]quantity*price = 25020 [17:22:33]sum+1 = 25022 [17:22:33]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 СНО: Общий режим Чек 247 23.10.2024 17:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70731 ФПД: 146595362147565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70731&fm=146595362147565&tin=02508201610067®Number=0000000000156251&sum=25000 [17:22:34]StoreToDocumentArchive [17:22:34]shift 196 fd 70731 [17:22:34]save to /storage/0196/doc_00070731 [17:22:34]save last doc name /storage/0196/doc_00070731 to /storage/kkm_last_doc_name [17:22:34]save OK [17:22:34]Clear old archive folders... [17:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:34]tlvbuf is B6F6C410 [17:22:34]SAM_PROTO_ClearQueue [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 09 00 00 [17:22:34]Write to MH i2c: E2 08 00 48 25 80 09 00 00 00 00 00 00 DF [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [17:22:34]RAPDU: 90 00 [17:22:34]wFMCommunicate OK [17:22:34]SAM_PROTO_ClearQueue done [17:22:34]KKMCreateOFDPacket [17:22:34]OFDProtocolAddRootSTLVToBuf [17:22:34]FM_MakeSignedData [17:22:34]FM_MakeSignedData [17:22:34]SAM_PROTO_SignData [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 0D 01 02 [17:22:34]Write to MH i2c: E2 08 00 49 25 80 0D 01 02 00 00 00 00 E7 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 49 25 00 90 00 E2 [17:22:34]RAPDU: 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=255 [17:22:34]MH_SAM_APDU [17:22: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 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 F7 00 00 00 F4 03 04 00 DB 30 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 [17:22:34]Write to MH i2c: E2 02 01 4A 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 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 F7 00 00 00 F4 03 04 00 DB 30 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 00 00 74 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 4A 25 00 90 00 E3 [17:22:34]RAPDU: 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=10 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 0D 02 02 05 53 E4 7C 8C ED [17:22:34]Write to MH i2c: E2 0D 00 4B 25 80 0D 02 02 05 00 53 E4 7C 8C ED 00 00 20 [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 03 00 4B 25 00 90 00 E4 [17:22:34]RAPDU: 90 00 [17:22:34]wFMCommunicate OK [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 0D 03 02 [17:22:34]Write to MH i2c: E2 08 00 4C 25 80 0D 03 02 00 00 00 00 EC [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:34]Read from MH i2c: E2 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 0B 00 [17:22:34]MH_I2C_Read... [17:22:34]Read from MH i2c: E2 0B 00 4C 25 00 31 3F 6F 98 4F 68 44 0B 90 00 6A [17:22:34]RAPDU: 31 3F 6F 98 4F 68 44 0B 90 00 [17:22:34]wFMCommunicate OK [17:22:34]SAM_PROTO_SignData done [17:22:34]FM_MakeSignedData done [17:22:34]CreateOFDProtocolMessage [17:22:34]wFMCommunicate request_size=4 [17:22:34]MH_SAM_APDU [17:22:34]CAPDU: 80 11 00 00 [17:22:34]Write to MH i2c: E2 08 00 4D 25 80 11 00 00 00 00 00 00 EC [17:22:34]Write i2c OK [17:22:34]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 17 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 17 00 4D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [17:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:22:35]wFMCommunicate OK [17:22:35]CreateOFDProtocolMessage done [17:22:35]OFDSenderStorePacket 70731 [17:22:35]StoreOFDPacket docnum=70731 [17:22: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 DB F7 07 01 EC 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 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 F7 00 00 00 F4 03 04 00 DB 30 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 53 E4 7C 8C ED 31 3F 6F 98 4F 68 44 0B [17:22:35]CheckFolder [17:22:35]dirname=/storage/ofd_packets [17:22:35]CheckFolder done [17:22:35]ProducePacketName [17:22:35]name=ofd_packets/00070731 [17:22:35]NVStorageSaveData ofd_packets/00070731 [17:22:35]File name is /storage/ofd_packets/00070731 [17:22:35]Write 301 bytes [17:22:35]NVStorageSaveData done [17:22:35]OFDSenderStorePacket done [17:22:35]KKMCreateOFDPacket done [17:22:35]NVStorageSaveData kkm_last_timestamp [17:22:35]File name is /storage/kkm_last_timestamp [17:22:35]Write 4 bytes [17:22:35]NVStorageSaveData done [17:22:35]ExternCall_PrintAddStr [17:22:35]wPrintStart [17:22:35]Write to MH i2c: 01 00 00 4E 25 73 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 07 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 07 00 4E 25 00 00 00 00 00 FF 0F 88 [17:22:35]RasterBufferAndPrint [17:22:35]line Счет N : (1)2886512 [17:22:35]line ИНН: 02508201610067 [17:22:35]line Контрольно-Кассовый Чек [17:22:35]line ПРОДАЖА [17:22:35]line ТРК (МРК, ГНК) : 42 [17:22:35]line Товар: 2710124130 [17:22:35]line Аи-92-К-5 [17:22:35]line 3.740 * 66.90 [17:22:35]line = 250.21 [17:22:35]line НДС 12% НСП 1% [17:22:35]line > о реализуемом товаре [17:22:35]line ОКРУГЛЕНИЕ: -0.21 [17:22:35]line ИТОГО: 250.00 [17:22:35]line Внесено: 250.00 [17:22:35]line СДАЧА: 0.00 [17:22:35]line НСП 1% : 2.21 [17:22:35]line НДС 12% : 26.57 [17:22:35]line Наличными: 250.00 [17:22:35]line Безнал.: 0.00 [17:22:35]line Место: АЗС № 85 "Партнер Нефть" [17:22:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:22:35]line СНО: Общий режим [17:22:35]line Чек 247 23.10.2024 17:22 [17:22:35]line Смена: 196 ФФД: 1.0 [17:22:35]line ЗНМ: 0300000167 [17:22:35]line РНМ: 0000000000156251 [17:22:35]line Версия ККМ: v1.0 [17:22:35]line ФМ: 0000000000963346 [17:22:35]line ФД: 70731 [17:22:35]line ФПД: 146595362147565 [17:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70731&fm=146595362147565&tin=02508201610067®Number=0000000000156251&sum=25000 [17:22:35]OFD Sender: Processing packet 70731 [packets to send 18, broken 17] [17:22:35]ProducePacketName [17:22:35]name=ofd_packets/00070731 [17:22:35]OFD Sender: To server: pG, [17:22:35]CommunicateWithHost lk.salyk.kg:30040 [17:22:35]ConnectInit lk.salyk.kg [17:22:35]written 0, free lines is 4095 [17:22:35]Connected sock=10 [17:22: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 DB F7 07 01 EC 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 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 F7 00 00 00 F4 03 04 00 DB 30 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 53 E4 7C 8C ED 31 3F 6F 98 4F 68 44 0B [17:22: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 54 FC 47 00 AE 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 4B 14 01 00 F4 03 04 00 78 DA 18 67 B6 04 01 00 00 1A 2E BB E8 D8 91 9E 6D [17:22:35]CommunicateWithHost err = 0 [17:22:35]CheckOFDResponse [17:22:35]1017 (14) - 77093643461234 [17:22:35]1041 (16) - 0000000000963346 [17:22:35]1040 (4) - 70731 [17:22:35]1012 (4) - 23.10.2024 11:14 [17:22:35]1206 (1) - 0 [17:22:35]OFD Sender: Remove packet 70731 [17:22:35]ProducePacketName [17:22:35]name=ofd_packets/00070731 [17:22:35]NVStorageDeleteData [17:22:35]Write to MH i2c: 01 00 00 79 25 9E [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 07 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 F0 0C A1 [17:22:35]RasterBufferAndPrint [17:22:35]line [17:22:35]line [17:22:35]line [17:22:35]line [17:22:35]line [17:22:35]written 0, free lines is 3318 [17:22:35]MH_Cut [17:22:35]Write to MH i2c: D1 01 00 80 25 01 77 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: D1 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: D1 01 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: D1 01 00 80 25 00 76 [17:22:35]Write to MH i2c: 01 00 00 81 25 A6 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:36]OFD Sender: No OFD packet to send [17:22:36]*** Cut start [17:22:36]*** Partial cut [17:22:36]*** CUTSNS_PIN = 1 [17:22:36]*** CUTSNS_PIN = 0 [17:22:36]*** Brake cut motor [17:22:37]Read from MH i2c: 01 [17:22:37]MH_I2C_Read... [17:22:37]*** Stop cut motor [17:22:37]*** Cut end [17:22:37]Read from MH i2c: 01 07 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: 01 07 00 81 25 00 00 00 00 00 FF 0F BB [17:22:37]process_action close_receipt done [17:22:37]requested_data is exist [17:22:37]produce_requested_data [17:22:37]requested_item fm.sn is exist - process it [17:22:37]wFMCommunicate request_size=4 [17:22:37]MH_SAM_APDU [17:22:37]CAPDU: 80 11 00 00 [17:22:37]Write to MH i2c: E2 08 00 82 25 80 11 00 00 00 00 00 00 21 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:37]Read from MH i2c: E2 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 17 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 17 00 82 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [17:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:22:37]wFMCommunicate OK [17:22:37]requested_item fd.num is exist - process it [17:22:37]SAM_PROTO_GetFieldsCounters [17:22:37]wFMCommunicate request_size=4 [17:22:37]MH_SAM_APDU [17:22:37]CAPDU: 80 13 00 00 [17:22:37]Write to MH i2c: E2 08 00 83 25 80 13 00 00 00 00 00 00 24 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:37]Read from MH i2c: E2 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 62 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 62 00 83 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 4B 14 01 00 0E 04 04 00 C4 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 48 [17:22: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 4B 14 01 00 0E 04 04 00 C4 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 [17:22:37]wFMCommunicate OK [17:22:37]SAM_PROTO_GetFieldsCounters done [17:22:37]requested_item shift.num is exist - process it [17:22:37]requested_item shift.opened is exist - process it [17:22:37]req_shift_opened [17:22:37]FM_GetShiftState [17:22:37]SAM_PROTO_GetShiftState [17:22:37]wFMCommunicate request_size=4 [17:22:37]MH_SAM_APDU [17:22:37]CAPDU: 80 13 01 00 [17:22:37]Write to MH i2c: E2 08 00 84 25 80 13 01 00 00 00 00 00 26 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:37]Read from MH i2c: E2 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 84 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B3 [17:22:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:22:37]wFMCommunicate OK [17:22:37]SAM_PROTO_GetShiftState done [17:22:37]FM_GetShiftState done [17:22:37]req_shift_opened done [17:22:37]requested_item shift.open_date is exist - process it [17:22:37]req_shift_open_date [17:22:37]req_shift_open_date done [17:22:37]produce_requested_data done [17:22:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70731,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:22:37]process_action_free close_receipt [17:22:37]json_value_free [17:22:37]json_value_free done [17:22:37]process_json_proto returns [17:22:37]Send response to host [17:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70731,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:22:37]free response buf [17:22:37]execute_script done [17:22:37]execute_script returns [17:22:37]free content buf [17:22:37]Sock 7.Close socket [17:22:37]Sock 7.Thread stoped [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:45]accept exits with 9 [17:26:45]New connection [17:26:45]New thread 3067034980 created [17:26:45]Thread 3066891620 joined [17:26:45]Waiting for new connection... [17:26:45] Sock 9.Parse request [17:26:45]Sock 9.Check first char [17:26:45]Sock 9.First char is OK [17:26:45]request: POST /json_proto HTTP/1.0 [17:26:45]Method: POST [17:26:45]URL: /json_proto [17:26:45]Method is POST - this is cgi request [17:26:45]url: /json_proto [17:26:45]query_string will be loaded in cgi processing [17:26:45]execute_cgi json_proto POST (null) [17:26:45]execute_cgi path=json_proto method=POST [17:26:45]POST find Content-Length [17:26:45]Host: 172.17.50.3:8080 [17:26:45]Content-Length: 793 [17:26:45]Content-Type: application/json [17:26:45] [17:26:45]POST finish read [17:26:45]Found Content-Length = 793 [17:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886513", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:45]execute_script... [17: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)2886513", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:45]POST & json_proto [17:26:45]process_json_proto [17:26:45]json parsed OK: [17:26:45]protocol is kg_v1.0 [17:26:45]action value=close_receipt [17:26:45]process_action close_receipt [17:26:45]cmd_close_receipt [17:26:45]MH_GetDate [17:26:45]Write to MH i2c: F0 00 00 85 25 99 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 09 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 09 00 85 25 00 D8 31 19 67 6B 98 1E 66 B2 [17:26:45]GetLastDocTimeStamp 1729704155 [17:26:45]current date 1729704408 [17:26:45]FM_GetShiftState [17:26:45]SAM_PROTO_GetShiftState [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 13 01 00 [17:26:45]Write to MH i2c: E2 08 00 86 25 80 13 01 00 00 00 00 00 28 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 86 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B5 [17:26:45]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_GetShiftState done [17:26:45]FM_GetShiftState done [17:26:45]opened in 1729642435 [17:26:45]opened+sec_in_day 1729728835 [17:26:45]quantity*price = 0 [17:26:45]sum+1 = 1 [17:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 248 23.10.2024 17:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 65732 ФМ: 0000000000963346 ФД: 70732 ФПД: 228592126776141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70732&fm=228592126776141&tin=02508201610067®Number=0000000000156251&sum=0 [17:26:47]StoreToDocumentArchive [17:26:47]shift 196 fd 70732 [17:26:47]save to /storage/0196/doc_00070732 [17:26:47]save last doc name /storage/0196/doc_00070732 to /storage/kkm_last_doc_name [17:26:47]save OK [17:26:47]Clear old archive folders... [17:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:47]tlvbuf is 00124620 [17:26:47]SAM_PROTO_ClearQueue [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 09 00 00 [17:26:47]Write to MH i2c: E2 08 00 93 25 80 09 00 00 00 00 00 00 2A [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 93 25 00 90 00 2C [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_ClearQueue done [17:26:47]KKMCreateOFDPacket [17:26:47]OFDProtocolAddRootSTLVToBuf [17:26:47]FM_MakeSignedData [17:26:47]FM_MakeSignedData [17:26:47]SAM_PROTO_SignData [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 01 02 [17:26:47]Write to MH i2c: E2 08 00 94 25 80 0D 01 02 00 00 00 00 32 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 94 25 00 90 00 2D [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=255 [17:26:47]MH_SAM_APDU [17:26: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 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 F8 00 00 00 F4 03 04 00 D8 31 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CF [17:26:47]Write to MH i2c: E2 02 01 95 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 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 F8 00 00 00 F4 03 04 00 D8 31 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CF 00 00 87 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 95 25 00 90 00 2E [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=10 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 02 02 05 E7 40 83 D3 4D [17:26:47]Write to MH i2c: E2 0D 00 96 25 80 0D 02 02 05 00 E7 40 83 D3 4D 00 00 09 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 96 25 00 90 00 2F [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 03 02 [17:26:47]Write to MH i2c: E2 08 00 97 25 80 0D 03 02 00 00 00 00 37 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 97 25 00 C2 8F AC 4C BA DF C3 B6 90 00 93 [17:26:47]RAPDU: C2 8F AC 4C BA DF C3 B6 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_SignData done [17:26:47]FM_MakeSignedData done [17:26:47]CreateOFDProtocolMessage [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 11 00 00 [17:26:47]Write to MH i2c: E2 08 00 98 25 80 11 00 00 00 00 00 00 37 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 98 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [17: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 [17:26:47]wFMCommunicate OK [17:26:47]CreateOFDProtocolMessage done [17:26:47]OFDSenderStorePacket 70732 [17:26:47]StoreOFDPacket docnum=70732 [17: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 0F 01 00 00 DF 90 07 01 21 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 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 F8 00 00 00 F4 03 04 00 D8 31 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CF E7 40 83 D3 4D C2 8F AC 4C BA DF C3 B6 [17:26:47]CheckFolder [17:26:47]dirname=/storage/ofd_packets [17:26:47]CheckFolder done [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00070732 [17:26:47]NVStorageSaveData ofd_packets/00070732 [17:26:47]File name is /storage/ofd_packets/00070732 [17:26:47]Write 301 bytes [17:26:47]NVStorageSaveData done [17:26:47]OFDSenderStorePacket done [17:26:47]KKMCreateOFDPacket done [17:26:47]NVStorageSaveData kkm_last_timestamp [17:26:47]File name is /storage/kkm_last_timestamp [17:26:47]Write 4 bytes [17:26:47]NVStorageSaveData done [17:26:47]ExternCall_PrintAddStr [17:26:47]wPrintStart [17:26:47]Write to MH i2c: 01 00 00 99 25 BE [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 99 25 00 00 00 00 00 FF 0F D3 [17:26:47]RasterBufferAndPrint [17:26:47]line Счет N : (1)2886513 [17:26:47]line ИНН: 02508201610067 [17:26:47]line Контрольно-Кассовый Чек [17:26:47]line ПРОДАЖА [17:26:47]line ТРК (МРК, ГНК) : 22 [17:26:47]line Товар: 2710124130 [17:26:47]line Аи-92-К-5 [17:26:47]line 40.000 * 0.00 [17:26:47]line = 0.00 [17:26:47]line НДС 12% НСП 1% [17:26:47]line > о реализуемом товаре [17:26:47]line ИТОГО: 0.00 [17:26:47]line НСП 1% : 0.00 [17:26:47]line НДС 12% : 0.00 [17:26:47]line Наличными: 0.00 [17:26:47]line Безнал.: 0.00 [17:26:47]line Место: АЗС № 85 "Партнер Нефть" [17:26:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:26:47]line СНО: Общий режим [17:26:47]line Чек 248 23.10.2024 17:26 [17:26:47]line Смена: 196 ФФД: 1.0 [17:26:47]line ЗНМ: 0300000167 [17:26:47]line РНМ: 0000000000156251 [17:26:47]line Версия ККМ: v1.0 [17:26:47]line Талоны: Топливная Карта [17:26:47]line 65732 [17:26:47]line ФМ: 0000000000963346 [17:26:47]line ФД: 70732 [17:26:47]line ФПД: 228592126776141 [17:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70732&fm=228592126776141&tin=02508201610067®Number=0000000000156251&sum=0 [17:26:47]OFD Sender: Processing packet 70732 [packets to send 18, broken 17] [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00070732 [17:26:47]OFD Sender: To server: pG, [17:26:47]CommunicateWithHost lk.salyk.kg:30040 [17:26:47]ConnectInit lk.salyk.kg [17:26:47]written 0, free lines is 4095 [17:26:48]Connected sock=10 [17:26: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 DF 90 07 01 21 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 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 F8 00 00 00 F4 03 04 00 D8 31 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CF E7 40 83 D3 4D C2 8F AC 4C BA DF C3 B6 [17: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 62 CF 47 00 20 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 4C 14 01 00 F4 03 04 00 75 DB 18 67 B6 04 01 00 00 E3 53 84 F5 3D 42 D7 A3 [17:26:48]CommunicateWithHost err = 0 [17:26:48]CheckOFDResponse [17:26:48]1017 (14) - 77093643461234 [17:26:48]1041 (16) - 0000000000963346 [17:26:48]1040 (4) - 70732 [17:26:48]1012 (4) - 23.10.2024 11:18 [17:26:48]1206 (1) - 0 [17:26:48]OFD Sender: Remove packet 70732 [17:26:48]ProducePacketName [17:26:48]name=ofd_packets/00070732 [17:26:48]NVStorageDeleteData [17:26:48]Write to MH i2c: 01 00 00 C3 25 E8 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 C3 25 00 00 00 00 00 05 0D 01 [17:26:48]RasterBufferAndPrint [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]written 0, free lines is 3340 [17:26:48]MH_Cut [17:26:48]Write to MH i2c: D1 01 00 CA 25 01 C1 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 01 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 01 00 CA 25 00 C0 [17:26:48]Write to MH i2c: 01 00 00 CB 25 F0 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]OFD Sender: No OFD packet to send [17:26:49]*** Cut start [17:26:49]*** Partial cut [17:26:49]*** CUTSNS_PIN = 1 [17:26:49]*** CUTSNS_PIN = 0 [17:26:49]*** Brake cut motor [17:26:49]Read from MH i2c: 01 [17:26:49]MH_I2C_Read... [17:26:49]*** Stop cut motor [17:26:49]*** Cut end [17:26:49]Read from MH i2c: 01 07 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 FF 0F 05 [17:26:49]process_action close_receipt done [17:26:49]requested_data is exist [17:26:49]produce_requested_data [17:26:49]requested_item fm.sn is exist - process it [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 11 00 00 [17:26:49]Write to MH i2c: E2 08 00 CC 25 80 11 00 00 00 00 00 00 6B [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:49]Read from MH i2c: E2 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 17 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 17 00 CC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [17: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 [17:26:49]wFMCommunicate OK [17:26:49]requested_item fd.num is exist - process it [17:26:49]SAM_PROTO_GetFieldsCounters [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 13 00 00 [17:26:49]Write to MH i2c: E2 08 00 CD 25 80 13 00 00 00 00 00 00 6E [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:49]Read from MH i2c: E2 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 62 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 62 00 CD 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 4C 14 01 00 0E 04 04 00 C4 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 96 [17: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 4C 14 01 00 0E 04 04 00 C4 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 [17:26:49]wFMCommunicate OK [17:26:49]SAM_PROTO_GetFieldsCounters done [17:26:49]requested_item shift.num is exist - process it [17:26:49]requested_item shift.opened is exist - process it [17:26:49]req_shift_opened [17:26:49]FM_GetShiftState [17:26:49]SAM_PROTO_GetShiftState [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 13 01 00 [17:26:49]Write to MH i2c: E2 08 00 CE 25 80 13 01 00 00 00 00 00 70 [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:50]Read from MH i2c: E2 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 CE 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FD [17:26:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:26:50]wFMCommunicate OK [17:26:50]SAM_PROTO_GetShiftState done [17:26:50]FM_GetShiftState done [17:26:50]req_shift_opened done [17:26:50]requested_item shift.open_date is exist - process it [17:26:50]req_shift_open_date [17:26:50]req_shift_open_date done [17:26:50]produce_requested_data done [17:26:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70732,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:26:50]process_action_free close_receipt [17:26:50]json_value_free [17:26:50]json_value_free done [17:26:50]process_json_proto returns [17:26:50]Send response to host [17:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70732,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:26:50]free response buf [17:26:50]execute_script done [17:26:50]execute_script returns [17:26:50]free content buf [17:26:50]Sock 9.Close socket [17:26:50]Sock 9.Thread stoped [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]int [17:27:53]Write to MH i2c: 01 00 00 CF 25 F4 [17:27:53]*** FLAG_PRN_PAP1 set [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 CF 25 00 01 00 00 00 FF 0F 0A [17:27:53]state=0 [17:27:53]No paper [17:27:53]int [17:27:53]Write to MH i2c: 01 00 00 D0 25 F5 [17:27:53]*** FLAG_PRN_PAP2 set [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 D0 25 00 03 00 00 00 FF 0F 0D [17:27:53]state=0 [17:27:53]No paper [17:27:53]Cover opened [17:27:53]OFD Sender: No OFD packet to send [17:27:58]Write to MH i2c: 01 00 00 D1 25 F6 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 D1 25 00 03 00 00 00 FF 0F 0E [17:27:58]state=3 [17:27:58]No paper [17:27:58]Cover opened [17:27:58]OFD Sender: No OFD packet to send [17:28:03]Write to MH i2c: 01 00 00 D2 25 F7 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 D2 25 00 03 00 00 00 FF 0F 0F [17:28:03]state=3 [17:28:03]No paper [17:28:03]Cover opened [17:28:03]OFD Sender: No OFD packet to send [17:28:08]Write to MH i2c: 01 00 00 D3 25 F8 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 D3 25 00 03 00 00 00 FF 0F 10 [17:28:08]state=3 [17:28:08]No paper [17:28:08]Cover opened [17:28:08]OFD Sender: No OFD packet to send [17:28:13]Write to MH i2c: 01 00 00 D4 25 F9 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: 01 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: 01 07 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: 01 07 00 D4 25 00 03 00 00 00 FF 0F 11 [17:28:13]state=3 [17:28:13]No paper [17:28:13]Cover opened [17:28:13]OFD Sender: No OFD packet to send [17:28:18]Write to MH i2c: 01 00 00 D5 25 FA [17:28:18]Write i2c OK [17:28:18]MH_I2C_Read... [17:28:18]Read from MH i2c: 01 [17:28:18]MH_I2C_Read... [17:28:18]Read from MH i2c: 01 07 00 [17:28:18]MH_I2C_Read... [17:28:18]Read from MH i2c: 01 07 00 D5 25 00 03 00 00 00 FF 0F 12 [17:28:18]state=3 [17:28:18]No paper [17:28:18]Cover opened [17:28:18]OFD Sender: No OFD packet to send [17:28:23]Write to MH i2c: 01 00 00 D6 25 FB [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 D6 25 00 03 00 00 00 FF 0F 13 [17:28:23]state=3 [17:28:23]No paper [17:28:23]Cover opened [17:28:23]OFD Sender: No OFD packet to send [17:28:28]Write to MH i2c: 01 00 00 D7 25 FC [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: 01 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: 01 07 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: 01 07 00 D7 25 00 03 00 00 00 FF 0F 14 [17:28:28]state=3 [17:28:28]No paper [17:28:28]Cover opened [17:28:28]OFD Sender: No OFD packet to send [17:28:31]int [17:28:31]Write to MH i2c: 01 00 00 D8 25 FD [17:28:31]*** FLAG_PRN_PAP2 reset [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 D8 25 00 01 00 00 00 FF 0F 13 [17:28:31]state=3 [17:28:31]No paper [17:28:31]Cover closed [17:28:31]int [17:28:31]Write to MH i2c: 01 00 00 D9 25 FE [17:28:31]*** FLAG_PRN_PAP1 reset [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 D9 25 00 00 00 00 00 FF 0F 13 [17:28:31]state=0 [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:28:59]accept exits with 7 [17:28:59]New connection [17:28:59]New thread 3066891620 created [17:28:59]Thread 3067034980 joined [17:28:59]Waiting for new connection... [17:28:59] Sock 7.Parse request [17:28:59]Sock 7.Check first char [17:28:59]Sock 7.First char is OK [17:28:59]request: POST /json_proto HTTP/1.0 [17:28:59]Method: POST [17:28:59]URL: /json_proto [17:28:59]Method is POST - this is cgi request [17:28:59]url: /json_proto [17:28:59]query_string will be loaded in cgi processing [17:28:59]execute_cgi json_proto POST (null) [17:28:59]execute_cgi path=json_proto method=POST [17:28:59]POST find Content-Length [17:28:59]Host: 172.17.50.3:8080 [17:28:59]Content-Length: 678 [17:28:59]Content-Type: application/json [17:28:59] [17:28:59]POST finish read [17:28:59]Found Content-Length = 678 [17:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886515", "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:28:59]execute_script... [17:28: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)2886515", "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:28:59]POST & json_proto [17:28:59]process_json_proto [17:28:59]json parsed OK: [17:28:59]protocol is kg_v1.0 [17:28:59]action value=close_receipt [17:28:59]process_action close_receipt [17:28:59]cmd_close_receipt [17:28:59]MH_GetDate [17:28:59]Write to MH i2c: F0 00 00 DA 25 EE [17:28:59]Write i2c OK [17:28:59]MH_I2C_Read... [17:28:59]Read from MH i2c: F0 [17:28:59]MH_I2C_Read... [17:28:59]Read from MH i2c: F0 09 00 [17:28:59]MH_I2C_Read... [17:28:59]Read from MH i2c: F0 09 00 DA 25 00 5D 32 19 67 6B 98 1E 66 8D [17:28:59]GetLastDocTimeStamp 1729704408 [17:28:59]current date 1729704541 [17:28:59]FM_GetShiftState [17:28:59]SAM_PROTO_GetShiftState [17:28:59]wFMCommunicate request_size=4 [17:28:59]MH_SAM_APDU [17:28:59]CAPDU: 80 13 01 00 [17:28:59]Write to MH i2c: E2 08 00 DB 25 80 13 01 00 00 00 00 00 7D [17:28:59]Write i2c OK [17:28:59]MH_I2C_Read... [17:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:59]Read from MH i2c: E2 [17:28:59]MH_I2C_Read... [17:28:59]Read from MH i2c: E2 0E 00 [17:28:59]MH_I2C_Read... [17:28:59]Read from MH i2c: E2 0E 00 DB 25 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0A [17:28:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:28:59]wFMCommunicate OK [17:28:59]SAM_PROTO_GetShiftState done [17:28:59]FM_GetShiftState done [17:28:59]opened in 1729642435 [17:28:59]opened+sec_in_day 1729728835 [17:28:59]quantity*price = 50041 [17:28:59]sum+1 = 50042 [17:28: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 СНО: Общий режим Чек 249 23.10.2024 17:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70733 ФПД: 176205695945625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70733&fm=176205695945625&tin=02508201610067®Number=0000000000156251&sum=50000 [17:29:00]StoreToDocumentArchive [17:29:00]shift 196 fd 70733 [17:29:00]save to /storage/0196/doc_00070733 [17:29:00]save last doc name /storage/0196/doc_00070733 to /storage/kkm_last_doc_name [17:29:00]save OK [17:29:00]Clear old archive folders... [17:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:00]tlvbuf is 0013BD00 [17:29:00]SAM_PROTO_ClearQueue [17:29:00]wFMCommunicate request_size=4 [17:29:00]MH_SAM_APDU [17:29:00]CAPDU: 80 09 00 00 [17:29:00]Write to MH i2c: E2 08 00 E8 25 80 09 00 00 00 00 00 00 7F [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:00]Read from MH i2c: E2 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 03 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 03 00 E8 25 00 90 00 81 [17:29:00]RAPDU: 90 00 [17:29:00]wFMCommunicate OK [17:29:00]SAM_PROTO_ClearQueue done [17:29:00]KKMCreateOFDPacket [17:29:00]OFDProtocolAddRootSTLVToBuf [17:29:00]FM_MakeSignedData [17:29:00]FM_MakeSignedData [17:29:00]SAM_PROTO_SignData [17:29:00]wFMCommunicate request_size=4 [17:29:00]MH_SAM_APDU [17:29:00]CAPDU: 80 0D 01 02 [17:29:00]Write to MH i2c: E2 08 00 E9 25 80 0D 01 02 00 00 00 00 87 [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:00]Read from MH i2c: E2 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 03 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 03 00 E9 25 00 90 00 82 [17:29:00]RAPDU: 90 00 [17:29:00]wFMCommunicate OK [17:29:00]wFMCommunicate request_size=255 [17:29:00]MH_SAM_APDU [17:29: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 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 F9 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 [17:29:00]Write to MH i2c: E2 02 01 EA 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 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 F9 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 00 00 DE [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:01]Read from MH i2c: E2 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 03 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 03 00 EA 25 00 90 00 83 [17:29:01]RAPDU: 90 00 [17:29:01]wFMCommunicate OK [17:29:01]wFMCommunicate request_size=10 [17:29:01]MH_SAM_APDU [17:29:01]CAPDU: 80 0D 02 02 05 42 15 EA 0B 99 [17:29:01]Write to MH i2c: E2 0D 00 EB 25 80 0D 02 02 05 00 42 15 EA 0B 99 00 00 79 [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:01]Read from MH i2c: E2 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 03 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 03 00 EB 25 00 90 00 84 [17:29:01]RAPDU: 90 00 [17:29:01]wFMCommunicate OK [17:29:01]wFMCommunicate request_size=4 [17:29:01]MH_SAM_APDU [17:29:01]CAPDU: 80 0D 03 02 [17:29:01]Write to MH i2c: E2 08 00 EC 25 80 0D 03 02 00 00 00 00 8C [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:01]Read from MH i2c: E2 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 0B 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 0B 00 EC 25 00 4E 6B 79 67 17 6C 45 02 90 00 F0 [17:29:01]RAPDU: 4E 6B 79 67 17 6C 45 02 90 00 [17:29:01]wFMCommunicate OK [17:29:01]SAM_PROTO_SignData done [17:29:01]FM_MakeSignedData done [17:29:01]CreateOFDProtocolMessage [17:29:01]wFMCommunicate request_size=4 [17:29:01]MH_SAM_APDU [17:29:01]CAPDU: 80 11 00 00 [17:29:01]Write to MH i2c: E2 08 00 ED 25 80 11 00 00 00 00 00 00 8C [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:01]Read from MH i2c: E2 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 17 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 17 00 ED 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [17:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:01]wFMCommunicate OK [17:29:01]CreateOFDProtocolMessage done [17:29:01]OFDSenderStorePacket 70733 [17:29:01]StoreOFDPacket docnum=70733 [17:29: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 6D 07 01 29 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 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 F9 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 42 15 EA 0B 99 4E 6B 79 67 17 6C 45 02 [17:29:01]CheckFolder [17:29:01]dirname=/storage/ofd_packets [17:29:01]CheckFolder done [17:29:01]ProducePacketName [17:29:01]name=ofd_packets/00070733 [17:29:01]NVStorageSaveData ofd_packets/00070733 [17:29:01]File name is /storage/ofd_packets/00070733 [17:29:01]Write 301 bytes [17:29:01]NVStorageSaveData done [17:29:01]OFDSenderStorePacket done [17:29:01]KKMCreateOFDPacket done [17:29:01]NVStorageSaveData kkm_last_timestamp [17:29:01]File name is /storage/kkm_last_timestamp [17:29:01]Write 4 bytes [17:29:01]NVStorageSaveData done [17:29:01]OFD Sender: Processing packet 70733 [packets to send 18, broken 17] [17:29:01]ProducePacketName [17:29:01]name=ofd_packets/00070733 [17:29:01]OFD Sender: To server: pG, [17:29:01]CommunicateWithHost lk.salyk.kg:30040 [17:29:01]ConnectInit lk.salyk.kg [17:29:01]ExternCall_PrintAddStr [17:29:01]wPrintStart [17:29:01]Write to MH i2c: 01 00 00 EE 25 13 [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: 01 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: 01 07 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 FF 0F 28 [17:29:01]RasterBufferAndPrint [17:29:01]line Счет N : (1)2886515 [17:29:01]line ИНН: 02508201610067 [17:29:01]line Контрольно-Кассовый Чек [17:29:01]line ПРОДАЖА [17:29:01]line ТРК (МРК, ГНК) : 42 [17:29:01]line Товар: 2710124130 [17:29:01]line Аи-92-К-5 [17:29:01]line 7.480 * 66.90 [17:29:01]line = 500.41 [17:29:01]line НДС 12% НСП 1% [17:29:01]line > о реализуемом товаре [17:29:01]line ОКРУГЛЕНИЕ: -0.41 [17:29:01]line ИТОГО: 500.00 [17:29:01]line Внесено: 500.00 [17:29:01]line СДАЧА: 0.00 [17:29:01]line НСП 1% : 4.43 [17:29:01]line НДС 12% : 53.14 [17:29:01]line Наличными: 500.00 [17:29:01]line Безнал.: 0.00 [17:29:01]line Место: АЗС № 85 "Партнер Нефть" [17:29:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:29:01]line СНО: Общий режим [17:29:01]line Чек 249 23.10.2024 17:29 [17:29:01]line Смена: 196 ФФД: 1.0 [17:29:01]line ЗНМ: 0300000167 [17:29:01]line РНМ: 0000000000156251 [17:29:01]line Версия ККМ: v1.0 [17:29:01]line ФМ: 0000000000963346 [17:29:01]line ФД: 70733 [17:29:01]line ФПД: 176205695945625 [17:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70733&fm=176205695945625&tin=02508201610067®Number=0000000000156251&sum=50000 [17:29:01]Connected sock=11 [17:29: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 6D 07 01 29 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 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 F9 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 42 15 EA 0B 99 4E 6B 79 67 17 6C 45 02 [17:29:01]written 0, free lines is 4095 [17:29: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 7C 53 47 00 FB 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 4D 14 01 00 F4 03 04 00 FA DB 18 67 B6 04 01 00 00 6F A3 82 8A 45 6D 67 A6 [17:29:01]CommunicateWithHost err = 0 [17:29:01]CheckOFDResponse [17:29:01]1017 (14) - 77093643461234 [17:29:01]1041 (16) - 0000000000963346 [17:29:01]1040 (4) - 70733 [17:29:01]1012 (4) - 23.10.2024 11:20 [17:29:01]1206 (1) - 0 [17:29:01]OFD Sender: Remove packet 70733 [17:29:01]ProducePacketName [17:29:01]name=ofd_packets/00070733 [17:29:01]NVStorageDeleteData [17:29:02]Write to MH i2c: 01 00 00 19 26 3F [17:29:02]Write i2c OK [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: 01 [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: 01 07 00 [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: 01 07 00 19 26 00 00 00 00 00 E0 0C 32 [17:29:02]RasterBufferAndPrint [17:29:02]line [17:29:02]line [17:29:02]line [17:29:02]line [17:29:02]line [17:29:02]written 0, free lines is 3302 [17:29:02]MH_Cut [17:29:02]Write to MH i2c: D1 01 00 20 26 01 18 [17:29:02]Write i2c OK [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: D1 [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: D1 01 00 [17:29:02]MH_I2C_Read... [17:29:02]Read from MH i2c: D1 01 00 20 26 00 17 [17:29:02]Write to MH i2c: 01 00 00 21 26 47 [17:29:02]Write i2c OK [17:29:02]MH_I2C_Read... [17:29:02]OFD Sender: No OFD packet to send [17:29:02]*** Cut start [17:29:02]*** Partial cut [17:29:02]*** CUTSNS_PIN = 1 [17:29:02]*** CUTSNS_PIN = 0 [17:29:03]*** Brake cut motor [17:29:03]Read from MH i2c: 01 [17:29:03]MH_I2C_Read... [17:29:03]*** Stop cut motor [17:29:03]*** Cut end [17:29:03]Read from MH i2c: 01 07 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 FF 0F 5C [17:29:03]process_action close_receipt done [17:29:03]requested_data is exist [17:29:03]produce_requested_data [17:29:03]requested_item fm.sn is exist - process it [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 11 00 00 [17:29:03]Write to MH i2c: E2 08 00 22 26 80 11 00 00 00 00 00 00 C2 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 17 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 17 00 22 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [17:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:29:03]wFMCommunicate OK [17:29:03]requested_item fd.num is exist - process it [17:29:03]SAM_PROTO_GetFieldsCounters [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 13 00 00 [17:29:03]Write to MH i2c: E2 08 00 23 26 80 13 00 00 00 00 00 00 C5 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 62 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 62 00 23 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 4D 14 01 00 0E 04 04 00 C4 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 F1 [17:29: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 4D 14 01 00 0E 04 04 00 C4 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 [17:29:03]wFMCommunicate OK [17:29:03]SAM_PROTO_GetFieldsCounters done [17:29:03]requested_item shift.num is exist - process it [17:29:03]requested_item shift.opened is exist - process it [17:29:03]req_shift_opened [17:29:03]FM_GetShiftState [17:29:03]SAM_PROTO_GetShiftState [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 13 01 00 [17:29:03]Write to MH i2c: E2 08 00 24 26 80 13 01 00 00 00 00 00 C7 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0E 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0E 00 24 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 54 [17:29:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:29:03]wFMCommunicate OK [17:29:03]SAM_PROTO_GetShiftState done [17:29:03]FM_GetShiftState done [17:29:03]req_shift_opened done [17:29:03]requested_item shift.open_date is exist - process it [17:29:03]req_shift_open_date [17:29:03]req_shift_open_date done [17:29:03]produce_requested_data done [17:29:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70733,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:29:03]process_action_free close_receipt [17:29:03]json_value_free [17:29:03]json_value_free done [17:29:03]process_json_proto returns [17:29:03]Send response to host [17:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70733,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:29:03]free response buf [17:29:03]execute_script done [17:29:03]execute_script returns [17:29:03]free content buf [17:29:03]Sock 7.Close socket [17:29:03]Sock 7.Thread stoped [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:10]accept exits with 9 [17:30:10]New connection [17:30:10]New thread 3067034980 created [17:30:10]Thread 3066891620 joined [17:30:10]Waiting for new connection... [17:30:10] Sock 9.Parse request [17:30:10]Sock 9.Check first char [17:30:10]Sock 9.First char is OK [17:30:10]request: POST /json_proto HTTP/1.0 [17:30:10]Method: POST [17:30:10]URL: /json_proto [17:30:10]Method is POST - this is cgi request [17:30:10]url: /json_proto [17:30:10]query_string will be loaded in cgi processing [17:30:10]execute_cgi json_proto POST (null) [17:30:10]execute_cgi path=json_proto method=POST [17:30:10]POST find Content-Length [17:30:10]Host: 172.17.50.3:8080 [17:30:10]Content-Length: 686 [17:30:10]Content-Type: application/json [17:30:10] [17:30:10]POST finish read [17:30:10]Found Content-Length = 686 [17:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886514", "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.270, "sum" : 2500.10, "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:30:10]execute_script... [17:30: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)2886514", "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.270, "sum" : 2500.10, "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:30:10]POST & json_proto [17:30:10]process_json_proto [17:30:10]json parsed OK: [17:30:10]protocol is kg_v1.0 [17:30:10]action value=close_receipt [17:30:10]process_action close_receipt [17:30:10]cmd_close_receipt [17:30:10]MH_GetDate [17:30:10]Write to MH i2c: F0 00 00 25 26 3A [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: F0 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: F0 09 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: F0 09 00 25 26 00 A4 32 19 67 6B 98 1E 66 20 [17:30:10]GetLastDocTimeStamp 1729704541 [17:30:10]current date 1729704612 [17:30:10]FM_GetShiftState [17:30:10]SAM_PROTO_GetShiftState [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 13 01 00 [17:30:10]Write to MH i2c: E2 08 00 26 26 80 13 01 00 00 00 00 00 C9 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 0E 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 0E 00 26 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 56 [17:30:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:30:10]wFMCommunicate OK [17:30:10]SAM_PROTO_GetShiftState done [17:30:10]FM_GetShiftState done [17:30:10]opened in 1729642435 [17:30:10]opened+sec_in_day 1729728835 [17:30:10]quantity*price = 250010 [17:30:10]sum+1 = 250011 [17:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 250 23.10.2024 17:30 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70734 ФПД: 101340460369680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70734&fm=101340460369680&tin=02508201610067®Number=0000000000156251&sum=250000 [17:30:11]StoreToDocumentArchive [17:30:11]shift 196 fd 70734 [17:30:11]save to /storage/0196/doc_00070734 [17:30:11]save last doc name /storage/0196/doc_00070734 to /storage/kkm_last_doc_name [17:30:11]save OK [17:30:11]Clear old archive folders... [17:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:30:11]tlvbuf is 00201E90 [17:30:11]SAM_PROTO_ClearQueue [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 09 00 00 [17:30:11]Write to MH i2c: E2 08 00 33 26 80 09 00 00 00 00 00 00 CB [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 33 26 00 90 00 CD [17:30:11]RAPDU: 90 00 [17:30:11]wFMCommunicate OK [17:30:11]SAM_PROTO_ClearQueue done [17:30:11]KKMCreateOFDPacket [17:30:11]OFDProtocolAddRootSTLVToBuf [17:30:11]FM_MakeSignedData [17:30:11]FM_MakeSignedData [17:30:11]SAM_PROTO_SignData [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 0D 01 02 [17:30:11]Write to MH i2c: E2 08 00 34 26 80 0D 01 02 00 00 00 00 D3 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 03 00 34 26 00 90 00 CE [17:30:11]RAPDU: 90 00 [17:30:11]wFMCommunicate OK [17:30:11]wFMCommunicate request_size=255 [17:30:11]MH_SAM_APDU [17:30:11]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 0E FB 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A4 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 2B [17:30:11]Write to MH i2c: E2 02 01 35 26 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 0E FB 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A4 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 2B 00 00 C9 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 35 26 00 90 00 CF [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]wFMCommunicate request_size=9 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 0D 02 02 04 2A 24 47 10 [17:30:12]Write to MH i2c: E2 0C 00 36 26 80 0D 02 02 04 00 2A 24 47 10 00 00 83 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 36 26 00 90 00 D0 [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 0D 03 02 [17:30:12]Write to MH i2c: E2 08 00 37 26 80 0D 03 02 00 00 00 00 D8 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 0B 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 0B 00 37 26 00 6B A0 72 65 6C 26 E3 56 90 00 86 [17:30:12]RAPDU: 6B A0 72 65 6C 26 E3 56 90 00 [17:30:12]wFMCommunicate OK [17:30:12]SAM_PROTO_SignData done [17:30:12]FM_MakeSignedData done [17:30:12]CreateOFDProtocolMessage [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 11 00 00 [17:30:12]Write to MH i2c: E2 08 00 38 26 80 11 00 00 00 00 00 00 D8 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 38 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [17: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 [17:30:12]wFMCommunicate OK [17:30:12]CreateOFDProtocolMessage done [17:30:12]OFDSenderStorePacket 70734 [17:30:12]StoreOFDPacket docnum=70734 [17: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 0E 01 00 00 13 79 06 01 E4 35 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 0E FB 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A4 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 2B 2A 24 47 10 6B A0 72 65 6C 26 E3 56 [17:30:12]CheckFolder [17:30:12]dirname=/storage/ofd_packets [17:30:12]CheckFolder done [17:30:12]ProducePacketName [17:30:12]name=ofd_packets/00070734 [17:30:12]NVStorageSaveData ofd_packets/00070734 [17:30:12]File name is /storage/ofd_packets/00070734 [17:30:12]Write 300 bytes [17:30:12]NVStorageSaveData done [17:30:12]OFDSenderStorePacket done [17:30:12]KKMCreateOFDPacket done [17:30:12]NVStorageSaveData kkm_last_timestamp [17:30:12]File name is /storage/kkm_last_timestamp [17:30:12]Write 4 bytes [17:30:12]NVStorageSaveData done [17:30:12]ExternCall_PrintAddStr [17:30:12]wPrintStart [17:30:12]Write to MH i2c: 01 00 00 39 26 5F [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 07 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 07 00 39 26 00 00 00 00 00 FF 0F 74 [17:30:12]RasterBufferAndPrint [17:30:12]line Счет N : (1)2886514 [17:30:12]line ИНН: 02508201610067 [17:30:12]line Контрольно-Кассовый Чек [17:30:12]line ПРОДАЖА [17:30:12]line ТРК (МРК, ГНК) : 71 [17:30:12]line Товар: 2711129700 [17:30:12]line ГАЗ-К-3 [17:30:12]line 64.270 * 38.90 [17:30:12]line = 2500.10 [17:30:12]line НДС 12% НСП 1% [17:30:12]line > о реализуемом товаре [17:30:12]line ОКРУГЛЕНИЕ: -0.10 [17:30:12]line ИТОГО: 2500.00 [17:30:12]line Внесено: 2500.00 [17:30:12]line СДАЧА: 0.00 [17:30:12]line НСП 1% : 22.12 [17:30:12]line НДС 12% : 265.50 [17:30:12]line Наличными: 2500.00 [17:30:12]line Безнал.: 0.00 [17:30:12]line Место: АЗС № 85 "Партнер Нефть" [17:30:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:30:12]line СНО: Общий режим [17:30:12]line Чек 250 23.10.2024 17:30 [17:30:12]line Смена: 196 ФФД: 1.0 [17:30:12]line ЗНМ: 0300000167 [17:30:12]line РНМ: 0000000000156251 [17:30:12]line Версия ККМ: v1.0 [17:30:12]line ФМ: 0000000000963346 [17:30:12]line ФД: 70734 [17:30:12]line ФПД: 101340460369680 [17:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70734&fm=101340460369680&tin=02508201610067®Number=0000000000156251&sum=250000 [17:30:12]OFD Sender: Processing packet 70734 [packets to send 18, broken 17] [17:30:12]ProducePacketName [17:30:12]name=ofd_packets/00070734 [17:30:12]OFD Sender: To server: pG, [17:30:12]CommunicateWithHost lk.salyk.kg:30040 [17:30:12]ConnectInit lk.salyk.kg [17:30:12]written 0, free lines is 4095 [17:30:12]Connected sock=11 [17:30: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 0E 01 00 00 13 79 06 01 E4 35 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 0E FB 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 A4 32 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 2B 2A 24 47 10 6B A0 72 65 6C 26 E3 56 [17:30: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 01 2B 47 00 AD 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 4E 14 01 00 F4 03 04 00 42 DC 18 67 B6 04 01 00 00 44 F6 44 F2 2D 62 25 01 [17:30:12]CommunicateWithHost err = 0 [17:30:12]CheckOFDResponse [17:30:12]1017 (14) - 77093643461234 [17:30:12]1041 (16) - 0000000000963346 [17:30:12]1040 (4) - 70734 [17:30:12]1012 (4) - 23.10.2024 11:21 [17:30:12]1206 (1) - 0 [17:30:12]OFD Sender: Remove packet 70734 [17:30:12]ProducePacketName [17:30:12]name=ofd_packets/00070734 [17:30:12]NVStorageDeleteData [17:30:13]Write to MH i2c: 01 00 00 64 26 8A [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 07 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 07 00 64 26 00 00 00 00 00 F3 0C 90 [17:30:13]RasterBufferAndPrint [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]written 0, free lines is 3321 [17:30:13]MH_Cut [17:30:13]Write to MH i2c: D1 01 00 6B 26 01 63 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 01 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 01 00 6B 26 00 62 [17:30:13]Write to MH i2c: 01 00 00 6C 26 92 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]OFD Sender: No OFD packet to send [17:30:13]*** Cut start [17:30:13]*** Partial cut [17:30:13]*** CUTSNS_PIN = 1 [17:30:13]*** CUTSNS_PIN = 0 [17:30:14]*** Brake cut motor [17:30:14]Read from MH i2c: 01 [17:30:14]MH_I2C_Read... [17:30:14]*** Stop cut motor [17:30:14]*** Cut end [17:30:14]Read from MH i2c: 01 07 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: 01 07 00 6C 26 00 00 00 00 00 FF 0F A7 [17:30:14]process_action close_receipt done [17:30:14]requested_data is exist [17:30:14]produce_requested_data [17:30:14]requested_item fm.sn is exist - process it [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 11 00 00 [17:30:14]Write to MH i2c: E2 08 00 6D 26 80 11 00 00 00 00 00 00 0D [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 17 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 17 00 6D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [17: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 [17:30:14]wFMCommunicate OK [17:30:14]requested_item fd.num is exist - process it [17:30:14]SAM_PROTO_GetFieldsCounters [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 13 00 00 [17:30:14]Write to MH i2c: E2 08 00 6E 26 80 13 00 00 00 00 00 00 10 [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 62 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 62 00 6E 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 4E 14 01 00 0E 04 04 00 C4 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 40 [17:30: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 4E 14 01 00 0E 04 04 00 C4 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 [17:30:14]wFMCommunicate OK [17:30:14]SAM_PROTO_GetFieldsCounters done [17:30:14]requested_item shift.num is exist - process it [17:30:14]requested_item shift.opened is exist - process it [17:30:14]req_shift_opened [17:30:14]FM_GetShiftState [17:30:14]SAM_PROTO_GetShiftState [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 13 01 00 [17:30:14]Write to MH i2c: E2 08 00 6F 26 80 13 01 00 00 00 00 00 12 [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 0E 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 0E 00 6F 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9F [17:30:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:30:14]wFMCommunicate OK [17:30:14]SAM_PROTO_GetShiftState done [17:30:14]FM_GetShiftState done [17:30:14]req_shift_opened done [17:30:14]requested_item shift.open_date is exist - process it [17:30:14]req_shift_open_date [17:30:14]req_shift_open_date done [17:30:14]produce_requested_data done [17:30:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70734,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:30:14]process_action_free close_receipt [17:30:14]json_value_free [17:30:14]json_value_free done [17:30:14]process_json_proto returns [17:30:14]Send response to host [17:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70734,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:30:14]free response buf [17:30:14]execute_script done [17:30:14]execute_script returns [17:30:14]free content buf [17:30:14]Sock 9.Close socket [17:30:14]Sock 9.Thread stoped [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]accept exits with 7 [17:32:03]New connection [17:32:03]New thread 3066891620 created [17:32:03]Thread 3067034980 joined [17:32:03]Waiting for new connection... [17:32:03] Sock 7.Parse request [17:32:03]Sock 7.Check first char [17:32:03]Sock 7.First char is OK [17:32:03]request: POST /json_proto HTTP/1.0 [17:32:03]Method: POST [17:32:03]URL: /json_proto [17:32:03]Method is POST - this is cgi request [17:32:03]url: /json_proto [17:32:03]query_string will be loaded in cgi processing [17:32:03]execute_cgi json_proto POST (null) [17:32:03]execute_cgi path=json_proto method=POST [17:32:03]POST find Content-Length [17:32:03]Host: 172.17.50.3:8080 [17:32:03]Content-Length: 680 [17:32:03]Content-Type: application/json [17:32:03] [17:32:03]POST finish read [17:32:03]Found Content-Length = 680 [17:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886518", "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" ] } } [17:32:03]execute_script... [17: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)2886518", "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" ] } } [17:32:03]POST & json_proto [17:32:03]process_json_proto [17:32:03]json parsed OK: [17:32:03]protocol is kg_v1.0 [17:32:03]action value=close_receipt [17:32:03]process_action close_receipt [17:32:03]cmd_close_receipt [17:32:03]MH_GetDate [17:32:03]Write to MH i2c: F0 00 00 70 26 85 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: F0 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: F0 09 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: F0 09 00 70 26 00 15 33 19 67 6B 98 1E 66 DD [17:32:03]GetLastDocTimeStamp 1729704612 [17:32:03]current date 1729704725 [17:32:03]FM_GetShiftState [17:32:03]SAM_PROTO_GetShiftState [17:32:03]wFMCommunicate request_size=4 [17:32:03]MH_SAM_APDU [17:32:03]CAPDU: 80 13 01 00 [17:32:03]Write to MH i2c: E2 08 00 71 26 80 13 01 00 00 00 00 00 14 [17:32:03]Write i2c OK [17:32:03]MH_I2C_Read... [17:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:03]Read from MH i2c: E2 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 0E 00 [17:32:03]MH_I2C_Read... [17:32:03]Read from MH i2c: E2 0E 00 71 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A1 [17:32:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:03]wFMCommunicate OK [17:32:03]SAM_PROTO_GetShiftState done [17:32:03]FM_GetShiftState done [17:32:03]opened in 1729642435 [17:32:03]opened+sec_in_day 1729728835 [17:32:03]quantity*price = 100050 [17:32:03]sum+1 = 100052 [17:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 251 23.10.2024 17:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70735 ФПД: 146583241132855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70735&fm=146583241132855&tin=02508201610067®Number=0000000000156251&sum=100000 [17:32:04]StoreToDocumentArchive [17:32:04]shift 196 fd 70735 [17:32:04]save to /storage/0196/doc_00070735 [17:32:04]save last doc name /storage/0196/doc_00070735 to /storage/kkm_last_doc_name [17:32:04]save OK [17:32:04]Clear old archive folders... [17:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:32:04]tlvbuf is 0020C2C0 [17:32:04]SAM_PROTO_ClearQueue [17:32:04]wFMCommunicate request_size=4 [17:32:04]MH_SAM_APDU [17:32:04]CAPDU: 80 09 00 00 [17:32:04]Write to MH i2c: E2 08 00 7E 26 80 09 00 00 00 00 00 00 16 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:04]Read from MH i2c: E2 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 7E 26 00 90 00 18 [17:32:04]RAPDU: 90 00 [17:32:04]wFMCommunicate OK [17:32:04]SAM_PROTO_ClearQueue done [17:32:04]KKMCreateOFDPacket [17:32:04]OFDProtocolAddRootSTLVToBuf [17:32:04]FM_MakeSignedData [17:32:04]FM_MakeSignedData [17:32:04]SAM_PROTO_SignData [17:32:04]wFMCommunicate request_size=4 [17:32:04]MH_SAM_APDU [17:32:04]CAPDU: 80 0D 01 02 [17:32:04]Write to MH i2c: E2 08 00 7F 26 80 0D 01 02 00 00 00 00 1E [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:04]Read from MH i2c: E2 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 7F 26 00 90 00 19 [17:32:04]RAPDU: 90 00 [17:32:04]wFMCommunicate OK [17:32:04]wFMCommunicate request_size=255 [17:32:04]MH_SAM_APDU [17:32: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 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 FB 00 00 00 F4 03 04 00 15 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 51 12 04 [17:32:04]Write to MH i2c: E2 02 01 80 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 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 FB 00 00 00 F4 03 04 00 15 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 51 12 04 00 00 74 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:04]Read from MH i2c: E2 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 80 26 00 90 00 1A [17:32:04]RAPDU: 90 00 [17:32:04]wFMCommunicate OK [17:32:04]wFMCommunicate request_size=7 [17:32:04]MH_SAM_APDU [17:32:04]CAPDU: 80 0D 02 02 02 8B 37 [17:32:04]Write to MH i2c: E2 0A 00 81 26 80 0D 02 02 02 00 8B 37 00 00 E7 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:04]Read from MH i2c: E2 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 [17:32:04]MH_I2C_Read... [17:32:04]Read from MH i2c: E2 03 00 81 26 00 90 00 1B [17:32:04]RAPDU: 90 00 [17:32:04]wFMCommunicate OK [17:32:04]wFMCommunicate request_size=4 [17:32:04]MH_SAM_APDU [17:32:04]CAPDU: 80 0D 03 02 [17:32:04]Write to MH i2c: E2 08 00 82 26 80 0D 03 02 00 00 00 00 23 [17:32:04]Write i2c OK [17:32:04]MH_I2C_Read... [17:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:05]Read from MH i2c: E2 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 0B 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 0B 00 82 26 00 E2 4A 29 AC 00 ED 95 F7 90 00 9E [17:32:05]RAPDU: E2 4A 29 AC 00 ED 95 F7 90 00 [17:32:05]wFMCommunicate OK [17:32:05]SAM_PROTO_SignData done [17:32:05]FM_MakeSignedData done [17:32:05]CreateOFDProtocolMessage [17:32:05]wFMCommunicate request_size=4 [17:32:05]MH_SAM_APDU [17:32:05]CAPDU: 80 11 00 00 [17:32:05]Write to MH i2c: E2 08 00 83 26 80 11 00 00 00 00 00 00 23 [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:05]Read from MH i2c: E2 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 17 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: E2 17 00 83 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [17: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 [17:32:05]wFMCommunicate OK [17:32:05]CreateOFDProtocolMessage done [17:32:05]OFDSenderStorePacket 70735 [17:32:05]StoreOFDPacket docnum=70735 [17: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 0C 01 00 00 D2 2C 04 01 C5 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 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 FB 00 00 00 F4 03 04 00 15 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 51 12 04 8B 37 E2 4A 29 AC 00 ED 95 F7 [17:32:05]CheckFolder [17:32:05]dirname=/storage/ofd_packets [17:32:05]CheckFolder done [17:32:05]ProducePacketName [17:32:05]name=ofd_packets/00070735 [17:32:05]NVStorageSaveData ofd_packets/00070735 [17:32:05]File name is /storage/ofd_packets/00070735 [17:32:05]Write 298 bytes [17:32:05]NVStorageSaveData done [17:32:05]OFDSenderStorePacket done [17:32:05]KKMCreateOFDPacket done [17:32:05]NVStorageSaveData kkm_last_timestamp [17:32:05]File name is /storage/kkm_last_timestamp [17:32:05]Write 4 bytes [17:32:05]NVStorageSaveData done [17:32:05]ExternCall_PrintAddStr [17:32:05]wPrintStart [17:32:05]Write to MH i2c: 01 00 00 84 26 AA [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 07 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 07 00 84 26 00 00 00 00 00 FF 0F BF [17:32:05]RasterBufferAndPrint [17:32:05]line Счет N : (1)2886518 [17:32:05]line ИНН: 02508201610067 [17:32:05]line Контрольно-Кассовый Чек [17:32:05]line ПРОДАЖА [17:32:05]line ТРК (МРК, ГНК) : 51 [17:32:05]line Товар: 2710194210 [17:32:05]line ДТ-К-5 [17:32:05]line 13.130 * 76.20 [17:32:05]line = 1000.51 [17:32:05]line НДС 12% НСП 1% [17:32:05]line > о реализуемом товаре [17:32:05]line ОКРУГЛЕНИЕ: -0.51 [17:32:05]line ИТОГО: 1000.00 [17:32:05]line Внесено: 1000.00 [17:32:05]line СДАЧА: 0.00 [17:32:05]line НСП 1% : 8.85 [17:32:05]line НДС 12% : 106.25 [17:32:05]line Наличными: 1000.00 [17:32:05]line Безнал.: 0.00 [17:32:05]line Место: АЗС № 85 "Партнер Нефть" [17:32:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:05]line СНО: Общий режим [17:32:05]line Чек 251 23.10.2024 17:32 [17:32:05]line Смена: 196 ФФД: 1.0 [17:32:05]line ЗНМ: 0300000167 [17:32:05]line РНМ: 0000000000156251 [17:32:05]line Версия ККМ: v1.0 [17:32:05]line ФМ: 0000000000963346 [17:32:05]line ФД: 70735 [17:32:05]line ФПД: 146583241132855 [17:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70735&fm=146583241132855&tin=02508201610067®Number=0000000000156251&sum=100000 [17:32:05]OFD Sender: Processing packet 70735 [packets to send 18, broken 17] [17:32:05]ProducePacketName [17:32:05]name=ofd_packets/00070735 [17:32:05]OFD Sender: To server: pG, [17:32:05]CommunicateWithHost lk.salyk.kg:30040 [17:32:05]ConnectInit lk.salyk.kg [17:32:05]written 0, free lines is 4095 [17:32:05]Connected sock=10 [17: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 0C 01 00 00 D2 2C 04 01 C5 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 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 FB 00 00 00 F4 03 04 00 15 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 85 51 12 04 8B 37 E2 4A 29 AC 00 ED 95 F7 [17: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 E2 70 47 00 AA 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 4F 14 01 00 F4 03 04 00 B2 DC 18 67 B6 04 01 00 00 67 D8 56 94 00 6D C7 0A [17:32:05]CommunicateWithHost err = 0 [17:32:05]CheckOFDResponse [17:32:05]1017 (14) - 77093643461234 [17:32:05]1041 (16) - 0000000000963346 [17:32:05]1040 (4) - 70735 [17:32:05]1012 (4) - 23.10.2024 11:23 [17:32:05]1206 (1) - 0 [17:32:05]OFD Sender: Remove packet 70735 [17:32:05]ProducePacketName [17:32:05]name=ofd_packets/00070735 [17:32:05]NVStorageDeleteData [17:32:05]Write to MH i2c: 01 00 00 AF 26 D5 [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 07 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: 01 07 00 AF 26 00 00 00 00 00 EC 0C D4 [17:32:05]RasterBufferAndPrint [17:32:05]line [17:32:05]line [17:32:05]line [17:32:05]line [17:32:05]line [17:32:05]written 0, free lines is 3314 [17:32:05]MH_Cut [17:32:05]Write to MH i2c: D1 01 00 B6 26 01 AE [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: D1 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: D1 01 00 [17:32:05]MH_I2C_Read... [17:32:05]Read from MH i2c: D1 01 00 B6 26 00 AD [17:32:05]Write to MH i2c: 01 00 00 B7 26 DD [17:32:05]Write i2c OK [17:32:05]MH_I2C_Read... [17:32:06]OFD Sender: No OFD packet to send [17:32:06]*** Cut start [17:32:06]*** Partial cut [17:32:06]*** CUTSNS_PIN = 1 [17:32:06]*** CUTSNS_PIN = 0 [17:32:06]*** Brake cut motor [17:32:07]Read from MH i2c: 01 [17:32:07]MH_I2C_Read... [17:32:07]*** Stop cut motor [17:32:07]*** Cut end [17:32:07]Read from MH i2c: 01 07 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: 01 07 00 B7 26 00 00 00 00 00 FF 0F F2 [17:32:07]process_action close_receipt done [17:32:07]requested_data is exist [17:32:07]produce_requested_data [17:32:07]requested_item fm.sn is exist - process it [17:32:07]wFMCommunicate request_size=4 [17:32:07]MH_SAM_APDU [17:32:07]CAPDU: 80 11 00 00 [17:32:07]Write to MH i2c: E2 08 00 B8 26 80 11 00 00 00 00 00 00 58 [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:07]Read from MH i2c: E2 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 17 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 17 00 B8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [17: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 [17:32:07]wFMCommunicate OK [17:32:07]requested_item fd.num is exist - process it [17:32:07]SAM_PROTO_GetFieldsCounters [17:32:07]wFMCommunicate request_size=4 [17:32:07]MH_SAM_APDU [17:32:07]CAPDU: 80 13 00 00 [17:32:07]Write to MH i2c: E2 08 00 B9 26 80 13 00 00 00 00 00 00 5B [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:07]Read from MH i2c: E2 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 62 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 62 00 B9 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 4F 14 01 00 0E 04 04 00 C4 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 8F [17: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 4F 14 01 00 0E 04 04 00 C4 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 [17:32:07]wFMCommunicate OK [17:32:07]SAM_PROTO_GetFieldsCounters done [17:32:07]requested_item shift.num is exist - process it [17:32:07]requested_item shift.opened is exist - process it [17:32:07]req_shift_opened [17:32:07]FM_GetShiftState [17:32:07]SAM_PROTO_GetShiftState [17:32:07]wFMCommunicate request_size=4 [17:32:07]MH_SAM_APDU [17:32:07]CAPDU: 80 13 01 00 [17:32:07]Write to MH i2c: E2 08 00 BA 26 80 13 01 00 00 00 00 00 5D [17:32:07]Write i2c OK [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 [17:32:07]MH_I2C_Read... [17:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:07]Read from MH i2c: E2 0E 00 [17:32:07]MH_I2C_Read... [17:32:07]Read from MH i2c: E2 0E 00 BA 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EA [17:32:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:07]wFMCommunicate OK [17:32:07]SAM_PROTO_GetShiftState done [17:32:07]FM_GetShiftState done [17:32:07]req_shift_opened done [17:32:07]requested_item shift.open_date is exist - process it [17:32:07]req_shift_open_date [17:32:07]req_shift_open_date done [17:32:07]produce_requested_data done [17:32:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70735,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:32:07]process_action_free close_receipt [17:32:07]json_value_free [17:32:07]json_value_free done [17:32:07]process_json_proto returns [17:32:07]Send response to host [17:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70735,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:32:07]free response buf [17:32:07]execute_script done [17:32:07]execute_script returns [17:32:07]free content buf [17:32:07]Sock 7.Close socket [17:32:07]Sock 7.Thread stoped [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:42]accept exits with 9 [17:32:42]New connection [17:32:42]New thread 3067034980 created [17:32:42]Thread 3066891620 joined [17:32:42]Waiting for new connection... [17:32:42] Sock 9.Parse request [17:32:42]Sock 9.Check first char [17:32:42]Sock 9.First char is OK [17:32:42]request: POST /json_proto HTTP/1.0 [17:32:42]Method: POST [17:32:42]URL: /json_proto [17:32:42]Method is POST - this is cgi request [17:32:42]url: /json_proto [17:32:42]query_string will be loaded in cgi processing [17:32:42]execute_cgi json_proto POST (null) [17:32:42]execute_cgi path=json_proto method=POST [17:32:42]POST find Content-Length [17:32:42]Host: 172.17.50.3:8080 [17:32:42]Content-Length: 675 [17:32:42]Content-Type: application/json [17:32:42] [17:32:42]POST finish read [17:32:42]Found Content-Length = 675 [17:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886520", "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" : 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" ] } } [17:32:42]execute_script... [17:32: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)2886520", "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" : 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" ] } } [17:32:42]POST & json_proto [17:32:42]process_json_proto [17:32:42]json parsed OK: [17:32:42]protocol is kg_v1.0 [17:32:42]action value=close_receipt [17:32:42]process_action close_receipt [17:32:42]cmd_close_receipt [17:32:42]MH_GetDate [17:32:42]Write to MH i2c: F0 00 00 BB 26 D0 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 09 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 09 00 BB 26 00 3C 33 19 67 6B 98 1E 66 4F [17:32:42]GetLastDocTimeStamp 1729704725 [17:32:42]current date 1729704764 [17:32:42]FM_GetShiftState [17:32:42]SAM_PROTO_GetShiftState [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 13 01 00 [17:32:42]Write to MH i2c: E2 08 00 BC 26 80 13 01 00 00 00 00 00 5F [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0E 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0E 00 BC 26 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EC [17:32:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:42]wFMCommunicate OK [17:32:42]SAM_PROTO_GetShiftState done [17:32:42]FM_GetShiftState done [17:32:42]opened in 1729642435 [17:32:42]opened+sec_in_day 1729728835 [17:32:42]quantity*price = 10058 [17:32:42]sum+1 = 10059 [17:32:42]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 СНО: Общий режим Чек 252 23.10.2024 17:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70736 ФПД: 5806476322988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70736&fm=5806476322988&tin=02508201610067®Number=0000000000156251&sum=10000 [17:32:43]StoreToDocumentArchive [17:32:43]shift 196 fd 70736 [17:32:43]save to /storage/0196/doc_00070736 [17:32:43]save last doc name /storage/0196/doc_00070736 to /storage/kkm_last_doc_name [17:32:43]save OK [17:32:43]Clear old archive folders... [17:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:32:43]tlvbuf is 001A9A50 [17:32:43]SAM_PROTO_ClearQueue [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 09 00 00 [17:32:43]Write to MH i2c: E2 08 00 C9 26 80 09 00 00 00 00 00 00 61 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 C9 26 00 90 00 63 [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]SAM_PROTO_ClearQueue done [17:32:43]KKMCreateOFDPacket [17:32:43]OFDProtocolAddRootSTLVToBuf [17:32:43]FM_MakeSignedData [17:32:43]FM_MakeSignedData [17:32:43]SAM_PROTO_SignData [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 0D 01 02 [17:32:43]Write to MH i2c: E2 08 00 CA 26 80 0D 01 02 00 00 00 00 69 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 CA 26 00 90 00 64 [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]wFMCommunicate request_size=255 [17:32:43]MH_SAM_APDU [17:32: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 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 FC 00 00 00 F4 03 04 00 3C 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 05 47 EC F5 [17:32:43]Write to MH i2c: E2 02 01 CB 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 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 FC 00 00 00 F4 03 04 00 3C 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 05 47 EC F5 00 00 77 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 CB 26 00 90 00 65 [17:32:44]RAPDU: 90 00 [17:32:44]wFMCommunicate OK [17:32:44]wFMCommunicate request_size=7 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 0D 02 02 02 68 AC [17:32:44]Write to MH i2c: E2 0A 00 CC 26 80 0D 02 02 02 00 68 AC 00 00 84 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 CC 26 00 90 00 66 [17:32:44]RAPDU: 90 00 [17:32:44]wFMCommunicate OK [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 0D 03 02 [17:32:44]Write to MH i2c: E2 08 00 CD 26 80 0D 03 02 00 00 00 00 6E [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0B 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0B 00 CD 26 00 C7 27 9D 65 E7 D5 2F 81 90 00 CB [17:32:44]RAPDU: C7 27 9D 65 E7 D5 2F 81 90 00 [17:32:44]wFMCommunicate OK [17:32:44]SAM_PROTO_SignData done [17:32:44]FM_MakeSignedData done [17:32:44]CreateOFDProtocolMessage [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 11 00 00 [17:32:44]Write to MH i2c: E2 08 00 CE 26 80 11 00 00 00 00 00 00 6E [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 17 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 17 00 CE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [17: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 [17:32:44]wFMCommunicate OK [17:32:44]CreateOFDProtocolMessage done [17:32:44]OFDSenderStorePacket 70736 [17:32:44]StoreOFDPacket docnum=70736 [17:32: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 20 03 04 01 DD 35 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 FC 00 00 00 F4 03 04 00 3C 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 05 47 EC F5 68 AC C7 27 9D 65 E7 D5 2F 81 [17:32:44]CheckFolder [17:32:44]dirname=/storage/ofd_packets [17:32:44]CheckFolder done [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00070736 [17:32:44]NVStorageSaveData ofd_packets/00070736 [17:32:44]File name is /storage/ofd_packets/00070736 [17:32:44]Write 298 bytes [17:32:44]NVStorageSaveData done [17:32:44]OFDSenderStorePacket done [17:32:44]KKMCreateOFDPacket done [17:32:44]NVStorageSaveData kkm_last_timestamp [17:32:44]File name is /storage/kkm_last_timestamp [17:32:44]Write 4 bytes [17:32:44]NVStorageSaveData done [17:32:44]ExternCall_PrintAddStr [17:32:44]wPrintStart [17:32:44]Write to MH i2c: 01 00 00 CF 26 F5 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 07 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 07 00 CF 26 00 00 00 00 00 FF 0F 0A [17:32:44]RasterBufferAndPrint [17:32:44]line Счет N : (1)2886520 [17:32:44]line ИНН: 02508201610067 [17:32:44]line Контрольно-Кассовый Чек [17:32:44]line ПРОДАЖА [17:32:44]line ТРК (МРК, ГНК) : 61 [17:32:44]line Товар: 2710194210 [17:32:44]line ДТ-К-5 [17:32:44]line 1.320 * 76.20 [17:32:44]line = 100.58 [17:32:44]line НДС 12% НСП 1% [17:32:44]line > о реализуемом товаре [17:32:44]line ОКРУГЛЕНИЕ: -0.58 [17:32:44]line ИТОГО: 100.00 [17:32:44]line Внесено: 100.00 [17:32:44]line СДАЧА: 0.00 [17:32:44]line НСП 1% : 0.89 [17:32:44]line НДС 12% : 10.68 [17:32:44]line Наличными: 100.00 [17:32:44]line Безнал.: 0.00 [17:32:44]line Место: АЗС № 85 "Партнер Нефть" [17:32:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:44]line СНО: Общий режим [17:32:44]line Чек 252 23.10.2024 17:32 [17:32:44]line Смена: 196 ФФД: 1.0 [17:32:44]line ЗНМ: 0300000167 [17:32:44]line РНМ: 0000000000156251 [17:32:44]line Версия ККМ: v1.0 [17:32:44]line ФМ: 0000000000963346 [17:32:44]line ФД: 70736 [17:32:44]line ФПД: 5806476322988 [17:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70736&fm=5806476322988&tin=02508201610067®Number=0000000000156251&sum=10000 [17:32:44]OFD Sender: Processing packet 70736 [packets to send 18, broken 17] [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00070736 [17:32:44]OFD Sender: To server: pG, [17:32:44]CommunicateWithHost lk.salyk.kg:30040 [17:32:44]ConnectInit lk.salyk.kg [17:32:44]written 0, free lines is 4095 [17:32:44]Connected sock=10 [17:32: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 20 03 04 01 DD 35 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 FC 00 00 00 F4 03 04 00 3C 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 05 47 EC F5 68 AC C7 27 9D 65 E7 D5 2F 81 [17:32: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 DD 64 47 00 89 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 50 14 01 00 F4 03 04 00 DA DC 18 67 B6 04 01 00 00 BF 01 E8 EA 07 01 DD BC [17:32:45]CommunicateWithHost err = 0 [17:32:45]CheckOFDResponse [17:32:45]1017 (14) - 77093643461234 [17:32:45]1041 (16) - 0000000000963346 [17:32:45]1040 (4) - 70736 [17:32:45]1012 (4) - 23.10.2024 11:24 [17:32:45]1206 (1) - 0 [17:32:45]OFD Sender: Remove packet 70736 [17:32:45]ProducePacketName [17:32:45]name=ofd_packets/00070736 [17:32:45]NVStorageDeleteData [17:32:45]Write to MH i2c: 01 00 00 FA 26 20 [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 07 00 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 07 00 FA 26 00 00 00 00 00 DF 0C 12 [17:32:45]RasterBufferAndPrint [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]written 0, free lines is 3301 [17:32:45]MH_Cut [17:32:45]Write to MH i2c: D1 01 00 01 27 01 FA [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 01 00 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 01 00 01 27 00 F9 [17:32:45]Write to MH i2c: 01 00 00 02 27 29 [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]OFD Sender: No OFD packet to send [17:32:45]*** Cut start [17:32:45]*** Partial cut [17:32:45]*** CUTSNS_PIN = 1 [17:32:45]*** CUTSNS_PIN = 0 [17:32:46]*** Brake cut motor [17:32:46]Read from MH i2c: 01 [17:32:46]MH_I2C_Read... [17:32:46]*** Stop cut motor [17:32:46]*** Cut end [17:32:46]Read from MH i2c: 01 07 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: 01 07 00 02 27 00 00 00 00 00 FF 0F 3E [17:32:46]process_action close_receipt done [17:32:46]requested_data is exist [17:32:46]produce_requested_data [17:32:46]requested_item fm.sn is exist - process it [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 11 00 00 [17:32:46]Write to MH i2c: E2 08 00 03 27 80 11 00 00 00 00 00 00 A4 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 03 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [17:32: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:32:46]wFMCommunicate OK [17:32:46]requested_item fd.num is exist - process it [17:32:46]SAM_PROTO_GetFieldsCounters [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 00 00 [17:32:46]Write to MH i2c: E2 08 00 04 27 80 13 00 00 00 00 00 00 A7 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 04 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 50 14 01 00 0E 04 04 00 C4 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 DF [17:32: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 50 14 01 00 0E 04 04 00 C4 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 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetFieldsCounters done [17:32:46]requested_item shift.num is exist - process it [17:32:46]requested_item shift.opened is exist - process it [17:32:46]req_shift_opened [17:32:46]FM_GetShiftState [17:32:46]SAM_PROTO_GetShiftState [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 01 00 [17:32:46]Write to MH i2c: E2 08 00 05 27 80 13 01 00 00 00 00 00 A9 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 05 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 36 [17:32:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetShiftState done [17:32:46]FM_GetShiftState done [17:32:46]req_shift_opened done [17:32:46]requested_item shift.open_date is exist - process it [17:32:46]req_shift_open_date [17:32:46]req_shift_open_date done [17:32:46]produce_requested_data done [17:32:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70736,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:32:46]process_action_free close_receipt [17:32:46]json_value_free [17:32:46]json_value_free done [17:32:46]process_json_proto returns [17:32:46]Send response to host [17:32:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70736,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:32:46]free response buf [17:32:46]execute_script done [17:32:46]execute_script returns [17:32:46]free content buf [17:32:46]Sock 9.Close socket [17:32:46]Sock 9.Thread stoped [17:32:47]accept exits with 7 [17:32:47]New connection [17:32:47]New thread 3066891620 created [17:32:47]Thread 3067034980 joined [17:32:47]Waiting for new connection... [17:32:47] Sock 7.Parse request [17:32:47]Sock 7.Check first char [17:32:47]Sock 7.First char is OK [17:32:47]request: POST /json_proto HTTP/1.0 [17:32:47]Method: POST [17:32:47]URL: /json_proto [17:32:47]Method is POST - this is cgi request [17:32:47]url: /json_proto [17:32:47]query_string will be loaded in cgi processing [17:32:47]execute_cgi json_proto POST (null) [17:32:47]execute_cgi path=json_proto method=POST [17:32:47]POST find Content-Length [17:32:47]Host: 172.17.50.3:8080 [17:32:47]Content-Length: 678 [17:32:47]Content-Type: application/json [17:32:47] [17:32:47]POST finish read [17:32:47]Found Content-Length = 678 [17:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886519", "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" ] } } [17:32:47]execute_script... [17:32: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)2886519", "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" ] } } [17:32:47]POST & json_proto [17:32:47]process_json_proto [17:32:47]json parsed OK: [17:32:47]protocol is kg_v1.0 [17:32:47]action value=close_receipt [17:32:47]process_action close_receipt [17:32:47]cmd_close_receipt [17:32:47]MH_GetDate [17:32:47]Write to MH i2c: F0 00 00 06 27 1C [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 09 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 09 00 06 27 00 41 33 19 67 6B 98 1E 66 A0 [17:32:47]GetLastDocTimeStamp 1729704764 [17:32:47]current date 1729704769 [17:32:47]FM_GetShiftState [17:32:47]SAM_PROTO_GetShiftState [17:32:47]wFMCommunicate request_size=4 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 13 01 00 [17:32:47]Write to MH i2c: E2 08 00 07 27 80 13 01 00 00 00 00 00 AB [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 0E 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 0E 00 07 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 38 [17:32:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:47]wFMCommunicate OK [17:32:47]SAM_PROTO_GetShiftState done [17:32:47]FM_GetShiftState done [17:32:47]opened in 1729642435 [17:32:47]opened+sec_in_day 1729728835 [17:32:47]quantity*price = 50041 [17:32:47]sum+1 = 50042 [17:32:47]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 СНО: Общий режим Чек 253 23.10.2024 17:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70737 ФПД: 10956545502421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70737&fm=10956545502421&tin=02508201610067®Number=0000000000156251&sum=50000 [17:32:48]StoreToDocumentArchive [17:32:48]shift 196 fd 70737 [17:32:48]save to /storage/0196/doc_00070737 [17:32:48]save last doc name /storage/0196/doc_00070737 to /storage/kkm_last_doc_name [17:32:48]save OK [17:32:48]Clear old archive folders... [17:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:48]tlvbuf is 001BE570 [17:32:48]SAM_PROTO_ClearQueue [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 09 00 00 [17:32:48]Write to MH i2c: E2 08 00 14 27 80 09 00 00 00 00 00 00 AD [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 14 27 00 90 00 AF [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_ClearQueue done [17:32:48]KKMCreateOFDPacket [17:32:48]OFDProtocolAddRootSTLVToBuf [17:32:48]FM_MakeSignedData [17:32:48]FM_MakeSignedData [17:32:48]SAM_PROTO_SignData [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 01 02 [17:32:48]Write to MH i2c: E2 08 00 15 27 80 0D 01 02 00 00 00 00 B5 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 15 27 00 90 00 B0 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=255 [17:32:48]MH_SAM_APDU [17:32: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 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 FD 00 00 00 F4 03 04 00 41 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 [17:32:48]Write to MH i2c: E2 02 01 16 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 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 FD 00 00 00 F4 03 04 00 41 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 00 00 62 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 16 27 00 90 00 B1 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=10 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 02 02 05 F7 05 00 AC D5 [17:32:48]Write to MH i2c: E2 0D 00 17 27 80 0D 02 02 05 00 F7 05 00 AC D5 00 00 3F [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 17 27 00 90 00 B2 [17:32:49]RAPDU: 90 00 [17:32:49]wFMCommunicate OK [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 0D 03 02 [17:32:49]Write to MH i2c: E2 08 00 18 27 80 0D 03 02 00 00 00 00 BA [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 0B 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 0B 00 18 27 00 2A 96 23 26 F6 04 BE C4 90 00 40 [17:32:49]RAPDU: 2A 96 23 26 F6 04 BE C4 90 00 [17:32:49]wFMCommunicate OK [17:32:49]SAM_PROTO_SignData done [17:32:49]FM_MakeSignedData done [17:32:49]CreateOFDProtocolMessage [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 11 00 00 [17:32:49]Write to MH i2c: E2 08 00 19 27 80 11 00 00 00 00 00 00 BA [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 17 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 17 00 19 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [17:32: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:32:49]wFMCommunicate OK [17:32:49]CreateOFDProtocolMessage done [17:32:49]OFDSenderStorePacket 70737 [17:32:49]StoreOFDPacket docnum=70737 [17:32: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 0C 7C 07 01 70 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FD 00 00 00 F4 03 04 00 41 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 F7 05 00 AC D5 2A 96 23 26 F6 04 BE C4 [17:32:49]CheckFolder [17:32:49]dirname=/storage/ofd_packets [17:32:49]CheckFolder done [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00070737 [17:32:49]NVStorageSaveData ofd_packets/00070737 [17:32:49]File name is /storage/ofd_packets/00070737 [17:32:49]Write 301 bytes [17:32:49]NVStorageSaveData done [17:32:49]OFDSenderStorePacket done [17:32:49]KKMCreateOFDPacket done [17:32:49]NVStorageSaveData kkm_last_timestamp [17:32:49]File name is /storage/kkm_last_timestamp [17:32:49]Write 4 bytes [17:32:49]NVStorageSaveData done [17:32:49]ExternCall_PrintAddStr [17:32:49]wPrintStart [17:32:49]Write to MH i2c: 01 00 00 1A 27 41 [17:32:49]OFD Sender: Processing packet 70737 [packets to send 18, broken 17] [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00070737 [17:32:49]OFD Sender: To server: pG, [17:32:49]CommunicateWithHost lk.salyk.kg:30040 [17:32:49]ConnectInit lk.salyk.kg [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [17:32:49]RasterBufferAndPrint [17:32:49]line Счет N : (1)2886519 [17:32:49]line ИНН: 02508201610067 [17:32:49]line Контрольно-Кассовый Чек [17:32:49]line ПРОДАЖА [17:32:49]line ТРК (МРК, ГНК) : 32 [17:32:49]line Товар: 2710124130 [17:32:49]line Аи-92-К-5 [17:32:49]line 7.480 * 66.90 [17:32:49]line = 500.41 [17:32:49]line НДС 12% НСП 1% [17:32:49]line > о реализуемом товаре [17:32:49]line ОКРУГЛЕНИЕ: -0.41 [17:32:49]line ИТОГО: 500.00 [17:32:49]line Внесено: 500.00 [17:32:49]line СДАЧА: 0.00 [17:32:49]line НСП 1% : 4.43 [17:32:49]line НДС 12% : 53.14 [17:32:49]line Наличными: 500.00 [17:32:49]line Безнал.: 0.00 [17:32:49]line Место: АЗС № 85 "Партнер Нефть" [17:32:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:49]line СНО: Общий режим [17:32:49]line Чек 253 23.10.2024 17:32 [17:32:49]line Смена: 196 ФФД: 1.0 [17:32:49]line ЗНМ: 0300000167 [17:32:49]line РНМ: 0000000000156251 [17:32:49]line Версия ККМ: v1.0 [17:32:49]line ФМ: 0000000000963346 [17:32:49]line ФД: 70737 [17:32:49]line ФПД: 10956545502421 [17:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70737&fm=10956545502421&tin=02508201610067®Number=0000000000156251&sum=50000 [17:32:49]written 0, free lines is 4095 [17:32:49]Connected sock=10 [17:32: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 0C 7C 07 01 70 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FD 00 00 00 F4 03 04 00 41 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 F7 05 00 AC D5 2A 96 23 26 F6 04 BE C4 [17:32: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 C6 89 47 00 32 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 51 14 01 00 F4 03 04 00 DE DC 18 67 B6 04 01 00 00 A9 CF 6A FC 84 3E 62 0E [17:32:49]CommunicateWithHost err = 0 [17:32:49]CheckOFDResponse [17:32:49]1017 (14) - 77093643461234 [17:32:49]1041 (16) - 0000000000963346 [17:32:49]1040 (4) - 70737 [17:32:49]1012 (4) - 23.10.2024 11:24 [17:32:49]1206 (1) - 0 [17:32:49]OFD Sender: Remove packet 70737 [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00070737 [17:32:49]NVStorageDeleteData [17:32:49]Write to MH i2c: 01 00 00 45 27 6C [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 45 27 00 00 00 00 00 EF 0C 6E [17:32:49]RasterBufferAndPrint [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]written 0, free lines is 3327 [17:32:49]MH_Cut [17:32:49]Write to MH i2c: D1 01 00 4C 27 01 45 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: D1 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: D1 01 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: D1 01 00 4C 27 00 44 [17:32:49]Write to MH i2c: 01 00 00 4D 27 74 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:50]OFD Sender: No OFD packet to send [17:32:50]*** Cut start [17:32:50]*** Partial cut [17:32:50]*** CUTSNS_PIN = 1 [17:32:50]*** CUTSNS_PIN = 0 [17:32:50]*** Brake cut motor [17:32:51]Read from MH i2c: 01 [17:32:51]MH_I2C_Read... [17:32:51]*** Stop cut motor [17:32:51]*** Cut end [17:32:51]Read from MH i2c: 01 07 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 4D 27 00 00 00 00 00 FF 0F 89 [17:32:51]process_action close_receipt done [17:32:51]requested_data is exist [17:32:51]produce_requested_data [17:32:51]requested_item fm.sn is exist - process it [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 11 00 00 [17:32:51]Write to MH i2c: E2 08 00 4E 27 80 11 00 00 00 00 00 00 EF [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 17 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 17 00 4E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [17:32: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:32:51]wFMCommunicate OK [17:32:51]requested_item fd.num is exist - process it [17:32:51]SAM_PROTO_GetFieldsCounters [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 13 00 00 [17:32:51]Write to MH i2c: E2 08 00 4F 27 80 13 00 00 00 00 00 00 F2 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 62 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 62 00 4F 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 51 14 01 00 0E 04 04 00 C4 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 2E [17:32: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 51 14 01 00 0E 04 04 00 C4 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 [17:32:51]wFMCommunicate OK [17:32:51]SAM_PROTO_GetFieldsCounters done [17:32:51]requested_item shift.num is exist - process it [17:32:51]requested_item shift.opened is exist - process it [17:32:51]req_shift_opened [17:32:51]FM_GetShiftState [17:32:51]SAM_PROTO_GetShiftState [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 13 01 00 [17:32:51]Write to MH i2c: E2 08 00 50 27 80 13 01 00 00 00 00 00 F4 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 50 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 81 [17:32:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:51]wFMCommunicate OK [17:32:51]SAM_PROTO_GetShiftState done [17:32:51]FM_GetShiftState done [17:32:51]req_shift_opened done [17:32:51]requested_item shift.open_date is exist - process it [17:32:51]req_shift_open_date [17:32:51]req_shift_open_date done [17:32:51]produce_requested_data done [17:32:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70737,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:32:51]process_action_free close_receipt [17:32:51]json_value_free [17:32:51]json_value_free done [17:32:51]process_json_proto returns [17:32:51]Send response to host [17:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70737,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:32:51]free response buf [17:32:51]execute_script done [17:32:51]execute_script returns [17:32:51]free content buf [17:32:51]Sock 7.Close socket [17:32:51]Sock 7.Thread stoped [17:32:51]accept exits with 9 [17:32:51]New connection [17:32:51]New thread 3067034980 created [17:32:51]Thread 3066891620 joined [17:32:51]Waiting for new connection... [17:32:51] Sock 9.Parse request [17:32:51]Sock 9.Check first char [17:32:51]Sock 9.First char is OK [17:32:51]request: POST /json_proto HTTP/1.0 [17:32:51]Method: POST [17:32:51]URL: /json_proto [17:32:51]Method is POST - this is cgi request [17:32:51]url: /json_proto [17:32:51]query_string will be loaded in cgi processing [17:32:51]execute_cgi json_proto POST (null) [17:32:51]execute_cgi path=json_proto method=POST [17:32:51]POST find Content-Length [17:32:51]Host: 172.17.50.3:8080 [17:32:51]Content-Length: 755 [17:32:51]Content-Type: application/json [17:32:51] [17:32:51]POST finish read [17:32:51]Found Content-Length = 755 [17:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886517", "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" : 24.880, "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]execute_script... [17:32: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)2886517", "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" : 24.880, "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]POST & json_proto [17:32:51]process_json_proto [17:32:51]json parsed OK: [17:32:51]protocol is kg_v1.0 [17:32:51]action value=close_receipt [17:32:51]process_action close_receipt [17:32:51]cmd_close_receipt [17:32:51]MH_GetDate [17:32:51]Write to MH i2c: F0 00 00 51 27 67 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 09 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 09 00 51 27 00 46 33 19 67 6B 98 1E 66 F0 [17:32:51]GetLastDocTimeStamp 1729704769 [17:32:51]current date 1729704774 [17:32:51]FM_GetShiftState [17:32:51]SAM_PROTO_GetShiftState [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 13 01 00 [17:32:51]Write to MH i2c: E2 08 00 52 27 80 13 01 00 00 00 00 00 F6 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 52 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 83 [17:32:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:51]wFMCommunicate OK [17:32:51]SAM_PROTO_GetShiftState done [17:32:51]FM_GetShiftState done [17:32:51]opened in 1729642435 [17:32:51]opened+sec_in_day 1729728835 [17:32:51]quantity*price = 0 [17:32:51]sum+1 = 1 [17:32: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 СНО: Общий режим Чек 254 23.10.2024 17:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100954 ФМ: 0000000000963346 ФД: 70738 ФПД: 47689913433955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70738&fm=47689913433955&tin=02508201610067®Number=0000000000156251&sum=0 [17:32:52]StoreToDocumentArchive [17:32:52]shift 196 fd 70738 [17:32:52]save to /storage/0196/doc_00070738 [17:32:52]save last doc name /storage/0196/doc_00070738 to /storage/kkm_last_doc_name [17:32:52]save OK [17:32:52]Clear old archive folders... [17:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:52]tlvbuf is 00265600 [17:32:52]SAM_PROTO_ClearQueue [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 09 00 00 [17:32:52]Write to MH i2c: E2 08 00 5F 27 80 09 00 00 00 00 00 00 F8 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 5F 27 00 90 00 FA [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_ClearQueue done [17:32:53]KKMCreateOFDPacket [17:32:53]OFDProtocolAddRootSTLVToBuf [17:32:53]FM_MakeSignedData [17:32:53]FM_MakeSignedData [17:32:53]SAM_PROTO_SignData [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 01 02 [17:32:53]Write to MH i2c: E2 08 00 60 27 80 0D 01 02 00 00 00 00 00 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=255 [17:32:53]MH_SAM_APDU [17:32: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 30 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 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2B [17:32:53]Write to MH i2c: E2 02 01 61 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 30 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 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2B 00 00 E2 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=10 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 02 02 05 5F AC 59 7F 63 [17:32:53]Write to MH i2c: E2 0D 00 62 27 80 0D 02 02 05 00 5F AC 59 7F 63 00 00 53 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 62 27 00 90 00 FD [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 03 02 [17:32:53]Write to MH i2c: E2 08 00 63 27 80 0D 03 02 00 00 00 00 05 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0B 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0B 00 63 27 00 CA 30 EC 95 4D E2 F8 D8 90 00 80 [17:32:53]RAPDU: CA 30 EC 95 4D E2 F8 D8 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_SignData done [17:32:53]FM_MakeSignedData done [17:32:53]CreateOFDProtocolMessage [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 11 00 00 [17:32:53]Write to MH i2c: E2 08 00 64 27 80 11 00 00 00 00 00 00 05 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 64 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [17:32: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:32:53]wFMCommunicate OK [17:32:53]CreateOFDProtocolMessage done [17:32:53]OFDSenderStorePacket 70738 [17:32:53]StoreOFDPacket docnum=70738 [17:32: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 C7 E7 07 01 F9 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2B 5F AC 59 7F 63 CA 30 EC 95 4D E2 F8 D8 [17:32:53]CheckFolder [17:32:53]dirname=/storage/ofd_packets [17:32:53]CheckFolder done [17:32:53]ProducePacketName [17:32:53]name=ofd_packets/00070738 [17:32:53]NVStorageSaveData ofd_packets/00070738 [17:32:53]File name is /storage/ofd_packets/00070738 [17:32:53]Write 301 bytes [17:32:53]NVStorageSaveData done [17:32:53]OFDSenderStorePacket done [17:32:53]KKMCreateOFDPacket done [17:32:53]NVStorageSaveData kkm_last_timestamp [17:32:53]File name is /storage/kkm_last_timestamp [17:32:53]Write 4 bytes [17:32:53]NVStorageSaveData done [17:32:53]ExternCall_PrintAddStr [17:32:53]wPrintStart [17:32:53]Write to MH i2c: 01 00 00 65 27 8C [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [17:32:53]RasterBufferAndPrint [17:32:53]line Счет N : (1)2886517 [17:32:53]line ИНН: 02508201610067 [17:32:53]line Контрольно-Кассовый Чек [17:32:53]line ПРОДАЖА [17:32:53]line ТРК (МРК, ГНК) : 12 [17:32:53]line Товар: 2710124130 [17:32:53]line Аи-92-К-5 [17:32:53]line 24.880 * 0.00 [17:32:53]line = 0.00 [17:32:53]line НДС 12% НСП 1% [17:32:53]line > о реализуемом товаре [17:32:53]line ИТОГО: 0.00 [17:32:53]line НСП 1% : 0.00 [17:32:53]line НДС 12% : 0.00 [17:32:53]line Наличными: 0.00 [17:32:53]line Безнал.: 0.00 [17:32:53]line Место: АЗС № 85 "Партнер Нефть" [17:32:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:53]line СНО: Общий режим [17:32:53]line Чек 254 23.10.2024 17:32 [17:32:53]line Смена: 196 ФФД: 1.0 [17:32:53]line ЗНМ: 0300000167 [17:32:53]line РНМ: 0000000000156251 [17:32:53]line Версия ККМ: v1.0 [17:32:53]line Талоны: ТК ГПНА Online [17:32:53]line 30100954 [17:32:53]line ФМ: 0000000000963346 [17:32:53]line ФД: 70738 [17:32:53]line ФПД: 47689913433955 [17:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70738&fm=47689913433955&tin=02508201610067®Number=0000000000156251&sum=0 [17:32:53]written 0, free lines is 4095 [17:32:54]OFD Sender: Processing packet 70738 [packets to send 18, broken 17] [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00070738 [17:32:54]OFD Sender: To server: pG, [17:32:54]CommunicateWithHost lk.salyk.kg:30040 [17:32:54]ConnectInit lk.salyk.kg [17:32:54]Connected sock=10 [17:32: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 C7 E7 07 01 F9 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 FE 00 00 00 F4 03 04 00 46 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2B 5F AC 59 7F 63 CA 30 EC 95 4D E2 F8 D8 [17:32: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 4A BE 47 00 7E 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 52 14 01 00 F4 03 04 00 E3 DC 18 67 B6 04 01 00 00 17 CD D9 90 BD AB 99 B4 [17:32:54]CommunicateWithHost err = 0 [17:32:54]CheckOFDResponse [17:32:54]1017 (14) - 77093643461234 [17:32:54]1041 (16) - 0000000000963346 [17:32:54]1040 (4) - 70738 [17:32:54]1012 (4) - 23.10.2024 11:24 [17:32:54]1206 (1) - 0 [17:32:54]OFD Sender: Remove packet 70738 [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00070738 [17:32:54]NVStorageDeleteData [17:32:54]Write to MH i2c: 01 00 00 8F 27 B6 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 8F 27 00 00 00 00 00 7A 0D 44 [17:32:54]RasterBufferAndPrint [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]written 0, free lines is 3471 [17:32:54]MH_Cut [17:32:54]Write to MH i2c: D1 01 00 96 27 01 8F [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 96 27 00 8E [17:32:54]Write to MH i2c: 01 00 00 97 27 BE [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:55]OFD Sender: No OFD packet to send [17:32:55]*** Cut start [17:32:55]*** Partial cut [17:32:55]*** CUTSNS_PIN = 1 [17:32:55]*** CUTSNS_PIN = 0 [17:32:55]*** Brake cut motor [17:32:55]Read from MH i2c: 01 [17:32:55]MH_I2C_Read... [17:32:55]*** Stop cut motor [17:32:55]*** Cut end [17:32:55]Read from MH i2c: 01 07 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: 01 07 00 97 27 00 00 00 00 00 FF 0F D3 [17:32:55]process_action close_receipt done [17:32:55]requested_data is exist [17:32:55]produce_requested_data [17:32:55]requested_item fm.sn is exist - process it [17:32:55]wFMCommunicate request_size=4 [17:32:55]MH_SAM_APDU [17:32:55]CAPDU: 80 11 00 00 [17:32:55]Write to MH i2c: E2 08 00 98 27 80 11 00 00 00 00 00 00 39 [17:32:55]Write i2c OK [17:32:55]MH_I2C_Read... [17:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:55]Read from MH i2c: E2 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 17 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 17 00 98 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [17:32: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:32:55]wFMCommunicate OK [17:32:55]requested_item fd.num is exist - process it [17:32:55]SAM_PROTO_GetFieldsCounters [17:32:55]wFMCommunicate request_size=4 [17:32:55]MH_SAM_APDU [17:32:55]CAPDU: 80 13 00 00 [17:32:55]Write to MH i2c: E2 08 00 99 27 80 13 00 00 00 00 00 00 3C [17:32:55]Write i2c OK [17:32:55]MH_I2C_Read... [17:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:55]Read from MH i2c: E2 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 62 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 62 00 99 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 52 14 01 00 0E 04 04 00 C4 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 7C [17:32: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 52 14 01 00 0E 04 04 00 C4 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 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetFieldsCounters done [17:32:56]requested_item shift.num is exist - process it [17:32:56]requested_item shift.opened is exist - process it [17:32:56]req_shift_opened [17:32:56]FM_GetShiftState [17:32:56]SAM_PROTO_GetShiftState [17:32:56]wFMCommunicate request_size=4 [17:32:56]MH_SAM_APDU [17:32:56]CAPDU: 80 13 01 00 [17:32:56]Write to MH i2c: E2 08 00 9A 27 80 13 01 00 00 00 00 00 3E [17:32:56]Write i2c OK [17:32:56]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 9A 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CB [17:32:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetShiftState done [17:32:56]FM_GetShiftState done [17:32:56]req_shift_opened done [17:32:56]requested_item shift.open_date is exist - process it [17:32:56]req_shift_open_date [17:32:56]req_shift_open_date done [17:32:56]produce_requested_data done [17:32:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70738,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:32:56]process_action_free close_receipt [17:32:56]json_value_free [17:32:56]json_value_free done [17:32:56]process_json_proto returns [17:32:56]Send response to host [17:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70738,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:32:56]free response buf [17:32:56]execute_script done [17:32:56]execute_script returns [17:32:56]free content buf [17:32:56]Sock 9.Close socket [17:32:56]Sock 9.Thread stoped [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:33:55]accept exits with 7 [17:33:55]New connection [17:33:55]New thread 3066891620 created [17:33:55]Thread 3067034980 joined [17:33:55]Waiting for new connection... [17:33:55] Sock 7.Parse request [17:33:55]Sock 7.Check first char [17:33:55]Sock 7.First char is OK [17:33:55]request: POST /json_proto HTTP/1.0 [17:33:55]Method: POST [17:33:55]URL: /json_proto [17:33:55]Method is POST - this is cgi request [17:33:55]url: /json_proto [17:33:55]query_string will be loaded in cgi processing [17:33:55]execute_cgi json_proto POST (null) [17:33:55]execute_cgi path=json_proto method=POST [17:33:55]POST find Content-Length [17:33:55]Host: 172.17.50.3:8080 [17:33:55]Content-Length: 754 [17:33:55]Content-Type: application/json [17:33:55] [17:33:55]POST finish read [17:33:55]Found Content-Length = 754 [17:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886521", "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" : 5.500, "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:55]execute_script... [17:33: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)2886521", "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" : 5.500, "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\u000A30100954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:55]POST & json_proto [17:33:55]process_json_proto [17:33:55]json parsed OK: [17:33:55]protocol is kg_v1.0 [17:33:55]action value=close_receipt [17:33:55]process_action close_receipt [17:33:55]cmd_close_receipt [17:33:55]MH_GetDate [17:33:55]Write to MH i2c: F0 00 00 9B 27 B1 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: F0 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: F0 09 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: F0 09 00 9B 27 00 85 33 19 67 6B 98 1E 66 79 [17:33:55]GetLastDocTimeStamp 1729704774 [17:33:55]current date 1729704837 [17:33:55]FM_GetShiftState [17:33:55]SAM_PROTO_GetShiftState [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 13 01 00 [17:33:55]Write to MH i2c: E2 08 00 9C 27 80 13 01 00 00 00 00 00 40 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0E 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0E 00 9C 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CD [17:33:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_GetShiftState done [17:33:55]FM_GetShiftState done [17:33:55]opened in 1729642435 [17:33:55]opened+sec_in_day 1729728835 [17:33:55]quantity*price = 0 [17:33:55]sum+1 = 1 [17:33:55]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 23.10.2024 17:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100954 ФМ: 0000000000963346 ФД: 70739 ФПД: 161358370740336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70739&fm=161358370740336&tin=02508201610067®Number=0000000000156251&sum=0 [17:33:56]StoreToDocumentArchive [17:33:56]shift 196 fd 70739 [17:33:56]save to /storage/0196/doc_00070739 [17:33:56]save last doc name /storage/0196/doc_00070739 to /storage/kkm_last_doc_name [17:33:56]save OK [17:33:56]Clear old archive folders... [17:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:56]tlvbuf is 002028F0 [17:33:56]SAM_PROTO_ClearQueue [17:33:56]wFMCommunicate request_size=4 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 09 00 00 [17:33:56]Write to MH i2c: E2 08 00 A9 27 80 09 00 00 00 00 00 00 42 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 A9 27 00 90 00 44 [17:33:56]RAPDU: 90 00 [17:33:56]wFMCommunicate OK [17:33:56]SAM_PROTO_ClearQueue done [17:33:56]KKMCreateOFDPacket [17:33:56]OFDProtocolAddRootSTLVToBuf [17:33:56]FM_MakeSignedData [17:33:56]FM_MakeSignedData [17:33:56]SAM_PROTO_SignData [17:33:56]wFMCommunicate request_size=4 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 0D 01 02 [17:33:56]Write to MH i2c: E2 08 00 AA 27 80 0D 01 02 00 00 00 00 4A [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 AA 27 00 90 00 45 [17:33:56]RAPDU: 90 00 [17:33:56]wFMCommunicate OK [17:33:56]wFMCommunicate request_size=255 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 92 [17:33:56]Write to MH i2c: E2 02 01 AB 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 7C 15 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 92 00 00 D4 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 AB 27 00 90 00 46 [17:33:56]RAPDU: 90 00 [17:33:56]wFMCommunicate OK [17:33:56]wFMCommunicate request_size=10 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 0D 02 02 05 C1 2C 5E 98 70 [17:33:56]Write to MH i2c: E2 0D 00 AC 27 80 0D 02 02 05 00 C1 2C 5E 98 70 00 00 AA [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 03 00 AC 27 00 90 00 47 [17:33:56]RAPDU: 90 00 [17:33:56]wFMCommunicate OK [17:33:56]wFMCommunicate request_size=4 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 0D 03 02 [17:33:56]Write to MH i2c: E2 08 00 AD 27 80 0D 03 02 00 00 00 00 4F [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 0B 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 0B 00 AD 27 00 4C 97 EE 20 BE C2 AB 18 90 00 84 [17:33:56]RAPDU: 4C 97 EE 20 BE C2 AB 18 90 00 [17:33:56]wFMCommunicate OK [17:33:56]SAM_PROTO_SignData done [17:33:56]FM_MakeSignedData done [17:33:56]CreateOFDProtocolMessage [17:33:56]wFMCommunicate request_size=4 [17:33:56]MH_SAM_APDU [17:33:56]CAPDU: 80 11 00 00 [17:33:56]Write to MH i2c: E2 08 00 AE 27 80 11 00 00 00 00 00 00 4F [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 17 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 17 00 AE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [17:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:33:56]wFMCommunicate OK [17:33:56]CreateOFDProtocolMessage done [17:33:56]OFDSenderStorePacket 70739 [17:33:56]StoreOFDPacket docnum=70739 [17:33: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 FD 48 07 01 8E F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 92 C1 2C 5E 98 70 4C 97 EE 20 BE C2 AB 18 [17:33:56]CheckFolder [17:33:56]dirname=/storage/ofd_packets [17:33:56]CheckFolder done [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00070739 [17:33:56]NVStorageSaveData ofd_packets/00070739 [17:33:56]File name is /storage/ofd_packets/00070739 [17:33:56]Write 301 bytes [17:33:56]NVStorageSaveData done [17:33:56]OFDSenderStorePacket done [17:33:56]KKMCreateOFDPacket done [17:33:56]NVStorageSaveData kkm_last_timestamp [17:33:56]File name is /storage/kkm_last_timestamp [17:33:56]Write 4 bytes [17:33:56]NVStorageSaveData done [17:33:56]ExternCall_PrintAddStr [17:33:56]wPrintStart [17:33:56]Write to MH i2c: 01 00 00 AF 27 D6 [17:33:56]OFD Sender: Processing packet 70739 [packets to send 18, broken 17] [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00070739 [17:33:56]OFD Sender: To server: pG, [17:33:56]CommunicateWithHost lk.salyk.kg:30040 [17:33:56]ConnectInit lk.salyk.kg [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 FF 0F EB [17:33:56]RasterBufferAndPrint [17:33:56]line Счет N : (1)2886521 [17:33:56]line ИНН: 02508201610067 [17:33:56]line Контрольно-Кассовый Чек [17:33:56]line ПРОДАЖА [17:33:56]line ТРК (МРК, ГНК) : 12 [17:33:56]line Товар: 2710124130 [17:33:56]line Аи-92-К-5 [17:33:56]line 5.500 * 0.00 [17:33:56]line = 0.00 [17:33:56]line НДС 12% НСП 1% [17:33:56]line > о реализуемом товаре [17:33:56]line ИТОГО: 0.00 [17:33:56]line НСП 1% : 0.00 [17:33:56]line НДС 12% : 0.00 [17:33:56]line Наличными: 0.00 [17:33:56]line Безнал.: 0.00 [17:33:56]line Место: АЗС № 85 "Партнер Нефть" [17:33:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:33:56]line СНО: Общий режим [17:33:56]line Чек 255 23.10.2024 17:33 [17:33:56]line Смена: 196 ФФД: 1.0 [17:33:56]line ЗНМ: 0300000167 [17:33:56]line РНМ: 0000000000156251 [17:33:56]line Версия ККМ: v1.0 [17:33:56]line Талоны: ТК ГПНА Online [17:33:56]line 30100954 [17:33:56]line ФМ: 0000000000963346 [17:33:56]line ФД: 70739 [17:33:56]line ФПД: 161358370740336 [17:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70739&fm=161358370740336&tin=02508201610067®Number=0000000000156251&sum=0 [17:33:57]Connected sock=9 [17:33: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 FD 48 07 01 8E F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 92 C1 2C 5E 98 70 4C 97 EE 20 BE C2 AB 18 [17:33:57]written 0, free lines is 4095 [17:33: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 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 53 14 01 00 F4 03 04 00 22 DD 18 67 B6 04 01 00 00 A0 3B 4A B3 7B 94 F7 4F [17:33:57]CommunicateWithHost err = 0 [17:33:57]CheckOFDResponse [17:33:57]1017 (14) - 77093643461234 [17:33:57]1041 (16) - 0000000000963346 [17:33:57]1040 (4) - 70739 [17:33:57]1012 (4) - 23.10.2024 11:25 [17:33:57]1206 (1) - 0 [17:33:57]OFD Sender: Remove packet 70739 [17:33:57]ProducePacketName [17:33:57]name=ofd_packets/00070739 [17:33:57]NVStorageDeleteData [17:33:57]Write to MH i2c: 01 00 00 D9 27 00 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 07 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FA 0C 0D [17:33:57]RasterBufferAndPrint [17:33:57]line [17:33:57]line [17:33:57]line [17:33:57]line [17:33:57]line [17:33:57]written 0, free lines is 3328 [17:33:57]MH_Cut [17:33:57]Write to MH i2c: D1 01 00 E0 27 01 D9 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: D1 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: D1 01 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: D1 01 00 E0 27 00 D8 [17:33:57]Write to MH i2c: 01 00 00 E1 27 08 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]OFD Sender: No OFD packet to send [17:33:58]*** Cut start [17:33:58]*** Partial cut [17:33:58]*** CUTSNS_PIN = 1 [17:33:58]*** CUTSNS_PIN = 0 [17:33:58]*** Brake cut motor [17:33:58]Read from MH i2c: 01 [17:33:58]MH_I2C_Read... [17:33:58]*** Stop cut motor [17:33:58]*** Cut end [17:33:58]Read from MH i2c: 01 07 00 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: 01 07 00 E1 27 00 00 00 00 00 FF 0F 1D [17:33:58]process_action close_receipt done [17:33:58]requested_data is exist [17:33:58]produce_requested_data [17:33:58]requested_item fm.sn is exist - process it [17:33:58]wFMCommunicate request_size=4 [17:33:58]MH_SAM_APDU [17:33:58]CAPDU: 80 11 00 00 [17:33:58]Write to MH i2c: E2 08 00 E2 27 80 11 00 00 00 00 00 00 83 [17:33:58]Write i2c OK [17:33:58]MH_I2C_Read... [17:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:59]Read from MH i2c: E2 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 17 00 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 17 00 E2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [17: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 [17:33:59]wFMCommunicate OK [17:33:59]requested_item fd.num is exist - process it [17:33:59]SAM_PROTO_GetFieldsCounters [17:33:59]wFMCommunicate request_size=4 [17:33:59]MH_SAM_APDU [17:33:59]CAPDU: 80 13 00 00 [17:33:59]Write to MH i2c: E2 08 00 E3 27 80 13 00 00 00 00 00 00 86 [17:33:59]Write i2c OK [17:33:59]MH_I2C_Read... [17:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:59]Read from MH i2c: E2 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 62 00 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 62 00 E3 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 53 14 01 00 0E 04 04 00 C4 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 CB [17:33: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 53 14 01 00 0E 04 04 00 C4 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 [17:33:59]wFMCommunicate OK [17:33:59]SAM_PROTO_GetFieldsCounters done [17:33:59]requested_item shift.num is exist - process it [17:33:59]requested_item shift.opened is exist - process it [17:33:59]req_shift_opened [17:33:59]FM_GetShiftState [17:33:59]SAM_PROTO_GetShiftState [17:33:59]wFMCommunicate request_size=4 [17:33:59]MH_SAM_APDU [17:33:59]CAPDU: 80 13 01 00 [17:33:59]Write to MH i2c: E2 08 00 E4 27 80 13 01 00 00 00 00 00 88 [17:33:59]Write i2c OK [17:33:59]MH_I2C_Read... [17:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:59]Read from MH i2c: E2 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 0E 00 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 0E 00 E4 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 15 [17:33:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:33:59]wFMCommunicate OK [17:33:59]SAM_PROTO_GetShiftState done [17:33:59]FM_GetShiftState done [17:33:59]req_shift_opened done [17:33:59]requested_item shift.open_date is exist - process it [17:33:59]req_shift_open_date [17:33:59]req_shift_open_date done [17:33:59]produce_requested_data done [17:33:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70739,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:33:59]process_action_free close_receipt [17:33:59]json_value_free [17:33:59]json_value_free done [17:33:59]process_json_proto returns [17:33:59]Send response to host [17:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70739,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:33:59]free response buf [17:33:59]execute_script done [17:33:59]execute_script returns [17:33:59]free content buf [17:33:59]Sock 7.Close socket [17:33:59]Sock 7.Thread stoped [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:31]accept exits with 10 [17:34:31]New connection [17:34:31]New thread 3067034980 created [17:34:31]Thread 3066891620 joined [17:34:31]Waiting for new connection... [17:34:31] Sock 10.Parse request [17:34:31]Sock 10.Check first char [17:34:31]Sock 10.First char is OK [17:34:31]request: POST /json_proto HTTP/1.0 [17:34:31]Method: POST [17:34:31]URL: /json_proto [17:34:31]Method is POST - this is cgi request [17:34:31]url: /json_proto [17:34:31]query_string will be loaded in cgi processing [17:34:31]execute_cgi json_proto POST (null) [17:34:31]execute_cgi path=json_proto method=POST [17:34:31]POST find Content-Length [17:34:31]Host: 172.17.50.3:8080 [17:34:31]Content-Length: 676 [17:34:31]Content-Type: application/json [17:34:31] [17:34:31]POST finish read [17:34:31]Found Content-Length = 676 [17:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886522", "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" : 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" ] } } [17:34:31]execute_script... [17:34: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)2886522", "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" : 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" ] } } [17:34:31]POST & json_proto [17:34:31]process_json_proto [17:34:31]json parsed OK: [17:34:31]protocol is kg_v1.0 [17:34:31]action value=close_receipt [17:34:31]process_action close_receipt [17:34:31]cmd_close_receipt [17:34:31]MH_GetDate [17:34:31]Write to MH i2c: F0 00 00 E5 27 FB [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 E5 27 00 A9 33 19 67 6B 98 1E 66 E7 [17:34:31]GetLastDocTimeStamp 1729704837 [17:34:31]current date 1729704873 [17:34:31]FM_GetShiftState [17:34:31]SAM_PROTO_GetShiftState [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 01 00 [17:34:31]Write to MH i2c: E2 08 00 E6 27 80 13 01 00 00 00 00 00 8A [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 E6 27 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 17 [17:34:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetShiftState done [17:34:31]FM_GetShiftState done [17:34:31]opened in 1729642435 [17:34:31]opened+sec_in_day 1729728835 [17:34:31]quantity*price = 90068 [17:34:31]sum+1 = 90069 [17:34:31]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 СНО: Общий режим Чек 256 23.10.2024 17:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70740 ФПД: 209595122730209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70740&fm=209595122730209&tin=02508201610067®Number=0000000000156251&sum=90000 [17:34:32]StoreToDocumentArchive [17:34:32]shift 196 fd 70740 [17:34:32]save to /storage/0196/doc_00070740 [17:34:32]save last doc name /storage/0196/doc_00070740 to /storage/kkm_last_doc_name [17:34:32]save OK [17:34:32]Clear old archive folders... [17:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:32]tlvbuf is 001FB2B0 [17:34:32]SAM_PROTO_ClearQueue [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 09 00 00 [17:34:32]Write to MH i2c: E2 08 00 F3 27 80 09 00 00 00 00 00 00 8C [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 F3 27 00 90 00 8E [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_ClearQueue done [17:34:32]KKMCreateOFDPacket [17:34:32]OFDProtocolAddRootSTLVToBuf [17:34:32]FM_MakeSignedData [17:34:32]FM_MakeSignedData [17:34:32]SAM_PROTO_SignData [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 01 02 [17:34:32]Write to MH i2c: E2 08 00 F4 27 80 0D 01 02 00 00 00 00 94 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 F4 27 00 90 00 8F [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=255 [17:34:32]MH_SAM_APDU [17:34: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 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 00 01 00 00 F4 03 04 00 A9 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE A0 2A D6 [17:34:32]Write to MH i2c: E2 02 01 F5 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 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 00 01 00 00 F4 03 04 00 A9 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE A0 2A D6 00 00 C4 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 F5 27 00 90 00 90 [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=7 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 02 02 02 44 E1 [17:34:32]Write to MH i2c: E2 0A 00 F6 27 80 0D 02 02 02 00 44 E1 00 00 C0 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 F6 27 00 90 00 91 [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 03 02 [17:34:32]Write to MH i2c: E2 08 00 F7 27 80 0D 03 02 00 00 00 00 99 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0B 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0B 00 F7 27 00 6F E0 46 7A 13 B8 15 63 90 00 EC [17:34:32]RAPDU: 6F E0 46 7A 13 B8 15 63 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_SignData done [17:34:32]FM_MakeSignedData done [17:34:32]CreateOFDProtocolMessage [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 11 00 00 [17:34:32]Write to MH i2c: E2 08 00 F8 27 80 11 00 00 00 00 00 00 99 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 17 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 17 00 F8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [17:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:34:32]wFMCommunicate OK [17:34:32]CreateOFDProtocolMessage done [17:34:32]OFDSenderStorePacket 70740 [17:34:32]StoreOFDPacket docnum=70740 [17:34: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 86 F0 04 01 1C 85 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 00 01 00 00 F4 03 04 00 A9 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE A0 2A D6 44 E1 6F E0 46 7A 13 B8 15 63 [17:34:32]CheckFolder [17:34:32]dirname=/storage/ofd_packets [17:34:32]CheckFolder done [17:34:32]ProducePacketName [17:34:32]name=ofd_packets/00070740 [17:34:32]NVStorageSaveData ofd_packets/00070740 [17:34:32]File name is /storage/ofd_packets/00070740 [17:34:32]Write 298 bytes [17:34:32]NVStorageSaveData done [17:34:32]OFDSenderStorePacket done [17:34:32]KKMCreateOFDPacket done [17:34:32]NVStorageSaveData kkm_last_timestamp [17:34:32]File name is /storage/kkm_last_timestamp [17:34:32]Write 4 bytes [17:34:32]NVStorageSaveData done [17:34:32]ExternCall_PrintAddStr [17:34:32]wPrintStart [17:34:32]Write to MH i2c: 01 00 00 F9 27 20 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 FF 0F 35 [17:34:32]RasterBufferAndPrint [17:34:32]line Счет N : (1)2886522 [17:34:32]line ИНН: 02508201610067 [17:34:32]line Контрольно-Кассовый Чек [17:34:32]line ПРОДАЖА [17:34:32]line ТРК (МРК, ГНК) : 61 [17:34:32]line Товар: 2710194210 [17:34:32]line ДТ-К-5 [17:34:32]line 11.820 * 76.20 [17:34:32]line = 900.68 [17:34:32]line НДС 12% НСП 1% [17:34:32]line > о реализуемом товаре [17:34:32]line ОКРУГЛЕНИЕ: -0.68 [17:34:32]line ИТОГО: 900.00 [17:34:32]line Внесено: 900.00 [17:34:32]line СДАЧА: 0.00 [17:34:32]line НСП 1% : 7.97 [17:34:32]line НДС 12% : 95.65 [17:34:32]line Наличными: 900.00 [17:34:32]line Безнал.: 0.00 [17:34:32]line Место: АЗС № 85 "Партнер Нефть" [17:34:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:34:32]line СНО: Общий режим [17:34:33]line Чек 256 23.10.2024 17:34 [17:34:33]line Смена: 196 ФФД: 1.0 [17:34:33]line ЗНМ: 0300000167 [17:34:33]line РНМ: 0000000000156251 [17:34:33]line Версия ККМ: v1.0 [17:34:33]line ФМ: 0000000000963346 [17:34:33]line ФД: 70740 [17:34:33]line ФПД: 209595122730209 [17:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70740&fm=209595122730209&tin=02508201610067®Number=0000000000156251&sum=90000 [17:34:33]OFD Sender: Processing packet 70740 [packets to send 18, broken 17] [17:34:33]ProducePacketName [17:34:33]name=ofd_packets/00070740 [17:34:33]OFD Sender: To server: pG, [17:34:33]CommunicateWithHost lk.salyk.kg:30040 [17:34:33]ConnectInit lk.salyk.kg [17:34:33]written 0, free lines is 4095 [17:34:33]Connected sock=9 [17:34: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 86 F0 04 01 1C 85 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 00 01 00 00 F4 03 04 00 A9 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BE A0 2A D6 44 E1 6F E0 46 7A 13 B8 15 63 [17:34: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 D6 C0 47 00 71 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 54 14 01 00 F4 03 04 00 46 DD 18 67 B6 04 01 00 00 62 E9 32 4C 56 24 09 09 [17:34:33]CommunicateWithHost err = 0 [17:34:33]CheckOFDResponse [17:34:33]1017 (14) - 77093643461234 [17:34:33]1041 (16) - 0000000000963346 [17:34:33]1040 (4) - 70740 [17:34:33]1012 (4) - 23.10.2024 11:25 [17:34:33]1206 (1) - 0 [17:34:33]OFD Sender: Remove packet 70740 [17:34:33]ProducePacketName [17:34:33]name=ofd_packets/00070740 [17:34:33]NVStorageDeleteData [17:34:33]Write to MH i2c: 01 00 00 24 28 4C [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 F0 0C 4F [17:34:33]RasterBufferAndPrint [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]written 0, free lines is 3318 [17:34:33]MH_Cut [17:34:33]Write to MH i2c: D1 01 00 2B 28 01 25 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 01 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 01 00 2B 28 00 24 [17:34:33]Write to MH i2c: 01 00 00 2C 28 54 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:34]OFD Sender: No OFD packet to send [17:34:34]*** Cut start [17:34:34]*** Partial cut [17:34:34]*** CUTSNS_PIN = 1 [17:34:34]*** CUTSNS_PIN = 0 [17:34:34]*** Brake cut motor [17:34:34]Read from MH i2c: 01 [17:34:34]MH_I2C_Read... [17:34:34]*** Stop cut motor [17:34:35]*** Cut end [17:34:35]Read from MH i2c: 01 07 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: 01 07 00 2C 28 00 00 00 00 00 FF 0F 69 [17:34:35]process_action close_receipt done [17:34:35]requested_data is exist [17:34:35]produce_requested_data [17:34:35]requested_item fm.sn is exist - process it [17:34:35]wFMCommunicate request_size=4 [17:34:35]MH_SAM_APDU [17:34:35]CAPDU: 80 11 00 00 [17:34:35]Write to MH i2c: E2 08 00 2D 28 80 11 00 00 00 00 00 00 CF [17:34:35]Write i2c OK [17:34:35]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 17 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 17 00 2D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [17:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:34:35]wFMCommunicate OK [17:34:35]requested_item fd.num is exist - process it [17:34:35]SAM_PROTO_GetFieldsCounters [17:34:35]wFMCommunicate request_size=4 [17:34:35]MH_SAM_APDU [17:34:35]CAPDU: 80 13 00 00 [17:34:35]Write to MH i2c: E2 08 00 2E 28 80 13 00 00 00 00 00 00 D2 [17:34:35]Write i2c OK [17:34:35]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 62 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 62 00 2E 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 54 14 01 00 0E 04 04 00 C4 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 1D [17:34: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 54 14 01 00 0E 04 04 00 C4 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 [17:34:35]wFMCommunicate OK [17:34:35]SAM_PROTO_GetFieldsCounters done [17:34:35]requested_item shift.num is exist - process it [17:34:35]requested_item shift.opened is exist - process it [17:34:35]req_shift_opened [17:34:35]FM_GetShiftState [17:34:35]SAM_PROTO_GetShiftState [17:34:35]wFMCommunicate request_size=4 [17:34:35]MH_SAM_APDU [17:34:35]CAPDU: 80 13 01 00 [17:34:35]Write to MH i2c: E2 08 00 2F 28 80 13 01 00 00 00 00 00 D4 [17:34:35]Write i2c OK [17:34:35]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 0E 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 0E 00 2F 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 61 [17:34:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:34:35]wFMCommunicate OK [17:34:35]SAM_PROTO_GetShiftState done [17:34:35]FM_GetShiftState done [17:34:35]req_shift_opened done [17:34:35]requested_item shift.open_date is exist - process it [17:34:35]req_shift_open_date [17:34:35]req_shift_open_date done [17:34:35]produce_requested_data done [17:34:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70740,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:34:35]process_action_free close_receipt [17:34:35]json_value_free [17:34:35]json_value_free done [17:34:35]process_json_proto returns [17:34:35]Send response to host [17:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70740,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:34:35]free response buf [17:34:35]execute_script done [17:34:35]execute_script returns [17:34:35]free content buf [17:34:35]Sock 10.Close socket [17:34:35]Sock 10.Thread stoped [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:51]accept exits with 7 [17:35:51]New connection [17:35:51]New thread 3066891620 created [17:35:51]Thread 3067034980 joined [17:35:51]Waiting for new connection... [17:35:51] Sock 7.Parse request [17:35:51]Sock 7.Check first char [17:35:51]Sock 7.First char is OK [17:35:51]request: POST /json_proto HTTP/1.0 [17:35:51]Method: POST [17:35:51]URL: /json_proto [17:35:51]Method is POST - this is cgi request [17:35:51]url: /json_proto [17:35:51]query_string will be loaded in cgi processing [17:35:51]execute_cgi json_proto POST (null) [17:35:51]execute_cgi path=json_proto method=POST [17:35:51]POST find Content-Length [17:35:51]Host: 172.17.50.3:8080 [17:35:51]Content-Length: 686 [17:35:51]Content-Type: application/json [17:35:51] [17:35:51]POST finish read [17:35:51]Found Content-Length = 686 [17:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886523", "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" ] } } [17:35:51]execute_script... [17:35: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)2886523", "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" ] } } [17:35:51]POST & json_proto [17:35:51]process_json_proto [17:35:51]json parsed OK: [17:35:51]protocol is kg_v1.0 [17:35:51]action value=close_receipt [17:35:51]process_action close_receipt [17:35:51]cmd_close_receipt [17:35:51]MH_GetDate [17:35:51]Write to MH i2c: F0 00 00 30 28 47 [17:35:51]Write i2c OK [17:35:51]MH_I2C_Read... [17:35:51]Read from MH i2c: F0 [17:35:51]MH_I2C_Read... [17:35:51]Read from MH i2c: F0 09 00 [17:35:51]MH_I2C_Read... [17:35:51]Read from MH i2c: F0 09 00 30 28 00 FA 33 19 67 6B 98 1E 66 84 [17:35:51]GetLastDocTimeStamp 1729704873 [17:35:51]current date 1729704954 [17:35:51]FM_GetShiftState [17:35:51]SAM_PROTO_GetShiftState [17:35:51]wFMCommunicate request_size=4 [17:35:51]MH_SAM_APDU [17:35:51]CAPDU: 80 13 01 00 [17:35:51]Write to MH i2c: E2 08 00 31 28 80 13 01 00 00 00 00 00 D6 [17:35:51]Write i2c OK [17:35:51]MH_I2C_Read... [17:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:51]Read from MH i2c: E2 [17:35:51]MH_I2C_Read... [17:35:51]Read from MH i2c: E2 0E 00 [17:35:51]MH_I2C_Read... [17:35:51]Read from MH i2c: E2 0E 00 31 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 63 [17:35:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:35:51]wFMCommunicate OK [17:35:51]SAM_PROTO_GetShiftState done [17:35:51]FM_GetShiftState done [17:35:51]opened in 1729642435 [17:35:51]opened+sec_in_day 1729728835 [17:35:51]quantity*price = 100011 [17:35:51]sum+1 = 100013 [17:35:51]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 СНО: Общий режим Чек 257 23.10.2024 17:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70741 ФПД: 3383695727100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70741&fm=3383695727100&tin=02508201610067®Number=0000000000156251&sum=100000 [17:35:53]StoreToDocumentArchive [17:35:53]shift 196 fd 70741 [17:35:53]save to /storage/0196/doc_00070741 [17:35:53]save last doc name /storage/0196/doc_00070741 to /storage/kkm_last_doc_name [17:35:53]save OK [17:35:53]Clear old archive folders... [17:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:35:53]tlvbuf is 0013C480 [17:35:53]SAM_PROTO_ClearQueue [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 09 00 00 [17:35:53]Write to MH i2c: E2 08 00 3E 28 80 09 00 00 00 00 00 00 D8 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 3E 28 00 90 00 DA [17:35:53]RAPDU: 90 00 [17:35:53]wFMCommunicate OK [17:35:53]SAM_PROTO_ClearQueue done [17:35:53]KKMCreateOFDPacket [17:35:53]OFDProtocolAddRootSTLVToBuf [17:35:53]FM_MakeSignedData [17:35:53]FM_MakeSignedData [17:35:53]SAM_PROTO_SignData [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 0D 01 02 [17:35:53]Write to MH i2c: E2 08 00 3F 28 80 0D 01 02 00 00 00 00 E0 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [17:35:53]RAPDU: 90 00 [17:35:53]wFMCommunicate OK [17:35:53]wFMCommunicate request_size=255 [17:35:53]MH_SAM_APDU [17:35: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 01 01 00 00 F4 03 04 00 FA 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 03 13 [17:35:53]Write to MH i2c: E2 02 01 40 28 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 01 01 00 00 F4 03 04 00 FA 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 03 13 00 00 37 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 40 28 00 90 00 DC [17:35:53]RAPDU: 90 00 [17:35:53]wFMCommunicate OK [17:35:53]wFMCommunicate request_size=9 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 0D 02 02 04 D3 FB 59 FC [17:35:53]Write to MH i2c: E2 0C 00 41 28 80 0D 02 02 04 00 D3 FB 59 FC 00 00 0E [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [17:35:53]RAPDU: 90 00 [17:35:53]wFMCommunicate OK [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 0D 03 02 [17:35:53]Write to MH i2c: E2 08 00 42 28 80 0D 03 02 00 00 00 00 E5 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 0B 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 0B 00 42 28 00 04 BF 10 DE 00 7D 37 7F 90 00 CA [17:35:53]RAPDU: 04 BF 10 DE 00 7D 37 7F 90 00 [17:35:53]wFMCommunicate OK [17:35:53]SAM_PROTO_SignData done [17:35:53]FM_MakeSignedData done [17:35:53]CreateOFDProtocolMessage [17:35:53]wFMCommunicate request_size=4 [17:35:53]MH_SAM_APDU [17:35:53]CAPDU: 80 11 00 00 [17:35:53]Write to MH i2c: E2 08 00 43 28 80 11 00 00 00 00 00 00 E5 [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:53]Read from MH i2c: E2 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 17 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: E2 17 00 43 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [17:35: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:35:53]wFMCommunicate OK [17:35:53]CreateOFDProtocolMessage done [17:35:53]OFDSenderStorePacket 70741 [17:35:53]StoreOFDPacket docnum=70741 [17:35: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 38 B6 06 01 EF D5 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 01 01 00 00 F4 03 04 00 FA 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 03 13 D3 FB 59 FC 04 BF 10 DE 00 7D 37 7F [17:35:53]CheckFolder [17:35:53]dirname=/storage/ofd_packets [17:35:53]CheckFolder done [17:35:53]ProducePacketName [17:35:53]name=ofd_packets/00070741 [17:35:53]NVStorageSaveData ofd_packets/00070741 [17:35:53]File name is /storage/ofd_packets/00070741 [17:35:53]Write 300 bytes [17:35:53]NVStorageSaveData done [17:35:53]OFDSenderStorePacket done [17:35:53]KKMCreateOFDPacket done [17:35:53]NVStorageSaveData kkm_last_timestamp [17:35:53]File name is /storage/kkm_last_timestamp [17:35:53]Write 4 bytes [17:35:53]NVStorageSaveData done [17:35:53]ExternCall_PrintAddStr [17:35:53]wPrintStart [17:35:53]Write to MH i2c: 01 00 00 44 28 6C [17:35:53]Write i2c OK [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: 01 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: 01 07 00 [17:35:53]MH_I2C_Read... [17:35:53]Read from MH i2c: 01 07 00 44 28 00 00 00 00 00 FF 0F 81 [17:35:53]RasterBufferAndPrint [17:35:53]line Счет N : (1)2886523 [17:35:53]line ИНН: 02508201610067 [17:35:53]line Контрольно-Кассовый Чек [17:35:53]line ПРОДАЖА [17:35:53]line ТРК (МРК, ГНК) : 71 [17:35:53]line Товар: 2711129700 [17:35:53]line ГАЗ-К-3 [17:35:53]line 25.710 * 38.90 [17:35:53]line = 1000.12 [17:35:53]line НДС 12% НСП 1% [17:35:53]line > о реализуемом товаре [17:35:53]line ОКРУГЛЕНИЕ: -0.12 [17:35:53]line ИТОГО: 1000.00 [17:35:53]line Внесено: 1000.00 [17:35:53]line СДАЧА: 0.00 [17:35:53]line НСП 1% : 8.85 [17:35:53]line НДС 12% : 106.21 [17:35:53]line Наличными: 1000.00 [17:35:53]line Безнал.: 0.00 [17:35:53]line Место: АЗС № 85 "Партнер Нефть" [17:35:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:35:53]line СНО: Общий режим [17:35:53]line Чек 257 23.10.2024 17:35 [17:35:53]line Смена: 196 ФФД: 1.0 [17:35:53]line ЗНМ: 0300000167 [17:35:53]line РНМ: 0000000000156251 [17:35:53]line Версия ККМ: v1.0 [17:35:53]line ФМ: 0000000000963346 [17:35:53]line ФД: 70741 [17:35:53]line ФПД: 3383695727100 [17:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70741&fm=3383695727100&tin=02508201610067®Number=0000000000156251&sum=100000 [17:35:53]OFD Sender: Processing packet 70741 [packets to send 18, broken 17] [17:35:53]ProducePacketName [17:35:53]name=ofd_packets/00070741 [17:35:53]OFD Sender: To server: pG, [17:35:53]CommunicateWithHost lk.salyk.kg:30040 [17:35:53]ConnectInit lk.salyk.kg [17:35:53]written 0, free lines is 4095 [17:35:53]Connected sock=10 [17:35: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 38 B6 06 01 EF D5 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 01 01 00 00 F4 03 04 00 FA 33 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 03 13 D3 FB 59 FC 04 BF 10 DE 00 7D 37 7F [17:35: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 DA 8D 47 00 5D 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 55 14 01 00 F4 03 04 00 97 DD 18 67 B6 04 01 00 00 E9 A9 3E E6 06 ED 14 25 [17:35:54]CommunicateWithHost err = 0 [17:35:54]CheckOFDResponse [17:35:54]1017 (14) - 77093643461234 [17:35:54]1041 (16) - 0000000000963346 [17:35:54]1040 (4) - 70741 [17:35:54]1012 (4) - 23.10.2024 11:27 [17:35:54]1206 (1) - 0 [17:35:54]OFD Sender: Remove packet 70741 [17:35:54]ProducePacketName [17:35:54]name=ofd_packets/00070741 [17:35:54]NVStorageDeleteData [17:35:54]Write to MH i2c: 01 00 00 6F 28 97 [17:35:54]Write i2c OK [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: 01 [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: 01 07 00 [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 F3 0C 9D [17:35:54]RasterBufferAndPrint [17:35:54]line [17:35:54]line [17:35:54]line [17:35:54]line [17:35:54]line [17:35:54]written 0, free lines is 3321 [17:35:54]MH_Cut [17:35:54]Write to MH i2c: D1 01 00 76 28 01 70 [17:35:54]Write i2c OK [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: D1 [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: D1 01 00 [17:35:54]MH_I2C_Read... [17:35:54]Read from MH i2c: D1 01 00 76 28 00 6F [17:35:54]Write to MH i2c: 01 00 00 77 28 9F [17:35:54]Write i2c OK [17:35:54]MH_I2C_Read... [17:35:54]OFD Sender: No OFD packet to send [17:35:55]*** Cut start [17:35:55]*** Partial cut [17:35:55]*** CUTSNS_PIN = 1 [17:35:55]*** CUTSNS_PIN = 0 [17:35:55]*** Brake cut motor [17:35:55]Read from MH i2c: 01 [17:35:55]MH_I2C_Read... [17:35:55]*** Stop cut motor [17:35:55]*** Cut end [17:35:55]Read from MH i2c: 01 07 00 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: 01 07 00 77 28 00 00 00 00 00 FF 0F B4 [17:35:55]process_action close_receipt done [17:35:55]requested_data is exist [17:35:55]produce_requested_data [17:35:55]requested_item fm.sn is exist - process it [17:35:55]wFMCommunicate request_size=4 [17:35:55]MH_SAM_APDU [17:35:55]CAPDU: 80 11 00 00 [17:35:55]Write to MH i2c: E2 08 00 78 28 80 11 00 00 00 00 00 00 1A [17:35:55]Write i2c OK [17:35:55]MH_I2C_Read... [17:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:55]Read from MH i2c: E2 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 17 00 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 17 00 78 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [17:35: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:35:55]wFMCommunicate OK [17:35:55]requested_item fd.num is exist - process it [17:35:55]SAM_PROTO_GetFieldsCounters [17:35:55]wFMCommunicate request_size=4 [17:35:55]MH_SAM_APDU [17:35:55]CAPDU: 80 13 00 00 [17:35:55]Write to MH i2c: E2 08 00 79 28 80 13 00 00 00 00 00 00 1D [17:35:55]Write i2c OK [17:35:55]MH_I2C_Read... [17:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:55]Read from MH i2c: E2 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 62 00 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 62 00 79 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 55 14 01 00 0E 04 04 00 C4 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 6C [17:35: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 55 14 01 00 0E 04 04 00 C4 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 [17:35:55]wFMCommunicate OK [17:35:55]SAM_PROTO_GetFieldsCounters done [17:35:55]requested_item shift.num is exist - process it [17:35:55]requested_item shift.opened is exist - process it [17:35:55]req_shift_opened [17:35:55]FM_GetShiftState [17:35:55]SAM_PROTO_GetShiftState [17:35:55]wFMCommunicate request_size=4 [17:35:55]MH_SAM_APDU [17:35:55]CAPDU: 80 13 01 00 [17:35:55]Write to MH i2c: E2 08 00 7A 28 80 13 01 00 00 00 00 00 1F [17:35:55]Write i2c OK [17:35:55]MH_I2C_Read... [17:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:55]Read from MH i2c: E2 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 0E 00 [17:35:55]MH_I2C_Read... [17:35:55]Read from MH i2c: E2 0E 00 7A 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AC [17:35:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:35:55]wFMCommunicate OK [17:35:55]SAM_PROTO_GetShiftState done [17:35:55]FM_GetShiftState done [17:35:55]req_shift_opened done [17:35:55]requested_item shift.open_date is exist - process it [17:35:55]req_shift_open_date [17:35:55]req_shift_open_date done [17:35:55]produce_requested_data done [17:35:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70741,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:35:55]process_action_free close_receipt [17:35:55]json_value_free [17:35:55]json_value_free done [17:35:55]process_json_proto returns [17:35:55]Send response to host [17:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70741,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:35:55]free response buf [17:35:55]execute_script done [17:35:55]execute_script returns [17:35:55]free content buf [17:35:55]Sock 7.Close socket [17:35:55]Sock 7.Thread stoped [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]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:50]accept exits with 9 [17:36:50]New connection [17:36:50]New thread 3067034980 created [17:36:50]Thread 3066891620 joined [17:36:50]Waiting for new connection... [17:36:50] Sock 9.Parse request [17:36:50]Sock 9.Check first char [17:36:50]Sock 9.First char is OK [17:36:50]request: POST /json_proto HTTP/1.0 [17:36:50]Method: POST [17:36:50]URL: /json_proto [17:36:50]Method is POST - this is cgi request [17:36:50]url: /json_proto [17:36:50]query_string will be loaded in cgi processing [17:36:50]execute_cgi json_proto POST (null) [17:36:50]execute_cgi path=json_proto method=POST [17:36:50]POST find Content-Length [17:36:50]Host: 172.17.50.3:8080 [17:36:50]Content-Length: 683 [17:36:50]Content-Type: application/json [17:36:50] [17:36:50]POST finish read [17:36:50]Found Content-Length = 683 [17:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886524", "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" : 39.260, "sum" : 2913.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2913.00, "payments": [ { "type": 0, "sum" : 2913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:50]execute_script... [17:36: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)2886524", "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" : 39.260, "sum" : 2913.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2913.00, "payments": [ { "type": 0, "sum" : 2913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:50]POST & json_proto [17:36:50]process_json_proto [17:36:50]json parsed OK: [17:36:50]protocol is kg_v1.0 [17:36:50]action value=close_receipt [17:36:50]process_action close_receipt [17:36:50]cmd_close_receipt [17:36:50]MH_GetDate [17:36:50]Write to MH i2c: F0 00 00 7B 28 92 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 09 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 09 00 7B 28 00 35 34 19 67 6B 98 1E 66 0B [17:36:50]GetLastDocTimeStamp 1729704954 [17:36:50]current date 1729705013 [17:36:50]FM_GetShiftState [17:36:50]SAM_PROTO_GetShiftState [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 01 00 [17:36:50]Write to MH i2c: E2 08 00 7C 28 80 13 01 00 00 00 00 00 21 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 7C 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AE [17:36:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:36:50]wFMCommunicate OK [17:36:50]SAM_PROTO_GetShiftState done [17:36:50]FM_GetShiftState done [17:36:50]opened in 1729642435 [17:36:50]opened+sec_in_day 1729728835 [17:36:50]quantity*price = 291309 [17:36:50]sum+1 = 291310 [17:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 2913.00 Внесено: 5000.00 СДАЧА: 2087.00 НСП 1% : 25.78 НДС 12% : 309.35 Наличными: 2913.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 258 23.10.2024 17:36 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70742 ФПД: 243270544037537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70742&fm=243270544037537&tin=02508201610067®Number=0000000000156251&sum=291300 [17:36:52]StoreToDocumentArchive [17:36:52]shift 196 fd 70742 [17:36:52]save to /storage/0196/doc_00070742 [17:36:52]save last doc name /storage/0196/doc_00070742 to /storage/kkm_last_doc_name [17:36:52]save OK [17:36:52]Clear old archive folders... [17:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:52]tlvbuf is 00190700 [17:36:52]SAM_PROTO_ClearQueue [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 09 00 00 [17:36:52]Write to MH i2c: E2 08 00 89 28 80 09 00 00 00 00 00 00 23 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 89 28 00 90 00 25 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_ClearQueue done [17:36:52]KKMCreateOFDPacket [17:36:52]OFDProtocolAddRootSTLVToBuf [17:36:52]FM_MakeSignedData [17:36:52]FM_MakeSignedData [17:36:52]SAM_PROTO_SignData [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 01 02 [17:36:52]Write to MH i2c: E2 08 00 8A 28 80 0D 01 02 00 00 00 00 2B [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=255 [17:36:52]MH_SAM_APDU [17:36: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 5C 99 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 ED 71 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 71 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 78 00 00 00 00 07 04 06 00 E4 71 04 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 35 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DD [17:36:52]Write to MH i2c: E2 02 01 8B 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 5C 99 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 ED 71 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 71 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 78 00 00 00 00 07 04 06 00 E4 71 04 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 35 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DD 00 00 B7 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 8B 28 00 90 00 27 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=10 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 02 02 05 40 D6 5C 96 A1 [17:36:52]Write to MH i2c: E2 0D 00 8C 28 80 0D 02 02 05 00 40 D6 5C 96 A1 00 00 E1 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 8C 28 00 90 00 28 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 03 02 [17:36:52]Write to MH i2c: E2 08 00 8D 28 80 0D 03 02 00 00 00 00 30 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0B 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0B 00 8D 28 00 17 73 62 19 DA 53 6D BD 90 00 8D [17:36:52]RAPDU: 17 73 62 19 DA 53 6D BD 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_SignData done [17:36:52]FM_MakeSignedData done [17:36:52]CreateOFDProtocolMessage [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 11 00 00 [17:36:52]Write to MH i2c: E2 08 00 8E 28 80 11 00 00 00 00 00 00 30 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 17 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 17 00 8E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [17:36: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:36:52]wFMCommunicate OK [17:36:52]CreateOFDProtocolMessage done [17:36:52]OFDSenderStorePacket 70742 [17:36:52]StoreOFDPacket docnum=70742 [17:36: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 90 D5 07 01 B8 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 ED 71 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 71 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 78 00 00 00 00 07 04 06 00 E4 71 04 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 35 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DD 40 D6 5C 96 A1 17 73 62 19 DA 53 6D BD [17:36:52]CheckFolder [17:36:52]dirname=/storage/ofd_packets [17:36:52]CheckFolder done [17:36:52]ProducePacketName [17:36:52]name=ofd_packets/00070742 [17:36:52]NVStorageSaveData ofd_packets/00070742 [17:36:52]File name is /storage/ofd_packets/00070742 [17:36:52]Write 301 bytes [17:36:52]NVStorageSaveData done [17:36:52]OFDSenderStorePacket done [17:36:52]KKMCreateOFDPacket done [17:36:52]NVStorageSaveData kkm_last_timestamp [17:36:52]File name is /storage/kkm_last_timestamp [17:36:52]Write 4 bytes [17:36:52]NVStorageSaveData done [17:36:52]ExternCall_PrintAddStr [17:36:52]wPrintStart [17:36:52]Write to MH i2c: 01 00 00 8F 28 B7 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 07 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 07 00 8F 28 00 00 00 00 00 FF 0F CC [17:36:52]RasterBufferAndPrint [17:36:52]line Счет N : (1)2886524 [17:36:52]line ИНН: 02508201610067 [17:36:52]line Контрольно-Кассовый Чек [17:36:52]line ПРОДАЖА [17:36:52]line ТРК (МРК, ГНК) : 33 [17:36:52]line Товар: 2710124500 [17:36:52]line Аи-95-К-5 [17:36:52]line 39.260 * 74.20 [17:36:52]line = 2913.09 [17:36:52]line НДС 12% НСП 1% [17:36:52]line > о реализуемом товаре [17:36:52]line ОКРУГЛЕНИЕ: -0.09 [17:36:52]line ИТОГО: 2913.00 [17:36:52]line Внесено: 5000.00 [17:36:52]line СДАЧА: 2087.00 [17:36:52]line НСП 1% : 25.78 [17:36:52]line НДС 12% : 309.35 [17:36:52]line Наличными: 2913.00 [17:36:52]line Безнал.: 0.00 [17:36:52]line Место: АЗС № 85 "Партнер Нефть" [17:36:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:36:52]line СНО: Общий режим [17:36:52]line Чек 258 23.10.2024 17:36 [17:36:52]line Смена: 196 ФФД: 1.0 [17:36:52]line ЗНМ: 0300000167 [17:36:52]line РНМ: 0000000000156251 [17:36:52]line Версия ККМ: v1.0 [17:36:52]line ФМ: 0000000000963346 [17:36:52]line ФД: 70742 [17:36:52]line ФПД: 243270544037537 [17:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70742&fm=243270544037537&tin=02508201610067®Number=0000000000156251&sum=291300 [17:36:52]OFD Sender: Processing packet 70742 [packets to send 18, broken 17] [17:36:52]ProducePacketName [17:36:52]name=ofd_packets/00070742 [17:36:52]OFD Sender: To server: pG, [17:36:52]CommunicateWithHost lk.salyk.kg:30040 [17:36:52]ConnectInit lk.salyk.kg [17:36:52]written 0, free lines is 4095 [17:36:52]Connected sock=10 [17:36: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 90 D5 07 01 B8 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 ED 71 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 71 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 78 00 00 00 00 07 04 06 00 E4 71 04 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 35 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 DD 40 D6 5C 96 A1 17 73 62 19 DA 53 6D BD [17:36: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 87 B5 47 00 57 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 56 14 01 00 F4 03 04 00 D2 DD 18 67 B6 04 01 00 00 77 2A 4A C5 C8 7A B2 73 [17:36:53]CommunicateWithHost err = 0 [17:36:53]CheckOFDResponse [17:36:53]1017 (14) - 77093643461234 [17:36:53]1041 (16) - 0000000000963346 [17:36:53]1040 (4) - 70742 [17:36:53]1012 (4) - 23.10.2024 11:28 [17:36:53]1206 (1) - 0 [17:36:53]OFD Sender: Remove packet 70742 [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00070742 [17:36:53]NVStorageDeleteData [17:36:53]Write to MH i2c: 01 00 00 BA 28 E2 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 0A 0D 00 [17:36:53]RasterBufferAndPrint [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]written 0, free lines is 3344 [17:36:53]MH_Cut [17:36:53]Write to MH i2c: D1 01 00 C1 28 01 BB [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 01 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 01 00 C1 28 00 BA [17:36:53]Write to MH i2c: 01 00 00 C2 28 EA [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]OFD Sender: No OFD packet to send [17:36:54]*** Cut start [17:36:54]*** Partial cut [17:36:54]*** CUTSNS_PIN = 1 [17:36:54]*** CUTSNS_PIN = 0 [17:36:54]*** Brake cut motor [17:36:54]Read from MH i2c: 01 [17:36:54]MH_I2C_Read... [17:36:54]*** Stop cut motor [17:36:54]*** Cut end [17:36:54]Read from MH i2c: 01 07 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 07 00 C2 28 00 00 00 00 00 FF 0F FF [17:36:54]process_action close_receipt done [17:36:54]requested_data is exist [17:36:54]produce_requested_data [17:36:54]requested_item fm.sn is exist - process it [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 11 00 00 [17:36:54]Write to MH i2c: E2 08 00 C3 28 80 11 00 00 00 00 00 00 65 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 C3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [17:36: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:36:54]wFMCommunicate OK [17:36:54]requested_item fd.num is exist - process it [17:36:54]SAM_PROTO_GetFieldsCounters [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 13 00 00 [17:36:54]Write to MH i2c: E2 08 00 C4 28 80 13 00 00 00 00 00 00 68 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 62 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 62 00 C4 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 56 14 01 00 0E 04 04 00 C4 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 BB [17:36: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 56 14 01 00 0E 04 04 00 C4 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 [17:36:54]wFMCommunicate OK [17:36:54]SAM_PROTO_GetFieldsCounters done [17:36:54]requested_item shift.num is exist - process it [17:36:54]requested_item shift.opened is exist - process it [17:36:54]req_shift_opened [17:36:54]FM_GetShiftState [17:36:54]SAM_PROTO_GetShiftState [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 13 01 00 [17:36:54]Write to MH i2c: E2 08 00 C5 28 80 13 01 00 00 00 00 00 6A [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 0E 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 0E 00 C5 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F7 [17:36:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:36:54]wFMCommunicate OK [17:36:54]SAM_PROTO_GetShiftState done [17:36:54]FM_GetShiftState done [17:36:54]req_shift_opened done [17:36:54]requested_item shift.open_date is exist - process it [17:36:54]req_shift_open_date [17:36:54]req_shift_open_date done [17:36:54]produce_requested_data done [17:36:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70742,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:36:54]process_action_free close_receipt [17:36:54]json_value_free [17:36:54]json_value_free done [17:36:54]process_json_proto returns [17:36:54]Send response to host [17:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70742,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:36:54]free response buf [17:36:54]execute_script done [17:36:54]execute_script returns [17:36:54]free content buf [17:36:54]Sock 9.Close socket [17:36:54]Sock 9.Thread stoped [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:35]accept exits with 7 [17:37:35]New connection [17:37:35]New thread 3066891620 created [17:37:35]Thread 3067034980 joined [17:37:35]Waiting for new connection... [17:37:35] Sock 7.Parse request [17:37:35]Sock 7.Check first char [17:37:35]Sock 7.First char is OK [17:37:35]request: POST /json_proto HTTP/1.0 [17:37:35]Method: POST [17:37:35]URL: /json_proto [17:37:35]Method is POST - this is cgi request [17:37:35]url: /json_proto [17:37:35]query_string will be loaded in cgi processing [17:37:35]execute_cgi json_proto POST (null) [17:37:35]execute_cgi path=json_proto method=POST [17:37:35]POST find Content-Length [17:37:35]Host: 172.17.50.3:8080 [17:37:35]Content-Length: 689 [17:37:35]Content-Type: application/json [17:37:35] [17:37:35]POST finish read [17:37:35]Found Content-Length = 689 [17:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886525", "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" ] } } [17:37:35]execute_script... [17: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)2886525", "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" ] } } [17:37:35]POST & json_proto [17:37:35]process_json_proto [17:37:35]json parsed OK: [17:37:35]protocol is kg_v1.0 [17:37:35]action value=close_receipt [17:37:35]process_action close_receipt [17:37:35]cmd_close_receipt [17:37:35]MH_GetDate [17:37:35]Write to MH i2c: F0 00 00 C6 28 DD [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 09 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 09 00 C6 28 00 61 34 19 67 6B 98 1E 66 82 [17:37:35]GetLastDocTimeStamp 1729705013 [17:37:35]current date 1729705057 [17:37:35]FM_GetShiftState [17:37:35]SAM_PROTO_GetShiftState [17:37:35]wFMCommunicate request_size=4 [17:37:35]MH_SAM_APDU [17:37:35]CAPDU: 80 13 01 00 [17:37:35]Write to MH i2c: E2 08 00 C7 28 80 13 01 00 00 00 00 00 6C [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:35]Read from MH i2c: E2 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 C7 28 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F9 [17:37:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:37:35]wFMCommunicate OK [17:37:35]SAM_PROTO_GetShiftState done [17:37:35]FM_GetShiftState done [17:37:35]opened in 1729642435 [17:37:35]opened+sec_in_day 1729728835 [17:37:35]quantity*price = 150076 [17:37:35]sum+1 = 150078 [17:37:35]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 СНО: Общий режим Чек 259 23.10.2024 17:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70743 ФПД: 1425212424577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70743&fm=1425212424577&tin=02508201610067®Number=0000000000156251&sum=150000 [17:37:36]StoreToDocumentArchive [17:37:36]shift 196 fd 70743 [17:37:36]save to /storage/0196/doc_00070743 [17:37:36]save last doc name /storage/0196/doc_00070743 to /storage/kkm_last_doc_name [17:37:36]save OK [17:37:36]Clear old archive folders... [17:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:37:36]tlvbuf is 0015E010 [17:37:36]SAM_PROTO_ClearQueue [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 09 00 00 [17:37:36]Write to MH i2c: E2 08 00 D4 28 80 09 00 00 00 00 00 00 6E [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_ClearQueue done [17:37:36]KKMCreateOFDPacket [17:37:36]OFDProtocolAddRootSTLVToBuf [17:37:36]FM_MakeSignedData [17:37:36]FM_MakeSignedData [17:37:36]SAM_PROTO_SignData [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 01 02 [17:37:36]Write to MH i2c: E2 08 00 D5 28 80 0D 01 02 00 00 00 00 76 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 D5 28 00 90 00 71 [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=255 [17:37:36]MH_SAM_APDU [17: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 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 03 01 00 00 F4 03 04 00 61 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [17:37:36]Write to MH i2c: E2 02 01 D6 28 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 03 01 00 00 F4 03 04 00 61 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 63 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 D6 28 00 90 00 72 [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=16 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 01 4B D5 47 C1 81 [17:37:36]Write to MH i2c: E2 13 00 D7 28 80 0D 02 02 0B 00 00 35 04 06 00 01 4B D5 47 C1 81 00 00 78 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 D7 28 00 90 00 73 [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 03 02 [17:37:36]Write to MH i2c: E2 08 00 D8 28 80 0D 03 02 00 00 00 00 7B [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0B 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0B 00 D8 28 00 7C 56 18 53 51 38 45 8B 90 00 12 [17:37:36]RAPDU: 7C 56 18 53 51 38 45 8B 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_SignData done [17:37:36]FM_MakeSignedData done [17:37:36]CreateOFDProtocolMessage [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 11 00 00 [17:37:36]Write to MH i2c: E2 08 00 D9 28 80 11 00 00 00 00 00 00 7B [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 17 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 17 00 D9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [17: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 [17:37:36]wFMCommunicate OK [17:37:36]CreateOFDProtocolMessage done [17:37:36]OFDSenderStorePacket 70743 [17:37:36]StoreOFDPacket docnum=70743 [17:37: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 15 01 00 00 35 28 0D 01 D5 5B 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 03 01 00 00 F4 03 04 00 61 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 01 4B D5 47 C1 81 7C 56 18 53 51 38 45 8B [17:37:36]CheckFolder [17:37:36]dirname=/storage/ofd_packets [17:37:36]CheckFolder done [17:37:36]ProducePacketName [17:37:36]name=ofd_packets/00070743 [17:37:36]NVStorageSaveData ofd_packets/00070743 [17:37:36]File name is /storage/ofd_packets/00070743 [17:37:36]Write 307 bytes [17:37:36]NVStorageSaveData done [17:37:36]OFDSenderStorePacket done [17:37:36]KKMCreateOFDPacket done [17:37:36]NVStorageSaveData kkm_last_timestamp [17:37:36]File name is /storage/kkm_last_timestamp [17:37:36]Write 4 bytes [17:37:36]NVStorageSaveData done [17:37:36]ExternCall_PrintAddStr [17:37:36]wPrintStart [17:37:36]Write to MH i2c: 01 00 00 DA 28 02 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 07 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [17:37:36]RasterBufferAndPrint [17:37:36]line Счет N : (1)2886525 [17:37:36]line ИНН: 02508201610067 [17:37:36]line Контрольно-Кассовый Чек [17:37:36]line ПРОДАЖА [17:37:36]line ТРК (МРК, ГНК) : 41 [17:37:36]line Товар: 2710194240 [17:37:36]line D-ENERGY Дт-К-2 [17:37:36]line 19.440 * 77.20 [17:37:36]line = 1500.77 [17:37:36]line НДС 12% НСП 1% [17:37:36]line > о реализуемом товаре [17:37:36]line ОКРУГЛЕНИЕ: -0.77 [17:37:36]line ИТОГО: 1500.00 [17:37:36]line Внесено: 1500.00 [17:37:36]line СДАЧА: 0.00 [17:37:36]line НСП 1% : 13.28 [17:37:36]line НДС 12% : 159.37 [17:37:36]line Наличными: 1500.00 [17:37:36]line Безнал.: 0.00 [17:37:36]line Место: АЗС № 85 "Партнер Нефть" [17:37:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:37:36]line СНО: Общий режим [17:37:36]line Чек 259 23.10.2024 17:37 [17:37:36]line Смена: 196 ФФД: 1.0 [17:37:36]line ЗНМ: 0300000167 [17:37:36]line РНМ: 0000000000156251 [17:37:36]line Версия ККМ: v1.0 [17:37:36]line ФМ: 0000000000963346 [17:37:36]line ФД: 70743 [17:37:36]line ФПД: 1425212424577 [17:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70743&fm=1425212424577&tin=02508201610067®Number=0000000000156251&sum=150000 [17:37:37]OFD Sender: Processing packet 70743 [packets to send 18, broken 17] [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00070743 [17:37:37]OFD Sender: To server: pG, [17:37:37]CommunicateWithHost lk.salyk.kg:30040 [17:37:37]ConnectInit lk.salyk.kg [17:37:37]written 0, free lines is 4095 [17:37:37]Connected sock=11 [17: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 35 28 0D 01 D5 5B 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 03 01 00 00 F4 03 04 00 61 34 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 01 4B D5 47 C1 81 7C 56 18 53 51 38 45 8B [17: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 5C 34 47 00 12 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 57 14 01 00 F4 03 04 00 FE DD 18 67 B6 04 01 00 00 49 28 58 95 61 6A D6 A1 [17:37:37]CommunicateWithHost err = 0 [17:37:37]CheckOFDResponse [17:37:37]1017 (14) - 77093643461234 [17:37:37]1041 (16) - 0000000000963346 [17:37:37]1040 (4) - 70743 [17:37:37]1012 (4) - 23.10.2024 11:29 [17:37:37]1206 (1) - 0 [17:37:37]OFD Sender: Remove packet 70743 [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00070743 [17:37:37]NVStorageDeleteData [17:37:37]Write to MH i2c: 01 00 00 05 29 2E [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 05 29 00 00 00 00 00 FB 0C 3C [17:37:37]RasterBufferAndPrint [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]written 0, free lines is 3329 [17:37:37]MH_Cut [17:37:37]Write to MH i2c: D1 01 00 0C 29 01 07 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 01 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 01 00 0C 29 00 06 [17:37:37]Write to MH i2c: 01 00 00 0D 29 36 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:38]OFD Sender: No OFD packet to send [17:37:38]*** Cut start [17:37:38]*** Partial cut [17:37:38]*** CUTSNS_PIN = 1 [17:37:38]*** CUTSNS_PIN = 0 [17:37:38]*** Brake cut motor [17:37:38]Read from MH i2c: 01 [17:37:38]MH_I2C_Read... [17:37:38]*** Stop cut motor [17:37:38]*** Cut end [17:37:38]Read from MH i2c: 01 07 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 07 00 0D 29 00 00 00 00 00 FF 0F 4B [17:37:38]process_action close_receipt done [17:37:38]requested_data is exist [17:37:38]produce_requested_data [17:37:38]requested_item fm.sn is exist - process it [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 11 00 00 [17:37:38]Write to MH i2c: E2 08 00 0E 29 80 11 00 00 00 00 00 00 B1 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 17 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 17 00 0E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [17: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 [17:37:39]wFMCommunicate OK [17:37:39]requested_item fd.num is exist - process it [17:37:39]SAM_PROTO_GetFieldsCounters [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 13 00 00 [17:37:39]Write to MH i2c: E2 08 00 0F 29 80 13 00 00 00 00 00 00 B4 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 62 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 62 00 0F 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 57 14 01 00 0E 04 04 00 C4 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 0B [17: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 57 14 01 00 0E 04 04 00 C4 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 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_GetFieldsCounters done [17:37:39]requested_item shift.num is exist - process it [17:37:39]requested_item shift.opened is exist - process it [17:37:39]req_shift_opened [17:37:39]FM_GetShiftState [17:37:39]SAM_PROTO_GetShiftState [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 13 01 00 [17:37:39]Write to MH i2c: E2 08 00 10 29 80 13 01 00 00 00 00 00 B6 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 10 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 43 [17:37:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_GetShiftState done [17:37:39]FM_GetShiftState done [17:37:39]req_shift_opened done [17:37:39]requested_item shift.open_date is exist - process it [17:37:39]req_shift_open_date [17:37:39]req_shift_open_date done [17:37:39]produce_requested_data done [17:37:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70743,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:37:39]process_action_free close_receipt [17:37:39]json_value_free [17:37:39]json_value_free done [17:37:39]process_json_proto returns [17:37:39]Send response to host [17:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70743,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:37:39]free response buf [17:37:39]execute_script done [17:37:39]execute_script returns [17:37:39]free content buf [17:37:39]Sock 7.Close socket [17:37:39]Sock 7.Thread stoped [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:21]accept exits with 9 [17:42:21]New connection [17:42:21]New thread 3067034980 created [17:42:21]Thread 3066891620 joined [17:42:21]Waiting for new connection... [17:42:21] Sock 9.Parse request [17:42:21]Sock 9.Check first char [17:42:21]Sock 9.First char is OK [17:42:21]request: POST /json_proto HTTP/1.0 [17:42:21]Method: POST [17:42:21]URL: /json_proto [17:42:21]Method is POST - this is cgi request [17:42:21]url: /json_proto [17:42:21]query_string will be loaded in cgi processing [17:42:21]execute_cgi json_proto POST (null) [17:42:21]execute_cgi path=json_proto method=POST [17:42:21]POST find Content-Length [17:42:21]Host: 172.17.50.3:8080 [17:42:21]Content-Length: 683 [17:42:21]Content-Type: application/json [17:42:21] [17:42:21]POST finish read [17:42:21]Found Content-Length = 683 [17:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886527", "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" ] } } [17:42:21]execute_script... [17:42: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)2886527", "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" ] } } [17:42:21]POST & json_proto [17:42:21]process_json_proto [17:42:21]json parsed OK: [17:42:21]protocol is kg_v1.0 [17:42:21]action value=close_receipt [17:42:21]process_action close_receipt [17:42:21]cmd_close_receipt [17:42:21]MH_GetDate [17:42:21]Write to MH i2c: F0 00 00 11 29 29 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: F0 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: F0 09 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: F0 09 00 11 29 00 7F 35 19 67 6B 98 1E 66 ED [17:42:21]GetLastDocTimeStamp 1729705057 [17:42:21]current date 1729705343 [17:42:21]FM_GetShiftState [17:42:21]SAM_PROTO_GetShiftState [17:42:21]wFMCommunicate request_size=4 [17:42:21]MH_SAM_APDU [17:42:21]CAPDU: 80 13 01 00 [17:42:21]Write to MH i2c: E2 08 00 12 29 80 13 01 00 00 00 00 00 B8 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:21]Read from MH i2c: E2 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: E2 0E 00 12 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 45 [17:42:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:42:21]wFMCommunicate OK [17:42:21]SAM_PROTO_GetShiftState done [17:42:21]FM_GetShiftState done [17:42:21]opened in 1729642435 [17:42:21]opened+sec_in_day 1729728835 [17:42:21]quantity*price = 100015 [17:42:21]sum+1 = 100017 [17:42:21]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 СНО: Общий режим Чек 260 23.10.2024 17:42 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70744 ФПД: 276766476909501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174223&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70744&fm=276766476909501&tin=02508201610067®Number=0000000000156251&sum=100000 [17:42:22]StoreToDocumentArchive [17:42:22]shift 196 fd 70744 [17:42:22]save to /storage/0196/doc_00070744 [17:42:22]save last doc name /storage/0196/doc_00070744 to /storage/kkm_last_doc_name [17:42:22]save OK [17:42:22]Clear old archive folders... [17:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:22]tlvbuf is 0019C4F0 [17:42:22]SAM_PROTO_ClearQueue [17:42:22]wFMCommunicate request_size=4 [17:42:22]MH_SAM_APDU [17:42:22]CAPDU: 80 09 00 00 [17:42:22]Write to MH i2c: E2 08 00 1F 29 80 09 00 00 00 00 00 00 BA [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:22]Read from MH i2c: E2 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 03 00 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 03 00 1F 29 00 90 00 BC [17:42:22]RAPDU: 90 00 [17:42:22]wFMCommunicate OK [17:42:22]SAM_PROTO_ClearQueue done [17:42:22]KKMCreateOFDPacket [17:42:22]OFDProtocolAddRootSTLVToBuf [17:42:22]FM_MakeSignedData [17:42:22]FM_MakeSignedData [17:42:22]SAM_PROTO_SignData [17:42:22]wFMCommunicate request_size=4 [17:42:22]MH_SAM_APDU [17:42:22]CAPDU: 80 0D 01 02 [17:42:22]Write to MH i2c: E2 08 00 20 29 80 0D 01 02 00 00 00 00 C2 [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:22]Read from MH i2c: E2 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 03 00 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 03 00 20 29 00 90 00 BD [17:42:22]RAPDU: 90 00 [17:42:22]wFMCommunicate OK [17:42:22]wFMCommunicate request_size=255 [17:42:22]MH_SAM_APDU [17:42: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 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 04 01 00 00 F4 03 04 00 7F 35 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB [17:42:22]Write to MH i2c: E2 02 01 21 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 04 01 00 00 F4 03 04 00 7F 35 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB 00 00 AA [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:23]Read from MH i2c: E2 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 03 00 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [17:42:23]RAPDU: 90 00 [17:42:23]wFMCommunicate OK [17:42:23]wFMCommunicate request_size=10 [17:42:23]MH_SAM_APDU [17:42:23]CAPDU: 80 0D 02 02 05 B7 B7 8A BB BD [17:42:23]Write to MH i2c: E2 0D 00 22 29 80 0D 02 02 05 00 B7 B7 8A BB BD 00 00 3F [17:42:23]Write i2c OK [17:42:23]MH_I2C_Read... [17:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:23]Read from MH i2c: E2 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 03 00 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [17:42:23]RAPDU: 90 00 [17:42:23]wFMCommunicate OK [17:42:23]wFMCommunicate request_size=4 [17:42:23]MH_SAM_APDU [17:42:23]CAPDU: 80 0D 03 02 [17:42:23]Write to MH i2c: E2 08 00 23 29 80 0D 03 02 00 00 00 00 C7 [17:42:23]Write i2c OK [17:42:23]MH_I2C_Read... [17:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:23]Read from MH i2c: E2 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 0B 00 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 0B 00 23 29 00 24 88 D1 B0 5B A0 46 4B 90 00 81 [17:42:23]RAPDU: 24 88 D1 B0 5B A0 46 4B 90 00 [17:42:23]wFMCommunicate OK [17:42:23]SAM_PROTO_SignData done [17:42:23]FM_MakeSignedData done [17:42:23]CreateOFDProtocolMessage [17:42:23]wFMCommunicate request_size=4 [17:42:23]MH_SAM_APDU [17:42:23]CAPDU: 80 11 00 00 [17:42:23]Write to MH i2c: E2 08 00 24 29 80 11 00 00 00 00 00 00 C7 [17:42:23]Write i2c OK [17:42:23]MH_I2C_Read... [17:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:23]Read from MH i2c: E2 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 17 00 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: E2 17 00 24 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [17:42: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:42:23]wFMCommunicate OK [17:42:23]CreateOFDProtocolMessage done [17:42:23]OFDSenderStorePacket 70744 [17:42:23]StoreOFDPacket docnum=70744 [17:42: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 8B 5E 07 01 0F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 04 01 00 00 F4 03 04 00 7F 35 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB B7 B7 8A BB BD 24 88 D1 B0 5B A0 46 4B [17:42:23]CheckFolder [17:42:23]dirname=/storage/ofd_packets [17:42:23]CheckFolder done [17:42:23]ProducePacketName [17:42:23]name=ofd_packets/00070744 [17:42:23]NVStorageSaveData ofd_packets/00070744 [17:42:23]File name is /storage/ofd_packets/00070744 [17:42:23]Write 301 bytes [17:42:23]NVStorageSaveData done [17:42:23]OFDSenderStorePacket done [17:42:23]KKMCreateOFDPacket done [17:42:23]NVStorageSaveData kkm_last_timestamp [17:42:23]File name is /storage/kkm_last_timestamp [17:42:23]Write 4 bytes [17:42:23]NVStorageSaveData done [17:42:23]ExternCall_PrintAddStr [17:42:23]wPrintStart [17:42:23]Write to MH i2c: 01 00 00 25 29 4E [17:42:23]Write i2c OK [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: 01 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: 01 07 00 [17:42:23]MH_I2C_Read... [17:42:23]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [17:42:23]RasterBufferAndPrint [17:42:23]line Счет N : (1)2886527 [17:42:23]line ИНН: 02508201610067 [17:42:23]line Контрольно-Кассовый Чек [17:42:23]line ПРОДАЖА [17:42:23]line ТРК (МРК, ГНК) : 42 [17:42:23]line Товар: 2710124130 [17:42:23]line Аи-92-К-5 [17:42:23]line 14.950 * 66.90 [17:42:23]line = 1000.16 [17:42:23]line НДС 12% НСП 1% [17:42:23]line > о реализуемом товаре [17:42:23]line ОКРУГЛЕНИЕ: -0.16 [17:42:23]line ИТОГО: 1000.00 [17:42:23]line Внесено: 1000.00 [17:42:23]line СДАЧА: 0.00 [17:42:23]line НСП 1% : 8.85 [17:42:23]line НДС 12% : 106.21 [17:42:23]line Наличными: 1000.00 [17:42:23]line Безнал.: 0.00 [17:42:23]line Место: АЗС № 85 "Партнер Нефть" [17:42:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:42:23]line СНО: Общий режим [17:42:23]line Чек 260 23.10.2024 17:42 [17:42:23]line Смена: 196 ФФД: 1.0 [17:42:23]line ЗНМ: 0300000167 [17:42:23]line РНМ: 0000000000156251 [17:42:23]line Версия ККМ: v1.0 [17:42:23]line ФМ: 0000000000963346 [17:42:23]line ФД: 70744 [17:42:23]line ФПД: 276766476909501 [17:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174223&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70744&fm=276766476909501&tin=02508201610067®Number=0000000000156251&sum=100000 [17:42:23]OFD Sender: Processing packet 70744 [packets to send 18, broken 17] [17:42:23]ProducePacketName [17:42:23]name=ofd_packets/00070744 [17:42:23]OFD Sender: To server: pG, [17:42:23]CommunicateWithHost lk.salyk.kg:30040 [17:42:23]ConnectInit lk.salyk.kg [17:42:23]written 0, free lines is 4095 [17:42:23]Connected sock=11 [17:42: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 8B 5E 07 01 0F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 04 01 00 00 F4 03 04 00 7F 35 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FB B7 B7 8A BB BD 24 88 D1 B0 5B A0 46 4B [17:42: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 33 B5 47 00 E9 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 58 14 01 00 F4 03 04 00 1C DF 18 67 B6 04 01 00 00 64 B3 27 51 E3 67 24 B5 [17:42:23]CommunicateWithHost err = 0 [17:42:23]CheckOFDResponse [17:42:23]1017 (14) - 77093643461234 [17:42:23]1041 (16) - 0000000000963346 [17:42:23]1040 (4) - 70744 [17:42:23]1012 (4) - 23.10.2024 11:33 [17:42:23]1206 (1) - 0 [17:42:23]OFD Sender: Remove packet 70744 [17:42:23]ProducePacketName [17:42:23]name=ofd_packets/00070744 [17:42:23]NVStorageDeleteData [17:42:24]Write to MH i2c: 01 00 00 50 29 79 [17:42:24]Write i2c OK [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: 01 [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: 01 07 00 [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 F9 0C 85 [17:42:24]RasterBufferAndPrint [17:42:24]line [17:42:24]line [17:42:24]line [17:42:24]line [17:42:24]line [17:42:24]written 0, free lines is 3327 [17:42:24]MH_Cut [17:42:24]Write to MH i2c: D1 01 00 57 29 01 52 [17:42:24]Write i2c OK [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: D1 [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: D1 01 00 [17:42:24]MH_I2C_Read... [17:42:24]Read from MH i2c: D1 01 00 57 29 00 51 [17:42:24]Write to MH i2c: 01 00 00 58 29 81 [17:42:24]Write i2c OK [17:42:24]MH_I2C_Read... [17:42:24]OFD Sender: No OFD packet to send [17:42:24]*** Cut start [17:42:24]*** Partial cut [17:42:24]*** CUTSNS_PIN = 1 [17:42:24]*** CUTSNS_PIN = 0 [17:42:25]*** Brake cut motor [17:42:25]Read from MH i2c: 01 [17:42:25]MH_I2C_Read... [17:42:25]*** Stop cut motor [17:42:25]*** Cut end [17:42:25]Read from MH i2c: 01 07 00 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: 01 07 00 58 29 00 00 00 00 00 FF 0F 96 [17:42:25]process_action close_receipt done [17:42:25]requested_data is exist [17:42:25]produce_requested_data [17:42:25]requested_item fm.sn is exist - process it [17:42:25]wFMCommunicate request_size=4 [17:42:25]MH_SAM_APDU [17:42:25]CAPDU: 80 11 00 00 [17:42:25]Write to MH i2c: E2 08 00 59 29 80 11 00 00 00 00 00 00 FC [17:42:25]Write i2c OK [17:42:25]MH_I2C_Read... [17:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:25]Read from MH i2c: E2 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 17 00 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 17 00 59 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [17:42: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:42:25]wFMCommunicate OK [17:42:25]requested_item fd.num is exist - process it [17:42:25]SAM_PROTO_GetFieldsCounters [17:42:25]wFMCommunicate request_size=4 [17:42:25]MH_SAM_APDU [17:42:25]CAPDU: 80 13 00 00 [17:42:25]Write to MH i2c: E2 08 00 5A 29 80 13 00 00 00 00 00 00 FF [17:42:25]Write i2c OK [17:42:25]MH_I2C_Read... [17:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:25]Read from MH i2c: E2 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 62 00 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 62 00 5A 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 58 14 01 00 0E 04 04 00 C4 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 5A [17:42: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 58 14 01 00 0E 04 04 00 C4 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 [17:42:25]wFMCommunicate OK [17:42:25]SAM_PROTO_GetFieldsCounters done [17:42:25]requested_item shift.num is exist - process it [17:42:25]requested_item shift.opened is exist - process it [17:42:25]req_shift_opened [17:42:25]FM_GetShiftState [17:42:25]SAM_PROTO_GetShiftState [17:42:25]wFMCommunicate request_size=4 [17:42:25]MH_SAM_APDU [17:42:25]CAPDU: 80 13 01 00 [17:42:25]Write to MH i2c: E2 08 00 5B 29 80 13 01 00 00 00 00 00 01 [17:42:25]Write i2c OK [17:42:25]MH_I2C_Read... [17:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:25]Read from MH i2c: E2 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 0E 00 [17:42:25]MH_I2C_Read... [17:42:25]Read from MH i2c: E2 0E 00 5B 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8E [17:42:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:42:25]wFMCommunicate OK [17:42:25]SAM_PROTO_GetShiftState done [17:42:25]FM_GetShiftState done [17:42:25]req_shift_opened done [17:42:25]requested_item shift.open_date is exist - process it [17:42:25]req_shift_open_date [17:42:25]req_shift_open_date done [17:42:25]produce_requested_data done [17:42:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70744,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:42:25]process_action_free close_receipt [17:42:25]json_value_free [17:42:25]json_value_free done [17:42:25]process_json_proto returns [17:42:25]Send response to host [17:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70744,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:42:25]free response buf [17:42:25]execute_script done [17:42:25]execute_script returns [17:42:25]free content buf [17:42:25]Sock 9.Close socket [17:42:25]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:27]accept exits with 7 [17:47:27]New connection [17:47:27]New thread 3066891620 created [17:47:27]Thread 3067034980 joined [17:47:27]Waiting for new connection... [17:47:27] Sock 7.Parse request [17:47:27]Sock 7.Check first char [17:47:27]Sock 7.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: 773 [17:47:27]Content-Type: application/json [17:47:27] [17:47:27]POST finish read [17:47:27]Found Content-Length = 773 [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)2886526", "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" : 90.670, "sum" : 3527.06, "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" : 3527.06 } ] } , "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)2886526", "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" : 90.670, "sum" : 3527.06, "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" : 3527.06 } ] } , "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 5C 29 74 [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 5C 29 00 B1 36 19 67 6B 98 1E 66 6B [17:47:27]GetLastDocTimeStamp 1729705343 [17:47:27]current date 1729705649 [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 5D 29 80 13 01 00 00 00 00 00 03 [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 5D 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 90 [17:47:27]RAPDU: 09 00 01 C3 3F 18 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 1729642435 [17:47:27]opened+sec_in_day 1729728835 [17:47:27]quantity*price = 352706 [17:47:27]sum+1 = 352707 [17:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3527.06 НСП 1% : 31.21 НДС 12% : 374.55 Наличными: 0.00 Безнал.: 3527.06 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 261 23.10.2024 17:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70745 ФПД: 75337272091493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174729&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70745&fm=75337272091493&tin=02508201610067®Number=0000000000156251&sum=352706 [17:47:28]StoreToDocumentArchive [17:47:28]shift 196 fd 70745 [17:47:28]save to /storage/0196/doc_00070745 [17:47:28]save last doc name /storage/0196/doc_00070745 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=250 [17:47:28]tlvbuf is B6F6C230 [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 6A 29 80 09 00 00 00 00 00 00 05 [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 6A 29 00 90 00 07 [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 6B 29 80 0D 01 02 00 00 00 00 0D [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 6B 29 00 90 00 08 [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 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 2E 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 92 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 61 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 B1 36 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 44 84 [17:47:28]Write to MH i2c: E2 02 01 6C 29 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 2E 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 92 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 61 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 B1 36 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 44 84 00 00 8E [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 6C 29 00 90 00 09 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=9 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 02 02 04 D3 57 63 65 [17:47:28]Write to MH i2c: E2 0C 00 6D 29 80 0D 02 02 04 00 D3 57 63 65 00 00 0A [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 6D 29 00 90 00 0A [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 03 02 [17:47:28]Write to MH i2c: E2 08 00 6E 29 80 0D 03 02 00 00 00 00 12 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 0B 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 0B 00 6E 29 00 B2 89 26 05 DD C9 AA 1B 90 00 E4 [17:47:28]RAPDU: B2 89 26 05 DD C9 AA 1B 90 00 [17:47:28]wFMCommunicate OK [17:47:28]SAM_PROTO_SignData done [17:47:28]FM_MakeSignedData done [17:47:28]CreateOFDProtocolMessage [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 11 00 00 [17:47:28]Write to MH i2c: E2 08 00 6F 29 80 11 00 00 00 00 00 00 12 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 6F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [17:47: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:47:28]wFMCommunicate OK [17:47:28]CreateOFDProtocolMessage done [17:47:28]OFDSenderStorePacket 70745 [17:47:28]StoreOFDPacket docnum=70745 [17:47: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 C1 F2 06 01 A8 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 2E 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 92 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 61 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 B1 36 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 44 84 D3 57 63 65 B2 89 26 05 DD C9 AA 1B [17:47:28]CheckFolder [17:47:28]dirname=/storage/ofd_packets [17:47:28]CheckFolder done [17:47:28]ProducePacketName [17:47:28]name=ofd_packets/00070745 [17:47:28]NVStorageSaveData ofd_packets/00070745 [17:47:28]File name is /storage/ofd_packets/00070745 [17:47:28]Write 300 bytes [17:47:28]NVStorageSaveData done [17:47:28]OFDSenderStorePacket done [17:47:28]KKMCreateOFDPacket done [17:47:28]NVStorageSaveData kkm_last_timestamp [17:47:28]File name is /storage/kkm_last_timestamp [17:47:28]Write 4 bytes [17:47:28]NVStorageSaveData done [17:47:28]ExternCall_PrintAddStr [17:47:28]wPrintStart [17:47:28]Write to MH i2c: 01 00 00 70 29 99 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 07 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 07 00 70 29 00 00 00 00 00 FF 0F AE [17:47:28]RasterBufferAndPrint [17:47:28]line Счет N : (1)2886526 [17:47:28]line ИНН: 02508201610067 [17:47:28]line Контрольно-Кассовый Чек [17:47:28]line ПРОДАЖА [17:47:28]line ТРК (МРК, ГНК) : 71 [17:47:28]line Товар: 2711129700 [17:47:28]line ГАЗ-К-3 [17:47:28]line 90.670 * 38.90 [17:47:28]line = 3527.06 [17:47:28]line НДС 12% НСП 1% [17:47:28]line > о реализуемом товаре [17:47:28]line ИТОГО: 3527.06 [17:47:28]line НСП 1% : 31.21 [17:47:28]line НДС 12% : 374.55 [17:47:28]line Наличными: 0.00 [17:47:28]line Безнал.: 3527.06 [17:47:28]line Место: АЗС № 85 "Партнер Нефть" [17:47:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:47:28]line СНО: Общий режим [17:47:28]line Чек 261 23.10.2024 17:47 [17:47:28]line Смена: 196 ФФД: 1.0 [17:47:28]line ЗНМ: 0300000167 [17:47:28]line РНМ: 0000000000156251 [17:47:28]line Версия ККМ: v1.0 [17:47:28]line Платежная система: Mbank [17:47:28]line ФМ: 0000000000963346 [17:47:28]line ФД: 70745 [17:47:28]line ФПД: 75337272091493 [17:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174729&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70745&fm=75337272091493&tin=02508201610067®Number=0000000000156251&sum=352706 [17:47:29]OFD Sender: Processing packet 70745 [packets to send 18, broken 17] [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00070745 [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]written 0, free lines is 4095 [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 0E 01 00 00 C1 F2 06 01 A8 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 2E 62 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 61 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 61 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 92 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 61 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 B1 36 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 44 84 D3 57 63 65 B2 89 26 05 DD C9 AA 1B [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 A9 FD 47 00 09 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 59 14 01 00 F4 03 04 00 4E E0 18 67 B6 04 01 00 00 8E 70 50 10 44 AE C4 9F [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) - 70745 [17:47:29]1012 (4) - 23.10.2024 11:38 [17:47:29]1206 (1) - 0 [17:47:29]OFD Sender: Remove packet 70745 [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00070745 [17:47:29]NVStorageDeleteData [17:47:29]Write to MH i2c: 01 00 00 99 29 C2 [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 99 29 00 00 00 00 00 20 0D F6 [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 3366 [17:47:29]MH_Cut [17:47:29]Write to MH i2c: D1 01 00 A0 29 01 9B [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 A0 29 00 9A [17:47:29]Write to MH i2c: 01 00 00 A1 29 CA [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]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:30]Read from MH i2c: 01 [17:47:30]MH_I2C_Read... [17:47:30]*** Stop cut motor [17:47:30]*** Cut end [17:47:30]Read from MH i2c: 01 07 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: 01 07 00 A1 29 00 00 00 00 00 FF 0F DF [17:47:30]process_action close_receipt done [17:47:30]requested_data is exist [17:47:30]produce_requested_data [17:47:30]requested_item fm.sn is exist - process it [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 11 00 00 [17:47:30]Write to MH i2c: E2 08 00 A2 29 80 11 00 00 00 00 00 00 45 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:30]Read from MH i2c: E2 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 17 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 17 00 A2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [17:47:30]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:30]wFMCommunicate OK [17:47:30]requested_item fd.num is exist - process it [17:47:30]SAM_PROTO_GetFieldsCounters [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 13 00 00 [17:47:30]Write to MH i2c: E2 08 00 A3 29 80 13 00 00 00 00 00 00 48 [17:47:30]Write i2c OK [17:47:30]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 A3 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 59 14 01 00 0E 04 04 00 C4 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 A7 [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 59 14 01 00 0E 04 04 00 C4 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 [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 A4 29 80 13 01 00 00 00 00 00 4A [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 A4 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D7 [17:47:31]RAPDU: 09 00 01 C3 3F 18 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":70745,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [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":70745,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [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 7.Close socket [17:47:31]Sock 7.Thread stoped [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]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:48:57]accept exits with 9 [17:48:57]New connection [17:48:57]New thread 3067034980 created [17:48:57]Thread 3066891620 joined [17:48:57]Waiting for new connection... [17:48:57] Sock 9.Parse request [17:48:57]Sock 9.Check first char [17:48:57]Sock 9.First char is OK [17:48:57]request: POST /json_proto HTTP/1.0 [17:48:57]Method: POST [17:48:57]URL: /json_proto [17:48:57]Method is POST - this is cgi request [17:48:57]url: /json_proto [17:48:57]query_string will be loaded in cgi processing [17:48:57]execute_cgi json_proto POST (null) [17:48:57]execute_cgi path=json_proto method=POST [17:48:57]POST find Content-Length [17:48:57]Host: 172.17.50.3:8080 [17:48:57]Content-Length: 678 [17:48:57]Content-Type: application/json [17:48:57] [17:48:57]POST finish read [17:48:57]Found Content-Length = 678 [17:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886530", "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" ] } } [17:48:57]execute_script... [17:48: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)2886530", "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" ] } } [17:48:57]POST & json_proto [17:48:57]process_json_proto [17:48:57]json parsed OK: [17:48:57]protocol is kg_v1.0 [17:48:57]action value=close_receipt [17:48:57]process_action close_receipt [17:48:57]cmd_close_receipt [17:48:57]MH_GetDate [17:48:57]Write to MH i2c: F0 00 00 A5 29 BD [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: F0 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: F0 09 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: F0 09 00 A5 29 00 0B 37 19 67 6B 98 1E 66 0F [17:48:57]GetLastDocTimeStamp 1729705649 [17:48:57]current date 1729705739 [17:48:57]FM_GetShiftState [17:48:57]SAM_PROTO_GetShiftState [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 01 00 [17:48:57]Write to MH i2c: E2 08 00 A6 29 80 13 01 00 00 00 00 00 4C [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 A6 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D9 [17:48:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetShiftState done [17:48:57]FM_GetShiftState done [17:48:57]opened in 1729642435 [17:48:57]opened+sec_in_day 1729728835 [17:48:57]quantity*price = 50010 [17:48:57]sum+1 = 50012 [17:48: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 СНО: Общий режим Чек 262 23.10.2024 17:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70746 ФПД: 28304125539690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70746&fm=28304125539690&tin=02508201610067®Number=0000000000156251&sum=50000 [17:48:58]StoreToDocumentArchive [17:48:58]shift 196 fd 70746 [17:48:58]save to /storage/0196/doc_00070746 [17:48:58]save last doc name /storage/0196/doc_00070746 to /storage/kkm_last_doc_name [17:48:58]save OK [17:48:58]Clear old archive folders... [17:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:58]tlvbuf is B6F6C590 [17:48:58]SAM_PROTO_ClearQueue [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 09 00 00 [17:48:58]Write to MH i2c: E2 08 00 B3 29 80 09 00 00 00 00 00 00 4E [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 B3 29 00 90 00 50 [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]SAM_PROTO_ClearQueue done [17:48:58]KKMCreateOFDPacket [17:48:58]OFDProtocolAddRootSTLVToBuf [17:48:58]FM_MakeSignedData [17:48:58]FM_MakeSignedData [17:48:58]SAM_PROTO_SignData [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 01 02 [17:48:58]Write to MH i2c: E2 08 00 B4 29 80 0D 01 02 00 00 00 00 56 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 B4 29 00 90 00 51 [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=255 [17:48:58]MH_SAM_APDU [17:48: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 06 01 00 00 F4 03 04 00 0B 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 [17:48:58]Write to MH i2c: E2 02 01 B5 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 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 06 01 00 00 F4 03 04 00 0B 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 00 00 CC [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:59]Read from MH i2c: E2 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 03 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [17:48:59]RAPDU: 90 00 [17:48:59]wFMCommunicate OK [17:48:59]wFMCommunicate request_size=10 [17:48:59]MH_SAM_APDU [17:48:59]CAPDU: 80 0D 02 02 05 BE 11 59 35 6A [17:48:59]Write to MH i2c: E2 0D 00 B6 29 80 0D 02 02 05 00 BE 11 59 35 6A 00 00 2A [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:59]Read from MH i2c: E2 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 03 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 03 00 B6 29 00 90 00 53 [17:48:59]RAPDU: 90 00 [17:48:59]wFMCommunicate OK [17:48:59]wFMCommunicate request_size=4 [17:48:59]MH_SAM_APDU [17:48:59]CAPDU: 80 0D 03 02 [17:48:59]Write to MH i2c: E2 08 00 B7 29 80 0D 03 02 00 00 00 00 5B [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:59]Read from MH i2c: E2 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 0B 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 0B 00 B7 29 00 59 92 86 A0 DA B1 0A CF 90 00 D1 [17:48:59]RAPDU: 59 92 86 A0 DA B1 0A CF 90 00 [17:48:59]wFMCommunicate OK [17:48:59]SAM_PROTO_SignData done [17:48:59]FM_MakeSignedData done [17:48:59]CreateOFDProtocolMessage [17:48:59]wFMCommunicate request_size=4 [17:48:59]MH_SAM_APDU [17:48:59]CAPDU: 80 11 00 00 [17:48:59]Write to MH i2c: E2 08 00 B8 29 80 11 00 00 00 00 00 00 5B [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:59]Read from MH i2c: E2 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 17 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: E2 17 00 B8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [17:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:59]wFMCommunicate OK [17:48:59]CreateOFDProtocolMessage done [17:48:59]OFDSenderStorePacket 70746 [17:48:59]StoreOFDPacket docnum=70746 [17:48: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 E8 4C 07 01 9A 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 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 06 01 00 00 F4 03 04 00 0B 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 BE 11 59 35 6A 59 92 86 A0 DA B1 0A CF [17:48:59]CheckFolder [17:48:59]dirname=/storage/ofd_packets [17:48:59]CheckFolder done [17:48:59]ProducePacketName [17:48:59]name=ofd_packets/00070746 [17:48:59]NVStorageSaveData ofd_packets/00070746 [17:48:59]File name is /storage/ofd_packets/00070746 [17:48:59]Write 301 bytes [17:48:59]NVStorageSaveData done [17:48:59]OFDSenderStorePacket done [17:48:59]KKMCreateOFDPacket done [17:48:59]NVStorageSaveData kkm_last_timestamp [17:48:59]File name is /storage/kkm_last_timestamp [17:48:59]Write 4 bytes [17:48:59]NVStorageSaveData done [17:48:59]ExternCall_PrintAddStr [17:48:59]wPrintStart [17:48:59]Write to MH i2c: 01 00 00 B9 29 E2 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 B9 29 00 00 00 00 00 FF 0F F7 [17:48:59]RasterBufferAndPrint [17:48:59]line Счет N : (1)2886530 [17:48:59]line ИНН: 02508201610067 [17:48:59]line Контрольно-Кассовый Чек [17:48:59]line ПРОДАЖА [17:48:59]line ТРК (МРК, ГНК) : 23 [17:48:59]line Товар: 2710124500 [17:48:59]line Аи-95-К-5 [17:48:59]line 6.740 * 74.20 [17:48:59]line = 500.11 [17:48:59]line НДС 12% НСП 1% [17:48:59]line > о реализуемом товаре [17:48:59]line ОКРУГЛЕНИЕ: -0.11 [17:48:59]line ИТОГО: 500.00 [17:48:59]line Внесено: 500.00 [17:48:59]line СДАЧА: 0.00 [17:48:59]line НСП 1% : 4.43 [17:48:59]line НДС 12% : 53.11 [17:48:59]line Наличными: 500.00 [17:48:59]line Безнал.: 0.00 [17:48:59]line Место: АЗС № 85 "Партнер Нефть" [17:48:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:48:59]line СНО: Общий режим [17:48:59]line Чек 262 23.10.2024 17:48 [17:48:59]line Смена: 196 ФФД: 1.0 [17:48:59]line ЗНМ: 0300000167 [17:48:59]line РНМ: 0000000000156251 [17:48:59]line Версия ККМ: v1.0 [17:48:59]line ФМ: 0000000000963346 [17:48:59]line ФД: 70746 [17:48:59]line ФПД: 28304125539690 [17:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70746&fm=28304125539690&tin=02508201610067®Number=0000000000156251&sum=50000 [17:48:59]OFD Sender: Processing packet 70746 [packets to send 18, broken 17] [17:48:59]ProducePacketName [17:48:59]name=ofd_packets/00070746 [17:48:59]OFD Sender: To server: pG, [17:48:59]CommunicateWithHost lk.salyk.kg:30040 [17:48:59]ConnectInit lk.salyk.kg [17:48:59]written 0, free lines is 4095 [17:48:59]Connected sock=10 [17:48: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 E8 4C 07 01 9A 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 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 06 01 00 00 F4 03 04 00 0B 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 19 BE 11 59 35 6A 59 92 86 A0 DA B1 0A CF [17: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 95 54 47 00 EF 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 5A 14 01 00 F4 03 04 00 A9 E0 18 67 B6 04 01 00 00 AC 2F CD 3D 22 21 4C C8 [17:48:59]CommunicateWithHost err = 0 [17:48:59]CheckOFDResponse [17:48:59]1017 (14) - 77093643461234 [17:48:59]1041 (16) - 0000000000963346 [17:48:59]1040 (4) - 70746 [17:48:59]1012 (4) - 23.10.2024 11:40 [17:48:59]1206 (1) - 0 [17:48:59]OFD Sender: Remove packet 70746 [17:48:59]ProducePacketName [17:48:59]name=ofd_packets/00070746 [17:48:59]NVStorageDeleteData [17:49:00]Write to MH i2c: 01 00 00 E4 29 0D [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: 01 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: 01 07 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: 01 07 00 E4 29 00 00 00 00 00 F6 0C 16 [17:49:00]RasterBufferAndPrint [17:49:00]line [17:49:00]line [17:49:00]line [17:49:00]line [17:49:00]line [17:49:00]written 0, free lines is 3324 [17:49:00]MH_Cut [17:49:00]Write to MH i2c: D1 01 00 EB 29 01 E6 [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: D1 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: D1 01 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: D1 01 00 EB 29 00 E5 [17:49:00]Write to MH i2c: 01 00 00 EC 29 15 [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]OFD Sender: No OFD packet to send [17:49:00]*** Cut start [17:49:00]*** Partial cut [17:49:00]*** CUTSNS_PIN = 1 [17:49:00]*** CUTSNS_PIN = 0 [17:49:01]*** Brake cut motor [17:49:01]Read from MH i2c: 01 [17:49:01]MH_I2C_Read... [17:49:01]*** Stop cut motor [17:49:01]*** Cut end [17:49:01]Read from MH i2c: 01 07 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: 01 07 00 EC 29 00 00 00 00 00 FF 0F 2A [17:49:01]process_action close_receipt done [17:49:01]requested_data is exist [17:49:01]produce_requested_data [17:49:01]requested_item fm.sn is exist - process it [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 11 00 00 [17:49:01]Write to MH i2c: E2 08 00 ED 29 80 11 00 00 00 00 00 00 90 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 17 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 17 00 ED 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [17:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:49:01]wFMCommunicate OK [17:49:01]requested_item fd.num is exist - process it [17:49:01]SAM_PROTO_GetFieldsCounters [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 13 00 00 [17:49:01]Write to MH i2c: E2 08 00 EE 29 80 13 00 00 00 00 00 00 93 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 62 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 62 00 EE 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 5A 14 01 00 0E 04 04 00 C4 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 F6 [17:49: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 5A 14 01 00 0E 04 04 00 C4 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 [17:49:01]wFMCommunicate OK [17:49:01]SAM_PROTO_GetFieldsCounters done [17:49:01]requested_item shift.num is exist - process it [17:49:01]requested_item shift.opened is exist - process it [17:49:01]req_shift_opened [17:49:01]FM_GetShiftState [17:49:01]SAM_PROTO_GetShiftState [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 13 01 00 [17:49:01]Write to MH i2c: E2 08 00 EF 29 80 13 01 00 00 00 00 00 95 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 0E 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 0E 00 EF 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 22 [17:49:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:49:01]wFMCommunicate OK [17:49:01]SAM_PROTO_GetShiftState done [17:49:01]FM_GetShiftState done [17:49:01]req_shift_opened done [17:49:01]requested_item shift.open_date is exist - process it [17:49:01]req_shift_open_date [17:49:01]req_shift_open_date done [17:49:01]produce_requested_data done [17:49:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70746,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:49:01]process_action_free close_receipt [17:49:01]json_value_free [17:49:01]json_value_free done [17:49:01]process_json_proto returns [17:49:01]Send response to host [17:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70746,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:49:01]free response buf [17:49:01]execute_script done [17:49:01]execute_script returns [17:49:01]free content buf [17:49:01]Sock 9.Close socket [17:49:01]Sock 9.Thread stoped [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:21]accept exits with 7 [17:49:21]New connection [17:49:21]New thread 3066891620 created [17:49:21]Thread 3067034980 joined [17:49:21]Waiting for new connection... [17:49:21] Sock 7.Parse request [17:49:21]Sock 7.Check first char [17:49:21]Sock 7.First char is OK [17:49:21]request: POST /json_proto HTTP/1.0 [17:49:21]Method: POST [17:49:21]URL: /json_proto [17:49:21]Method is POST - this is cgi request [17:49:21]url: /json_proto [17:49:21]query_string will be loaded in cgi processing [17:49:21]execute_cgi json_proto POST (null) [17:49:21]execute_cgi path=json_proto method=POST [17:49:21]POST find Content-Length [17:49:21]Host: 172.17.50.3:8080 [17:49:21]Content-Length: 678 [17:49:21]Content-Type: application/json [17:49:21] [17:49:21]POST finish read [17:49:21]Found Content-Length = 678 [17:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886531", "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" ] } } [17:49:21]execute_script... [17:49: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)2886531", "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" ] } } [17:49:21]POST & json_proto [17:49:21]process_json_proto [17:49:21]json parsed OK: [17:49:21]protocol is kg_v1.0 [17:49:21]action value=close_receipt [17:49:21]process_action close_receipt [17:49:21]cmd_close_receipt [17:49:21]MH_GetDate [17:49:21]Write to MH i2c: F0 00 00 F0 29 08 [17:49:21]Write i2c OK [17:49:21]MH_I2C_Read... [17:49:21]Read from MH i2c: F0 [17:49:21]MH_I2C_Read... [17:49:21]Read from MH i2c: F0 09 00 [17:49:21]MH_I2C_Read... [17:49:21]Read from MH i2c: F0 09 00 F0 29 00 24 37 19 67 6B 98 1E 66 73 [17:49:21]GetLastDocTimeStamp 1729705739 [17:49:21]current date 1729705764 [17:49:21]FM_GetShiftState [17:49:21]SAM_PROTO_GetShiftState [17:49:21]wFMCommunicate request_size=4 [17:49:21]MH_SAM_APDU [17:49:21]CAPDU: 80 13 01 00 [17:49:21]Write to MH i2c: E2 08 00 F1 29 80 13 01 00 00 00 00 00 97 [17:49:21]Write i2c OK [17:49:21]MH_I2C_Read... [17:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:21]Read from MH i2c: E2 [17:49:21]MH_I2C_Read... [17:49:21]Read from MH i2c: E2 0E 00 [17:49:21]MH_I2C_Read... [17:49:21]Read from MH i2c: E2 0E 00 F1 29 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 24 [17:49:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:49:21]wFMCommunicate OK [17:49:21]SAM_PROTO_GetShiftState done [17:49:21]FM_GetShiftState done [17:49:21]opened in 1729642435 [17:49:21]opened+sec_in_day 1729728835 [17:49:21]quantity*price = 30038 [17:49:21]sum+1 = 30039 [17:49:21]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 СНО: Общий режим Чек 263 23.10.2024 17:49 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70747 ФПД: 270164932428510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70747&fm=270164932428510&tin=02508201610067®Number=0000000000156251&sum=30000 [17:49:23]StoreToDocumentArchive [17:49:23]shift 196 fd 70747 [17:49:23]save to /storage/0196/doc_00070747 [17:49:23]save last doc name /storage/0196/doc_00070747 to /storage/kkm_last_doc_name [17:49:23]save OK [17:49:23]Clear old archive folders... [17:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:23]tlvbuf is 00146360 [17:49:23]SAM_PROTO_ClearQueue [17:49:23]wFMCommunicate request_size=4 [17:49:23]MH_SAM_APDU [17:49:23]CAPDU: 80 09 00 00 [17:49:23]Write to MH i2c: E2 08 00 FE 29 80 09 00 00 00 00 00 00 99 [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 FE 29 00 90 00 9B [17:49:23]RAPDU: 90 00 [17:49:23]wFMCommunicate OK [17:49:23]SAM_PROTO_ClearQueue done [17:49:23]KKMCreateOFDPacket [17:49:23]OFDProtocolAddRootSTLVToBuf [17:49:23]FM_MakeSignedData [17:49:23]FM_MakeSignedData [17:49:23]SAM_PROTO_SignData [17:49:23]wFMCommunicate request_size=4 [17:49:23]MH_SAM_APDU [17:49:23]CAPDU: 80 0D 01 02 [17:49:23]Write to MH i2c: E2 08 00 FF 29 80 0D 01 02 00 00 00 00 A1 [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 FF 29 00 90 00 9C [17:49:23]RAPDU: 90 00 [17:49:23]wFMCommunicate OK [17:49:23]wFMCommunicate request_size=255 [17:49:23]MH_SAM_APDU [17:49: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 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 07 01 00 00 F4 03 04 00 24 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F5 [17:49:23]Write to MH i2c: E2 02 01 00 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 07 01 00 00 F4 03 04 00 24 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F5 00 00 2B [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 00 2A 00 90 00 9E [17:49:23]RAPDU: 90 00 [17:49:23]wFMCommunicate OK [17:49:23]wFMCommunicate request_size=10 [17:49:23]MH_SAM_APDU [17:49:23]CAPDU: 80 0D 02 02 05 B6 AC D4 02 DE [17:49:23]Write to MH i2c: E2 0D 00 01 2A 80 0D 02 02 05 00 B6 AC D4 02 DE 00 00 C5 [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 03 00 01 2A 00 90 00 9F [17:49:23]RAPDU: 90 00 [17:49:23]wFMCommunicate OK [17:49:23]wFMCommunicate request_size=4 [17:49:23]MH_SAM_APDU [17:49:23]CAPDU: 80 0D 03 02 [17:49:23]Write to MH i2c: E2 08 00 02 2A 80 0D 03 02 00 00 00 00 A7 [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 0B 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 0B 00 02 2A 00 BB A0 8A 7F 1F 10 61 1F 90 00 BB [17:49:23]RAPDU: BB A0 8A 7F 1F 10 61 1F 90 00 [17:49:23]wFMCommunicate OK [17:49:23]SAM_PROTO_SignData done [17:49:23]FM_MakeSignedData done [17:49:23]CreateOFDProtocolMessage [17:49:23]wFMCommunicate request_size=4 [17:49:23]MH_SAM_APDU [17:49:23]CAPDU: 80 11 00 00 [17:49:23]Write to MH i2c: E2 08 00 03 2A 80 11 00 00 00 00 00 00 A7 [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:23]Read from MH i2c: E2 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 17 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: E2 17 00 03 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [17:49: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:49:23]wFMCommunicate OK [17:49:23]CreateOFDProtocolMessage done [17:49:23]OFDSenderStorePacket 70747 [17:49:23]StoreOFDPacket docnum=70747 [17:49: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 37 BD 07 01 BF C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 24 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F5 B6 AC D4 02 DE BB A0 8A 7F 1F 10 61 1F [17:49:23]CheckFolder [17:49:23]dirname=/storage/ofd_packets [17:49:23]CheckFolder done [17:49:23]ProducePacketName [17:49:23]name=ofd_packets/00070747 [17:49:23]NVStorageSaveData ofd_packets/00070747 [17:49:23]File name is /storage/ofd_packets/00070747 [17:49:23]Write 301 bytes [17:49:23]NVStorageSaveData done [17:49:23]OFDSenderStorePacket done [17:49:23]KKMCreateOFDPacket done [17:49:23]NVStorageSaveData kkm_last_timestamp [17:49:23]File name is /storage/kkm_last_timestamp [17:49:23]Write 4 bytes [17:49:23]NVStorageSaveData done [17:49:23]OFD Sender: Processing packet 70747 [packets to send 18, broken 17] [17:49:23]ProducePacketName [17:49:23]name=ofd_packets/00070747 [17:49:23]OFD Sender: To server: pG, [17:49:23]CommunicateWithHost lk.salyk.kg:30040 [17:49:23]ConnectInit lk.salyk.kg [17:49:23]ExternCall_PrintAddStr [17:49:23]wPrintStart [17:49:23]Write to MH i2c: 01 00 00 04 2A 2E [17:49:23]Write i2c OK [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: 01 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: 01 07 00 [17:49:23]MH_I2C_Read... [17:49:23]Read from MH i2c: 01 07 00 04 2A 00 00 00 00 00 FF 0F 43 [17:49:23]RasterBufferAndPrint [17:49:23]line Счет N : (1)2886531 [17:49:23]line ИНН: 02508201610067 [17:49:23]line Контрольно-Кассовый Чек [17:49:23]line ПРОДАЖА [17:49:23]line ТРК (МРК, ГНК) : 32 [17:49:23]line Товар: 2710124130 [17:49:23]line Аи-92-К-5 [17:49:23]line 4.490 * 66.90 [17:49:23]line = 300.38 [17:49:23]line НДС 12% НСП 1% [17:49:23]line > о реализуемом товаре [17:49:23]line ОКРУГЛЕНИЕ: -0.38 [17:49:23]line ИТОГО: 300.00 [17:49:23]line Внесено: 300.00 [17:49:23]line СДАЧА: 0.00 [17:49:23]line НСП 1% : 2.66 [17:49:23]line НДС 12% : 31.90 [17:49:23]line Наличными: 300.00 [17:49:23]line Безнал.: 0.00 [17:49:23]line Место: АЗС № 85 "Партнер Нефть" [17:49:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:49:23]line СНО: Общий режим [17:49:23]line Чек 263 23.10.2024 17:49 [17:49:23]line Смена: 196 ФФД: 1.0 [17:49:23]line ЗНМ: 0300000167 [17:49:23]line РНМ: 0000000000156251 [17:49:23]line Версия ККМ: v1.0 [17:49:23]line ФМ: 0000000000963346 [17:49:23]line ФД: 70747 [17:49:23]line ФПД: 270164932428510 [17:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70747&fm=270164932428510&tin=02508201610067®Number=0000000000156251&sum=30000 [17:49:23]Connected sock=11 [17:49: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 37 BD 07 01 BF C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 24 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F5 B6 AC D4 02 DE BB A0 8A 7F 1F 10 61 1F [17:49:24]written 0, free lines is 4095 [17:49: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 15 5A 47 00 3C 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 5B 14 01 00 F4 03 04 00 C1 E0 18 67 B6 04 01 00 00 DF 82 F9 34 DC D0 39 EF [17:49:24]CommunicateWithHost err = 0 [17:49:24]CheckOFDResponse [17:49:24]1017 (14) - 77093643461234 [17:49:24]1041 (16) - 0000000000963346 [17:49:24]1040 (4) - 70747 [17:49:24]1012 (4) - 23.10.2024 11:40 [17:49:24]1206 (1) - 0 [17:49:24]OFD Sender: Remove packet 70747 [17:49:24]ProducePacketName [17:49:24]name=ofd_packets/00070747 [17:49:24]NVStorageDeleteData [17:49:24]Write to MH i2c: 01 00 00 2F 2A 59 [17:49:24]Write i2c OK [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: 01 [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: 01 07 00 [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: 01 07 00 2F 2A 00 00 00 00 00 F5 0C 61 [17:49:24]RasterBufferAndPrint [17:49:24]line [17:49:24]line [17:49:24]line [17:49:24]line [17:49:24]line [17:49:24]written 0, free lines is 3327 [17:49:24]MH_Cut [17:49:24]Write to MH i2c: D1 01 00 36 2A 01 32 [17:49:24]Write i2c OK [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: D1 [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: D1 01 00 [17:49:24]MH_I2C_Read... [17:49:24]Read from MH i2c: D1 01 00 36 2A 00 31 [17:49:24]Write to MH i2c: 01 00 00 37 2A 61 [17:49:24]Write i2c OK [17:49:24]MH_I2C_Read... [17:49:24]OFD Sender: No OFD packet to send [17:49:25]*** Cut start [17:49:25]*** Partial cut [17:49:25]*** CUTSNS_PIN = 1 [17:49:25]*** CUTSNS_PIN = 0 [17:49:25]*** Brake cut motor [17:49:25]Read from MH i2c: 01 [17:49:25]MH_I2C_Read... [17:49:25]*** Stop cut motor [17:49:25]*** Cut end [17:49:25]Read from MH i2c: 01 07 00 [17:49:25]MH_I2C_Read... [17:49:25]Read from MH i2c: 01 07 00 37 2A 00 00 00 00 00 FF 0F 76 [17:49:25]process_action close_receipt done [17:49:25]requested_data is exist [17:49:25]produce_requested_data [17:49:25]requested_item fm.sn is exist - process it [17:49:25]wFMCommunicate request_size=4 [17:49:25]MH_SAM_APDU [17:49:25]CAPDU: 80 11 00 00 [17:49:25]Write to MH i2c: E2 08 00 38 2A 80 11 00 00 00 00 00 00 DC [17:49:25]Write i2c OK [17:49:25]MH_I2C_Read... [17:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:25]Read from MH i2c: E2 [17:49:25]MH_I2C_Read... [17:49:25]Read from MH i2c: E2 17 00 [17:49:25]MH_I2C_Read... [17:49:25]Read from MH i2c: E2 17 00 38 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [17:49: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:49:25]wFMCommunicate OK [17:49:25]requested_item fd.num is exist - process it [17:49:25]SAM_PROTO_GetFieldsCounters [17:49:25]wFMCommunicate request_size=4 [17:49:25]MH_SAM_APDU [17:49:25]CAPDU: 80 13 00 00 [17:49:25]Write to MH i2c: E2 08 00 39 2A 80 13 00 00 00 00 00 00 DF [17:49:25]Write i2c OK [17:49:25]MH_I2C_Read... [17:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:25]Read from MH i2c: E2 [17:49:25]MH_I2C_Read... [17:49:25]Read from MH i2c: E2 62 00 [17:49:25]MH_I2C_Read... [17:49:25]Read from MH i2c: E2 62 00 39 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 5B 14 01 00 0E 04 04 00 C4 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 46 [17:49: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 5B 14 01 00 0E 04 04 00 C4 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 [17:49:25]wFMCommunicate OK [17:49:25]SAM_PROTO_GetFieldsCounters done [17:49:25]requested_item shift.num is exist - process it [17:49:25]requested_item shift.opened is exist - process it [17:49:25]req_shift_opened [17:49:25]FM_GetShiftState [17:49:25]SAM_PROTO_GetShiftState [17:49:25]wFMCommunicate request_size=4 [17:49:25]MH_SAM_APDU [17:49:25]CAPDU: 80 13 01 00 [17:49:25]Write to MH i2c: E2 08 00 3A 2A 80 13 01 00 00 00 00 00 E1 [17:49:25]Write i2c OK [17:49:25]MH_I2C_Read... [17:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:26]Read from MH i2c: E2 [17:49:26]MH_I2C_Read... [17:49:26]Read from MH i2c: E2 0E 00 [17:49:26]MH_I2C_Read... [17:49:26]Read from MH i2c: E2 0E 00 3A 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6E [17:49:26]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:49:26]wFMCommunicate OK [17:49:26]SAM_PROTO_GetShiftState done [17:49:26]FM_GetShiftState done [17:49:26]req_shift_opened done [17:49:26]requested_item shift.open_date is exist - process it [17:49:26]req_shift_open_date [17:49:26]req_shift_open_date done [17:49:26]produce_requested_data done [17:49:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70747,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:49:26]process_action_free close_receipt [17:49:26]json_value_free [17:49:26]json_value_free done [17:49:26]process_json_proto returns [17:49:26]Send response to host [17:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70747,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:49:26]free response buf [17:49:26]execute_script done [17:49:26]execute_script returns [17:49:26]free content buf [17:49:26]Sock 7.Close socket [17:49:26]Sock 7.Thread stoped [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:21]accept exits with 9 [17:50:21]New connection [17:50:21]New thread 3067034980 created [17:50:21]Thread 3066891620 joined [17:50:21]Waiting for new connection... [17:50:21] Sock 9.Parse request [17:50:21]Sock 9.Check first char [17:50:21]Sock 9.First char is OK [17:50:21]request: POST /json_proto HTTP/1.0 [17:50:21]Method: POST [17:50:21]URL: /json_proto [17:50:21]Method is POST - this is cgi request [17:50:21]url: /json_proto [17:50:21]query_string will be loaded in cgi processing [17:50:21]execute_cgi json_proto POST (null) [17:50:21]execute_cgi path=json_proto method=POST [17:50:21]POST find Content-Length [17:50:21]Host: 172.17.50.3:8080 [17:50:21]Content-Length: 689 [17:50:21]Content-Type: application/json [17:50:21] [17:50:21]POST finish read [17:50:21]Found Content-Length = 689 [17:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886532", "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:50:21]execute_script... [17:50: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)2886532", "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:50:21]POST & json_proto [17:50:21]process_json_proto [17:50:21]json parsed OK: [17:50:21]protocol is kg_v1.0 [17:50:21]action value=close_receipt [17:50:21]process_action close_receipt [17:50:21]cmd_close_receipt [17:50:21]MH_GetDate [17:50:21]Write to MH i2c: F0 00 00 3B 2A 54 [17:50:21]Write i2c OK [17:50:21]MH_I2C_Read... [17:50:21]Read from MH i2c: F0 [17:50:21]MH_I2C_Read... [17:50:21]Read from MH i2c: F0 09 00 [17:50:21]MH_I2C_Read... [17:50:21]Read from MH i2c: F0 09 00 3B 2A 00 5F 37 19 67 6B 98 1E 66 FA [17:50:21]GetLastDocTimeStamp 1729705764 [17:50:21]current date 1729705823 [17:50:21]FM_GetShiftState [17:50:21]SAM_PROTO_GetShiftState [17:50:21]wFMCommunicate request_size=4 [17:50:21]MH_SAM_APDU [17:50:21]CAPDU: 80 13 01 00 [17:50:21]Write to MH i2c: E2 08 00 3C 2A 80 13 01 00 00 00 00 00 E3 [17:50:21]Write i2c OK [17:50:21]MH_I2C_Read... [17:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:21]Read from MH i2c: E2 [17:50:21]MH_I2C_Read... [17:50:21]Read from MH i2c: E2 0E 00 [17:50:21]MH_I2C_Read... [17:50:21]Read from MH i2c: E2 0E 00 3C 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 70 [17:50:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:50:21]wFMCommunicate OK [17:50:21]SAM_PROTO_GetShiftState done [17:50:21]FM_GetShiftState done [17:50:21]opened in 1729642435 [17:50:21]opened+sec_in_day 1729728835 [17:50:21]quantity*price = 100051 [17:50:21]sum+1 = 100052 [17:50:21]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 СНО: Общий режим Чек 264 23.10.2024 17:50 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70748 ФПД: 147438082983256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175023&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70748&fm=147438082983256&tin=02508201610067®Number=0000000000156251&sum=100000 [17:50:22]StoreToDocumentArchive [17:50:22]shift 196 fd 70748 [17:50:22]save to /storage/0196/doc_00070748 [17:50:22]save last doc name /storage/0196/doc_00070748 to /storage/kkm_last_doc_name [17:50:22]save OK [17:50:22]Clear old archive folders... [17:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:50:22]tlvbuf is 0013C050 [17:50:22]SAM_PROTO_ClearQueue [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 09 00 00 [17:50:22]Write to MH i2c: E2 08 00 49 2A 80 09 00 00 00 00 00 00 E5 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 49 2A 00 90 00 E7 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]SAM_PROTO_ClearQueue done [17:50:22]KKMCreateOFDPacket [17:50:22]OFDProtocolAddRootSTLVToBuf [17:50:22]FM_MakeSignedData [17:50:22]FM_MakeSignedData [17:50:22]SAM_PROTO_SignData [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 01 02 [17:50:22]Write to MH i2c: E2 08 00 4A 2A 80 0D 01 02 00 00 00 00 ED [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 4A 2A 00 90 00 E8 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=255 [17:50:22]MH_SAM_APDU [17:50: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 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 08 01 00 00 F4 03 04 00 5F 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [17:50:22]Write to MH i2c: E2 02 01 4B 2A 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 08 01 00 00 F4 03 04 00 5F 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 93 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 4B 2A 00 90 00 E9 [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=16 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 86 18 1A 90 05 58 [17:50:22]Write to MH i2c: E2 13 00 4C 2A 80 0D 02 02 0B 00 00 35 04 06 00 86 18 1A 90 05 58 00 00 EA [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [17:50:22]RAPDU: 90 00 [17:50:22]wFMCommunicate OK [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 0D 03 02 [17:50:22]Write to MH i2c: E2 08 00 4D 2A 80 0D 03 02 00 00 00 00 F2 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0B 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0B 00 4D 2A 00 1F 17 D0 BC 51 1E 28 60 90 00 AC [17:50:22]RAPDU: 1F 17 D0 BC 51 1E 28 60 90 00 [17:50:22]wFMCommunicate OK [17:50:22]SAM_PROTO_SignData done [17:50:22]FM_MakeSignedData done [17:50:22]CreateOFDProtocolMessage [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 11 00 00 [17:50:22]Write to MH i2c: E2 08 00 4E 2A 80 11 00 00 00 00 00 00 F2 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 17 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 17 00 4E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 44 [17:50: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:50:22]wFMCommunicate OK [17:50:22]CreateOFDProtocolMessage done [17:50:22]OFDSenderStorePacket 70748 [17:50:22]StoreOFDPacket docnum=70748 [17:50: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 0E 91 0D 01 D2 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 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 08 01 00 00 F4 03 04 00 5F 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 86 18 1A 90 05 58 1F 17 D0 BC 51 1E 28 60 [17:50:22]CheckFolder [17:50:22]dirname=/storage/ofd_packets [17:50:22]CheckFolder done [17:50:22]ProducePacketName [17:50:22]name=ofd_packets/00070748 [17:50:22]NVStorageSaveData ofd_packets/00070748 [17:50:22]File name is /storage/ofd_packets/00070748 [17:50:22]Write 307 bytes [17:50:22]NVStorageSaveData done [17:50:22]OFDSenderStorePacket done [17:50:22]KKMCreateOFDPacket done [17:50:22]NVStorageSaveData kkm_last_timestamp [17:50:22]File name is /storage/kkm_last_timestamp [17:50:22]Write 4 bytes [17:50:22]NVStorageSaveData done [17:50:22]ExternCall_PrintAddStr [17:50:22]wPrintStart [17:50:22]Write to MH i2c: 01 00 00 4F 2A 79 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: 01 07 00 4F 2A 00 00 00 00 00 FF 0F 8E [17:50:22]RasterBufferAndPrint [17:50:22]line Счет N : (1)2886532 [17:50:22]line ИНН: 02508201610067 [17:50:22]line Контрольно-Кассовый Чек [17:50:22]line ПРОДАЖА [17:50:22]line ТРК (МРК, ГНК) : 41 [17:50:22]line Товар: 2710194240 [17:50:22]line D-ENERGY Дт-К-2 [17:50:22]line 12.960 * 77.20 [17:50:22]line = 1000.51 [17:50:22]line НДС 12% НСП 1% [17:50:22]line > о реализуемом товаре [17:50:22]line ОКРУГЛЕНИЕ: -0.51 [17:50:22]line ИТОГО: 1000.00 [17:50:22]line Внесено: 1000.00 [17:50:22]line СДАЧА: 0.00 [17:50:22]line НСП 1% : 8.85 [17:50:22]line НДС 12% : 106.25 [17:50:22]line Наличными: 1000.00 [17:50:22]line Безнал.: 0.00 [17:50:22]line Место: АЗС № 85 "Партнер Нефть" [17:50:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:50:22]line СНО: Общий режим [17:50:22]line Чек 264 23.10.2024 17:50 [17:50:22]line Смена: 196 ФФД: 1.0 [17:50:22]line ЗНМ: 0300000167 [17:50:22]line РНМ: 0000000000156251 [17:50:22]line Версия ККМ: v1.0 [17:50:22]line ФМ: 0000000000963346 [17:50:22]line ФД: 70748 [17:50:22]line ФПД: 147438082983256 [17:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175023&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70748&fm=147438082983256&tin=02508201610067®Number=0000000000156251&sum=100000 [17:50:23]OFD Sender: Processing packet 70748 [packets to send 18, broken 17] [17:50:23]ProducePacketName [17:50:23]name=ofd_packets/00070748 [17:50:23]OFD Sender: To server: pG, [17:50:23]CommunicateWithHost lk.salyk.kg:30040 [17:50:23]ConnectInit lk.salyk.kg [17:50:23]written 0, free lines is 4095 [17:50:23]Connected sock=10 [17:50: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 0E 91 0D 01 D2 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 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 08 01 00 00 F4 03 04 00 5F 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 86 18 1A 90 05 58 1F 17 D0 BC 51 1E 28 60 [17:50: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 BA B4 47 00 CD 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 14 01 00 F4 03 04 00 FC E0 18 67 B6 04 01 00 00 E8 41 97 28 6C 47 B9 B6 [17:50:23]CommunicateWithHost err = 0 [17:50:23]CheckOFDResponse [17:50:23]1017 (14) - 77093643461234 [17:50:23]1041 (16) - 0000000000963346 [17:50:23]1040 (4) - 70748 [17:50:23]1012 (4) - 23.10.2024 11:41 [17:50:23]1206 (1) - 0 [17:50:23]OFD Sender: Remove packet 70748 [17:50:23]ProducePacketName [17:50:23]name=ofd_packets/00070748 [17:50:23]NVStorageDeleteData [17:50:23]Write to MH i2c: 01 00 00 7A 2A A4 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 7A 2A 00 00 00 00 00 FF 0C B6 [17:50:23]RasterBufferAndPrint [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]line [17:50:23]written 0, free lines is 3333 [17:50:23]MH_Cut [17:50:23]Write to MH i2c: D1 01 00 81 2A 01 7D [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 01 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: D1 01 00 81 2A 00 7C [17:50:23]Write to MH i2c: 01 00 00 82 2A AC [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:24]OFD Sender: No OFD packet to send [17:50:24]*** Cut start [17:50:24]*** Partial cut [17:50:24]*** CUTSNS_PIN = 1 [17:50:24]*** CUTSNS_PIN = 0 [17:50:24]*** Brake cut motor [17:50:24]Read from MH i2c: 01 [17:50:24]MH_I2C_Read... [17:50:24]*** Stop cut motor [17:50:24]*** Cut end [17:50:24]Read from MH i2c: 01 07 00 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: 01 07 00 82 2A 00 00 00 00 00 FF 0F C1 [17:50:24]process_action close_receipt done [17:50:24]requested_data is exist [17:50:24]produce_requested_data [17:50:24]requested_item fm.sn is exist - process it [17:50:24]wFMCommunicate request_size=4 [17:50:24]MH_SAM_APDU [17:50:24]CAPDU: 80 11 00 00 [17:50:24]Write to MH i2c: E2 08 00 83 2A 80 11 00 00 00 00 00 00 27 [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:25]Read from MH i2c: E2 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 17 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 17 00 83 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [17:50: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:50:25]wFMCommunicate OK [17:50:25]requested_item fd.num is exist - process it [17:50:25]SAM_PROTO_GetFieldsCounters [17:50:25]wFMCommunicate request_size=4 [17:50:25]MH_SAM_APDU [17:50:25]CAPDU: 80 13 00 00 [17:50:25]Write to MH i2c: E2 08 00 84 2A 80 13 00 00 00 00 00 00 2A [17:50:25]Write i2c OK [17:50:25]MH_I2C_Read... [17:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:25]Read from MH i2c: E2 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 62 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 62 00 84 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 5C 14 01 00 0E 04 04 00 C4 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 95 [17:50: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 5C 14 01 00 0E 04 04 00 C4 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 [17:50:25]wFMCommunicate OK [17:50:25]SAM_PROTO_GetFieldsCounters done [17:50:25]requested_item shift.num is exist - process it [17:50:25]requested_item shift.opened is exist - process it [17:50:25]req_shift_opened [17:50:25]FM_GetShiftState [17:50:25]SAM_PROTO_GetShiftState [17:50:25]wFMCommunicate request_size=4 [17:50:25]MH_SAM_APDU [17:50:25]CAPDU: 80 13 01 00 [17:50:25]Write to MH i2c: E2 08 00 85 2A 80 13 01 00 00 00 00 00 2C [17:50:25]Write i2c OK [17:50:25]MH_I2C_Read... [17:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:25]Read from MH i2c: E2 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 0E 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: E2 0E 00 85 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B9 [17:50:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:50:25]wFMCommunicate OK [17:50:25]SAM_PROTO_GetShiftState done [17:50:25]FM_GetShiftState done [17:50:25]req_shift_opened done [17:50:25]requested_item shift.open_date is exist - process it [17:50:25]req_shift_open_date [17:50:25]req_shift_open_date done [17:50:25]produce_requested_data done [17:50:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70748,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:50:25]process_action_free close_receipt [17:50:25]json_value_free [17:50:25]json_value_free done [17:50:25]process_json_proto returns [17:50:25]Send response to host [17:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70748,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:50:25]free response buf [17:50:25]execute_script done [17:50:25]execute_script returns [17:50:25]free content buf [17:50:25]Sock 9.Close socket [17:50:25]Sock 9.Thread stoped [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:18]accept exits with 7 [17:51:18]New connection [17:51:18]New thread 3066891620 created [17:51:18]Thread 3067034980 joined [17:51:18]Waiting for new connection... [17:51:18] Sock 7.Parse request [17:51:18]Sock 7.Check first char [17:51:18]Sock 7.First char is OK [17:51:18]request: POST /json_proto HTTP/1.0 [17:51:18]Method: POST [17:51:18]URL: /json_proto [17:51:18]Method is POST - this is cgi request [17:51:18]url: /json_proto [17:51:18]query_string will be loaded in cgi processing [17:51:18]execute_cgi json_proto POST (null) [17:51:18]execute_cgi path=json_proto method=POST [17:51:18]POST find Content-Length [17:51:18]Host: 172.17.50.3:8080 [17:51:18]Content-Length: 767 [17:51:18]Content-Type: application/json [17:51:18] [17:51:18]POST finish read [17:51:18]Found Content-Length = 767 [17:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886533", "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" : 4.050, "sum" : 300.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" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:18]execute_script... [17:51: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)2886533", "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" : 4.050, "sum" : 300.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" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:18]POST & json_proto [17:51:18]process_json_proto [17:51:18]json parsed OK: [17:51:18]protocol is kg_v1.0 [17:51:18]action value=close_receipt [17:51:18]process_action close_receipt [17:51:18]cmd_close_receipt [17:51:18]MH_GetDate [17:51:18]Write to MH i2c: F0 00 00 86 2A 9F [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 09 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 09 00 86 2A 00 98 37 19 67 6B 98 1E 66 7E [17:51:18]GetLastDocTimeStamp 1729705823 [17:51:18]current date 1729705880 [17:51:18]FM_GetShiftState [17:51:18]SAM_PROTO_GetShiftState [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 13 01 00 [17:51:18]Write to MH i2c: E2 08 00 87 2A 80 13 01 00 00 00 00 00 2E [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0E 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0E 00 87 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BB [17:51:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:51:18]wFMCommunicate OK [17:51:18]SAM_PROTO_GetShiftState done [17:51:18]FM_GetShiftState done [17:51:18]opened in 1729642435 [17:51:18]opened+sec_in_day 1729728835 [17:51:18]quantity*price = 30051 [17:51:18]sum+1 = 30052 [17:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.51 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 265 23.10.2024 17:51 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70749 ФПД: 101395605279719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175121&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70749&fm=101395605279719&tin=02508201610067®Number=0000000000156251&sum=30051 [17:51:19]StoreToDocumentArchive [17:51:19]shift 196 fd 70749 [17:51:19]save to /storage/0196/doc_00070749 [17:51:19]save last doc name /storage/0196/doc_00070749 to /storage/kkm_last_doc_name [17:51:19]save OK [17:51:19]Clear old archive folders... [17:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:19]tlvbuf is 0020C220 [17:51:19]SAM_PROTO_ClearQueue [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 09 00 00 [17:51:19]Write to MH i2c: E2 08 00 94 2A 80 09 00 00 00 00 00 00 30 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 94 2A 00 90 00 32 [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]SAM_PROTO_ClearQueue done [17:51:19]KKMCreateOFDPacket [17:51:19]OFDProtocolAddRootSTLVToBuf [17:51:19]FM_MakeSignedData [17:51:19]FM_MakeSignedData [17:51:19]SAM_PROTO_SignData [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 0D 01 02 [17:51:19]Write to MH i2c: E2 08 00 95 2A 80 0D 01 02 00 00 00 00 38 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]wFMCommunicate request_size=255 [17:51:19]MH_SAM_APDU [17:51: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 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 63 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 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 99 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C [17:51:19]Write to MH i2c: E2 02 01 96 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 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 63 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 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 99 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 00 00 3B [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 03 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 03 00 96 2A 00 90 00 34 [17:51:20]RAPDU: 90 00 [17:51:20]wFMCommunicate OK [17:51:20]wFMCommunicate request_size=10 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 0D 02 02 05 38 01 08 D3 E7 [17:51:20]Write to MH i2c: E2 0D 00 97 2A 80 0D 02 02 05 00 38 01 08 D3 E7 00 00 40 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 03 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [17:51:20]RAPDU: 90 00 [17:51:20]wFMCommunicate OK [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 0D 03 02 [17:51:20]Write to MH i2c: E2 08 00 98 2A 80 0D 03 02 00 00 00 00 3D [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0B 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0B 00 98 2A 00 8A D1 66 96 DA 97 B3 3F 90 00 F8 [17:51:20]RAPDU: 8A D1 66 96 DA 97 B3 3F 90 00 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_SignData done [17:51:20]FM_MakeSignedData done [17:51:20]CreateOFDProtocolMessage [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 11 00 00 [17:51:20]Write to MH i2c: E2 08 00 99 2A 80 11 00 00 00 00 00 00 3D [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 99 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [17:51: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:51:20]wFMCommunicate OK [17:51:20]CreateOFDProtocolMessage done [17:51:20]OFDSenderStorePacket 70749 [17:51:20]StoreOFDPacket docnum=70749 [17:51: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 D0 EE 07 01 FF 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 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 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 99 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 38 01 08 D3 E7 8A D1 66 96 DA 97 B3 3F [17:51:20]CheckFolder [17:51:20]dirname=/storage/ofd_packets [17:51:20]CheckFolder done [17:51:20]ProducePacketName [17:51:20]name=ofd_packets/00070749 [17:51:20]NVStorageSaveData ofd_packets/00070749 [17:51:20]File name is /storage/ofd_packets/00070749 [17:51:20]Write 301 bytes [17:51:20]NVStorageSaveData done [17:51:20]OFDSenderStorePacket done [17:51:20]KKMCreateOFDPacket done [17:51:20]NVStorageSaveData kkm_last_timestamp [17:51:20]File name is /storage/kkm_last_timestamp [17:51:20]Write 4 bytes [17:51:20]NVStorageSaveData done [17:51:20]ExternCall_PrintAddStr [17:51:20]wPrintStart [17:51:20]Write to MH i2c: 01 00 00 9A 2A C4 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [17:51:20]RasterBufferAndPrint [17:51:20]line Счет N : (1)2886533 [17:51:20]line ИНН: 02508201610067 [17:51:20]line Контрольно-Кассовый Чек [17:51:20]line ПРОДАЖА [17:51:20]line ТРК (МРК, ГНК) : 23 [17:51:20]line Товар: 2710124500 [17:51:20]line Аи-95-К-5 [17:51:20]line 4.050 * 74.20 [17:51:20]line = 300.51 [17:51:20]line НДС 12% НСП 1% [17:51:20]line > о реализуемом товаре [17:51:20]line ИТОГО: 300.51 [17:51:20]line НСП 1% : 2.66 [17:51:20]line НДС 12% : 31.91 [17:51:20]line Наличными: 0.00 [17:51:20]line Безнал.: 300.51 [17:51:20]line Место: АЗС № 85 "Партнер Нефть" [17:51:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:51:20]line СНО: Общий режим [17:51:20]line Чек 265 23.10.2024 17:51 [17:51:20]line Смена: 196 ФФД: 1.0 [17:51:20]line ЗНМ: 0300000167 [17:51:20]line РНМ: 0000000000156251 [17:51:20]line Версия ККМ: v1.0 [17:51:20]line Платежная система: Mbank [17:51:20]line ФМ: 0000000000963346 [17:51:20]line ФД: 70749 [17:51:20]line ФПД: 101395605279719 [17:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175121&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70749&fm=101395605279719&tin=02508201610067®Number=0000000000156251&sum=30051 [17:51:20]OFD Sender: Processing packet 70749 [packets to send 18, broken 17] [17:51:20]ProducePacketName [17:51:20]name=ofd_packets/00070749 [17:51:20]OFD Sender: To server: pG, [17:51:20]CommunicateWithHost lk.salyk.kg:30040 [17:51:20]ConnectInit lk.salyk.kg [17:51:20]written 0, free lines is 4095 [17:51:20]Connected sock=10 [17: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 0F 01 00 00 D0 EE 07 01 FF 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 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 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 99 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5C 38 01 08 D3 E7 8A D1 66 96 DA 97 B3 3F [17:51: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 6C A7 47 00 BC 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 5D 14 01 00 F4 03 04 00 36 E1 18 67 B6 04 01 00 00 C8 10 C7 91 B2 D2 9D 1F [17:51:21]CommunicateWithHost err = 0 [17:51:21]CheckOFDResponse [17:51:21]1017 (14) - 77093643461234 [17:51:21]1041 (16) - 0000000000963346 [17:51:21]1040 (4) - 70749 [17:51:21]1012 (4) - 23.10.2024 11:42 [17:51:21]1206 (1) - 0 [17:51:21]OFD Sender: Remove packet 70749 [17:51:21]ProducePacketName [17:51:21]name=ofd_packets/00070749 [17:51:21]NVStorageDeleteData [17:51:21]Write to MH i2c: 01 00 00 C3 2A ED [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: 01 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: 01 07 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: 01 07 00 C3 2A 00 00 00 00 00 1D 0D 1E [17:51:21]RasterBufferAndPrint [17:51:21]line [17:51:21]line [17:51:21]line [17:51:21]line [17:51:21]line [17:51:21]written 0, free lines is 3365 [17:51:21]MH_Cut [17:51:21]Write to MH i2c: D1 01 00 CA 2A 01 C6 [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: D1 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: D1 01 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: D1 01 00 CA 2A 00 C5 [17:51:21]Write to MH i2c: 01 00 00 CB 2A F5 [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]OFD Sender: No OFD packet to send [17:51:21]*** Cut start [17:51:21]*** Partial cut [17:51:21]*** CUTSNS_PIN = 1 [17:51:21]*** CUTSNS_PIN = 0 [17:51:22]*** Brake cut motor [17:51:22]Read from MH i2c: 01 [17:51:22]MH_I2C_Read... [17:51:22]*** Stop cut motor [17:51:22]*** Cut end [17:51:22]Read from MH i2c: 01 07 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: 01 07 00 CB 2A 00 00 00 00 00 FF 0F 0A [17:51:22]process_action close_receipt done [17:51:22]requested_data is exist [17:51:22]produce_requested_data [17:51:22]requested_item fm.sn is exist - process it [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 11 00 00 [17:51:22]Write to MH i2c: E2 08 00 CC 2A 80 11 00 00 00 00 00 00 70 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 17 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 17 00 CC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [17:51: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:51:22]wFMCommunicate OK [17:51:22]requested_item fd.num is exist - process it [17:51:22]SAM_PROTO_GetFieldsCounters [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 00 00 [17:51:22]Write to MH i2c: E2 08 00 CD 2A 80 13 00 00 00 00 00 00 73 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 62 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 62 00 CD 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 5D 14 01 00 0E 04 04 00 C4 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 E2 [17:51: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 5D 14 01 00 0E 04 04 00 C4 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 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetFieldsCounters done [17:51:22]requested_item shift.num is exist - process it [17:51:22]requested_item shift.opened is exist - process it [17:51:22]req_shift_opened [17:51:22]FM_GetShiftState [17:51:22]SAM_PROTO_GetShiftState [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 01 00 [17:51:22]Write to MH i2c: E2 08 00 CE 2A 80 13 01 00 00 00 00 00 75 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 CE 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 02 [17:51:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetShiftState done [17:51:22]FM_GetShiftState done [17:51:22]req_shift_opened done [17:51:22]requested_item shift.open_date is exist - process it [17:51:22]req_shift_open_date [17:51:22]req_shift_open_date done [17:51:22]produce_requested_data done [17:51:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70749,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:51:22]process_action_free close_receipt [17:51:22]json_value_free [17:51:22]json_value_free done [17:51:22]process_json_proto returns [17:51:22]Send response to host [17:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70749,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:51:22]free response buf [17:51:22]execute_script done [17:51:22]execute_script returns [17:51:22]free content buf [17:51:22]Sock 7.Close socket [17:51:22]Sock 7.Thread stoped [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:43]accept exits with 9 [17:52:43]New connection [17:52:43]New thread 3067034980 created [17:52:43]Thread 3066891620 joined [17:52:43]Waiting for new connection... [17:52:43] Sock 9.Parse request [17:52:43]Sock 9.Check first char [17:52:43]Sock 9.First char is OK [17:52:43]request: POST /json_proto HTTP/1.0 [17:52:43]Method: POST [17:52:43]URL: /json_proto [17:52:43]Method is POST - this is cgi request [17:52:43]url: /json_proto [17:52:43]query_string will be loaded in cgi processing [17:52:43]execute_cgi json_proto POST (null) [17:52:43]execute_cgi path=json_proto method=POST [17:52:43]POST find Content-Length [17:52:43]Host: 172.17.50.3:8080 [17:52:43]Content-Length: 801 [17:52:43]Content-Type: application/json [17:52:43] [17:52:43]POST finish read [17:52:43]Found Content-Length = 801 [17:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886534", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:43]execute_script... [17:52: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)2886534", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:43]POST & json_proto [17:52:43]process_json_proto [17:52:43]json parsed OK: [17:52:43]protocol is kg_v1.0 [17:52:43]action value=close_receipt [17:52:43]process_action close_receipt [17:52:43]cmd_close_receipt [17:52:43]MH_GetDate [17:52:43]Write to MH i2c: F0 00 00 CF 2A E8 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: F0 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: F0 09 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: F0 09 00 CF 2A 00 EE 37 19 67 6B 98 1E 66 1D [17:52:43]GetLastDocTimeStamp 1729705881 [17:52:43]current date 1729705966 [17:52:43]FM_GetShiftState [17:52:43]SAM_PROTO_GetShiftState [17:52:43]wFMCommunicate request_size=4 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 13 01 00 [17:52:43]Write to MH i2c: E2 08 00 D0 2A 80 13 01 00 00 00 00 00 77 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 0E 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 0E 00 D0 2A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 04 [17:52:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:52:43]wFMCommunicate OK [17:52:43]SAM_PROTO_GetShiftState done [17:52:43]FM_GetShiftState done [17:52:43]opened in 1729642435 [17:52:43]opened+sec_in_day 1729728835 [17:52:43]quantity*price = 0 [17:52:43]sum+1 = 1 [17:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 266 23.10.2024 17:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949862 ФМ: 0000000000963346 ФД: 70750 ФПД: 235554455099624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70750&fm=235554455099624&tin=02508201610067®Number=0000000000156251&sum=0 [17:52:45]StoreToDocumentArchive [17:52:45]shift 196 fd 70750 [17:52:45]save to /storage/0196/doc_00070750 [17:52:45]save last doc name /storage/0196/doc_00070750 to /storage/kkm_last_doc_name [17:52:45]save OK [17:52:45]Clear old archive folders... [17:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:45]tlvbuf is 0020C2D0 [17:52:45]SAM_PROTO_ClearQueue [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 09 00 00 [17:52:45]Write to MH i2c: E2 08 00 DD 2A 80 09 00 00 00 00 00 00 79 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 DD 2A 00 90 00 7B [17:52:45]RAPDU: 90 00 [17:52:45]wFMCommunicate OK [17:52:45]SAM_PROTO_ClearQueue done [17:52:45]KKMCreateOFDPacket [17:52:45]OFDProtocolAddRootSTLVToBuf [17:52:45]FM_MakeSignedData [17:52:45]FM_MakeSignedData [17:52:45]SAM_PROTO_SignData [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 0D 01 02 [17:52:45]Write to MH i2c: E2 08 00 DE 2A 80 0D 01 02 00 00 00 00 81 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 DE 2A 00 90 00 7C [17:52:45]RAPDU: 90 00 [17:52:45]wFMCommunicate OK [17:52:45]wFMCommunicate request_size=255 [17:52:45]MH_SAM_APDU [17:52: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 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 0A 01 00 00 F4 03 04 00 EE 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D6 [17:52:45]Write to MH i2c: E2 02 01 DF 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 0A 01 00 00 F4 03 04 00 EE 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D6 00 00 B0 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 DF 2A 00 90 00 7D [17:52:45]RAPDU: 90 00 [17:52:45]wFMCommunicate OK [17:52:45]wFMCommunicate request_size=10 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 0D 02 02 05 3C 4B 9F 18 E8 [17:52:45]Write to MH i2c: E2 0D 00 E0 2A 80 0D 02 02 05 00 3C 4B 9F 18 E8 00 00 B4 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 03 00 E0 2A 00 90 00 7E [17:52:45]RAPDU: 90 00 [17:52:45]wFMCommunicate OK [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 0D 03 02 [17:52:45]Write to MH i2c: E2 08 00 E1 2A 80 0D 03 02 00 00 00 00 86 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0B 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0B 00 E1 2A 00 77 A7 B6 18 09 FE DD 74 90 00 CB [17:52:45]RAPDU: 77 A7 B6 18 09 FE DD 74 90 00 [17:52:45]wFMCommunicate OK [17:52:45]SAM_PROTO_SignData done [17:52:45]FM_MakeSignedData done [17:52:45]CreateOFDProtocolMessage [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 11 00 00 [17:52:45]Write to MH i2c: E2 08 00 E2 2A 80 11 00 00 00 00 00 00 86 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 17 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 17 00 E2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [17: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 [17:52:45]wFMCommunicate OK [17:52:45]CreateOFDProtocolMessage done [17:52:45]OFDSenderStorePacket 70750 [17:52:45]StoreOFDPacket docnum=70750 [17:52: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 EF 42 07 01 12 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 EE 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D6 3C 4B 9F 18 E8 77 A7 B6 18 09 FE DD 74 [17:52:45]CheckFolder [17:52:45]dirname=/storage/ofd_packets [17:52:45]CheckFolder done [17:52:45]ProducePacketName [17:52:45]name=ofd_packets/00070750 [17:52:45]NVStorageSaveData ofd_packets/00070750 [17:52:45]File name is /storage/ofd_packets/00070750 [17:52:45]Write 301 bytes [17:52:45]NVStorageSaveData done [17:52:45]OFDSenderStorePacket done [17:52:45]KKMCreateOFDPacket done [17:52:45]NVStorageSaveData kkm_last_timestamp [17:52:45]File name is /storage/kkm_last_timestamp [17:52:45]Write 4 bytes [17:52:45]NVStorageSaveData done [17:52:45]ExternCall_PrintAddStr [17:52:45]wPrintStart [17:52:45]Write to MH i2c: 01 00 00 E3 2A 0D [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: 01 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: 01 07 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: 01 07 00 E3 2A 00 00 00 00 00 FF 0F 22 [17:52:45]RasterBufferAndPrint [17:52:45]line Счет N : (1)2886534 [17:52:45]line ИНН: 02508201610067 [17:52:45]line Контрольно-Кассовый Чек [17:52:45]line ПРОДАЖА [17:52:45]line ТРК (МРК, ГНК) : 12 [17:52:45]line Товар: 2710124130 [17:52:45]line Аи-92-К-5 [17:52:45]line 20.000 * 0.00 [17:52:45]line = 0.00 [17:52:45]line НДС 12% НСП 1% [17:52:45]line > о реализуемом товаре [17:52:45]line ИТОГО: 0.00 [17:52:45]line НСП 1% : 0.00 [17:52:45]line НДС 12% : 0.00 [17:52:45]line Наличными: 0.00 [17:52:45]line Безнал.: 0.00 [17:52:45]line Место: АЗС № 85 "Партнер Нефть" [17:52:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:52:45]line СНО: Общий режим [17:52:45]line Чек 266 23.10.2024 17:52 [17:52:45]line Смена: 196 ФФД: 1.0 [17:52:45]line ЗНМ: 0300000167 [17:52:45]line РНМ: 0000000000156251 [17:52:45]line Версия ККМ: v1.0 [17:52:45]line Талоны: Топливные Талоны [17:52:45]line 3949862 [17:52:45]line ФМ: 0000000000963346 [17:52:45]line ФД: 70750 [17:52:45]line ФПД: 235554455099624 [17:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70750&fm=235554455099624&tin=02508201610067®Number=0000000000156251&sum=0 [17:52:45]OFD Sender: Processing packet 70750 [packets to send 18, broken 17] [17:52:45]ProducePacketName [17:52:45]name=ofd_packets/00070750 [17:52:45]OFD Sender: To server: pG, [17:52:45]CommunicateWithHost lk.salyk.kg:30040 [17:52:45]ConnectInit lk.salyk.kg [17:52:45]written 0, free lines is 4095 [17:52:46]Connected sock=10 [17:52: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 EF 42 07 01 12 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 EE 37 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D6 3C 4B 9F 18 E8 77 A7 B6 18 09 FE DD 74 [17:52: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 9C 85 47 00 13 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 5E 14 01 00 F4 03 04 00 8B E1 18 67 B6 04 01 00 00 82 F8 1A 51 61 57 7D 71 [17:52:46]CommunicateWithHost err = 0 [17:52:46]CheckOFDResponse [17:52:46]1017 (14) - 77093643461234 [17:52:46]1041 (16) - 0000000000963346 [17:52:46]1040 (4) - 70750 [17:52:46]1012 (4) - 23.10.2024 11:44 [17:52:46]1206 (1) - 0 [17:52:46]OFD Sender: Remove packet 70750 [17:52:46]ProducePacketName [17:52:46]name=ofd_packets/00070750 [17:52:46]NVStorageDeleteData [17:52:46]Write to MH i2c: 01 00 00 0D 2B 38 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 0D 2B 00 00 00 00 00 0C 0D 58 [17:52:46]RasterBufferAndPrint [17:52:46]line [17:52:46]line [17:52:46]line [17:52:46]line [17:52:46]line [17:52:46]written 0, free lines is 3346 [17:52:46]MH_Cut [17:52:46]Write to MH i2c: D1 01 00 14 2B 01 11 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: D1 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: D1 01 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: D1 01 00 14 2B 00 10 [17:52:46]Write to MH i2c: 01 00 00 15 2B 40 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]OFD Sender: No OFD packet to send [17:52:47]*** Cut start [17:52:47]*** Partial cut [17:52:47]*** CUTSNS_PIN = 1 [17:52:47]*** CUTSNS_PIN = 0 [17:52:47]*** Brake cut motor [17:52:47]Read from MH i2c: 01 [17:52:47]MH_I2C_Read... [17:52:47]*** Stop cut motor [17:52:47]*** Cut end [17:52:47]Read from MH i2c: 01 07 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 07 00 15 2B 00 00 00 00 00 FF 0F 55 [17:52:47]process_action close_receipt done [17:52:47]requested_data is exist [17:52:47]produce_requested_data [17:52:47]requested_item fm.sn is exist - process it [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 11 00 00 [17:52:47]Write to MH i2c: E2 08 00 16 2B 80 11 00 00 00 00 00 00 BB [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 17 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 17 00 16 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [17:52: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:52:47]wFMCommunicate OK [17:52:47]requested_item fd.num is exist - process it [17:52:47]SAM_PROTO_GetFieldsCounters [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 00 00 [17:52:47]Write to MH i2c: E2 08 00 17 2B 80 13 00 00 00 00 00 00 BE [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 62 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 62 00 17 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 5E 14 01 00 0E 04 04 00 C4 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 31 [17:52: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 5E 14 01 00 0E 04 04 00 C4 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 [17:52:47]wFMCommunicate OK [17:52:47]SAM_PROTO_GetFieldsCounters done [17:52:47]requested_item shift.num is exist - process it [17:52:47]requested_item shift.opened is exist - process it [17:52:47]req_shift_opened [17:52:47]FM_GetShiftState [17:52:47]SAM_PROTO_GetShiftState [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 01 00 [17:52:47]Write to MH i2c: E2 08 00 18 2B 80 13 01 00 00 00 00 00 C0 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 18 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4D [17:52:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:52:48]wFMCommunicate OK [17:52:48]SAM_PROTO_GetShiftState done [17:52:48]FM_GetShiftState done [17:52:48]req_shift_opened done [17:52:48]requested_item shift.open_date is exist - process it [17:52:48]req_shift_open_date [17:52:48]req_shift_open_date done [17:52:48]produce_requested_data done [17:52:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70750,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:52:48]process_action_free close_receipt [17:52:48]json_value_free [17:52:48]json_value_free done [17:52:48]process_json_proto returns [17:52:48]Send response to host [17:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70750,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:52:48]free response buf [17:52:48]execute_script done [17:52:48]execute_script returns [17:52:48]free content buf [17:52:48]Sock 9.Close socket [17:52:48]Sock 9.Thread stoped [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [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:46]accept exits with 7 [17:53:46]New connection [17:53:46]New thread 3066891620 created [17:53:46]Thread 3067034980 joined [17:53:46]Waiting for new connection... [17:53:46] Sock 7.Parse request [17:53:46]Sock 7.Check first char [17:53:46]Sock 7.First char is OK [17:53:46]request: POST /json_proto HTTP/1.0 [17:53:46]Method: POST [17:53:46]URL: /json_proto [17:53:46]Method is POST - this is cgi request [17:53:46]url: /json_proto [17:53:46]query_string will be loaded in cgi processing [17:53:46]execute_cgi json_proto POST (null) [17:53:46]execute_cgi path=json_proto method=POST [17:53:46]POST find Content-Length [17:53:46]Host: 172.17.50.3:8080 [17:53:46]Content-Length: 682 [17:53:46]Content-Type: application/json [17:53:46] [17:53:46]POST finish read [17:53:46]Found Content-Length = 682 [17:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886535", "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" ] } } [17:53:46]execute_script... [17:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886535", "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" ] } } [17:53:46]POST & json_proto [17:53:46]process_json_proto [17:53:46]json parsed OK: [17:53:46]protocol is kg_v1.0 [17:53:46]action value=close_receipt [17:53:46]process_action close_receipt [17:53:46]cmd_close_receipt [17:53:46]MH_GetDate [17:53:46]Write to MH i2c: F0 00 00 19 2B 33 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 09 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 09 00 19 2B 00 2D 38 19 67 6B 98 1E 66 A8 [17:53:46]GetLastDocTimeStamp 1729705966 [17:53:46]current date 1729706029 [17:53:46]FM_GetShiftState [17:53:46]SAM_PROTO_GetShiftState [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 13 01 00 [17:53:46]Write to MH i2c: E2 08 00 1A 2B 80 13 01 00 00 00 00 00 C2 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 1A 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4F [17:53:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_GetShiftState done [17:53:46]FM_GetShiftState done [17:53:46]opened in 1729642435 [17:53:46]opened+sec_in_day 1729728835 [17:53:46]quantity*price = 50025 [17:53:46]sum+1 = 50026 [17:53:46]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 СНО: Общий режим Чек 267 23.10.2024 17:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70751 ФПД: 199973157162905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70751&fm=199973157162905&tin=02508201610067®Number=0000000000156251&sum=50000 [17:53:48]StoreToDocumentArchive [17:53:48]shift 196 fd 70751 [17:53:48]save to /storage/0196/doc_00070751 [17:53:48]save last doc name /storage/0196/doc_00070751 to /storage/kkm_last_doc_name [17:53:48]save OK [17:53:48]Clear old archive folders... [17:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:53:48]tlvbuf is 0020CCA0 [17:53:48]SAM_PROTO_ClearQueue [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 09 00 00 [17:53:48]Write to MH i2c: E2 08 00 27 2B 80 09 00 00 00 00 00 00 C4 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 27 2B 00 90 00 C6 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]SAM_PROTO_ClearQueue done [17:53:48]KKMCreateOFDPacket [17:53:48]OFDProtocolAddRootSTLVToBuf [17:53:48]FM_MakeSignedData [17:53:48]FM_MakeSignedData [17:53:48]SAM_PROTO_SignData [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 01 02 [17:53:48]Write to MH i2c: E2 08 00 28 2B 80 0D 01 02 00 00 00 00 CC [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 28 2B 00 90 00 C7 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=255 [17:53:48]MH_SAM_APDU [17:53:48]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 0B 01 00 00 F4 03 04 00 2D 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 DF [17:53:48]Write to MH i2c: E2 02 01 29 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 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 0B 01 00 00 F4 03 04 00 2D 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 DF 00 00 CC [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 29 2B 00 90 00 C8 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=9 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 02 02 04 E0 FF 4F 99 [17:53:48]Write to MH i2c: E2 0C 00 2A 2B 80 0D 02 02 04 00 E0 FF 4F 99 00 00 9E [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 2A 2B 00 90 00 C9 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 03 02 [17:53:48]Write to MH i2c: E2 08 00 2B 2B 80 0D 03 02 00 00 00 00 D1 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0B 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0B 00 2B 2B 00 C1 3C 37 62 A1 83 95 77 90 00 98 [17:53:48]RAPDU: C1 3C 37 62 A1 83 95 77 90 00 [17:53:48]wFMCommunicate OK [17:53:48]SAM_PROTO_SignData done [17:53:48]FM_MakeSignedData done [17:53:48]CreateOFDProtocolMessage [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 11 00 00 [17:53:48]Write to MH i2c: E2 08 00 2C 2B 80 11 00 00 00 00 00 00 D1 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 17 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 17 00 2C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [17:53:48]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:48]wFMCommunicate OK [17:53:48]CreateOFDProtocolMessage done [17:53:48]OFDSenderStorePacket 70751 [17:53:48]StoreOFDPacket docnum=70751 [17:53: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 75 3B 06 01 E3 CD 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 0B 01 00 00 F4 03 04 00 2D 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 DF E0 FF 4F 99 C1 3C 37 62 A1 83 95 77 [17:53:48]CheckFolder [17:53:48]dirname=/storage/ofd_packets [17:53:48]CheckFolder done [17:53:48]ProducePacketName [17:53:48]name=ofd_packets/00070751 [17:53:48]NVStorageSaveData ofd_packets/00070751 [17:53:48]File name is /storage/ofd_packets/00070751 [17:53:48]Write 300 bytes [17:53:48]NVStorageSaveData done [17:53:48]OFDSenderStorePacket done [17:53:48]KKMCreateOFDPacket done [17:53:48]NVStorageSaveData kkm_last_timestamp [17:53:48]File name is /storage/kkm_last_timestamp [17:53:48]Write 4 bytes [17:53:48]NVStorageSaveData done [17:53:48]ExternCall_PrintAddStr [17:53:48]wPrintStart [17:53:48]Write to MH i2c: 01 00 00 2D 2B 58 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 2D 2B 00 00 00 00 00 FF 0F 6D [17:53:48]RasterBufferAndPrint [17:53:48]line Счет N : (1)2886535 [17:53:48]line ИНН: 02508201610067 [17:53:48]line Контрольно-Кассовый Чек [17:53:48]line ПРОДАЖА [17:53:48]line ТРК (МРК, ГНК) : 71 [17:53:48]line Товар: 2711129700 [17:53:48]line ГАЗ-К-3 [17:53:48]line 12.860 * 38.90 [17:53:48]line = 500.25 [17:53:48]line НДС 12% НСП 1% [17:53:48]line > о реализуемом товаре [17:53:48]line ОКРУГЛЕНИЕ: -0.25 [17:53:48]line ИТОГО: 500.00 [17:53:48]line Внесено: 500.00 [17:53:48]line СДАЧА: 0.00 [17:53:48]line НСП 1% : 4.43 [17:53:48]line НДС 12% : 53.12 [17:53:48]line Наличными: 500.00 [17:53:48]line Безнал.: 0.00 [17:53:48]line Место: АЗС № 85 "Партнер Нефть" [17:53:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:53:48]line СНО: Общий режим [17:53:48]line Чек 267 23.10.2024 17:53 [17:53:48]line Смена: 196 ФФД: 1.0 [17:53:48]line ЗНМ: 0300000167 [17:53:48]line РНМ: 0000000000156251 [17:53:48]line Версия ККМ: v1.0 [17:53:48]line ФМ: 0000000000963346 [17:53:48]line ФД: 70751 [17:53:48]line ФПД: 199973157162905 [17:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70751&fm=199973157162905&tin=02508201610067®Number=0000000000156251&sum=50000 [17:53:48]OFD Sender: Processing packet 70751 [packets to send 18, broken 17] [17:53:48]ProducePacketName [17:53:48]name=ofd_packets/00070751 [17:53:48]OFD Sender: To server: pG, [17:53:48]CommunicateWithHost lk.salyk.kg:30040 [17:53:48]ConnectInit lk.salyk.kg [17:53:48]written 0, free lines is 4095 [17:53:49]Connected sock=10 [17:53: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 0E 01 00 00 75 3B 06 01 E3 CD 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 0B 01 00 00 F4 03 04 00 2D 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 DF E0 FF 4F 99 C1 3C 37 62 A1 83 95 77 [17:53: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 A5 46 47 00 74 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 5F 14 01 00 F4 03 04 00 CA E1 18 67 B6 04 01 00 00 AC 08 B3 D0 0B C9 86 30 [17:53:49]CommunicateWithHost err = 0 [17:53:49]CheckOFDResponse [17:53:49]1017 (14) - 77093643461234 [17:53:49]1041 (16) - 0000000000963346 [17:53:49]1040 (4) - 70751 [17:53:49]1012 (4) - 23.10.2024 11:45 [17:53:49]1206 (1) - 0 [17:53:49]OFD Sender: Remove packet 70751 [17:53:49]ProducePacketName [17:53:49]name=ofd_packets/00070751 [17:53:49]NVStorageDeleteData [17:53:49]Write to MH i2c: 01 00 00 58 2B 83 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 07 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 07 00 58 2B 00 00 00 00 00 F8 0C 8E [17:53:49]RasterBufferAndPrint [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]written 0, free lines is 3330 [17:53:49]MH_Cut [17:53:49]Write to MH i2c: D1 01 00 5F 2B 01 5C [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 01 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 01 00 5F 2B 00 5B [17:53:49]Write to MH i2c: 01 00 00 60 2B 8B [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]OFD Sender: No OFD packet to send [17:53:50]*** Cut start [17:53:50]*** Partial cut [17:53:50]*** CUTSNS_PIN = 1 [17:53:50]*** CUTSNS_PIN = 0 [17:53:50]*** Brake cut motor [17:53:50]Read from MH i2c: 01 [17:53:50]MH_I2C_Read... [17:53:50]*** Stop cut motor [17:53:50]*** Cut end [17:53:50]Read from MH i2c: 01 07 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 60 2B 00 00 00 00 00 FF 0F A0 [17:53:50]process_action close_receipt done [17:53:50]requested_data is exist [17:53:50]produce_requested_data [17:53:50]requested_item fm.sn is exist - process it [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 11 00 00 [17:53:50]Write to MH i2c: E2 08 00 61 2B 80 11 00 00 00 00 00 00 06 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 61 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [17: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 [17:53:50]wFMCommunicate OK [17:53:50]requested_item fd.num is exist - process it [17:53:50]SAM_PROTO_GetFieldsCounters [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 00 00 [17:53:50]Write to MH i2c: E2 08 00 62 2B 80 13 00 00 00 00 00 00 09 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 62 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 62 00 62 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 5F 14 01 00 0E 04 04 00 C4 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 80 [17:53: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 5F 14 01 00 0E 04 04 00 C4 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 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetFieldsCounters done [17:53:50]requested_item shift.num is exist - process it [17:53:50]requested_item shift.opened is exist - process it [17:53:50]req_shift_opened [17:53:50]FM_GetShiftState [17:53:50]SAM_PROTO_GetShiftState [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 01 00 [17:53:50]Write to MH i2c: E2 08 00 63 2B 80 13 01 00 00 00 00 00 0B [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0E 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0E 00 63 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 98 [17:53:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:53:51]wFMCommunicate OK [17:53:51]SAM_PROTO_GetShiftState done [17:53:51]FM_GetShiftState done [17:53:51]req_shift_opened done [17:53:51]requested_item shift.open_date is exist - process it [17:53:51]req_shift_open_date [17:53:51]req_shift_open_date done [17:53:51]produce_requested_data done [17:53:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70751,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:53:51]process_action_free close_receipt [17:53:51]json_value_free [17:53:51]json_value_free done [17:53:51]process_json_proto returns [17:53:51]Send response to host [17:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70751,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:53:51]free response buf [17:53:51]execute_script done [17:53:51]execute_script returns [17:53:51]free content buf [17:53:51]Sock 7.Close socket [17:53:51]Sock 7.Thread stoped [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:25]accept exits with 9 [17:56:25]New connection [17:56:25]New thread 3067034980 created [17:56:25]Thread 3066891620 joined [17:56:25]Waiting for new connection... [17:56:25] Sock 9.Parse request [17:56:25]Sock 9.Check first char [17:56:25]Sock 9.First char is OK [17:56:25]request: POST /json_proto HTTP/1.0 [17:56:25]Method: POST [17:56:25]URL: /json_proto [17:56:25]Method is POST - this is cgi request [17:56:25]url: /json_proto [17:56:25]query_string will be loaded in cgi processing [17:56:25]execute_cgi json_proto POST (null) [17:56:25]execute_cgi path=json_proto method=POST [17:56:25]POST find Content-Length [17:56:25]Host: 172.17.50.3:8080 [17:56:25]Content-Length: 683 [17:56:25]Content-Type: application/json [17:56:25] [17:56:25]POST finish read [17:56:25]Found Content-Length = 683 [17:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886537", "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 }]} ], "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" ] } } [17:56:25]execute_script... [17:56: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)2886537", "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 }]} ], "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" ] } } [17:56:25]POST & json_proto [17:56:25]process_json_proto [17:56:25]json parsed OK: [17:56:25]protocol is kg_v1.0 [17:56:25]action value=close_receipt [17:56:25]process_action close_receipt [17:56:25]cmd_close_receipt [17:56:25]MH_GetDate [17:56:25]Write to MH i2c: F0 00 00 64 2B 7E [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: F0 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: F0 09 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: F0 09 00 64 2B 00 CB 38 19 67 6B 98 1E 66 91 [17:56:25]GetLastDocTimeStamp 1729706029 [17:56:25]current date 1729706187 [17:56:25]FM_GetShiftState [17:56:25]SAM_PROTO_GetShiftState [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 13 01 00 [17:56:25]Write to MH i2c: E2 08 00 65 2B 80 13 01 00 00 00 00 00 0D [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 0E 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 0E 00 65 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9A [17:56:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:56:25]wFMCommunicate OK [17:56:25]SAM_PROTO_GetShiftState done [17:56:25]FM_GetShiftState done [17:56:25]opened in 1729642435 [17:56:25]opened+sec_in_day 1729728835 [17:56:25]quantity*price = 300064 [17:56:25]sum+1 = 300066 [17:56:25]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 СНО: Общий режим Чек 268 23.10.2024 17:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70752 ФПД: 46427636599407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70752&fm=46427636599407&tin=02508201610067®Number=0000000000156251&sum=300000 [17:56:26]StoreToDocumentArchive [17:56:26]shift 196 fd 70752 [17:56:26]save to /storage/0196/doc_00070752 [17:56:26]save last doc name /storage/0196/doc_00070752 to /storage/kkm_last_doc_name [17:56:26]save OK [17:56:26]Clear old archive folders... [17:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:26]tlvbuf is 00146070 [17:56:26]SAM_PROTO_ClearQueue [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 09 00 00 [17:56:26]Write to MH i2c: E2 08 00 72 2B 80 09 00 00 00 00 00 00 0F [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 72 2B 00 90 00 11 [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]SAM_PROTO_ClearQueue done [17:56:26]KKMCreateOFDPacket [17:56:26]OFDProtocolAddRootSTLVToBuf [17:56:26]FM_MakeSignedData [17:56:26]FM_MakeSignedData [17:56:26]SAM_PROTO_SignData [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 01 02 [17:56:26]Write to MH i2c: E2 08 00 73 2B 80 0D 01 02 00 00 00 00 17 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 73 2B 00 90 00 12 [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=255 [17:56:26]MH_SAM_APDU [17:56: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 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 0C 01 00 00 F4 03 04 00 CB 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A [17:56:26]Write to MH i2c: E2 02 01 74 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 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 0C 01 00 00 F4 03 04 00 CB 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 00 00 C4 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 74 2B 00 90 00 13 [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=10 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 02 02 05 39 C6 C9 8A 6F [17:56:26]Write to MH i2c: E2 0D 00 75 2B 80 0D 02 02 05 00 39 C6 C9 8A 6F 00 00 E5 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 75 2B 00 90 00 14 [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 03 02 [17:56:26]Write to MH i2c: E2 08 00 76 2B 80 0D 03 02 00 00 00 00 1C [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 76 2B 00 55 7E 8E 25 66 C1 AA D4 90 00 48 [17:56:26]RAPDU: 55 7E 8E 25 66 C1 AA D4 90 00 [17:56:26]wFMCommunicate OK [17:56:26]SAM_PROTO_SignData done [17:56:26]FM_MakeSignedData done [17:56:26]CreateOFDProtocolMessage [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 11 00 00 [17:56:26]Write to MH i2c: E2 08 00 77 2B 80 11 00 00 00 00 00 00 1C [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 77 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [17:56: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:56:26]wFMCommunicate OK [17:56:26]CreateOFDProtocolMessage done [17:56:26]OFDSenderStorePacket 70752 [17:56:26]StoreOFDPacket docnum=70752 [17:56: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 98 03 07 01 2F 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 01 00 00 F4 03 04 00 CB 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 39 C6 C9 8A 6F 55 7E 8E 25 66 C1 AA D4 [17:56:26]CheckFolder [17:56:26]dirname=/storage/ofd_packets [17:56:26]CheckFolder done [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00070752 [17:56:26]NVStorageSaveData ofd_packets/00070752 [17:56:26]File name is /storage/ofd_packets/00070752 [17:56:26]Write 301 bytes [17:56:26]NVStorageSaveData done [17:56:26]OFDSenderStorePacket done [17:56:26]KKMCreateOFDPacket done [17:56:26]NVStorageSaveData kkm_last_timestamp [17:56:26]File name is /storage/kkm_last_timestamp [17:56:26]Write 4 bytes [17:56:26]NVStorageSaveData done [17:56:26]ExternCall_PrintAddStr [17:56:26]wPrintStart [17:56:26]Write to MH i2c: 01 00 00 78 2B A3 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 78 2B 00 00 00 00 00 FF 0F B8 [17:56:26]RasterBufferAndPrint [17:56:26]line Счет N : (1)2886537 [17:56:26]line ИНН: 02508201610067 [17:56:26]line Контрольно-Кассовый Чек [17:56:26]line ПРОДАЖА [17:56:26]line ТРК (МРК, ГНК) : 23 [17:56:26]line Товар: 2710124500 [17:56:26]line Аи-95-К-5 [17:56:26]line 40.440 * 74.20 [17:56:26]line = 3000.65 [17:56:26]line НДС 12% НСП 1% [17:56:26]line > о реализуемом товаре [17:56:26]line ОКРУГЛЕНИЕ: -0.65 [17:56:26]line ИТОГО: 3000.00 [17:56:26]line Внесено: 3000.00 [17:56:26]line СДАЧА: 0.00 [17:56:26]line НСП 1% : 26.55 [17:56:26]line НДС 12% : 318.65 [17:56:26]line Наличными: 3000.00 [17:56:26]line Безнал.: 0.00 [17:56:26]line Место: АЗС № 85 "Партнер Нефть" [17:56:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:56:26]line СНО: Общий режим [17:56:26]line Чек 268 23.10.2024 17:56 [17:56:26]line Смена: 196 ФФД: 1.0 [17:56:26]line ЗНМ: 0300000167 [17:56:26]line РНМ: 0000000000156251 [17:56:26]line Версия ККМ: v1.0 [17:56:26]line ФМ: 0000000000963346 [17:56:26]line ФД: 70752 [17:56:26]line ФПД: 46427636599407 [17:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70752&fm=46427636599407&tin=02508201610067®Number=0000000000156251&sum=300000 [17:56:26]written 0, free lines is 4095 [17:56:26]OFD Sender: Processing packet 70752 [packets to send 18, broken 17] [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00070752 [17:56:26]OFD Sender: To server: pG, [17:56:26]CommunicateWithHost lk.salyk.kg:30040 [17:56:26]ConnectInit lk.salyk.kg [17:56:27]Connected sock=10 [17:56: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 98 03 07 01 2F 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 01 00 00 F4 03 04 00 CB 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2A 39 C6 C9 8A 6F 55 7E 8E 25 66 C1 AA D4 [17:56: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 FC B3 47 00 2A 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 60 14 01 00 F4 03 04 00 68 E2 18 67 B6 04 01 00 00 02 C1 2A AE 65 89 1F 57 [17:56:27]CommunicateWithHost err = 0 [17:56:27]CheckOFDResponse [17:56:27]1017 (14) - 77093643461234 [17:56:27]1041 (16) - 0000000000963346 [17:56:27]1040 (4) - 70752 [17:56:27]1012 (4) - 23.10.2024 11:47 [17:56:27]1206 (1) - 0 [17:56:27]OFD Sender: Remove packet 70752 [17:56:27]ProducePacketName [17:56:27]name=ofd_packets/00070752 [17:56:27]NVStorageDeleteData [17:56:27]Write to MH i2c: 01 00 00 A3 2B CE [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 A3 2B 00 00 00 00 00 01 0D E3 [17:56:27]RasterBufferAndPrint [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]written 0, free lines is 3335 [17:56:27]MH_Cut [17:56:27]Write to MH i2c: D1 01 00 AA 2B 01 A7 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 AA 2B 00 A6 [17:56:27]Write to MH i2c: 01 00 00 AB 2B D6 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]OFD Sender: No OFD packet to send [17:56:28]*** Cut start [17:56:28]*** Partial cut [17:56:28]*** CUTSNS_PIN = 1 [17:56:28]*** CUTSNS_PIN = 0 [17:56:28]*** Brake cut motor [17:56:28]Read from MH i2c: 01 [17:56:28]MH_I2C_Read... [17:56:28]*** Stop cut motor [17:56:28]*** Cut end [17:56:28]Read from MH i2c: 01 07 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: 01 07 00 AB 2B 00 00 00 00 00 FF 0F EB [17:56:28]process_action close_receipt done [17:56:28]requested_data is exist [17:56:28]produce_requested_data [17:56:28]requested_item fm.sn is exist - process it [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 11 00 00 [17:56:28]Write to MH i2c: E2 08 00 AC 2B 80 11 00 00 00 00 00 00 51 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 AC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [17: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 [17:56:28]wFMCommunicate OK [17:56:28]requested_item fd.num is exist - process it [17:56:28]SAM_PROTO_GetFieldsCounters [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 00 00 [17:56:28]Write to MH i2c: E2 08 00 AD 2B 80 13 00 00 00 00 00 00 54 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 AD 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 60 14 01 00 0E 04 04 00 C4 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 CF [17:56: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 60 14 01 00 0E 04 04 00 C4 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 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetFieldsCounters done [17:56:28]requested_item shift.num is exist - process it [17:56:28]requested_item shift.opened is exist - process it [17:56:28]req_shift_opened [17:56:28]FM_GetShiftState [17:56:28]SAM_PROTO_GetShiftState [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 01 00 [17:56:28]Write to MH i2c: E2 08 00 AE 2B 80 13 01 00 00 00 00 00 56 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:29]Read from MH i2c: E2 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 0E 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 0E 00 AE 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E3 [17:56:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:56:29]wFMCommunicate OK [17:56:29]SAM_PROTO_GetShiftState done [17:56:29]FM_GetShiftState done [17:56:29]req_shift_opened done [17:56:29]requested_item shift.open_date is exist - process it [17:56:29]req_shift_open_date [17:56:29]req_shift_open_date done [17:56:29]produce_requested_data done [17:56:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70752,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:56:29]process_action_free close_receipt [17:56:29]json_value_free [17:56:29]json_value_free done [17:56:29]process_json_proto returns [17:56:29]Send response to host [17:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70752,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:56:29]free response buf [17:56:29]execute_script done [17:56:29]execute_script returns [17:56:29]free content buf [17:56:29]Sock 9.Close socket [17:56:29]Sock 9.Thread stoped [17:56:29]accept exits with 7 [17:56:29]New connection [17:56:29]New thread 3066891620 created [17:56:29]Thread 3067034980 joined [17:56:29]Waiting for new connection... [17:56:29] Sock 7.Parse request [17:56:29]Sock 7.Check first char [17:56:29]Sock 7.First char is OK [17:56:29]request: POST /json_proto HTTP/1.0 [17:56:29]Method: POST [17:56:29]URL: /json_proto [17:56:29]Method is POST - this is cgi request [17:56:29]url: /json_proto [17:56:29]query_string will be loaded in cgi processing [17:56:29]execute_cgi json_proto POST (null) [17:56:29]execute_cgi path=json_proto method=POST [17:56:29]POST find Content-Length [17:56:29]Host: 172.17.50.3:8080 [17:56:29]Content-Length: 686 [17:56:29]Content-Type: application/json [17:56:29] [17:56:29]POST finish read [17:56:29]Found Content-Length = 686 [17:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886536", "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" : 35.990, "sum" : 1400.01, "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" ] } } [17:56:29]execute_script... [17:56: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)2886536", "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" : 35.990, "sum" : 1400.01, "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" ] } } [17:56:29]POST & json_proto [17:56:29]process_json_proto [17:56:29]json parsed OK: [17:56:29]protocol is kg_v1.0 [17:56:29]action value=close_receipt [17:56:29]process_action close_receipt [17:56:29]cmd_close_receipt [17:56:29]MH_GetDate [17:56:29]Write to MH i2c: F0 00 00 AF 2B C9 [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: F0 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: F0 09 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: F0 09 00 AF 2B 00 CF 38 19 67 6B 98 1E 66 E0 [17:56:29]GetLastDocTimeStamp 1729706187 [17:56:29]current date 1729706191 [17:56:29]FM_GetShiftState [17:56:29]SAM_PROTO_GetShiftState [17:56:29]wFMCommunicate request_size=4 [17:56:29]MH_SAM_APDU [17:56:29]CAPDU: 80 13 01 00 [17:56:29]Write to MH i2c: E2 08 00 B0 2B 80 13 01 00 00 00 00 00 58 [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:29]Read from MH i2c: E2 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 0E 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 0E 00 B0 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E5 [17:56:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:56:29]wFMCommunicate OK [17:56:29]SAM_PROTO_GetShiftState done [17:56:29]FM_GetShiftState done [17:56:29]opened in 1729642435 [17:56:29]opened+sec_in_day 1729728835 [17:56:29]quantity*price = 140001 [17:56:29]sum+1 = 140002 [17:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.67 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 269 23.10.2024 17:56 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70753 ФПД: 34006664843884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70753&fm=34006664843884&tin=02508201610067®Number=0000000000156251&sum=140000 [17:56:30]StoreToDocumentArchive [17:56:30]shift 196 fd 70753 [17:56:30]save to /storage/0196/doc_00070753 [17:56:30]save last doc name /storage/0196/doc_00070753 to /storage/kkm_last_doc_name [17:56:30]save OK [17:56:30]Clear old archive folders... [17:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:56:30]tlvbuf is 001EA260 [17:56:30]SAM_PROTO_ClearQueue [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 09 00 00 [17:56:30]Write to MH i2c: E2 08 00 BD 2B 80 09 00 00 00 00 00 00 5A [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 03 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 03 00 BD 2B 00 90 00 5C [17:56:30]RAPDU: 90 00 [17:56:30]wFMCommunicate OK [17:56:30]SAM_PROTO_ClearQueue done [17:56:30]KKMCreateOFDPacket [17:56:30]OFDProtocolAddRootSTLVToBuf [17:56:30]FM_MakeSignedData [17:56:30]FM_MakeSignedData [17:56:30]SAM_PROTO_SignData [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 0D 01 02 [17:56:30]Write to MH i2c: E2 08 00 BE 2B 80 0D 01 02 00 00 00 00 62 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 03 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 03 00 BE 2B 00 90 00 5D [17:56:30]RAPDU: 90 00 [17:56:30]wFMCommunicate OK [17:56:30]wFMCommunicate request_size=255 [17:56:30]MH_SAM_APDU [17:56: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 96 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E1 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 13 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 0D 01 00 00 F4 03 04 00 CF 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1E ED [17:56:30]Write to MH i2c: E2 02 01 BF 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 96 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E1 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 13 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 0D 01 00 00 F4 03 04 00 CF 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1E ED 00 00 86 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:31]Read from MH i2c: E2 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 BF 2B 00 90 00 5E [17:56:31]RAPDU: 90 00 [17:56:31]wFMCommunicate OK [17:56:31]wFMCommunicate request_size=9 [17:56:31]MH_SAM_APDU [17:56:31]CAPDU: 80 0D 02 02 04 CB 2D 92 6C [17:56:31]Write to MH i2c: E2 0C 00 C0 2B 80 0D 02 02 04 00 CB 2D 92 6C 00 00 63 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:31]Read from MH i2c: E2 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 C0 2B 00 90 00 5F [17:56:31]RAPDU: 90 00 [17:56:31]wFMCommunicate OK [17:56:31]wFMCommunicate request_size=4 [17:56:31]MH_SAM_APDU [17:56:31]CAPDU: 80 0D 03 02 [17:56:31]Write to MH i2c: E2 08 00 C1 2B 80 0D 03 02 00 00 00 00 67 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:31]Read from MH i2c: E2 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 0B 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 0B 00 C1 2B 00 2D 1B BA 85 62 55 28 DA 90 00 A8 [17:56:31]RAPDU: 2D 1B BA 85 62 55 28 DA 90 00 [17:56:31]wFMCommunicate OK [17:56:31]SAM_PROTO_SignData done [17:56:31]FM_MakeSignedData done [17:56:31]CreateOFDProtocolMessage [17:56:31]wFMCommunicate request_size=4 [17:56:31]MH_SAM_APDU [17:56:31]CAPDU: 80 11 00 00 [17:56:31]Write to MH i2c: E2 08 00 C2 2B 80 11 00 00 00 00 00 00 67 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:31]Read from MH i2c: E2 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 17 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 17 00 C2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [17: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 [17:56:31]wFMCommunicate OK [17:56:31]CreateOFDProtocolMessage done [17:56:31]OFDSenderStorePacket 70753 [17:56:31]StoreOFDPacket docnum=70753 [17:56: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 0E 01 00 00 1D E8 06 01 27 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 96 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E1 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 13 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 0D 01 00 00 F4 03 04 00 CF 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1E ED CB 2D 92 6C 2D 1B BA 85 62 55 28 DA [17:56:31]CheckFolder [17:56:31]dirname=/storage/ofd_packets [17:56:31]CheckFolder done [17:56:31]ProducePacketName [17:56:31]name=ofd_packets/00070753 [17:56:31]NVStorageSaveData ofd_packets/00070753 [17:56:31]File name is /storage/ofd_packets/00070753 [17:56:31]Write 300 bytes [17:56:31]NVStorageSaveData done [17:56:31]OFDSenderStorePacket done [17:56:31]KKMCreateOFDPacket done [17:56:31]NVStorageSaveData kkm_last_timestamp [17:56:31]File name is /storage/kkm_last_timestamp [17:56:31]Write 4 bytes [17:56:31]NVStorageSaveData done [17:56:31]ExternCall_PrintAddStr [17:56:31]wPrintStart [17:56:31]Write to MH i2c: 01 00 00 C3 2B EE [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 07 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 07 00 C3 2B 00 00 00 00 00 FF 0F 03 [17:56:31]RasterBufferAndPrint [17:56:31]line Счет N : (1)2886536 [17:56:31]line ИНН: 02508201610067 [17:56:31]line Контрольно-Кассовый Чек [17:56:31]line ПРОДАЖА [17:56:31]line ТРК (МРК, ГНК) : 71 [17:56:31]line Товар: 2711129700 [17:56:31]line ГАЗ-К-3 [17:56:31]line 35.990 * 38.90 [17:56:31]line = 1400.01 [17:56:31]line НДС 12% НСП 1% [17:56:31]line > о реализуемом товаре [17:56:31]line ОКРУГЛЕНИЕ: -0.01 [17:56:31]line ИТОГО: 1400.00 [17:56:31]line Внесено: 1400.00 [17:56:31]line СДАЧА: 0.00 [17:56:31]line НСП 1% : 12.39 [17:56:31]line НДС 12% : 148.67 [17:56:31]line Наличными: 1400.00 [17:56:31]line Безнал.: 0.00 [17:56:31]line Место: АЗС № 85 "Партнер Нефть" [17:56:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:56:31]line СНО: Общий режим [17:56:31]line Чек 269 23.10.2024 17:56 [17:56:31]line Смена: 196 ФФД: 1.0 [17:56:31]line ЗНМ: 0300000167 [17:56:31]line РНМ: 0000000000156251 [17:56:31]line Версия ККМ: v1.0 [17:56:31]line ФМ: 0000000000963346 [17:56:31]line ФД: 70753 [17:56:31]line ФПД: 34006664843884 [17:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70753&fm=34006664843884&tin=02508201610067®Number=0000000000156251&sum=140000 [17:56:31]written 0, free lines is 4095 [17:56:31]OFD Sender: Processing packet 70753 [packets to send 18, broken 17] [17:56:31]ProducePacketName [17:56:31]name=ofd_packets/00070753 [17:56:31]OFD Sender: To server: pG, [17:56:31]CommunicateWithHost lk.salyk.kg:30040 [17:56:31]ConnectInit lk.salyk.kg [17:56:31]Connected sock=10 [17:56: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 1D E8 06 01 27 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 96 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E1 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 13 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 0D 01 00 00 F4 03 04 00 CF 38 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1E ED CB 2D 92 6C 2D 1B BA 85 62 55 28 DA [17:56: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 06 57 47 00 27 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 61 14 01 00 F4 03 04 00 6C E2 18 67 B6 04 01 00 00 5F E2 61 BA 9A E4 FE CF [17:56:31]CommunicateWithHost err = 0 [17:56:31]CheckOFDResponse [17:56:31]1017 (14) - 77093643461234 [17:56:31]1041 (16) - 0000000000963346 [17:56:31]1040 (4) - 70753 [17:56:31]1012 (4) - 23.10.2024 11:47 [17:56:31]1206 (1) - 0 [17:56:31]OFD Sender: Remove packet 70753 [17:56:31]ProducePacketName [17:56:31]name=ofd_packets/00070753 [17:56:31]NVStorageDeleteData [17:56:31]Write to MH i2c: 01 00 00 EE 2B 19 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 07 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: 01 07 00 EE 2B 00 00 00 00 00 1F 0D 4C [17:56:31]RasterBufferAndPrint [17:56:31]line [17:56:31]line [17:56:31]line [17:56:31]line [17:56:31]line [17:56:31]written 0, free lines is 3377 [17:56:31]MH_Cut [17:56:31]Write to MH i2c: D1 01 00 F5 2B 01 F2 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: D1 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: D1 01 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: D1 01 00 F5 2B 00 F1 [17:56:31]Write to MH i2c: 01 00 00 F6 2B 21 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:32]OFD Sender: No OFD packet to send [17:56:32]*** Cut start [17:56:32]*** Partial cut [17:56:32]*** CUTSNS_PIN = 1 [17:56:32]*** CUTSNS_PIN = 0 [17:56:32]*** Brake cut motor [17:56:33]Read from MH i2c: 01 [17:56:33]MH_I2C_Read... [17:56:33]*** Stop cut motor [17:56:33]*** Cut end [17:56:33]Read from MH i2c: 01 07 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 F6 2B 00 00 00 00 00 FF 0F 36 [17:56:33]process_action close_receipt done [17:56:33]requested_data is exist [17:56:33]produce_requested_data [17:56:33]requested_item fm.sn is exist - process it [17:56:33]wFMCommunicate request_size=4 [17:56:33]MH_SAM_APDU [17:56:33]CAPDU: 80 11 00 00 [17:56:33]Write to MH i2c: E2 08 00 F7 2B 80 11 00 00 00 00 00 00 9C [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:33]Read from MH i2c: E2 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 17 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 17 00 F7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [17:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:56:33]wFMCommunicate OK [17:56:33]requested_item fd.num is exist - process it [17:56:33]SAM_PROTO_GetFieldsCounters [17:56:33]wFMCommunicate request_size=4 [17:56:33]MH_SAM_APDU [17:56:33]CAPDU: 80 13 00 00 [17:56:33]Write to MH i2c: E2 08 00 F8 2B 80 13 00 00 00 00 00 00 9F [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:33]Read from MH i2c: E2 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 62 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 62 00 F8 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 61 14 01 00 0E 04 04 00 C4 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 1E [17:56: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 61 14 01 00 0E 04 04 00 C4 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 [17:56:33]wFMCommunicate OK [17:56:33]SAM_PROTO_GetFieldsCounters done [17:56:33]requested_item shift.num is exist - process it [17:56:33]requested_item shift.opened is exist - process it [17:56:33]req_shift_opened [17:56:33]FM_GetShiftState [17:56:33]SAM_PROTO_GetShiftState [17:56:33]wFMCommunicate request_size=4 [17:56:33]MH_SAM_APDU [17:56:33]CAPDU: 80 13 01 00 [17:56:33]Write to MH i2c: E2 08 00 F9 2B 80 13 01 00 00 00 00 00 A1 [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:33]Read from MH i2c: E2 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 0E 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: E2 0E 00 F9 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2E [17:56:33]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:56:33]wFMCommunicate OK [17:56:33]SAM_PROTO_GetShiftState done [17:56:33]FM_GetShiftState done [17:56:33]req_shift_opened done [17:56:33]requested_item shift.open_date is exist - process it [17:56:33]req_shift_open_date [17:56:33]req_shift_open_date done [17:56:33]produce_requested_data done [17:56:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70753,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:56:33]process_action_free close_receipt [17:56:33]json_value_free [17:56:33]json_value_free done [17:56:33]process_json_proto returns [17:56:33]Send response to host [17:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70753,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:56:33]free response buf [17:56:33]execute_script done [17:56:33]execute_script returns [17:56:33]free content buf [17:56:33]Sock 7.Close socket [17:56:33]Sock 7.Thread stoped [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:56]accept exits with 9 [17:58:56]New connection [17:58:56]New thread 3067034980 created [17:58:56]Thread 3066891620 joined [17:58:56]Waiting for new connection... [17:58:56] Sock 9.Parse request [17:58:56]Sock 9.Check first char [17:58:56]Sock 9.First char is OK [17:58:56]request: POST /json_proto HTTP/1.0 [17:58:56]Method: POST [17:58:56]URL: /json_proto [17:58:56]Method is POST - this is cgi request [17:58:56]url: /json_proto [17:58:56]query_string will be loaded in cgi processing [17:58:56]execute_cgi json_proto POST (null) [17:58:56]execute_cgi path=json_proto method=POST [17:58:56]POST find Content-Length [17:58:56]Host: 172.17.50.3:8080 [17:58:56]Content-Length: 682 [17:58:56]Content-Type: application/json [17:58:56] [17:58:56]POST finish read [17:58:56]Found Content-Length = 682 [17:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886538", "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" ] } } [17:58:56]execute_script... [17:58: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)2886538", "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" ] } } [17:58:56]POST & json_proto [17:58:56]process_json_proto [17:58:56]json parsed OK: [17:58:56]protocol is kg_v1.0 [17:58:56]action value=close_receipt [17:58:56]process_action close_receipt [17:58:56]cmd_close_receipt [17:58:56]MH_GetDate [17:58:56]Write to MH i2c: F0 00 00 FA 2B 14 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 09 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 09 00 FA 2B 00 62 39 19 67 6B 98 1E 66 BF [17:58:56]GetLastDocTimeStamp 1729706191 [17:58:56]current date 1729706338 [17:58:56]FM_GetShiftState [17:58:56]SAM_PROTO_GetShiftState [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 01 00 [17:58:56]Write to MH i2c: E2 08 00 FB 2B 80 13 01 00 00 00 00 00 A3 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 FB 2B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 30 [17:58:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_GetShiftState done [17:58:56]FM_GetShiftState done [17:58:56]opened in 1729642435 [17:58:56]opened+sec_in_day 1729728835 [17:58:56]quantity*price = 50025 [17:58:56]sum+1 = 50026 [17:58: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 СНО: Общий режим Чек 270 23.10.2024 17:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70754 ФПД: 37793340035347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70754&fm=37793340035347&tin=02508201610067®Number=0000000000156251&sum=50000 [17:58:57]StoreToDocumentArchive [17:58:57]shift 196 fd 70754 [17:58:57]save to /storage/0196/doc_00070754 [17:58:57]save last doc name /storage/0196/doc_00070754 to /storage/kkm_last_doc_name [17:58:57]save OK [17:58:57]Clear old archive folders... [17:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:58:57]tlvbuf is 001E52F0 [17:58:57]SAM_PROTO_ClearQueue [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 09 00 00 [17:58:57]Write to MH i2c: E2 08 00 08 2C 80 09 00 00 00 00 00 00 A6 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 08 2C 00 90 00 A8 [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_ClearQueue done [17:58:57]KKMCreateOFDPacket [17:58:57]OFDProtocolAddRootSTLVToBuf [17:58:57]FM_MakeSignedData [17:58:57]FM_MakeSignedData [17:58:57]SAM_PROTO_SignData [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 01 02 [17:58:57]Write to MH i2c: E2 08 00 09 2C 80 0D 01 02 00 00 00 00 AE [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 09 2C 00 90 00 A9 [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=255 [17:58:57]MH_SAM_APDU [17:58: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 0E 01 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 22 5F [17:58:57]Write to MH i2c: E2 02 01 0A 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 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 0E 01 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 22 5F 00 00 D7 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]OFD Sender: No OFD packet to send [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 0A 2C 00 90 00 AA [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=9 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 02 02 04 72 9B 91 13 [17:58:57]Write to MH i2c: E2 0C 00 0B 2C 80 0D 02 02 04 00 72 9B 91 13 00 00 6A [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 0B 2C 00 90 00 AB [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 03 02 [17:58:57]Write to MH i2c: E2 08 00 0C 2C 80 0D 03 02 00 00 00 00 B3 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 0C 2C 00 D8 7F F1 30 4A 7B 9F C5 90 00 55 [17:58:57]RAPDU: D8 7F F1 30 4A 7B 9F C5 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_SignData done [17:58:57]FM_MakeSignedData done [17:58:57]CreateOFDProtocolMessage [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 0D 2C 80 11 00 00 00 00 00 00 B3 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 0D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:58:57]wFMCommunicate OK [17:58:57]CreateOFDProtocolMessage done [17:58:57]OFDSenderStorePacket 70754 [17:58:57]StoreOFDPacket docnum=70754 [17:58: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 7C A7 06 01 CE 64 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 0E 01 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 22 5F 72 9B 91 13 D8 7F F1 30 4A 7B 9F C5 [17:58:57]CheckFolder [17:58:57]dirname=/storage/ofd_packets [17:58:57]CheckFolder done [17:58:57]ProducePacketName [17:58:57]name=ofd_packets/00070754 [17:58:57]NVStorageSaveData ofd_packets/00070754 [17:58:57]File name is /storage/ofd_packets/00070754 [17:58:57]Write 300 bytes [17:58:57]NVStorageSaveData done [17:58:57]OFDSenderStorePacket done [17:58:57]KKMCreateOFDPacket done [17:58:57]NVStorageSaveData kkm_last_timestamp [17:58:57]File name is /storage/kkm_last_timestamp [17:58:57]Write 4 bytes [17:58:57]NVStorageSaveData done [17:58:57]ExternCall_PrintAddStr [17:58:57]wPrintStart [17:58:57]Write to MH i2c: 01 00 00 0E 2C 3A [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 0E 2C 00 00 00 00 00 FF 0F 4F [17:58:57]RasterBufferAndPrint [17:58:57]line Счет N : (1)2886538 [17:58:57]line ИНН: 02508201610067 [17:58:57]line Контрольно-Кассовый Чек [17:58:57]line ПРОДАЖА [17:58:57]line ТРК (МРК, ГНК) : 71 [17:58:57]line Товар: 2711129700 [17:58:57]line ГАЗ-К-3 [17:58:57]line 12.860 * 38.90 [17:58:57]line = 500.25 [17:58:57]line НДС 12% НСП 1% [17:58:57]line > о реализуемом товаре [17:58:57]line ОКРУГЛЕНИЕ: -0.25 [17:58:57]line ИТОГО: 500.00 [17:58:57]line Внесено: 500.00 [17:58:57]line СДАЧА: 0.00 [17:58:57]line НСП 1% : 4.43 [17:58:57]line НДС 12% : 53.12 [17:58:57]line Наличными: 500.00 [17:58:57]line Безнал.: 0.00 [17:58:57]line Место: АЗС № 85 "Партнер Нефть" [17:58:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:58:57]line СНО: Общий режим [17:58:57]line Чек 270 23.10.2024 17:58 [17:58:57]line Смена: 196 ФФД: 1.0 [17:58:57]line ЗНМ: 0300000167 [17:58:57]line РНМ: 0000000000156251 [17:58:57]line Версия ККМ: v1.0 [17:58:57]line ФМ: 0000000000963346 [17:58:57]line ФД: 70754 [17:58:57]line ФПД: 37793340035347 [17:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70754&fm=37793340035347&tin=02508201610067®Number=0000000000156251&sum=50000 [17:58:58]OFD Sender: Processing packet 70754 [packets to send 18, broken 17] [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00070754 [17:58:58]OFD Sender: To server: pG, [17:58:58]CommunicateWithHost lk.salyk.kg:30040 [17:58:58]ConnectInit lk.salyk.kg [17:58:58]written 0, free lines is 4095 [17:58:58]Connected sock=10 [17:58: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 7C A7 06 01 CE 64 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 0E 01 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 22 5F 72 9B 91 13 D8 7F F1 30 4A 7B 9F C5 [17:58: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 2D F8 47 00 B3 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 62 14 01 00 F4 03 04 00 FF E2 18 67 B6 04 01 00 00 3E 79 7E 71 11 AB 96 B1 [17:58:58]CommunicateWithHost err = 0 [17:58:58]CheckOFDResponse [17:58:58]1017 (14) - 77093643461234 [17:58:58]1041 (16) - 0000000000963346 [17:58:58]1040 (4) - 70754 [17:58:58]1012 (4) - 23.10.2024 11:50 [17:58:58]1206 (1) - 0 [17:58:58]OFD Sender: Remove packet 70754 [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00070754 [17:58:58]NVStorageDeleteData [17:58:58]Write to MH i2c: 01 00 00 39 2C 65 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 39 2C 00 00 00 00 00 F1 0C 69 [17:58:58]RasterBufferAndPrint [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]written 0, free lines is 3319 [17:58:58]MH_Cut [17:58:58]Write to MH i2c: D1 01 00 40 2C 01 3E [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 01 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 01 00 40 2C 00 3D [17:58:58]Write to MH i2c: 01 00 00 41 2C 6D [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:59]OFD Sender: No OFD packet to send [17:58:59]*** Cut start [17:58:59]*** Partial cut [17:58:59]*** CUTSNS_PIN = 1 [17:58:59]*** CUTSNS_PIN = 0 [17:58:59]*** Brake cut motor [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]*** Stop cut motor [17:59:00]*** Cut end [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 41 2C 00 00 00 00 00 FF 0F 82 [17:59:00]process_action close_receipt done [17:59:00]requested_data is exist [17:59:00]produce_requested_data [17:59:00]requested_item fm.sn is exist - process it [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 11 00 00 [17:59:00]Write to MH i2c: E2 08 00 42 2C 80 11 00 00 00 00 00 00 E8 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 42 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [17:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:59:00]wFMCommunicate OK [17:59:00]requested_item fd.num is exist - process it [17:59:00]SAM_PROTO_GetFieldsCounters [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 00 00 [17:59:00]Write to MH i2c: E2 08 00 43 2C 80 13 00 00 00 00 00 00 EB [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 43 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 62 14 01 00 0E 04 04 00 C4 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 6E [17:59: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 62 14 01 00 0E 04 04 00 C4 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 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetFieldsCounters done [17:59:00]requested_item shift.num is exist - process it [17:59:00]requested_item shift.opened is exist - process it [17:59:00]req_shift_opened [17:59:00]FM_GetShiftState [17:59:00]SAM_PROTO_GetShiftState [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 01 00 [17:59:00]Write to MH i2c: E2 08 00 44 2C 80 13 01 00 00 00 00 00 ED [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 44 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7A [17:59:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetShiftState done [17:59:00]FM_GetShiftState done [17:59:00]req_shift_opened done [17:59:00]requested_item shift.open_date is exist - process it [17:59:00]req_shift_open_date [17:59:00]req_shift_open_date done [17:59:00]produce_requested_data done [17:59:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70754,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [17:59:00]process_action_free close_receipt [17:59:00]json_value_free [17:59:00]json_value_free done [17:59:00]process_json_proto returns [17:59:00]Send response to host [17:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70754,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [17:59:00]free response buf [17:59:00]execute_script done [17:59:00]execute_script returns [17:59:00]free content buf [17:59:00]Sock 9.Close socket [17:59:00]Sock 9.Thread stoped [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:52]accept exits with 7 [18:01:52]New connection [18:01:52]New thread 3066891620 created [18:01:52]Thread 3067034980 joined [18:01:52]Waiting for new connection... [18:01:52] Sock 7.Parse request [18:01:52]Sock 7.Check first char [18:01:52]Sock 7.First char is OK [18:01:52]request: POST /json_proto HTTP/1.0 [18:01:52]Method: POST [18:01:52]URL: /json_proto [18:01:52]Method is POST - this is cgi request [18:01:52]url: /json_proto [18:01:52]query_string will be loaded in cgi processing [18:01:52]execute_cgi json_proto POST (null) [18:01:52]execute_cgi path=json_proto method=POST [18:01:52]POST find Content-Length [18:01:52]Host: 172.17.50.3:8080 [18:01:52]Content-Length: 680 [18:01:52]Content-Type: application/json [18:01:52] [18:01:52]POST finish read [18:01:52]Found Content-Length = 680 [18:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886539", "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" ] } } [18:01:52]execute_script... [18:01: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)2886539", "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" ] } } [18:01:52]POST & json_proto [18:01:52]process_json_proto [18:01:52]json parsed OK: [18:01:52]protocol is kg_v1.0 [18:01:52]action value=close_receipt [18:01:52]process_action close_receipt [18:01:52]cmd_close_receipt [18:01:52]MH_GetDate [18:01:52]Write to MH i2c: F0 00 00 45 2C 60 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 45 2C 00 13 3A 19 67 6B 98 1E 66 BD [18:01:52]GetLastDocTimeStamp 1729706338 [18:01:52]current date 1729706515 [18:01:52]FM_GetShiftState [18:01:52]SAM_PROTO_GetShiftState [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 13 01 00 [18:01:52]Write to MH i2c: E2 08 00 46 2C 80 13 01 00 00 00 00 00 EF [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 46 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7C [18:01:52]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_GetShiftState done [18:01:52]FM_GetShiftState done [18:01:52]opened in 1729642435 [18:01:52]opened+sec_in_day 1729728835 [18:01:52]quantity*price = 100050 [18:01:52]sum+1 = 100052 [18:01:52]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 СНО: Общий режим Чек 271 23.10.2024 18:01 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70755 ФПД: 203455313145568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70755&fm=203455313145568&tin=02508201610067®Number=0000000000156251&sum=100000 [18:01:53]StoreToDocumentArchive [18:01:53]shift 196 fd 70755 [18:01:53]save to /storage/0196/doc_00070755 [18:01:53]save last doc name /storage/0196/doc_00070755 to /storage/kkm_last_doc_name [18:01:54]save OK [18:01:54]Clear old archive folders... [18:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:01:54]tlvbuf is 0015E2C0 [18:01:54]SAM_PROTO_ClearQueue [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 09 00 00 [18:01:54]Write to MH i2c: E2 08 00 53 2C 80 09 00 00 00 00 00 00 F1 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 53 2C 00 90 00 F3 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_ClearQueue done [18:01:54]KKMCreateOFDPacket [18:01:54]OFDProtocolAddRootSTLVToBuf [18:01:54]FM_MakeSignedData [18:01:54]FM_MakeSignedData [18:01:54]SAM_PROTO_SignData [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 01 02 [18:01:54]Write to MH i2c: E2 08 00 54 2C 80 0D 01 02 00 00 00 00 F9 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 54 2C 00 90 00 F4 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=255 [18:01:54]MH_SAM_APDU [18:01: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 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 0F 01 00 00 F4 03 04 00 13 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B9 0A A1 AA [18:01:54]Write to MH i2c: E2 02 01 55 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 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 0F 01 00 00 F4 03 04 00 13 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B9 0A A1 AA 00 00 9F [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]OFD Sender: No OFD packet to send [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 55 2C 00 90 00 F5 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=7 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 02 EE E0 [18:01:54]Write to MH i2c: E2 0A 00 56 2C 80 0D 02 02 02 00 EE E0 00 00 CE [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 56 2C 00 90 00 F6 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 03 02 [18:01:54]Write to MH i2c: E2 08 00 57 2C 80 0D 03 02 00 00 00 00 FE [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 57 2C 00 7C 30 E5 B5 6B 88 BB 51 90 00 44 [18:01:54]RAPDU: 7C 30 E5 B5 6B 88 BB 51 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_SignData done [18:01:54]FM_MakeSignedData done [18:01:54]CreateOFDProtocolMessage [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 58 2C 80 11 00 00 00 00 00 00 FE [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 58 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [18:01: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:01:54]wFMCommunicate OK [18:01:54]CreateOFDProtocolMessage done [18:01:54]OFDSenderStorePacket 70755 [18:01:54]StoreOFDPacket docnum=70755 [18:01: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 BC ED 04 01 01 E7 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 0F 01 00 00 F4 03 04 00 13 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B9 0A A1 AA EE E0 7C 30 E5 B5 6B 88 BB 51 [18:01:54]CheckFolder [18:01:54]dirname=/storage/ofd_packets [18:01:54]CheckFolder done [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00070755 [18:01:54]NVStorageSaveData ofd_packets/00070755 [18:01:54]File name is /storage/ofd_packets/00070755 [18:01:54]Write 298 bytes [18:01:54]NVStorageSaveData done [18:01:54]OFDSenderStorePacket done [18:01:54]KKMCreateOFDPacket done [18:01:54]NVStorageSaveData kkm_last_timestamp [18:01:54]File name is /storage/kkm_last_timestamp [18:01:54]Write 4 bytes [18:01:54]NVStorageSaveData done [18:01:54]ExternCall_PrintAddStr [18:01:54]wPrintStart [18:01:54]Write to MH i2c: 01 00 00 59 2C 85 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 59 2C 00 00 00 00 00 FF 0F 9A [18:01:54]RasterBufferAndPrint [18:01:54]line Счет N : (1)2886539 [18:01:54]line ИНН: 02508201610067 [18:01:54]line Контрольно-Кассовый Чек [18:01:54]line ПРОДАЖА [18:01:54]line ТРК (МРК, ГНК) : 61 [18:01:54]line Товар: 2710194210 [18:01:54]line ДТ-К-5 [18:01:54]line 13.130 * 76.20 [18:01:54]line = 1000.51 [18:01:54]line НДС 12% НСП 1% [18:01:54]line > о реализуемом товаре [18:01:54]line ОКРУГЛЕНИЕ: -0.51 [18:01:54]line ИТОГО: 1000.00 [18:01:54]line Внесено: 1000.00 [18:01:54]line СДАЧА: 0.00 [18:01:54]line НСП 1% : 8.85 [18:01:54]line НДС 12% : 106.25 [18:01:54]line Наличными: 1000.00 [18:01:54]line Безнал.: 0.00 [18:01:54]line Место: АЗС № 85 "Партнер Нефть" [18:01:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:01:54]line СНО: Общий режим [18:01:54]line Чек 271 23.10.2024 18:01 [18:01:54]line Смена: 196 ФФД: 1.0 [18:01:54]line ЗНМ: 0300000167 [18:01:54]line РНМ: 0000000000156251 [18:01:54]line Версия ККМ: v1.0 [18:01:54]line ФМ: 0000000000963346 [18:01:54]line ФД: 70755 [18:01:54]line ФПД: 203455313145568 [18:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70755&fm=203455313145568&tin=02508201610067®Number=0000000000156251&sum=100000 [18:01:54]OFD Sender: Processing packet 70755 [packets to send 18, broken 17] [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00070755 [18:01:54]OFD Sender: To server: pG, [18:01:54]CommunicateWithHost lk.salyk.kg:30040 [18:01:54]ConnectInit lk.salyk.kg [18:01:54]written 0, free lines is 4095 [18:01:54]Connected sock=10 [18:01: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 BC ED 04 01 01 E7 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 0F 01 00 00 F4 03 04 00 13 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B9 0A A1 AA EE E0 7C 30 E5 B5 6B 88 BB 51 [18:01: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 D4 6B 47 00 5D 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 63 14 01 00 F4 03 04 00 B0 E3 18 67 B6 04 01 00 00 C8 90 8C 1E 46 DD FC FE [18:01:55]CommunicateWithHost err = 0 [18:01:55]CheckOFDResponse [18:01:55]1017 (14) - 77093643461234 [18:01:55]1041 (16) - 0000000000963346 [18:01:55]1040 (4) - 70755 [18:01:55]1012 (4) - 23.10.2024 11:53 [18:01:55]1206 (1) - 0 [18:01:55]OFD Sender: Remove packet 70755 [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00070755 [18:01:55]NVStorageDeleteData [18:01:55]Write to MH i2c: 01 00 00 84 2C B0 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 84 2C 00 00 00 00 00 FD 0C C0 [18:01:55]RasterBufferAndPrint [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]written 0, free lines is 3331 [18:01:55]MH_Cut [18:01:55]Write to MH i2c: D1 01 00 8B 2C 01 89 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 8B 2C 00 88 [18:01:55]Write to MH i2c: 01 00 00 8C 2C B8 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]OFD Sender: No OFD packet to send [18:01:56]*** Cut start [18:01:56]*** Partial cut [18:01:56]*** CUTSNS_PIN = 1 [18:01:56]*** CUTSNS_PIN = 0 [18:01:56]*** Brake cut motor [18:01:56]Read from MH i2c: 01 [18:01:56]MH_I2C_Read... [18:01:56]*** Stop cut motor [18:01:56]*** Cut end [18:01:56]Read from MH i2c: 01 07 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: 01 07 00 8C 2C 00 00 00 00 00 FF 0F CD [18:01:56]process_action close_receipt done [18:01:56]requested_data is exist [18:01:56]produce_requested_data [18:01:56]requested_item fm.sn is exist - process it [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 11 00 00 [18:01:56]Write to MH i2c: E2 08 00 8D 2C 80 11 00 00 00 00 00 00 33 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 8D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [18:01: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:01:56]wFMCommunicate OK [18:01:56]requested_item fd.num is exist - process it [18:01:56]SAM_PROTO_GetFieldsCounters [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 00 00 [18:01:56]Write to MH i2c: E2 08 00 8E 2C 80 13 00 00 00 00 00 00 36 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 8E 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 63 14 01 00 0E 04 04 00 C4 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 BD [18:01: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 63 14 01 00 0E 04 04 00 C4 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 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetFieldsCounters done [18:01:56]requested_item shift.num is exist - process it [18:01:56]requested_item shift.opened is exist - process it [18:01:56]req_shift_opened [18:01:56]FM_GetShiftState [18:01:56]SAM_PROTO_GetShiftState [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 01 00 [18:01:56]Write to MH i2c: E2 08 00 8F 2C 80 13 01 00 00 00 00 00 38 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 8F 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C5 [18:01:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetShiftState done [18:01:56]FM_GetShiftState done [18:01:56]req_shift_opened done [18:01:56]requested_item shift.open_date is exist - process it [18:01:56]req_shift_open_date [18:01:56]req_shift_open_date done [18:01:56]produce_requested_data done [18:01:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70755,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:01:56]process_action_free close_receipt [18:01:56]json_value_free [18:01:56]json_value_free done [18:01:56]process_json_proto returns [18:01:56]Send response to host [18:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70755,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:01:56]free response buf [18:01:56]execute_script done [18:01:56]execute_script returns [18:01:56]free content buf [18:01:56]Sock 7.Close socket [18:01:56]Sock 7.Thread stoped [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:16]accept exits with 9 [18:03:16]New connection [18:03:16]New thread 3067034980 created [18:03:16]Thread 3066891620 joined [18:03:16]Waiting for new connection... [18:03:16] Sock 9.Parse request [18:03:16]Sock 9.Check first char [18:03:16]Sock 9.First char is OK [18:03:16]request: POST /json_proto HTTP/1.0 [18:03:16]Method: POST [18:03:16]URL: /json_proto [18:03:16]Method is POST - this is cgi request [18:03:16]url: /json_proto [18:03:16]query_string will be loaded in cgi processing [18:03:16]execute_cgi json_proto POST (null) [18:03:16]execute_cgi path=json_proto method=POST [18:03:16]POST find Content-Length [18:03:16]Host: 172.17.50.3:8080 [18:03:16]Content-Length: 683 [18:03:16]Content-Type: application/json [18:03:16] [18:03:16]POST finish read [18:03:16]Found Content-Length = 683 [18:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886540", "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" ] } } [18:03:16]execute_script... [18:03: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)2886540", "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" ] } } [18:03:16]POST & json_proto [18:03:16]process_json_proto [18:03:16]json parsed OK: [18:03:16]protocol is kg_v1.0 [18:03:16]action value=close_receipt [18:03:16]process_action close_receipt [18:03:16]cmd_close_receipt [18:03:16]MH_GetDate [18:03:16]Write to MH i2c: F0 00 00 90 2C AB [18:03:16]Write i2c OK [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 09 00 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: F0 09 00 90 2C 00 66 3A 19 67 6B 98 1E 66 5B [18:03:16]GetLastDocTimeStamp 1729706515 [18:03:16]current date 1729706598 [18:03:16]FM_GetShiftState [18:03:16]SAM_PROTO_GetShiftState [18:03:16]wFMCommunicate request_size=4 [18:03:16]MH_SAM_APDU [18:03:16]CAPDU: 80 13 01 00 [18:03:16]Write to MH i2c: E2 08 00 91 2C 80 13 01 00 00 00 00 00 3A [18:03:16]Write i2c OK [18:03:16]MH_I2C_Read... [18:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:16]Read from MH i2c: E2 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: E2 0E 00 [18:03:16]MH_I2C_Read... [18:03:16]Read from MH i2c: E2 0E 00 91 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C7 [18:03:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:03:16]wFMCommunicate OK [18:03:16]SAM_PROTO_GetShiftState done [18:03:16]FM_GetShiftState done [18:03:16]opened in 1729642435 [18:03:16]opened+sec_in_day 1729728835 [18:03:16]quantity*price = 100015 [18:03:16]sum+1 = 100017 [18:03:16]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 СНО: Общий режим Чек 272 23.10.2024 18:03 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70756 ФПД: 256136327597489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70756&fm=256136327597489&tin=02508201610067®Number=0000000000156251&sum=100000 [18:03:17]StoreToDocumentArchive [18:03:17]shift 196 fd 70756 [18:03:17]save to /storage/0196/doc_00070756 [18:03:17]save last doc name /storage/0196/doc_00070756 to /storage/kkm_last_doc_name [18:03:17]save OK [18:03:17]Clear old archive folders... [18:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:17]tlvbuf is 00192A30 [18:03:17]SAM_PROTO_ClearQueue [18:03:17]wFMCommunicate request_size=4 [18:03:17]MH_SAM_APDU [18:03:17]CAPDU: 80 09 00 00 [18:03:17]Write to MH i2c: E2 08 00 9E 2C 80 09 00 00 00 00 00 00 3C [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:17]Read from MH i2c: E2 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 9E 2C 00 90 00 3E [18:03:17]RAPDU: 90 00 [18:03:17]wFMCommunicate OK [18:03:17]SAM_PROTO_ClearQueue done [18:03:17]KKMCreateOFDPacket [18:03:17]OFDProtocolAddRootSTLVToBuf [18:03:17]FM_MakeSignedData [18:03:17]FM_MakeSignedData [18:03:17]SAM_PROTO_SignData [18:03:17]wFMCommunicate request_size=4 [18:03:17]MH_SAM_APDU [18:03:17]CAPDU: 80 0D 01 02 [18:03:17]Write to MH i2c: E2 08 00 9F 2C 80 0D 01 02 00 00 00 00 44 [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:17]Read from MH i2c: E2 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 9F 2C 00 90 00 3F [18:03:17]RAPDU: 90 00 [18:03:17]wFMCommunicate OK [18:03:17]wFMCommunicate request_size=255 [18:03:17]MH_SAM_APDU [18:03: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 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 10 01 00 00 F4 03 04 00 66 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E8 [18:03:17]Write to MH i2c: E2 02 01 A0 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 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 10 01 00 00 F4 03 04 00 66 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E8 00 00 1D [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:17]Read from MH i2c: E2 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 A0 2C 00 90 00 40 [18:03:17]RAPDU: 90 00 [18:03:17]wFMCommunicate OK [18:03:17]wFMCommunicate request_size=10 [18:03:17]MH_SAM_APDU [18:03:17]CAPDU: 80 0D 02 02 05 F4 62 D2 0D B1 [18:03:17]Write to MH i2c: E2 0D 00 A1 2C 80 0D 02 02 05 00 F4 62 D2 0D B1 00 00 37 [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:17]Read from MH i2c: E2 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [18:03:17]RAPDU: 90 00 [18:03:17]wFMCommunicate OK [18:03:17]wFMCommunicate request_size=4 [18:03:17]MH_SAM_APDU [18:03:17]CAPDU: 80 0D 03 02 [18:03:17]Write to MH i2c: E2 08 00 A2 2C 80 0D 03 02 00 00 00 00 49 [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 A2 2C 00 EF 4A 43 0E 5B CD 3F 49 90 00 84 [18:03:18]RAPDU: EF 4A 43 0E 5B CD 3F 49 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_SignData done [18:03:18]FM_MakeSignedData done [18:03:18]CreateOFDProtocolMessage [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 11 00 00 [18:03:18]Write to MH i2c: E2 08 00 A3 2C 80 11 00 00 00 00 00 00 49 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 A3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [18:03:18]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:18]wFMCommunicate OK [18:03:18]CreateOFDProtocolMessage done [18:03:18]OFDSenderStorePacket 70756 [18:03:18]StoreOFDPacket docnum=70756 [18:03: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 9C E5 07 01 34 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 01 00 00 F4 03 04 00 66 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E8 F4 62 D2 0D B1 EF 4A 43 0E 5B CD 3F 49 [18:03:18]CheckFolder [18:03:18]dirname=/storage/ofd_packets [18:03:18]CheckFolder done [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00070756 [18:03:18]NVStorageSaveData ofd_packets/00070756 [18:03:18]File name is /storage/ofd_packets/00070756 [18:03:18]Write 301 bytes [18:03:18]NVStorageSaveData done [18:03:18]OFDSenderStorePacket done [18:03:18]KKMCreateOFDPacket done [18:03:18]NVStorageSaveData kkm_last_timestamp [18:03:18]File name is /storage/kkm_last_timestamp [18:03:18]Write 4 bytes [18:03:18]NVStorageSaveData done [18:03:18]ExternCall_PrintAddStr [18:03:18]wPrintStart [18:03:18]Write to MH i2c: 01 00 00 A4 2C D0 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 A4 2C 00 00 00 00 00 FF 0F E5 [18:03:18]RasterBufferAndPrint [18:03:18]line Счет N : (1)2886540 [18:03:18]line ИНН: 02508201610067 [18:03:18]line Контрольно-Кассовый Чек [18:03:18]line ПРОДАЖА [18:03:18]line ТРК (МРК, ГНК) : 42 [18:03:18]line Товар: 2710124130 [18:03:18]line Аи-92-К-5 [18:03:18]line 14.950 * 66.90 [18:03:18]line = 1000.16 [18:03:18]line НДС 12% НСП 1% [18:03:18]line > о реализуемом товаре [18:03:18]line ОКРУГЛЕНИЕ: -0.16 [18:03:18]line ИТОГО: 1000.00 [18:03:18]line Внесено: 1000.00 [18:03:18]line СДАЧА: 0.00 [18:03:18]line НСП 1% : 8.85 [18:03:18]line НДС 12% : 106.21 [18:03:18]line Наличными: 1000.00 [18:03:18]line Безнал.: 0.00 [18:03:18]line Место: АЗС № 85 "Партнер Нефть" [18:03:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:03:18]line СНО: Общий режим [18:03:18]line Чек 272 23.10.2024 18:03 [18:03:18]line Смена: 196 ФФД: 1.0 [18:03:18]line ЗНМ: 0300000167 [18:03:18]line РНМ: 0000000000156251 [18:03:18]line Версия ККМ: v1.0 [18:03:18]line ФМ: 0000000000963346 [18:03:18]line ФД: 70756 [18:03:18]line ФПД: 256136327597489 [18:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70756&fm=256136327597489&tin=02508201610067®Number=0000000000156251&sum=100000 [18:03:18]OFD Sender: Processing packet 70756 [packets to send 18, broken 17] [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00070756 [18:03:18]OFD Sender: To server: pG, [18:03:18]CommunicateWithHost lk.salyk.kg:30040 [18:03:18]ConnectInit lk.salyk.kg [18:03:18]written 0, free lines is 4095 [18:03:18]Connected sock=10 [18:03: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 9C E5 07 01 34 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 01 00 00 F4 03 04 00 66 3A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E8 F4 62 D2 0D B1 EF 4A 43 0E 5B CD 3F 49 [18:03: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 4C BB 47 00 4F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 14 01 00 F4 03 04 00 03 E4 18 67 B6 04 01 00 00 73 56 72 5B BD F9 7A 51 [18:03:18]CommunicateWithHost err = 0 [18:03:18]CheckOFDResponse [18:03:18]1017 (14) - 77093643461234 [18:03:18]1041 (16) - 0000000000963346 [18:03:18]1040 (4) - 70756 [18:03:18]1012 (4) - 23.10.2024 11:54 [18:03:18]1206 (1) - 0 [18:03:18]OFD Sender: Remove packet 70756 [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00070756 [18:03:18]NVStorageDeleteData [18:03:18]Write to MH i2c: 01 00 00 CF 2C FB [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 CF 2C 00 00 00 00 00 02 0D 11 [18:03:18]RasterBufferAndPrint [18:03:18]line [18:03:18]line [18:03:18]line [18:03:18]line [18:03:18]line [18:03:18]written 0, free lines is 3336 [18:03:18]MH_Cut [18:03:18]Write to MH i2c: D1 01 00 D6 2C 01 D4 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: D1 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: D1 01 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: D1 01 00 D6 2C 00 D3 [18:03:18]Write to MH i2c: 01 00 00 D7 2C 03 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:19]OFD Sender: No OFD packet to send [18:03:19]*** Cut start [18:03:19]*** Partial cut [18:03:19]*** CUTSNS_PIN = 1 [18:03:19]*** CUTSNS_PIN = 0 [18:03:19]*** Brake cut motor [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]*** Stop cut motor [18:03:20]*** Cut end [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 D7 2C 00 00 00 00 00 FF 0F 18 [18:03:20]process_action close_receipt done [18:03:20]requested_data is exist [18:03:20]produce_requested_data [18:03:20]requested_item fm.sn is exist - process it [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 11 00 00 [18:03:20]Write to MH i2c: E2 08 00 D8 2C 80 11 00 00 00 00 00 00 7E [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 D8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [18:03: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:03:20]wFMCommunicate OK [18:03:20]requested_item fd.num is exist - process it [18:03:20]SAM_PROTO_GetFieldsCounters [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 13 00 00 [18:03:20]Write to MH i2c: E2 08 00 D9 2C 80 13 00 00 00 00 00 00 81 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 62 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 62 00 D9 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 64 14 01 00 0E 04 04 00 C4 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 0C [18:03: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 64 14 01 00 0E 04 04 00 C4 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 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_GetFieldsCounters done [18:03:20]requested_item shift.num is exist - process it [18:03:20]requested_item shift.opened is exist - process it [18:03:20]req_shift_opened [18:03:20]FM_GetShiftState [18:03:20]SAM_PROTO_GetShiftState [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 13 01 00 [18:03:20]Write to MH i2c: E2 08 00 DA 2C 80 13 01 00 00 00 00 00 83 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0E 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0E 00 DA 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 10 [18:03:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_GetShiftState done [18:03:20]FM_GetShiftState done [18:03:20]req_shift_opened done [18:03:20]requested_item shift.open_date is exist - process it [18:03:20]req_shift_open_date [18:03:20]req_shift_open_date done [18:03:20]produce_requested_data done [18:03:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70756,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:03:20]process_action_free close_receipt [18:03:20]json_value_free [18:03:20]json_value_free done [18:03:20]process_json_proto returns [18:03:20]Send response to host [18:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70756,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:03:20]free response buf [18:03:20]execute_script done [18:03:20]execute_script returns [18:03:20]free content buf [18:03:20]Sock 9.Close socket [18:03:20]Sock 9.Thread stoped [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:25]accept exits with 7 [18:13:25]New connection [18:13:25]New thread 3066891620 created [18:13:25]Thread 3067034980 joined [18:13:25]Waiting for new connection... [18:13:25] Sock 7.Parse request [18:13:25]Sock 7.Check first char [18:13:25]Sock 7.First char is OK [18:13:25]request: POST /json_proto HTTP/1.0 [18:13:25]Method: POST [18:13:25]URL: /json_proto [18:13:25]Method is POST - this is cgi request [18:13:25]url: /json_proto [18:13:25]query_string will be loaded in cgi processing [18:13:25]execute_cgi json_proto POST (null) [18:13:25]execute_cgi path=json_proto method=POST [18:13:25]POST find Content-Length [18:13:25]Host: 172.17.50.3:8080 [18:13:25]Content-Length: 689 [18:13:25]Content-Type: application/json [18:13:25] [18:13:25]POST finish read [18:13:25]Found Content-Length = 689 [18:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886541", "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" : 36.810, "sum" : 2841.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2841.00, "total" : 2841.00, "payments": [ { "type": 0, "sum" : 2841.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:25]execute_script... [18:13: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)2886541", "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" : 36.810, "sum" : 2841.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2841.00, "total" : 2841.00, "payments": [ { "type": 0, "sum" : 2841.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:25]POST & json_proto [18:13:25]process_json_proto [18:13:25]json parsed OK: [18:13:25]protocol is kg_v1.0 [18:13:25]action value=close_receipt [18:13:25]process_action close_receipt [18:13:25]cmd_close_receipt [18:13:25]MH_GetDate [18:13:25]Write to MH i2c: F0 00 00 DB 2C F6 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: F0 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: F0 09 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: F0 09 00 DB 2C 00 C7 3C 19 67 6B 98 1E 66 09 [18:13:25]GetLastDocTimeStamp 1729706598 [18:13:25]current date 1729707207 [18:13:25]FM_GetShiftState [18:13:25]SAM_PROTO_GetShiftState [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 13 01 00 [18:13:25]Write to MH i2c: E2 08 00 DC 2C 80 13 01 00 00 00 00 00 85 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 0E 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 0E 00 DC 2C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 12 [18:13:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:13:25]wFMCommunicate OK [18:13:25]SAM_PROTO_GetShiftState done [18:13:25]FM_GetShiftState done [18:13:25]opened in 1729642435 [18:13:25]opened+sec_in_day 1729728835 [18:13:25]quantity*price = 284173 [18:13:25]sum+1 = 284174 [18:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 2841.00 Внесено: 2841.00 СДАЧА: 0.00 НСП 1% : 25.15 НДС 12% : 301.78 Наличными: 2841.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 273 23.10.2024 18:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70757 ФПД: 147469022545190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70757&fm=147469022545190&tin=02508201610067®Number=0000000000156251&sum=284100 [18:13:26]StoreToDocumentArchive [18:13:26]shift 196 fd 70757 [18:13:26]save to /storage/0196/doc_00070757 [18:13:26]save last doc name /storage/0196/doc_00070757 to /storage/kkm_last_doc_name [18:13:26]save OK [18:13:26]Clear old archive folders... [18:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:13:26]tlvbuf is 00190CB0 [18:13:26]SAM_PROTO_ClearQueue [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 09 00 00 [18:13:26]Write to MH i2c: E2 08 00 E9 2C 80 09 00 00 00 00 00 00 87 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 E9 2C 00 90 00 89 [18:13:26]RAPDU: 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_ClearQueue done [18:13:26]KKMCreateOFDPacket [18:13:26]OFDProtocolAddRootSTLVToBuf [18:13:26]FM_MakeSignedData [18:13:26]FM_MakeSignedData [18:13:26]SAM_PROTO_SignData [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 0D 01 02 [18:13:26]Write to MH i2c: E2 08 00 EA 2C 80 0D 01 02 00 00 00 00 8F [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 EA 2C 00 90 00 8A [18:13:26]RAPDU: 90 00 [18:13:26]wFMCommunicate OK [18:13:26]wFMCommunicate request_size=255 [18:13:26]MH_SAM_APDU [18:13: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 CA 8F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0D 56 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 55 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 75 00 00 00 00 07 04 06 00 C4 55 04 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 C7 3C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [18:13:26]Write to MH i2c: E2 02 01 EB 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 CA 8F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0D 56 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 55 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 75 00 00 00 00 07 04 06 00 C4 55 04 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 C7 3C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 45 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [18:13:26]RAPDU: 90 00 [18:13:26]wFMCommunicate OK [18:13:26]wFMCommunicate request_size=16 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 86 1F 4E B4 45 26 [18:13:26]Write to MH i2c: E2 13 00 EC 2C 80 0D 02 02 0B 00 00 35 04 06 00 86 1F 4E B4 45 26 00 00 F9 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [18:13:26]RAPDU: 90 00 [18:13:26]wFMCommunicate OK [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 0D 03 02 [18:13:26]Write to MH i2c: E2 08 00 ED 2C 80 0D 03 02 00 00 00 00 94 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0B 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0B 00 ED 2C 00 5A 52 4C F9 28 7E 84 E3 90 00 93 [18:13:26]RAPDU: 5A 52 4C F9 28 7E 84 E3 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_SignData done [18:13:26]FM_MakeSignedData done [18:13:26]CreateOFDProtocolMessage [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 11 00 00 [18:13:26]Write to MH i2c: E2 08 00 EE 2C 80 11 00 00 00 00 00 00 94 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:27]Read from MH i2c: E2 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 17 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: E2 17 00 EE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [18:13: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:13:27]wFMCommunicate OK [18:13:27]CreateOFDProtocolMessage done [18:13:27]OFDSenderStorePacket 70757 [18:13:27]StoreOFDPacket docnum=70757 [18:13: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 15 01 00 00 25 EC 0D 01 F4 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 CA 8F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0D 56 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 55 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 75 00 00 00 00 07 04 06 00 C4 55 04 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 C7 3C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 86 1F 4E B4 45 26 5A 52 4C F9 28 7E 84 E3 [18:13:27]CheckFolder [18:13:27]dirname=/storage/ofd_packets [18:13:27]CheckFolder done [18:13:27]ProducePacketName [18:13:27]name=ofd_packets/00070757 [18:13:27]NVStorageSaveData ofd_packets/00070757 [18:13:27]File name is /storage/ofd_packets/00070757 [18:13:27]Write 307 bytes [18:13:27]NVStorageSaveData done [18:13:27]OFDSenderStorePacket done [18:13:27]KKMCreateOFDPacket done [18:13:27]NVStorageSaveData kkm_last_timestamp [18:13:27]File name is /storage/kkm_last_timestamp [18:13:27]Write 4 bytes [18:13:27]NVStorageSaveData done [18:13:27]ExternCall_PrintAddStr [18:13:27]wPrintStart [18:13:27]Write to MH i2c: 01 00 00 EF 2C 1B [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 07 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 07 00 EF 2C 00 00 00 00 00 FF 0F 30 [18:13:27]RasterBufferAndPrint [18:13:27]line Счет N : (1)2886541 [18:13:27]line ИНН: 02508201610067 [18:13:27]line Контрольно-Кассовый Чек [18:13:27]line ПРОДАЖА [18:13:27]line ТРК (МРК, ГНК) : 41 [18:13:27]line Товар: 2710194240 [18:13:27]line D-ENERGY Дт-К-2 [18:13:27]line 36.810 * 77.20 [18:13:27]line = 2841.73 [18:13:27]line НДС 12% НСП 1% [18:13:27]line > о реализуемом товаре [18:13:27]line ОКРУГЛЕНИЕ: -0.73 [18:13:27]line ИТОГО: 2841.00 [18:13:27]line Внесено: 2841.00 [18:13:27]line СДАЧА: 0.00 [18:13:27]line НСП 1% : 25.15 [18:13:27]line НДС 12% : 301.78 [18:13:27]line Наличными: 2841.00 [18:13:27]line Безнал.: 0.00 [18:13:27]line Место: АЗС № 85 "Партнер Нефть" [18:13:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:13:27]line СНО: Общий режим [18:13:27]line Чек 273 23.10.2024 18:13 [18:13:27]line Смена: 196 ФФД: 1.0 [18:13:27]line ЗНМ: 0300000167 [18:13:27]line РНМ: 0000000000156251 [18:13:27]line Версия ККМ: v1.0 [18:13:27]line ФМ: 0000000000963346 [18:13:27]line ФД: 70757 [18:13:27]line ФПД: 147469022545190 [18:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70757&fm=147469022545190&tin=02508201610067®Number=0000000000156251&sum=284100 [18:13:27]OFD Sender: Processing packet 70757 [packets to send 18, broken 17] [18:13:27]ProducePacketName [18:13:27]name=ofd_packets/00070757 [18:13:27]OFD Sender: To server: pG, [18:13:27]CommunicateWithHost lk.salyk.kg:30040 [18:13:27]ConnectInit lk.salyk.kg [18:13:27]written 0, free lines is 4095 [18:13:27]Connected sock=10 [18:13: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 15 01 00 00 25 EC 0D 01 F4 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 CA 8F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0D 56 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 55 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 75 00 00 00 00 07 04 06 00 C4 55 04 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 C7 3C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 86 1F 4E B4 45 26 5A 52 4C F9 28 7E 84 E3 [18:13: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 59 26 47 00 7D 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 65 14 01 00 F4 03 04 00 64 E6 18 67 B6 04 01 00 00 63 74 C9 EC CA 62 FA 1F [18:13:27]CommunicateWithHost err = 0 [18:13:27]CheckOFDResponse [18:13:27]1017 (14) - 77093643461234 [18:13:27]1041 (16) - 0000000000963346 [18:13:27]1040 (4) - 70757 [18:13:27]1012 (4) - 23.10.2024 12:04 [18:13:27]1206 (1) - 0 [18:13:27]OFD Sender: Remove packet 70757 [18:13:27]ProducePacketName [18:13:27]name=ofd_packets/00070757 [18:13:27]NVStorageDeleteData [18:13:27]Write to MH i2c: 01 00 00 1A 2D 47 [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 07 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 F4 0C 4E [18:13:27]RasterBufferAndPrint [18:13:27]line [18:13:27]line [18:13:27]line [18:13:27]line [18:13:27]line [18:13:27]written 0, free lines is 3322 [18:13:27]MH_Cut [18:13:27]Write to MH i2c: D1 01 00 21 2D 01 20 [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: D1 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: D1 01 00 [18:13:27]MH_I2C_Read... [18:13:27]Read from MH i2c: D1 01 00 21 2D 00 1F [18:13:27]Write to MH i2c: 01 00 00 22 2D 4F [18:13:27]Write i2c OK [18:13:27]MH_I2C_Read... [18:13:28]OFD Sender: No OFD packet to send [18:13:28]*** Cut start [18:13:28]*** Partial cut [18:13:28]*** CUTSNS_PIN = 1 [18:13:28]*** CUTSNS_PIN = 0 [18:13:28]*** Brake cut motor [18:13:29]Read from MH i2c: 01 [18:13:29]MH_I2C_Read... [18:13:29]*** Stop cut motor [18:13:29]*** Cut end [18:13:29]Read from MH i2c: 01 07 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: 01 07 00 22 2D 00 00 00 00 00 FF 0F 64 [18:13:29]process_action close_receipt done [18:13:29]requested_data is exist [18:13:29]produce_requested_data [18:13:29]requested_item fm.sn is exist - process it [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 11 00 00 [18:13:29]Write to MH i2c: E2 08 00 23 2D 80 11 00 00 00 00 00 00 CA [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 17 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 17 00 23 2D 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:13: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:13:29]wFMCommunicate OK [18:13:29]requested_item fd.num is exist - process it [18:13:29]SAM_PROTO_GetFieldsCounters [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 13 00 00 [18:13:29]Write to MH i2c: E2 08 00 24 2D 80 13 00 00 00 00 00 00 CD [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 62 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 62 00 24 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 65 14 01 00 0E 04 04 00 C4 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 5C [18:13: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 65 14 01 00 0E 04 04 00 C4 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 [18:13:29]wFMCommunicate OK [18:13:29]SAM_PROTO_GetFieldsCounters done [18:13:29]requested_item shift.num is exist - process it [18:13:29]requested_item shift.opened is exist - process it [18:13:29]req_shift_opened [18:13:29]FM_GetShiftState [18:13:29]SAM_PROTO_GetShiftState [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 13 01 00 [18:13:29]Write to MH i2c: E2 08 00 25 2D 80 13 01 00 00 00 00 00 CF [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 0E 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 0E 00 25 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5C [18:13:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:13:29]wFMCommunicate OK [18:13:29]SAM_PROTO_GetShiftState done [18:13:29]FM_GetShiftState done [18:13:29]req_shift_opened done [18:13:29]requested_item shift.open_date is exist - process it [18:13:29]req_shift_open_date [18:13:29]req_shift_open_date done [18:13:29]produce_requested_data done [18:13:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70757,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:13:29]process_action_free close_receipt [18:13:29]json_value_free [18:13:29]json_value_free done [18:13:29]process_json_proto returns [18:13:29]Send response to host [18:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70757,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:13:29]free response buf [18:13:29]execute_script done [18:13:29]execute_script returns [18:13:29]free content buf [18:13:29]Sock 7.Close socket [18:13:29]Sock 7.Thread stoped [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:39]accept exits with 9 [18:14:39]New connection [18:14:39]New thread 3067034980 created [18:14:39]Thread 3066891620 joined [18:14:39]Waiting for new connection... [18:14:39] Sock 9.Parse request [18:14:39]Sock 9.Check first char [18:14:39]Sock 9.First char is OK [18:14:39]request: POST /json_proto HTTP/1.0 [18:14:39]Method: POST [18:14:39]URL: /json_proto [18:14:39]Method is POST - this is cgi request [18:14:39]url: /json_proto [18:14:39]query_string will be loaded in cgi processing [18:14:39]execute_cgi json_proto POST (null) [18:14:39]execute_cgi path=json_proto method=POST [18:14:39]POST find Content-Length [18:14:39]Host: 172.17.50.3:8080 [18:14:39]Content-Length: 675 [18:14:39]Content-Type: application/json [18:14:39] [18:14:39]POST finish read [18:14:39]Found Content-Length = 675 [18:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886543", "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" : 9.190, "sum" : 700.28, "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:14:39]execute_script... [18:14: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)2886543", "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" : 9.190, "sum" : 700.28, "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:14:39]POST & json_proto [18:14:39]process_json_proto [18:14:39]json parsed OK: [18:14:39]protocol is kg_v1.0 [18:14:39]action value=close_receipt [18:14:39]process_action close_receipt [18:14:39]cmd_close_receipt [18:14:39]MH_GetDate [18:14:39]Write to MH i2c: F0 00 00 26 2D 42 [18:14:39]Write i2c OK [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: F0 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: F0 09 00 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: F0 09 00 26 2D 00 12 3D 19 67 6B 98 1E 66 A1 [18:14:39]GetLastDocTimeStamp 1729707207 [18:14:39]current date 1729707282 [18:14:39]FM_GetShiftState [18:14:39]SAM_PROTO_GetShiftState [18:14:39]wFMCommunicate request_size=4 [18:14:39]MH_SAM_APDU [18:14:39]CAPDU: 80 13 01 00 [18:14:39]Write to MH i2c: E2 08 00 27 2D 80 13 01 00 00 00 00 00 D1 [18:14:39]Write i2c OK [18:14:39]MH_I2C_Read... [18:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:39]Read from MH i2c: E2 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: E2 0E 00 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: E2 0E 00 27 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5E [18:14:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:14:39]wFMCommunicate OK [18:14:39]SAM_PROTO_GetShiftState done [18:14:39]FM_GetShiftState done [18:14:39]opened in 1729642435 [18:14:39]opened+sec_in_day 1729728835 [18:14:39]quantity*price = 70027 [18:14:39]sum+1 = 70029 [18:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 274 23.10.2024 18:14 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70758 ФПД: 190167733612313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181442&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70758&fm=190167733612313&tin=02508201610067®Number=0000000000156251&sum=70000 [18:14:40]StoreToDocumentArchive [18:14:40]shift 196 fd 70758 [18:14:40]save to /storage/0196/doc_00070758 [18:14:40]save last doc name /storage/0196/doc_00070758 to /storage/kkm_last_doc_name [18:14:40]save OK [18:14:40]Clear old archive folders... [18:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:14:40]tlvbuf is 001E4CD0 [18:14:40]SAM_PROTO_ClearQueue [18:14:40]wFMCommunicate request_size=4 [18:14:40]MH_SAM_APDU [18:14:40]CAPDU: 80 09 00 00 [18:14:40]Write to MH i2c: E2 08 00 34 2D 80 09 00 00 00 00 00 00 D3 [18:14:40]Write i2c OK [18:14:40]MH_I2C_Read... [18:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:40]Read from MH i2c: E2 [18:14:40]MH_I2C_Read... [18:14:40]Read from MH i2c: E2 03 00 [18:14:40]MH_I2C_Read... [18:14:40]Read from MH i2c: E2 03 00 34 2D 00 90 00 D5 [18:14:40]RAPDU: 90 00 [18:14:40]wFMCommunicate OK [18:14:40]SAM_PROTO_ClearQueue done [18:14:40]KKMCreateOFDPacket [18:14:40]OFDProtocolAddRootSTLVToBuf [18:14:40]FM_MakeSignedData [18:14:40]FM_MakeSignedData [18:14:40]SAM_PROTO_SignData [18:14:40]wFMCommunicate request_size=4 [18:14:40]MH_SAM_APDU [18:14:40]CAPDU: 80 0D 01 02 [18:14:40]Write to MH i2c: E2 08 00 35 2D 80 0D 01 02 00 00 00 00 DB [18:14:40]Write i2c OK [18:14:40]MH_I2C_Read... [18:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:40]Read from MH i2c: E2 [18:14:40]MH_I2C_Read... [18:14:40]Read from MH i2c: E2 03 00 [18:14:40]MH_I2C_Read... [18:14:40]Read from MH i2c: E2 03 00 35 2D 00 90 00 D6 [18:14:40]RAPDU: 90 00 [18:14:40]wFMCommunicate OK [18:14:40]wFMCommunicate request_size=255 [18:14:40]MH_SAM_APDU [18:14: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 12 01 00 00 F4 03 04 00 12 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AC F4 E0 35 [18:14:40]Write to MH i2c: E2 02 01 36 2D 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 12 01 00 00 F4 03 04 00 12 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AC F4 E0 35 00 00 2C [18:14:40]Write i2c OK [18:14:40]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 03 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 03 00 36 2D 00 90 00 D7 [18:14:41]RAPDU: 90 00 [18:14:41]wFMCommunicate OK [18:14:41]wFMCommunicate request_size=7 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 0D 02 02 02 AF 19 [18:14:41]Write to MH i2c: E2 0A 00 37 2D 80 0D 02 02 02 00 AF 19 00 00 AA [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 03 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [18:14:41]RAPDU: 90 00 [18:14:41]wFMCommunicate OK [18:14:41]wFMCommunicate request_size=4 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 0D 03 02 [18:14:41]Write to MH i2c: E2 08 00 38 2D 80 0D 03 02 00 00 00 00 E0 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 0B 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 0B 00 38 2D 00 2B CD DC B3 E6 C3 C6 65 90 00 3C [18:14:41]RAPDU: 2B CD DC B3 E6 C3 C6 65 90 00 [18:14:41]wFMCommunicate OK [18:14:41]SAM_PROTO_SignData done [18:14:41]FM_MakeSignedData done [18:14:41]CreateOFDProtocolMessage [18:14:41]wFMCommunicate request_size=4 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 11 00 00 [18:14:41]Write to MH i2c: E2 08 00 39 2D 80 11 00 00 00 00 00 00 E0 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 17 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 17 00 39 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [18:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:41]wFMCommunicate OK [18:14:41]CreateOFDProtocolMessage done [18:14:41]OFDSenderStorePacket 70758 [18:14:41]StoreOFDPacket docnum=70758 [18:14: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 5A 0E 04 01 60 1B 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 12 01 00 00 F4 03 04 00 12 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AC F4 E0 35 AF 19 2B CD DC B3 E6 C3 C6 65 [18:14:41]CheckFolder [18:14:41]dirname=/storage/ofd_packets [18:14:41]CheckFolder done [18:14:41]ProducePacketName [18:14:41]name=ofd_packets/00070758 [18:14:41]NVStorageSaveData ofd_packets/00070758 [18:14:41]File name is /storage/ofd_packets/00070758 [18:14:41]Write 298 bytes [18:14:41]NVStorageSaveData done [18:14:41]OFDSenderStorePacket done [18:14:41]KKMCreateOFDPacket done [18:14:41]NVStorageSaveData kkm_last_timestamp [18:14:41]File name is /storage/kkm_last_timestamp [18:14:41]Write 4 bytes [18:14:41]NVStorageSaveData done [18:14:41]ExternCall_PrintAddStr [18:14:41]wPrintStart [18:14:41]Write to MH i2c: 01 00 00 3A 2D 67 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: 01 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: 01 07 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 FF 0F 7C [18:14:41]RasterBufferAndPrint [18:14:41]line Счет N : (1)2886543 [18:14:41]line ИНН: 02508201610067 [18:14:41]line Контрольно-Кассовый Чек [18:14:41]line ПРОДАЖА [18:14:41]line ТРК (МРК, ГНК) : 51 [18:14:41]line Товар: 2710194210 [18:14:41]line ДТ-К-5 [18:14:41]line 9.190 * 76.20 [18:14:41]line = 700.28 [18:14:41]line НДС 12% НСП 1% [18:14:41]line > о реализуемом товаре [18:14:41]line ОКРУГЛЕНИЕ: -0.28 [18:14:41]line ИТОГО: 700.00 [18:14:41]line Внесено: 700.00 [18:14:41]line СДАЧА: 0.00 [18:14:41]line НСП 1% : 6.20 [18:14:41]line НДС 12% : 74.37 [18:14:41]line Наличными: 700.00 [18:14:41]line Безнал.: 0.00 [18:14:41]line Место: АЗС № 85 "Партнер Нефть" [18:14:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:14:41]line СНО: Общий режим [18:14:41]line Чек 274 23.10.2024 18:14 [18:14:41]line Смена: 196 ФФД: 1.0 [18:14:41]line ЗНМ: 0300000167 [18:14:41]line РНМ: 0000000000156251 [18:14:41]line Версия ККМ: v1.0 [18:14:41]line ФМ: 0000000000963346 [18:14:41]line ФД: 70758 [18:14:41]line ФПД: 190167733612313 [18:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181442&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70758&fm=190167733612313&tin=02508201610067®Number=0000000000156251&sum=70000 [18:14:41]OFD Sender: Processing packet 70758 [packets to send 18, broken 17] [18:14:41]ProducePacketName [18:14:41]name=ofd_packets/00070758 [18:14:41]OFD Sender: To server: pG, [18:14:41]CommunicateWithHost lk.salyk.kg:30040 [18:14:41]ConnectInit lk.salyk.kg [18:14:41]written 0, free lines is 4095 [18:14:41]Connected sock=7 [18:14: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 5A 0E 04 01 60 1B 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 12 01 00 00 F4 03 04 00 12 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AC F4 E0 35 AF 19 2B CD DC B3 E6 C3 C6 65 [18:14: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 7C 3C 47 00 A9 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 66 14 01 00 F4 03 04 00 AF E6 18 67 B6 04 01 00 00 26 72 63 DB E4 75 78 E4 [18:14:42]CommunicateWithHost err = 0 [18:14:42]CheckOFDResponse [18:14:42]1017 (14) - 77093643461234 [18:14:42]1041 (16) - 0000000000963346 [18:14:42]1040 (4) - 70758 [18:14:42]1012 (4) - 23.10.2024 12:06 [18:14:42]1206 (1) - 0 [18:14:42]OFD Sender: Remove packet 70758 [18:14:42]ProducePacketName [18:14:42]name=ofd_packets/00070758 [18:14:42]NVStorageDeleteData [18:14:42]Write to MH i2c: 01 00 00 65 2D 92 [18:14:42]Write i2c OK [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: 01 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: 01 07 00 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: 01 07 00 65 2D 00 00 00 00 00 ED 0C 92 [18:14:42]RasterBufferAndPrint [18:14:42]line [18:14:42]line [18:14:42]line [18:14:42]line [18:14:42]line [18:14:42]written 0, free lines is 3315 [18:14:42]MH_Cut [18:14:42]Write to MH i2c: D1 01 00 6C 2D 01 6B [18:14:42]Write i2c OK [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: D1 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: D1 01 00 [18:14:42]MH_I2C_Read... [18:14:42]Read from MH i2c: D1 01 00 6C 2D 00 6A [18:14:42]Write to MH i2c: 01 00 00 6D 2D 9A [18:14:42]Write i2c OK [18:14:42]MH_I2C_Read... [18:14:42]OFD Sender: No OFD packet to send [18:14:42]*** Cut start [18:14:42]*** Partial cut [18:14:42]*** CUTSNS_PIN = 1 [18:14:42]*** CUTSNS_PIN = 0 [18:14:43]*** Brake cut motor [18:14:43]Read from MH i2c: 01 [18:14:43]MH_I2C_Read... [18:14:43]*** Stop cut motor [18:14:43]*** Cut end [18:14:43]Read from MH i2c: 01 07 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: 01 07 00 6D 2D 00 00 00 00 00 FF 0F AF [18:14:43]process_action close_receipt done [18:14:43]requested_data is exist [18:14:43]produce_requested_data [18:14:43]requested_item fm.sn is exist - process it [18:14:43]wFMCommunicate request_size=4 [18:14:43]MH_SAM_APDU [18:14:43]CAPDU: 80 11 00 00 [18:14:43]Write to MH i2c: E2 08 00 6E 2D 80 11 00 00 00 00 00 00 15 [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:43]Read from MH i2c: E2 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 17 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 17 00 6E 2D 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:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:43]wFMCommunicate OK [18:14:43]requested_item fd.num is exist - process it [18:14:43]SAM_PROTO_GetFieldsCounters [18:14:43]wFMCommunicate request_size=4 [18:14:43]MH_SAM_APDU [18:14:43]CAPDU: 80 13 00 00 [18:14:43]Write to MH i2c: E2 08 00 6F 2D 80 13 00 00 00 00 00 00 18 [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:43]Read from MH i2c: E2 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 62 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 62 00 6F 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 66 14 01 00 0E 04 04 00 C4 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 AB [18:14: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 66 14 01 00 0E 04 04 00 C4 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 [18:14:43]wFMCommunicate OK [18:14:43]SAM_PROTO_GetFieldsCounters done [18:14:43]requested_item shift.num is exist - process it [18:14:43]requested_item shift.opened is exist - process it [18:14:43]req_shift_opened [18:14:43]FM_GetShiftState [18:14:43]SAM_PROTO_GetShiftState [18:14:43]wFMCommunicate request_size=4 [18:14:43]MH_SAM_APDU [18:14:43]CAPDU: 80 13 01 00 [18:14:43]Write to MH i2c: E2 08 00 70 2D 80 13 01 00 00 00 00 00 1A [18:14:43]Write i2c OK [18:14:43]MH_I2C_Read... [18:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:43]Read from MH i2c: E2 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 0E 00 [18:14:43]MH_I2C_Read... [18:14:43]Read from MH i2c: E2 0E 00 70 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A7 [18:14:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:14:43]wFMCommunicate OK [18:14:43]SAM_PROTO_GetShiftState done [18:14:43]FM_GetShiftState done [18:14:43]req_shift_opened done [18:14:43]requested_item shift.open_date is exist - process it [18:14:43]req_shift_open_date [18:14:43]req_shift_open_date done [18:14:43]produce_requested_data done [18:14:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70758,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:14:43]process_action_free close_receipt [18:14:43]json_value_free [18:14:43]json_value_free done [18:14:43]process_json_proto returns [18:14:43]Send response to host [18:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70758,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:14:43]free response buf [18:14:43]execute_script done [18:14:43]execute_script returns [18:14:43]free content buf [18:14:43]Sock 9.Close socket [18:14:43]Sock 9.Thread stoped [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:03]accept exits with 10 [18:15:03]New connection [18:15:03]New thread 3066891620 created [18:15:03]Thread 3067034980 joined [18:15:03]Waiting for new connection... [18:15:03] Sock 10.Parse request [18:15:03]Sock 10.Check first char [18:15:03]Sock 10.First char is OK [18:15:03]request: POST /json_proto HTTP/1.0 [18:15:03]Method: POST [18:15:03]URL: /json_proto [18:15:03]Method is POST - this is cgi request [18:15:03]url: /json_proto [18:15:03]query_string will be loaded in cgi processing [18:15:03]execute_cgi json_proto POST (null) [18:15:03]execute_cgi path=json_proto method=POST [18:15:03]POST find Content-Length [18:15:03]Host: 172.17.50.3:8080 [18:15:03]Content-Length: 689 [18:15:03]Content-Type: application/json [18:15:03] [18:15:03]POST finish read [18:15:03]Found Content-Length = 689 [18:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886542", "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.030, "sum" : 1469.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1469.00, "payments": [ { "type": 0, "sum" : 1469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:03]execute_script... [18: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)2886542", "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.030, "sum" : 1469.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1469.00, "payments": [ { "type": 0, "sum" : 1469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:03]POST & json_proto [18:15:03]process_json_proto [18:15:03]json parsed OK: [18:15:03]protocol is kg_v1.0 [18:15:03]action value=close_receipt [18:15:03]process_action close_receipt [18:15:03]cmd_close_receipt [18:15:03]MH_GetDate [18:15:03]Write to MH i2c: F0 00 00 71 2D 8D [18:15:03]Write i2c OK [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: F0 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: F0 09 00 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: F0 09 00 71 2D 00 2A 3D 19 67 6B 98 1E 66 04 [18:15:03]GetLastDocTimeStamp 1729707282 [18:15:03]current date 1729707306 [18:15:03]FM_GetShiftState [18:15:03]SAM_PROTO_GetShiftState [18:15:03]wFMCommunicate request_size=4 [18:15:03]MH_SAM_APDU [18:15:03]CAPDU: 80 13 01 00 [18:15:03]Write to MH i2c: E2 08 00 72 2D 80 13 01 00 00 00 00 00 1C [18:15:03]Write i2c OK [18:15:03]MH_I2C_Read... [18:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:03]Read from MH i2c: E2 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 0E 00 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 0E 00 72 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A9 [18:15:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:15:03]wFMCommunicate OK [18:15:03]SAM_PROTO_GetShiftState done [18:15:03]FM_GetShiftState done [18:15:03]opened in 1729642435 [18:15:03]opened+sec_in_day 1729728835 [18:15:03]quantity*price = 146911 [18:15:03]sum+1 = 146913 [18:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1469.00 Внесено: 3000.00 СДАЧА: 1531.00 НСП 1% : 13.00 НДС 12% : 156.01 Наличными: 1469.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 275 23.10.2024 18:15 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70759 ФПД: 122945978677110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70759&fm=122945978677110&tin=02508201610067®Number=0000000000156251&sum=146900 [18:15:04]StoreToDocumentArchive [18:15:04]shift 196 fd 70759 [18:15:04]save to /storage/0196/doc_00070759 [18:15:04]save last doc name /storage/0196/doc_00070759 to /storage/kkm_last_doc_name [18:15:04]save OK [18:15:04]Clear old archive folders... [18:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:15:04]tlvbuf is 0015E5D0 [18:15:04]SAM_PROTO_ClearQueue [18:15:04]wFMCommunicate request_size=4 [18:15:04]MH_SAM_APDU [18:15:04]CAPDU: 80 09 00 00 [18:15:04]Write to MH i2c: E2 08 00 7F 2D 80 09 00 00 00 00 00 00 1E [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [18:15:05]RAPDU: 90 00 [18:15:05]wFMCommunicate OK [18:15:05]SAM_PROTO_ClearQueue done [18:15:05]KKMCreateOFDPacket [18:15:05]OFDProtocolAddRootSTLVToBuf [18:15:05]FM_MakeSignedData [18:15:05]FM_MakeSignedData [18:15:05]SAM_PROTO_SignData [18:15:05]wFMCommunicate request_size=4 [18:15:05]MH_SAM_APDU [18:15:05]CAPDU: 80 0D 01 02 [18:15:05]Write to MH i2c: E2 08 00 80 2D 80 0D 01 02 00 00 00 00 26 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 80 2D 00 90 00 21 [18:15:05]RAPDU: 90 00 [18:15:05]wFMCommunicate OK [18:15:05]wFMCommunicate request_size=255 [18:15:05]MH_SAM_APDU [18:15: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 56 4A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E0 3D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 3C 00 00 00 00 07 04 06 00 D4 3D 02 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 2A 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [18:15:05]Write to MH i2c: E2 02 01 81 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 56 4A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E0 3D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 3C 00 00 00 00 07 04 06 00 D4 3D 02 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 2A 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 42 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 81 2D 00 90 00 22 [18:15:05]RAPDU: 90 00 [18:15:05]wFMCommunicate OK [18:15:05]wFMCommunicate request_size=16 [18:15:05]MH_SAM_APDU [18:15:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6F D1 97 62 B7 76 [18:15:05]Write to MH i2c: E2 13 00 82 2D 80 0D 02 02 0B 00 00 35 04 06 00 6F D1 97 62 B7 76 00 00 E4 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 03 00 82 2D 00 90 00 23 [18:15:05]RAPDU: 90 00 [18:15:05]wFMCommunicate OK [18:15:05]wFMCommunicate request_size=4 [18:15:05]MH_SAM_APDU [18:15:05]CAPDU: 80 0D 03 02 [18:15:05]Write to MH i2c: E2 08 00 83 2D 80 0D 03 02 00 00 00 00 2B [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0B 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0B 00 83 2D 00 99 1A AA 18 7D 74 5F 1E 90 00 0F [18:15:05]RAPDU: 99 1A AA 18 7D 74 5F 1E 90 00 [18:15:05]wFMCommunicate OK [18:15:05]SAM_PROTO_SignData done [18:15:05]FM_MakeSignedData done [18:15:05]CreateOFDProtocolMessage [18:15:05]wFMCommunicate request_size=4 [18:15:05]MH_SAM_APDU [18:15:05]CAPDU: 80 11 00 00 [18:15:05]Write to MH i2c: E2 08 00 84 2D 80 11 00 00 00 00 00 00 2B [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 17 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 17 00 84 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [18: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 [18:15:05]wFMCommunicate OK [18:15:05]CreateOFDProtocolMessage done [18:15:05]OFDSenderStorePacket 70759 [18:15:05]StoreOFDPacket docnum=70759 [18: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 15 01 00 00 1A FD 0D 01 4F 2B 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 56 4A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E0 3D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 3C 00 00 00 00 07 04 06 00 D4 3D 02 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 2A 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6F D1 97 62 B7 76 99 1A AA 18 7D 74 5F 1E [18:15:05]CheckFolder [18:15:05]dirname=/storage/ofd_packets [18:15:05]CheckFolder done [18:15:05]ProducePacketName [18:15:05]name=ofd_packets/00070759 [18:15:05]NVStorageSaveData ofd_packets/00070759 [18:15:05]File name is /storage/ofd_packets/00070759 [18:15:05]Write 307 bytes [18:15:05]NVStorageSaveData done [18:15:05]OFDSenderStorePacket done [18:15:05]KKMCreateOFDPacket done [18:15:05]NVStorageSaveData kkm_last_timestamp [18:15:05]File name is /storage/kkm_last_timestamp [18:15:05]Write 4 bytes [18:15:05]NVStorageSaveData done [18:15:05]ExternCall_PrintAddStr [18:15:05]wPrintStart [18:15:05]Write to MH i2c: 01 00 00 85 2D B2 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: 01 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: 01 07 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: 01 07 00 85 2D 00 00 00 00 00 FF 0F C7 [18:15:05]RasterBufferAndPrint [18:15:05]line Счет N : (1)2886542 [18:15:05]line ИНН: 02508201610067 [18:15:05]line Контрольно-Кассовый Чек [18:15:05]line ПРОДАЖА [18:15:05]line ТРК (МРК, ГНК) : 31 [18:15:05]line Товар: 2710194240 [18:15:05]line D-ENERGY Дт-К-2 [18:15:05]line 19.030 * 77.20 [18:15:05]line = 1469.12 [18:15:05]line НДС 12% НСП 1% [18:15:05]line > о реализуемом товаре [18:15:05]line ОКРУГЛЕНИЕ: -0.12 [18:15:05]line ИТОГО: 1469.00 [18:15:05]line Внесено: 3000.00 [18:15:05]line СДАЧА: 1531.00 [18:15:05]line НСП 1% : 13.00 [18:15:05]line НДС 12% : 156.01 [18:15:05]line Наличными: 1469.00 [18:15:05]line Безнал.: 0.00 [18:15:05]line Место: АЗС № 85 "Партнер Нефть" [18:15:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:15:05]line СНО: Общий режим [18:15:05]line Чек 275 23.10.2024 18:15 [18:15:05]line Смена: 196 ФФД: 1.0 [18:15:05]line ЗНМ: 0300000167 [18:15:05]line РНМ: 0000000000156251 [18:15:05]line Версия ККМ: v1.0 [18:15:05]line ФМ: 0000000000963346 [18:15:05]line ФД: 70759 [18:15:05]line ФПД: 122945978677110 [18:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70759&fm=122945978677110&tin=02508201610067®Number=0000000000156251&sum=146900 [18:15:05]OFD Sender: Processing packet 70759 [packets to send 18, broken 17] [18:15:05]ProducePacketName [18:15:05]name=ofd_packets/00070759 [18:15:05]OFD Sender: To server: pG, [18:15:05]CommunicateWithHost lk.salyk.kg:30040 [18:15:05]ConnectInit lk.salyk.kg [18:15:05]written 0, free lines is 4095 [18:15:05]Connected sock=9 [18: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 15 01 00 00 1A FD 0D 01 4F 2B 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 56 4A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E0 3D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 3C 00 00 00 00 07 04 06 00 D4 3D 02 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 2A 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6F D1 97 62 B7 76 99 1A AA 18 7D 74 5F 1E [18: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 0F 07 47 00 EE 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 67 14 01 00 F4 03 04 00 C7 E6 18 67 B6 04 01 00 00 E0 47 0F 46 FB 37 60 E4 [18:15:06]CommunicateWithHost err = 0 [18:15:06]CheckOFDResponse [18:15:06]1017 (14) - 77093643461234 [18:15:06]1041 (16) - 0000000000963346 [18:15:06]1040 (4) - 70759 [18:15:06]1012 (4) - 23.10.2024 12:06 [18:15:06]1206 (1) - 0 [18:15:06]OFD Sender: Remove packet 70759 [18:15:06]ProducePacketName [18:15:06]name=ofd_packets/00070759 [18:15:06]NVStorageDeleteData [18:15:06]Write to MH i2c: 01 00 00 B0 2D DD [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 07 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 07 00 B0 2D 00 00 00 00 00 0B 0D FC [18:15:06]RasterBufferAndPrint [18:15:06]line [18:15:06]line [18:15:06]line [18:15:06]line [18:15:06]line [18:15:06]written 0, free lines is 3345 [18:15:06]MH_Cut [18:15:06]Write to MH i2c: D1 01 00 B7 2D 01 B6 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: D1 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: D1 01 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: D1 01 00 B7 2D 00 B5 [18:15:06]Write to MH i2c: 01 00 00 B8 2D E5 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]OFD Sender: No OFD packet to send [18:15:07]*** Cut start [18:15:07]*** Partial cut [18:15:07]*** CUTSNS_PIN = 1 [18:15:07]*** CUTSNS_PIN = 0 [18:15:07]*** Brake cut motor [18:15:07]Read from MH i2c: 01 [18:15:07]MH_I2C_Read... [18:15:07]*** Stop cut motor [18:15:07]*** Cut end [18:15:07]Read from MH i2c: 01 07 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 B8 2D 00 00 00 00 00 FF 0F FA [18:15:07]process_action close_receipt done [18:15:07]requested_data is exist [18:15:07]produce_requested_data [18:15:07]requested_item fm.sn is exist - process it [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 11 00 00 [18:15:07]Write to MH i2c: E2 08 00 B9 2D 80 11 00 00 00 00 00 00 60 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 B9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [18: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 [18:15:07]wFMCommunicate OK [18:15:07]requested_item fd.num is exist - process it [18:15:07]SAM_PROTO_GetFieldsCounters [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 13 00 00 [18:15:07]Write to MH i2c: E2 08 00 BA 2D 80 13 00 00 00 00 00 00 63 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 62 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 62 00 BA 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 67 14 01 00 0E 04 04 00 C4 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 FA [18: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 67 14 01 00 0E 04 04 00 C4 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 [18:15:07]wFMCommunicate OK [18:15:07]SAM_PROTO_GetFieldsCounters done [18:15:07]requested_item shift.num is exist - process it [18:15:07]requested_item shift.opened is exist - process it [18:15:07]req_shift_opened [18:15:07]FM_GetShiftState [18:15:07]SAM_PROTO_GetShiftState [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 13 01 00 [18:15:07]Write to MH i2c: E2 08 00 BB 2D 80 13 01 00 00 00 00 00 65 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0E 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0E 00 BB 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F2 [18:15:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:15:07]wFMCommunicate OK [18:15:07]SAM_PROTO_GetShiftState done [18:15:07]FM_GetShiftState done [18:15:07]req_shift_opened done [18:15:07]requested_item shift.open_date is exist - process it [18:15:07]req_shift_open_date [18:15:07]req_shift_open_date done [18:15:07]produce_requested_data done [18:15:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70759,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:15:07]process_action_free close_receipt [18:15:07]json_value_free [18:15:07]json_value_free done [18:15:07]process_json_proto returns [18:15:07]Send response to host [18:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70759,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:15:07]free response buf [18:15:07]execute_script done [18:15:07]execute_script returns [18:15:07]free content buf [18:15:07]Sock 10.Close socket [18:15:07]Sock 10.Thread stoped [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:09]accept exits with 7 [18:16:09]New connection [18:16:09]New thread 3067034980 created [18:16:09]Thread 3066891620 joined [18:16:09]Waiting for new connection... [18:16:09] Sock 7.Parse request [18:16:09]Sock 7.Check first char [18:16:09]Sock 7.First char is OK [18:16:09]request: POST /json_proto HTTP/1.0 [18:16:09]Method: POST [18:16:09]URL: /json_proto [18:16:09]Method is POST - this is cgi request [18:16:09]url: /json_proto [18:16:09]query_string will be loaded in cgi processing [18:16:09]execute_cgi json_proto POST (null) [18:16:09]execute_cgi path=json_proto method=POST [18:16:09]POST find Content-Length [18:16:09]Host: 172.17.50.3:8080 [18:16:09]Content-Length: 682 [18:16:09]Content-Type: application/json [18:16:09] [18:16:09]POST finish read [18:16:09]Found Content-Length = 682 [18:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886544", "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" ] } } [18:16:09]execute_script... [18:16: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)2886544", "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" ] } } [18:16:09]POST & json_proto [18:16:09]process_json_proto [18:16:09]json parsed OK: [18:16:09]protocol is kg_v1.0 [18:16:09]action value=close_receipt [18:16:09]process_action close_receipt [18:16:09]cmd_close_receipt [18:16:09]MH_GetDate [18:16:09]Write to MH i2c: F0 00 00 BC 2D D8 [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: F0 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: F0 09 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: F0 09 00 BC 2D 00 6B 3D 19 67 6B 98 1E 66 90 [18:16:09]GetLastDocTimeStamp 1729707306 [18:16:09]current date 1729707371 [18:16:09]FM_GetShiftState [18:16:09]SAM_PROTO_GetShiftState [18:16:09]wFMCommunicate request_size=4 [18:16:09]MH_SAM_APDU [18:16:09]CAPDU: 80 13 01 00 [18:16:09]Write to MH i2c: E2 08 00 BD 2D 80 13 01 00 00 00 00 00 67 [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:09]Read from MH i2c: E2 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 0E 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 0E 00 BD 2D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F4 [18:16:09]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:16:09]wFMCommunicate OK [18:16:09]SAM_PROTO_GetShiftState done [18:16:09]FM_GetShiftState done [18:16:09]opened in 1729642435 [18:16:09]opened+sec_in_day 1729728835 [18:16:09]quantity*price = 70020 [18:16:09]sum+1 = 70021 [18:16:09]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 СНО: Общий режим Чек 276 23.10.2024 18:16 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70760 ФПД: 257942745661334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70760&fm=257942745661334&tin=02508201610067®Number=0000000000156251&sum=70000 [18:16:10]StoreToDocumentArchive [18:16:10]shift 196 fd 70760 [18:16:10]save to /storage/0196/doc_00070760 [18:16:10]save last doc name /storage/0196/doc_00070760 to /storage/kkm_last_doc_name [18:16:10]save OK [18:16:10]Clear old archive folders... [18:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:16:10]tlvbuf is 0019C9B0 [18:16:10]SAM_PROTO_ClearQueue [18:16:10]wFMCommunicate request_size=4 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 09 00 00 [18:16:10]Write to MH i2c: E2 08 00 CA 2D 80 09 00 00 00 00 00 00 69 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 CA 2D 00 90 00 6B [18:16:10]RAPDU: 90 00 [18:16:10]wFMCommunicate OK [18:16:10]SAM_PROTO_ClearQueue done [18:16:10]KKMCreateOFDPacket [18:16:10]OFDProtocolAddRootSTLVToBuf [18:16:10]FM_MakeSignedData [18:16:10]FM_MakeSignedData [18:16:10]SAM_PROTO_SignData [18:16:10]wFMCommunicate request_size=4 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 0D 01 02 [18:16:10]Write to MH i2c: E2 08 00 CB 2D 80 0D 01 02 00 00 00 00 71 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 CB 2D 00 90 00 6C [18:16:10]RAPDU: 90 00 [18:16:10]wFMCommunicate OK [18:16:10]wFMCommunicate request_size=255 [18:16:10]MH_SAM_APDU [18:16:10]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 14 01 00 00 F4 03 04 00 6B 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EA 98 [18:16:10]Write to MH i2c: E2 02 01 CC 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 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 14 01 00 00 F4 03 04 00 6B 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EA 98 00 00 2B [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 CC 2D 00 90 00 6D [18:16:10]RAPDU: 90 00 [18:16:10]wFMCommunicate OK [18:16:10]wFMCommunicate request_size=9 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 0D 02 02 04 F9 BA 3F 96 [18:16:10]Write to MH i2c: E2 0C 00 CD 2D 80 0D 02 02 04 00 F9 BA 3F 96 00 00 04 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 03 00 CD 2D 00 90 00 6E [18:16:10]RAPDU: 90 00 [18:16:10]wFMCommunicate OK [18:16:10]wFMCommunicate request_size=4 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 0D 03 02 [18:16:10]Write to MH i2c: E2 08 00 CE 2D 80 0D 03 02 00 00 00 00 76 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 0B 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 0B 00 CE 2D 00 D6 CB 40 EF 29 2E 00 99 90 00 37 [18:16:10]RAPDU: D6 CB 40 EF 29 2E 00 99 90 00 [18:16:10]wFMCommunicate OK [18:16:10]SAM_PROTO_SignData done [18:16:10]FM_MakeSignedData done [18:16:10]CreateOFDProtocolMessage [18:16:10]wFMCommunicate request_size=4 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 11 00 00 [18:16:10]Write to MH i2c: E2 08 00 CF 2D 80 11 00 00 00 00 00 00 76 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 17 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 17 00 CF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [18:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:16:10]wFMCommunicate OK [18:16:10]CreateOFDProtocolMessage done [18:16:10]OFDSenderStorePacket 70760 [18:16:10]StoreOFDPacket docnum=70760 [18:16: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 C5 F5 06 01 9A FE 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 14 01 00 00 F4 03 04 00 6B 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EA 98 F9 BA 3F 96 D6 CB 40 EF 29 2E 00 99 [18:16:10]CheckFolder [18:16:10]dirname=/storage/ofd_packets [18:16:10]CheckFolder done [18:16:10]ProducePacketName [18:16:10]name=ofd_packets/00070760 [18:16:10]NVStorageSaveData ofd_packets/00070760 [18:16:10]File name is /storage/ofd_packets/00070760 [18:16:10]Write 300 bytes [18:16:10]NVStorageSaveData done [18:16:10]OFDSenderStorePacket done [18:16:10]KKMCreateOFDPacket done [18:16:10]NVStorageSaveData kkm_last_timestamp [18:16:10]File name is /storage/kkm_last_timestamp [18:16:10]Write 4 bytes [18:16:10]NVStorageSaveData done [18:16:10]ExternCall_PrintAddStr [18:16:10]wPrintStart [18:16:10]Write to MH i2c: 01 00 00 D0 2D FD [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: 01 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: 01 07 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: 01 07 00 D0 2D 00 00 00 00 00 FF 0F 12 [18:16:10]RasterBufferAndPrint [18:16:10]line Счет N : (1)2886544 [18:16:10]line ИНН: 02508201610067 [18:16:10]line Контрольно-Кассовый Чек [18:16:10]line ПРОДАЖА [18:16:10]line ТРК (МРК, ГНК) : 71 [18:16:10]line Товар: 2711129700 [18:16:10]line ГАЗ-К-3 [18:16:10]line 18.000 * 38.90 [18:16:10]line = 700.20 [18:16:10]line НДС 12% НСП 1% [18:16:10]line > о реализуемом товаре [18:16:10]line ОКРУГЛЕНИЕ: -0.20 [18:16:10]line ИТОГО: 700.00 [18:16:10]line Внесено: 700.00 [18:16:10]line СДАЧА: 0.00 [18:16:10]line НСП 1% : 6.20 [18:16:10]line НДС 12% : 74.36 [18:16:10]line Наличными: 700.00 [18:16:10]line Безнал.: 0.00 [18:16:10]line Место: АЗС № 85 "Партнер Нефть" [18:16:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:16:10]line СНО: Общий режим [18:16:10]line Чек 276 23.10.2024 18:16 [18:16:10]line Смена: 196 ФФД: 1.0 [18:16:10]line ЗНМ: 0300000167 [18:16:10]line РНМ: 0000000000156251 [18:16:10]line Версия ККМ: v1.0 [18:16:10]line ФМ: 0000000000963346 [18:16:10]line ФД: 70760 [18:16:10]line ФПД: 257942745661334 [18:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70760&fm=257942745661334&tin=02508201610067®Number=0000000000156251&sum=70000 [18:16:11]OFD Sender: Processing packet 70760 [packets to send 18, broken 17] [18:16:11]ProducePacketName [18:16:11]name=ofd_packets/00070760 [18:16:11]OFD Sender: To server: pG, [18:16:11]CommunicateWithHost lk.salyk.kg:30040 [18:16:11]ConnectInit lk.salyk.kg [18:16:11]written 0, free lines is 4095 [18:16:11]Connected sock=10 [18:16: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 0E 01 00 00 C5 F5 06 01 9A FE 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 14 01 00 00 F4 03 04 00 6B 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 EA 98 F9 BA 3F 96 D6 CB 40 EF 29 2E 00 99 [18:16: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 5C 4F 47 00 08 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 68 14 01 00 F4 03 04 00 08 E7 18 67 B6 04 01 00 00 7E 63 9C A9 B7 35 88 C9 [18:16:11]CommunicateWithHost err = 0 [18:16:11]CheckOFDResponse [18:16:11]1017 (14) - 77093643461234 [18:16:11]1041 (16) - 0000000000963346 [18:16:11]1040 (4) - 70760 [18:16:11]1012 (4) - 23.10.2024 12:07 [18:16:11]1206 (1) - 0 [18:16:11]OFD Sender: Remove packet 70760 [18:16:11]ProducePacketName [18:16:11]name=ofd_packets/00070760 [18:16:11]NVStorageDeleteData [18:16:11]Write to MH i2c: 01 00 00 FB 2D 28 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: 01 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: 01 07 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: 01 07 00 FB 2D 00 00 00 00 00 ED 0C 28 [18:16:11]RasterBufferAndPrint [18:16:11]line [18:16:11]line [18:16:11]line [18:16:11]line [18:16:11]line [18:16:11]written 0, free lines is 3315 [18:16:11]MH_Cut [18:16:11]Write to MH i2c: D1 01 00 02 2E 01 02 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: D1 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: D1 01 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: D1 01 00 02 2E 00 01 [18:16:11]Write to MH i2c: 01 00 00 03 2E 31 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]OFD Sender: No OFD packet to send [18:16:12]*** Cut start [18:16:12]*** Partial cut [18:16:12]*** CUTSNS_PIN = 1 [18:16:12]*** CUTSNS_PIN = 0 [18:16:12]*** Brake cut motor [18:16:12]Read from MH i2c: 01 [18:16:12]MH_I2C_Read... [18:16:12]*** Stop cut motor [18:16:12]*** Cut end [18:16:12]Read from MH i2c: 01 07 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 07 00 03 2E 00 00 00 00 00 FF 0F 46 [18:16:12]process_action close_receipt done [18:16:12]requested_data is exist [18:16:12]produce_requested_data [18:16:12]requested_item fm.sn is exist - process it [18:16:12]wFMCommunicate request_size=4 [18:16:12]MH_SAM_APDU [18:16:12]CAPDU: 80 11 00 00 [18:16:12]Write to MH i2c: E2 08 00 04 2E 80 11 00 00 00 00 00 00 AC [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:12]Read from MH i2c: E2 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 17 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 17 00 04 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [18:16: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:16:13]wFMCommunicate OK [18:16:13]requested_item fd.num is exist - process it [18:16:13]SAM_PROTO_GetFieldsCounters [18:16:13]wFMCommunicate request_size=4 [18:16:13]MH_SAM_APDU [18:16:13]CAPDU: 80 13 00 00 [18:16:13]Write to MH i2c: E2 08 00 05 2E 80 13 00 00 00 00 00 00 AF [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:13]Read from MH i2c: E2 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 62 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 62 00 05 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 68 14 01 00 0E 04 04 00 C4 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 4A [18:16: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 68 14 01 00 0E 04 04 00 C4 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 [18:16:13]wFMCommunicate OK [18:16:13]SAM_PROTO_GetFieldsCounters done [18:16:13]requested_item shift.num is exist - process it [18:16:13]requested_item shift.opened is exist - process it [18:16:13]req_shift_opened [18:16:13]FM_GetShiftState [18:16:13]SAM_PROTO_GetShiftState [18:16:13]wFMCommunicate request_size=4 [18:16:13]MH_SAM_APDU [18:16:13]CAPDU: 80 13 01 00 [18:16:13]Write to MH i2c: E2 08 00 06 2E 80 13 01 00 00 00 00 00 B1 [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:13]Read from MH i2c: E2 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 06 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3E [18:16:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:16:13]wFMCommunicate OK [18:16:13]SAM_PROTO_GetShiftState done [18:16:13]FM_GetShiftState done [18:16:13]req_shift_opened done [18:16:13]requested_item shift.open_date is exist - process it [18:16:13]req_shift_open_date [18:16:13]req_shift_open_date done [18:16:13]produce_requested_data done [18:16:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70760,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:16:13]process_action_free close_receipt [18:16:13]json_value_free [18:16:13]json_value_free done [18:16:13]process_json_proto returns [18:16:13]Send response to host [18:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70760,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:16:13]free response buf [18:16:13]execute_script done [18:16:13]execute_script returns [18:16:13]free content buf [18:16:13]Sock 7.Close socket [18:16:13]Sock 7.Thread stoped [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]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:14]accept exits with 9 [18:18:14]New connection [18:18:14]New thread 3066891620 created [18:18:14]Thread 3067034980 joined [18:18:14]Waiting for new connection... [18:18:14] Sock 9.Parse request [18:18:14]Sock 9.Check first char [18:18:14]Sock 9.First char is OK [18:18:14]request: POST /json_proto HTTP/1.0 [18:18:14]Method: POST [18:18:14]URL: /json_proto [18:18:14]Method is POST - this is cgi request [18:18:14]url: /json_proto [18:18:14]query_string will be loaded in cgi processing [18:18:14]execute_cgi json_proto POST (null) [18:18:14]execute_cgi path=json_proto method=POST [18:18:14]POST find Content-Length [18:18:14]Host: 172.17.50.3:8080 [18:18:14]Content-Length: 678 [18:18:14]Content-Type: application/json [18:18:14] [18:18:14]POST finish read [18:18:14]Found Content-Length = 678 [18:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886545", "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" ] } } [18:18:14]execute_script... [18:18: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)2886545", "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" ] } } [18:18:14]POST & json_proto [18:18:14]process_json_proto [18:18:14]json parsed OK: [18:18:14]protocol is kg_v1.0 [18:18:14]action value=close_receipt [18:18:14]process_action close_receipt [18:18:14]cmd_close_receipt [18:18:14]MH_GetDate [18:18:14]Write to MH i2c: F0 00 00 07 2E 24 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: F0 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: F0 09 00 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: F0 09 00 07 2E 00 E9 3D 19 67 6B 98 1E 66 5A [18:18:14]GetLastDocTimeStamp 1729707371 [18:18:14]current date 1729707497 [18:18:14]FM_GetShiftState [18:18:14]SAM_PROTO_GetShiftState [18:18:14]wFMCommunicate request_size=4 [18:18:14]MH_SAM_APDU [18:18:14]CAPDU: 80 13 01 00 [18:18:14]Write to MH i2c: E2 08 00 08 2E 80 13 01 00 00 00 00 00 B3 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:14]Read from MH i2c: E2 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: E2 0E 00 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: E2 0E 00 08 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 40 [18:18:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:18:14]wFMCommunicate OK [18:18:14]SAM_PROTO_GetShiftState done [18:18:14]FM_GetShiftState done [18:18:14]opened in 1729642435 [18:18:14]opened+sec_in_day 1729728835 [18:18:14]quantity*price = 60009 [18:18:14]sum+1 = 60010 [18:18:14]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 СНО: Общий режим Чек 277 23.10.2024 18:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70761 ФПД: 29847260575260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70761&fm=29847260575260&tin=02508201610067®Number=0000000000156251&sum=60000 [18:18:15]StoreToDocumentArchive [18:18:15]shift 196 fd 70761 [18:18:15]save to /storage/0196/doc_00070761 [18:18:15]save last doc name /storage/0196/doc_00070761 to /storage/kkm_last_doc_name [18:18:15]save OK [18:18:15]Clear old archive folders... [18:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:15]tlvbuf is B6DBC8A0 [18:18:15]SAM_PROTO_ClearQueue [18:18:15]wFMCommunicate request_size=4 [18:18:15]MH_SAM_APDU [18:18:15]CAPDU: 80 09 00 00 [18:18:15]Write to MH i2c: E2 08 00 15 2E 80 09 00 00 00 00 00 00 B5 [18:18:15]Write i2c OK [18:18:15]MH_I2C_Read... [18:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:15]Read from MH i2c: E2 [18:18:15]MH_I2C_Read... [18:18:15]Read from MH i2c: E2 03 00 [18:18:15]MH_I2C_Read... [18:18:15]Read from MH i2c: E2 03 00 15 2E 00 90 00 B7 [18:18:15]RAPDU: 90 00 [18:18:15]wFMCommunicate OK [18:18:15]SAM_PROTO_ClearQueue done [18:18:15]KKMCreateOFDPacket [18:18:15]OFDProtocolAddRootSTLVToBuf [18:18:15]FM_MakeSignedData [18:18:15]FM_MakeSignedData [18:18:15]SAM_PROTO_SignData [18:18:15]wFMCommunicate request_size=4 [18:18:15]MH_SAM_APDU [18:18:15]CAPDU: 80 0D 01 02 [18:18:15]Write to MH i2c: E2 08 00 16 2E 80 0D 01 02 00 00 00 00 BD [18:18:15]Write i2c OK [18:18:15]MH_I2C_Read... [18:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:15]Read from MH i2c: E2 [18:18:15]MH_I2C_Read... [18:18:15]Read from MH i2c: E2 03 00 [18:18:15]MH_I2C_Read... [18:18:15]Read from MH i2c: E2 03 00 16 2E 00 90 00 B8 [18:18:15]RAPDU: 90 00 [18:18:15]wFMCommunicate OK [18:18:15]wFMCommunicate request_size=255 [18:18:15]MH_SAM_APDU [18:18: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 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 15 01 00 00 F4 03 04 00 E9 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1B [18:18:15]Write to MH i2c: E2 02 01 17 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 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 15 01 00 00 F4 03 04 00 E9 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1B 00 00 3C [18:18:15]Write i2c OK [18:18:15]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 03 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 03 00 17 2E 00 90 00 B9 [18:18:16]RAPDU: 90 00 [18:18:16]wFMCommunicate OK [18:18:16]wFMCommunicate request_size=10 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 0D 02 02 05 25 5B 5D 36 1C [18:18:16]Write to MH i2c: E2 0D 00 18 2E 80 0D 02 02 05 00 25 5B 5D 36 1C 00 00 F9 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 03 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 03 00 18 2E 00 90 00 BA [18:18:16]RAPDU: 90 00 [18:18:16]wFMCommunicate OK [18:18:16]wFMCommunicate request_size=4 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 0D 03 02 [18:18:16]Write to MH i2c: E2 08 00 19 2E 80 0D 03 02 00 00 00 00 C2 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0B 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0B 00 19 2E 00 8A 68 EB CC CD CC 89 D2 90 00 60 [18:18:16]RAPDU: 8A 68 EB CC CD CC 89 D2 90 00 [18:18:16]wFMCommunicate OK [18:18:16]SAM_PROTO_SignData done [18:18:16]FM_MakeSignedData done [18:18:16]CreateOFDProtocolMessage [18:18:16]wFMCommunicate request_size=4 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 11 00 00 [18:18:16]Write to MH i2c: E2 08 00 1A 2E 80 11 00 00 00 00 00 00 C2 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 17 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 17 00 1A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [18:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:18:16]wFMCommunicate OK [18:18:16]CreateOFDProtocolMessage done [18:18:16]OFDSenderStorePacket 70761 [18:18:16]StoreOFDPacket docnum=70761 [18:18: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 EC 50 07 01 AE A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 01 00 00 F4 03 04 00 E9 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1B 25 5B 5D 36 1C 8A 68 EB CC CD CC 89 D2 [18:18:16]CheckFolder [18:18:16]dirname=/storage/ofd_packets [18:18:16]CheckFolder done [18:18:16]ProducePacketName [18:18:16]name=ofd_packets/00070761 [18:18:16]NVStorageSaveData ofd_packets/00070761 [18:18:16]File name is /storage/ofd_packets/00070761 [18:18:16]Write 301 bytes [18:18:16]NVStorageSaveData done [18:18:16]OFDSenderStorePacket done [18:18:16]KKMCreateOFDPacket done [18:18:16]NVStorageSaveData kkm_last_timestamp [18:18:16]File name is /storage/kkm_last_timestamp [18:18:16]Write 4 bytes [18:18:16]NVStorageSaveData done [18:18:16]ExternCall_PrintAddStr [18:18:16]wPrintStart [18:18:16]Write to MH i2c: 01 00 00 1B 2E 49 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FF 0F 5E [18:18:16]RasterBufferAndPrint [18:18:16]line Счет N : (1)2886545 [18:18:16]line ИНН: 02508201610067 [18:18:16]line Контрольно-Кассовый Чек [18:18:16]line ПРОДАЖА [18:18:16]line ТРК (МРК, ГНК) : 22 [18:18:16]line Товар: 2710124130 [18:18:16]line Аи-92-К-5 [18:18:16]line 8.970 * 66.90 [18:18:16]line = 600.09 [18:18:16]line НДС 12% НСП 1% [18:18:16]line > о реализуемом товаре [18:18:16]line ОКРУГЛЕНИЕ: -0.09 [18:18:16]line ИТОГО: 600.00 [18:18:16]line Внесено: 600.00 [18:18:16]line СДАЧА: 0.00 [18:18:16]line НСП 1% : 5.31 [18:18:16]line НДС 12% : 63.73 [18:18:16]line Наличными: 600.00 [18:18:16]line Безнал.: 0.00 [18:18:16]line Место: АЗС № 85 "Партнер Нефть" [18:18:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:18:16]line СНО: Общий режим [18:18:16]line Чек 277 23.10.2024 18:18 [18:18:16]line Смена: 196 ФФД: 1.0 [18:18:16]line ЗНМ: 0300000167 [18:18:16]line РНМ: 0000000000156251 [18:18:16]line Версия ККМ: v1.0 [18:18:16]line ФМ: 0000000000963346 [18:18:16]line ФД: 70761 [18:18:16]line ФПД: 29847260575260 [18:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70761&fm=29847260575260&tin=02508201610067®Number=0000000000156251&sum=60000 [18:18:16]OFD Sender: Processing packet 70761 [packets to send 18, broken 17] [18:18:16]ProducePacketName [18:18:16]name=ofd_packets/00070761 [18:18:16]OFD Sender: To server: pG, [18:18:16]CommunicateWithHost lk.salyk.kg:30040 [18:18:16]ConnectInit lk.salyk.kg [18:18:16]written 0, free lines is 4095 [18:18:16]Connected sock=10 [18:18: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 EC 50 07 01 AE A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 01 00 00 F4 03 04 00 E9 3D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 1B 25 5B 5D 36 1C 8A 68 EB CC CD CC 89 D2 [18:18: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 BF 5F 47 00 5A 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 69 14 01 00 F4 03 04 00 86 E7 18 67 B6 04 01 00 00 C2 CB 72 19 71 75 E6 69 [18:18:17]CommunicateWithHost err = 0 [18:18:17]CheckOFDResponse [18:18:17]1017 (14) - 77093643461234 [18:18:17]1041 (16) - 0000000000963346 [18:18:17]1040 (4) - 70761 [18:18:17]1012 (4) - 23.10.2024 12:09 [18:18:17]1206 (1) - 0 [18:18:17]OFD Sender: Remove packet 70761 [18:18:17]ProducePacketName [18:18:17]name=ofd_packets/00070761 [18:18:17]NVStorageDeleteData [18:18:17]Write to MH i2c: 01 00 00 46 2E 74 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 07 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 07 00 46 2E 00 00 00 00 00 F5 0C 7C [18:18:17]RasterBufferAndPrint [18:18:17]line [18:18:17]line [18:18:17]line [18:18:17]line [18:18:17]line [18:18:17]written 0, free lines is 3323 [18:18:17]MH_Cut [18:18:17]Write to MH i2c: D1 01 00 4D 2E 01 4D [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: D1 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: D1 01 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: D1 01 00 4D 2E 00 4C [18:18:17]Write to MH i2c: 01 00 00 4E 2E 7C [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]OFD Sender: No OFD packet to send [18:18:17]*** Cut start [18:18:17]*** Partial cut [18:18:17]*** CUTSNS_PIN = 1 [18:18:17]*** CUTSNS_PIN = 0 [18:18:18]*** Brake cut motor [18:18:18]Read from MH i2c: 01 [18:18:18]MH_I2C_Read... [18:18:18]*** Stop cut motor [18:18:18]*** Cut end [18:18:18]Read from MH i2c: 01 07 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: 01 07 00 4E 2E 00 00 00 00 00 FF 0F 91 [18:18:18]process_action close_receipt done [18:18:18]requested_data is exist [18:18:18]produce_requested_data [18:18:18]requested_item fm.sn is exist - process it [18:18:18]wFMCommunicate request_size=4 [18:18:18]MH_SAM_APDU [18:18:18]CAPDU: 80 11 00 00 [18:18:18]Write to MH i2c: E2 08 00 4F 2E 80 11 00 00 00 00 00 00 F7 [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 17 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 17 00 4F 2E 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:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:18:18]wFMCommunicate OK [18:18:18]requested_item fd.num is exist - process it [18:18:18]SAM_PROTO_GetFieldsCounters [18:18:18]wFMCommunicate request_size=4 [18:18:18]MH_SAM_APDU [18:18:18]CAPDU: 80 13 00 00 [18:18:18]Write to MH i2c: E2 08 00 50 2E 80 13 00 00 00 00 00 00 FA [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 62 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 62 00 50 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 69 14 01 00 0E 04 04 00 C4 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 99 [18:18: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 69 14 01 00 0E 04 04 00 C4 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 [18:18:18]wFMCommunicate OK [18:18:18]SAM_PROTO_GetFieldsCounters done [18:18:18]requested_item shift.num is exist - process it [18:18:18]requested_item shift.opened is exist - process it [18:18:18]req_shift_opened [18:18:18]FM_GetShiftState [18:18:18]SAM_PROTO_GetShiftState [18:18:18]wFMCommunicate request_size=4 [18:18:18]MH_SAM_APDU [18:18:18]CAPDU: 80 13 01 00 [18:18:18]Write to MH i2c: E2 08 00 51 2E 80 13 01 00 00 00 00 00 FC [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 51 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 89 [18:18:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:18:18]wFMCommunicate OK [18:18:18]SAM_PROTO_GetShiftState done [18:18:18]FM_GetShiftState done [18:18:18]req_shift_opened done [18:18:18]requested_item shift.open_date is exist - process it [18:18:18]req_shift_open_date [18:18:18]req_shift_open_date done [18:18:18]produce_requested_data done [18:18:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70761,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:18:18]process_action_free close_receipt [18:18:18]json_value_free [18:18:18]json_value_free done [18:18:18]process_json_proto returns [18:18:18]Send response to host [18:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70761,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:18:18]free response buf [18:18:18]execute_script done [18:18:18]execute_script returns [18:18:18]free content buf [18:18:18]Sock 9.Close socket [18:18:18]Sock 9.Thread stoped [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:00]accept exits with 7 [18:19:00]New connection [18:19:00]New thread 3067034980 created [18:19:00]Thread 3066891620 joined [18:19:00]Waiting for new connection... [18:19:00] Sock 7.Parse request [18:19:00]Sock 7.Check first char [18:19:00]Sock 7.First char is OK [18:19:00]request: POST /json_proto HTTP/1.0 [18:19:00]Method: POST [18:19:00]URL: /json_proto [18:19:00]Method is POST - this is cgi request [18:19:00]url: /json_proto [18:19:00]query_string will be loaded in cgi processing [18:19:00]execute_cgi json_proto POST (null) [18:19:00]execute_cgi path=json_proto method=POST [18:19:00]POST find Content-Length [18:19:00]Host: 172.17.50.3:8080 [18:19:00]Content-Length: 678 [18:19:00]Content-Type: application/json [18:19:00] [18:19:00]POST finish read [18:19:00]Found Content-Length = 678 [18:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886546", "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" ] } } [18:19:00]execute_script... [18:19: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)2886546", "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" ] } } [18:19:00]POST & json_proto [18:19:00]process_json_proto [18:19:00]json parsed OK: [18:19:00]protocol is kg_v1.0 [18:19:00]action value=close_receipt [18:19:00]process_action close_receipt [18:19:00]cmd_close_receipt [18:19:00]MH_GetDate [18:19:00]Write to MH i2c: F0 00 00 52 2E 6F [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: F0 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: F0 09 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: F0 09 00 52 2E 00 17 3E 19 67 6B 98 1E 66 D4 [18:19:00]GetLastDocTimeStamp 1729707497 [18:19:00]current date 1729707543 [18:19:00]FM_GetShiftState [18:19:00]SAM_PROTO_GetShiftState [18:19:00]wFMCommunicate request_size=4 [18:19:00]MH_SAM_APDU [18:19:00]CAPDU: 80 13 01 00 [18:19:00]Write to MH i2c: E2 08 00 53 2E 80 13 01 00 00 00 00 00 FE [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:00]Read from MH i2c: E2 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 0E 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 0E 00 53 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8B [18:19:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:19:00]wFMCommunicate OK [18:19:00]SAM_PROTO_GetShiftState done [18:19:00]FM_GetShiftState done [18:19:00]opened in 1729642435 [18:19:00]opened+sec_in_day 1729728835 [18:19:00]quantity*price = 60027 [18:19:00]sum+1 = 60029 [18:19:00]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 СНО: Общий режим Чек 278 23.10.2024 18:19 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70762 ФПД: 70430405102104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181903&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70762&fm=70430405102104&tin=02508201610067®Number=0000000000156251&sum=60000 [18:19:01]StoreToDocumentArchive [18:19:01]shift 196 fd 70762 [18:19:01]save to /storage/0196/doc_00070762 [18:19:01]save last doc name /storage/0196/doc_00070762 to /storage/kkm_last_doc_name [18:19:01]save OK [18:19:01]Clear old archive folders... [18:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:01]tlvbuf is 00196AB0 [18:19:01]SAM_PROTO_ClearQueue [18:19:01]wFMCommunicate request_size=4 [18:19:01]MH_SAM_APDU [18:19:01]CAPDU: 80 09 00 00 [18:19:01]Write to MH i2c: E2 08 00 60 2E 80 09 00 00 00 00 00 00 00 [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:01]Read from MH i2c: E2 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 03 00 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 03 00 60 2E 00 90 00 02 [18:19:01]RAPDU: 90 00 [18:19:01]wFMCommunicate OK [18:19:01]SAM_PROTO_ClearQueue done [18:19:01]KKMCreateOFDPacket [18:19:01]OFDProtocolAddRootSTLVToBuf [18:19:01]FM_MakeSignedData [18:19:01]FM_MakeSignedData [18:19:01]SAM_PROTO_SignData [18:19:01]wFMCommunicate request_size=4 [18:19:01]MH_SAM_APDU [18:19:01]CAPDU: 80 0D 01 02 [18:19:01]Write to MH i2c: E2 08 00 61 2E 80 0D 01 02 00 00 00 00 08 [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:01]Read from MH i2c: E2 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 03 00 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 03 00 61 2E 00 90 00 03 [18:19:01]RAPDU: 90 00 [18:19:01]wFMCommunicate OK [18:19:01]wFMCommunicate request_size=255 [18:19:01]MH_SAM_APDU [18:19: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 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 16 01 00 00 F4 03 04 00 17 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 [18:19:01]Write to MH i2c: E2 02 01 62 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 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 16 01 00 00 F4 03 04 00 17 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 00 00 5E [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 03 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 03 00 62 2E 00 90 00 04 [18:19:02]RAPDU: 90 00 [18:19:02]wFMCommunicate OK [18:19:02]wFMCommunicate request_size=10 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 0D 02 02 05 0E 5B 47 0A 18 [18:19:02]Write to MH i2c: E2 0D 00 63 2E 80 0D 02 02 05 00 0E 5B 47 0A 18 00 00 E7 [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 03 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 03 00 63 2E 00 90 00 05 [18:19:02]RAPDU: 90 00 [18:19:02]wFMCommunicate OK [18:19:02]wFMCommunicate request_size=4 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 0D 03 02 [18:19:02]Write to MH i2c: E2 08 00 64 2E 80 0D 03 02 00 00 00 00 0D [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0B 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0B 00 64 2E 00 7C 4C 3A 7F 2E E7 35 A3 90 00 7C [18:19:02]RAPDU: 7C 4C 3A 7F 2E E7 35 A3 90 00 [18:19:02]wFMCommunicate OK [18:19:02]SAM_PROTO_SignData done [18:19:02]FM_MakeSignedData done [18:19:02]CreateOFDProtocolMessage [18:19:02]wFMCommunicate request_size=4 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 11 00 00 [18:19:02]Write to MH i2c: E2 08 00 65 2E 80 11 00 00 00 00 00 00 0D [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 17 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 17 00 65 2E 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:19:02]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:02]wFMCommunicate OK [18:19:02]CreateOFDProtocolMessage done [18:19:02]OFDSenderStorePacket 70762 [18:19:02]StoreOFDPacket docnum=70762 [18:19: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 1E A7 07 01 80 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 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 16 01 00 00 F4 03 04 00 17 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 0E 5B 47 0A 18 7C 4C 3A 7F 2E E7 35 A3 [18:19:02]CheckFolder [18:19:02]dirname=/storage/ofd_packets [18:19:02]CheckFolder done [18:19:02]ProducePacketName [18:19:02]name=ofd_packets/00070762 [18:19:02]NVStorageSaveData ofd_packets/00070762 [18:19:02]File name is /storage/ofd_packets/00070762 [18:19:02]Write 301 bytes [18:19:02]NVStorageSaveData done [18:19:02]OFDSenderStorePacket done [18:19:02]KKMCreateOFDPacket done [18:19:02]NVStorageSaveData kkm_last_timestamp [18:19:02]File name is /storage/kkm_last_timestamp [18:19:02]Write 4 bytes [18:19:02]NVStorageSaveData done [18:19:02]ExternCall_PrintAddStr [18:19:02]wPrintStart [18:19:02]Write to MH i2c: 01 00 00 66 2E 94 [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: 01 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: 01 07 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: 01 07 00 66 2E 00 00 00 00 00 FF 0F A9 [18:19:02]RasterBufferAndPrint [18:19:02]line Счет N : (1)2886546 [18:19:02]line ИНН: 02508201610067 [18:19:02]line Контрольно-Кассовый Чек [18:19:02]line ПРОДАЖА [18:19:02]line ТРК (МРК, ГНК) : 13 [18:19:02]line Товар: 2710124500 [18:19:02]line Аи-95-К-5 [18:19:02]line 8.090 * 74.20 [18:19:02]line = 600.28 [18:19:02]line НДС 12% НСП 1% [18:19:02]line > о реализуемом товаре [18:19:02]line ОКРУГЛЕНИЕ: -0.28 [18:19:02]line ИТОГО: 600.00 [18:19:02]line Внесено: 600.00 [18:19:02]line СДАЧА: 0.00 [18:19:02]line НСП 1% : 5.31 [18:19:02]line НДС 12% : 63.75 [18:19:02]line Наличными: 600.00 [18:19:02]line Безнал.: 0.00 [18:19:02]line Место: АЗС № 85 "Партнер Нефть" [18:19:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:19:02]line СНО: Общий режим [18:19:02]line Чек 278 23.10.2024 18:19 [18:19:02]line Смена: 196 ФФД: 1.0 [18:19:02]line ЗНМ: 0300000167 [18:19:02]line РНМ: 0000000000156251 [18:19:02]line Версия ККМ: v1.0 [18:19:02]line ФМ: 0000000000963346 [18:19:02]line ФД: 70762 [18:19:02]line ФПД: 70430405102104 [18:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181903&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70762&fm=70430405102104&tin=02508201610067®Number=0000000000156251&sum=60000 [18:19:02]OFD Sender: Processing packet 70762 [packets to send 18, broken 17] [18:19:02]ProducePacketName [18:19:02]name=ofd_packets/00070762 [18:19:02]OFD Sender: To server: pG, [18:19:02]CommunicateWithHost lk.salyk.kg:30040 [18:19:02]ConnectInit lk.salyk.kg [18:19:02]written 0, free lines is 4095 [18:19:02]Connected sock=10 [18:19: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 1E A7 07 01 80 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 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 16 01 00 00 F4 03 04 00 17 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 40 0E 5B 47 0A 18 7C 4C 3A 7F 2E E7 35 A3 [18:19: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 4E CD 47 00 BF 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 6A 14 01 00 F4 03 04 00 B4 E7 18 67 B6 04 01 00 00 E6 B3 10 1F 53 AA B9 8F [18:19:03]CommunicateWithHost err = 0 [18:19:03]CheckOFDResponse [18:19:03]1017 (14) - 77093643461234 [18:19:03]1041 (16) - 0000000000963346 [18:19:03]1040 (4) - 70762 [18:19:03]1012 (4) - 23.10.2024 12:10 [18:19:03]1206 (1) - 0 [18:19:03]OFD Sender: Remove packet 70762 [18:19:03]ProducePacketName [18:19:03]name=ofd_packets/00070762 [18:19:03]NVStorageDeleteData [18:19:03]Write to MH i2c: 01 00 00 91 2E BF [18:19:03]Write i2c OK [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: 01 [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: 01 07 00 [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: 01 07 00 91 2E 00 00 00 00 00 00 0D D3 [18:19:03]RasterBufferAndPrint [18:19:03]line [18:19:03]line [18:19:03]line [18:19:03]line [18:19:03]line [18:19:03]written 0, free lines is 3334 [18:19:03]MH_Cut [18:19:03]Write to MH i2c: D1 01 00 98 2E 01 98 [18:19:03]Write i2c OK [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: D1 [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: D1 01 00 [18:19:03]MH_I2C_Read... [18:19:03]Read from MH i2c: D1 01 00 98 2E 00 97 [18:19:03]Write to MH i2c: 01 00 00 99 2E C7 [18:19:03]Write i2c OK [18:19:03]MH_I2C_Read... [18:19:03]OFD Sender: No OFD packet to send [18:19:03]*** Cut start [18:19:03]*** Partial cut [18:19:03]*** CUTSNS_PIN = 1 [18:19:03]*** CUTSNS_PIN = 0 [18:19:04]*** Brake cut motor [18:19:04]Read from MH i2c: 01 [18:19:04]MH_I2C_Read... [18:19:04]*** Stop cut motor [18:19:04]*** Cut end [18:19:04]Read from MH i2c: 01 07 00 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: 01 07 00 99 2E 00 00 00 00 00 FF 0F DC [18:19:04]process_action close_receipt done [18:19:04]requested_data is exist [18:19:04]produce_requested_data [18:19:04]requested_item fm.sn is exist - process it [18:19:04]wFMCommunicate request_size=4 [18:19:04]MH_SAM_APDU [18:19:04]CAPDU: 80 11 00 00 [18:19:04]Write to MH i2c: E2 08 00 9A 2E 80 11 00 00 00 00 00 00 42 [18:19:04]Write i2c OK [18:19:04]MH_I2C_Read... [18:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:04]Read from MH i2c: E2 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 17 00 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 17 00 9A 2E 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:19:04]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:04]wFMCommunicate OK [18:19:04]requested_item fd.num is exist - process it [18:19:04]SAM_PROTO_GetFieldsCounters [18:19:04]wFMCommunicate request_size=4 [18:19:04]MH_SAM_APDU [18:19:04]CAPDU: 80 13 00 00 [18:19:04]Write to MH i2c: E2 08 00 9B 2E 80 13 00 00 00 00 00 00 45 [18:19:04]Write i2c OK [18:19:04]MH_I2C_Read... [18:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:04]Read from MH i2c: E2 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 62 00 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 62 00 9B 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 6A 14 01 00 0E 04 04 00 C4 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 E8 [18:19: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 6A 14 01 00 0E 04 04 00 C4 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 [18:19:04]wFMCommunicate OK [18:19:04]SAM_PROTO_GetFieldsCounters done [18:19:04]requested_item shift.num is exist - process it [18:19:04]requested_item shift.opened is exist - process it [18:19:04]req_shift_opened [18:19:04]FM_GetShiftState [18:19:04]SAM_PROTO_GetShiftState [18:19:04]wFMCommunicate request_size=4 [18:19:04]MH_SAM_APDU [18:19:04]CAPDU: 80 13 01 00 [18:19:04]Write to MH i2c: E2 08 00 9C 2E 80 13 01 00 00 00 00 00 47 [18:19:04]Write i2c OK [18:19:04]MH_I2C_Read... [18:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:04]Read from MH i2c: E2 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 0E 00 [18:19:04]MH_I2C_Read... [18:19:04]Read from MH i2c: E2 0E 00 9C 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D4 [18:19:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:19:04]wFMCommunicate OK [18:19:04]SAM_PROTO_GetShiftState done [18:19:04]FM_GetShiftState done [18:19:04]req_shift_opened done [18:19:04]requested_item shift.open_date is exist - process it [18:19:04]req_shift_open_date [18:19:04]req_shift_open_date done [18:19:04]produce_requested_data done [18:19:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70762,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:19:04]process_action_free close_receipt [18:19:04]json_value_free [18:19:04]json_value_free done [18:19:04]process_json_proto returns [18:19:04]Send response to host [18:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70762,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:19:04]free response buf [18:19:04]execute_script done [18:19:04]execute_script returns [18:19:04]free content buf [18:19:04]Sock 7.Close socket [18:19:04]Sock 7.Thread stoped [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:32]accept exits with 9 [18:20:32]New connection [18:20:32]New thread 3066891620 created [18:20:32]Thread 3067034980 joined [18:20:32]Waiting for new connection... [18:20:32] Sock 9.Parse request [18:20:32]Sock 9.Check first char [18:20:32]Sock 9.First char is OK [18:20:32]request: POST /json_proto HTTP/1.0 [18:20:32]Method: POST [18:20:32]URL: /json_proto [18:20:32]Method is POST - this is cgi request [18:20:32]url: /json_proto [18:20:32]query_string will be loaded in cgi processing [18:20:32]execute_cgi json_proto POST (null) [18:20:32]execute_cgi path=json_proto method=POST [18:20:32]POST find Content-Length [18:20:32]Host: 172.17.50.3:8080 [18:20:32]Content-Length: 678 [18:20:32]Content-Type: application/json [18:20:32] [18:20:32]POST finish read [18:20:32]Found Content-Length = 678 [18:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886547", "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" ] } } [18:20:32]execute_script... [18:20: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)2886547", "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" ] } } [18:20:32]POST & json_proto [18:20:32]process_json_proto [18:20:32]json parsed OK: [18:20:32]protocol is kg_v1.0 [18:20:32]action value=close_receipt [18:20:32]process_action close_receipt [18:20:32]cmd_close_receipt [18:20:32]MH_GetDate [18:20:32]Write to MH i2c: F0 00 00 9D 2E BA [18:20:32]Write i2c OK [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: F0 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: F0 09 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: F0 09 00 9D 2E 00 73 3E 19 67 6B 98 1E 66 7B [18:20:32]GetLastDocTimeStamp 1729707543 [18:20:32]current date 1729707635 [18:20:32]FM_GetShiftState [18:20:32]SAM_PROTO_GetShiftState [18:20:32]wFMCommunicate request_size=4 [18:20:32]MH_SAM_APDU [18:20:32]CAPDU: 80 13 01 00 [18:20:32]Write to MH i2c: E2 08 00 9E 2E 80 13 01 00 00 00 00 00 49 [18:20:32]Write i2c OK [18:20:32]MH_I2C_Read... [18:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:32]Read from MH i2c: E2 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 0E 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 0E 00 9E 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D6 [18:20:32]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:20:32]wFMCommunicate OK [18:20:32]SAM_PROTO_GetShiftState done [18:20:32]FM_GetShiftState done [18:20:32]opened in 1729642435 [18:20:32]opened+sec_in_day 1729728835 [18:20:32]quantity*price = 50041 [18:20:32]sum+1 = 50042 [18:20:32]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 СНО: Общий режим Чек 279 23.10.2024 18:20 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70763 ФПД: 211727196055525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182035&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70763&fm=211727196055525&tin=02508201610067®Number=0000000000156251&sum=50000 [18:20:33]StoreToDocumentArchive [18:20:33]shift 196 fd 70763 [18:20:33]save to /storage/0196/doc_00070763 [18:20:33]save last doc name /storage/0196/doc_00070763 to /storage/kkm_last_doc_name [18:20:33]save OK [18:20:33]Clear old archive folders... [18:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:33]tlvbuf is 00179920 [18:20:33]SAM_PROTO_ClearQueue [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 09 00 00 [18:20:33]Write to MH i2c: E2 08 00 AB 2E 80 09 00 00 00 00 00 00 4B [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:33]Read from MH i2c: E2 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 03 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 03 00 AB 2E 00 90 00 4D [18:20:33]RAPDU: 90 00 [18:20:33]wFMCommunicate OK [18:20:33]SAM_PROTO_ClearQueue done [18:20:33]KKMCreateOFDPacket [18:20:33]OFDProtocolAddRootSTLVToBuf [18:20:33]FM_MakeSignedData [18:20:33]FM_MakeSignedData [18:20:33]SAM_PROTO_SignData [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 0D 01 02 [18:20:33]Write to MH i2c: E2 08 00 AC 2E 80 0D 01 02 00 00 00 00 53 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:33]Read from MH i2c: E2 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 03 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 03 00 AC 2E 00 90 00 4E [18:20:33]RAPDU: 90 00 [18:20:33]wFMCommunicate OK [18:20:33]wFMCommunicate request_size=255 [18:20:33]MH_SAM_APDU [18:20: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 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 17 01 00 00 F4 03 04 00 73 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C0 [18:20:33]Write to MH i2c: E2 02 01 AD 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 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 17 01 00 00 F4 03 04 00 73 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C0 00 00 29 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 AD 2E 00 90 00 4F [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]wFMCommunicate request_size=10 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 0D 02 02 05 90 94 4F 67 E5 [18:20:34]Write to MH i2c: E2 0D 00 AE 2E 80 0D 02 02 05 00 90 94 4F 67 E5 00 00 1F [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 0D 03 02 [18:20:34]Write to MH i2c: E2 08 00 AF 2E 80 0D 03 02 00 00 00 00 58 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0B 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0B 00 AF 2E 00 97 6C 34 AA F7 8F 4B 27 90 00 32 [18:20:34]RAPDU: 97 6C 34 AA F7 8F 4B 27 90 00 [18:20:34]wFMCommunicate OK [18:20:34]SAM_PROTO_SignData done [18:20:34]FM_MakeSignedData done [18:20:34]CreateOFDProtocolMessage [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 11 00 00 [18:20:34]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 17 00 [18:20:34]MH_I2C_Read... [18:20:34]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 [18:20: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:20:34]wFMCommunicate OK [18:20:34]CreateOFDProtocolMessage done [18:20:34]OFDSenderStorePacket 70763 [18:20:34]StoreOFDPacket docnum=70763 [18:20: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 69 E9 07 01 F7 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 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 17 01 00 00 F4 03 04 00 73 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C0 90 94 4F 67 E5 97 6C 34 AA F7 8F 4B 27 [18:20:34]CheckFolder [18:20:34]dirname=/storage/ofd_packets [18:20:34]CheckFolder done [18:20:34]ProducePacketName [18:20:34]name=ofd_packets/00070763 [18:20:34]NVStorageSaveData ofd_packets/00070763 [18:20:34]File name is /storage/ofd_packets/00070763 [18:20:34]Write 301 bytes [18:20:34]NVStorageSaveData done [18:20:34]OFDSenderStorePacket done [18:20:34]KKMCreateOFDPacket done [18:20:34]NVStorageSaveData kkm_last_timestamp [18:20:34]File name is /storage/kkm_last_timestamp [18:20:34]Write 4 bytes [18:20:34]NVStorageSaveData done [18:20:34]ExternCall_PrintAddStr [18:20:34]wPrintStart [18:20:34]Write to MH i2c: 01 00 00 B1 2E DF [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 07 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 07 00 B1 2E 00 00 00 00 00 FF 0F F4 [18:20:34]RasterBufferAndPrint [18:20:34]line Счет N : (1)2886547 [18:20:34]line ИНН: 02508201610067 [18:20:34]line Контрольно-Кассовый Чек [18:20:34]line ПРОДАЖА [18:20:34]line ТРК (МРК, ГНК) : 42 [18:20:34]line Товар: 2710124130 [18:20:34]line Аи-92-К-5 [18:20:34]line 7.480 * 66.90 [18:20:34]line = 500.41 [18:20:34]line НДС 12% НСП 1% [18:20:34]line > о реализуемом товаре [18:20:34]line ОКРУГЛЕНИЕ: -0.41 [18:20:34]line ИТОГО: 500.00 [18:20:34]line Внесено: 500.00 [18:20:34]line СДАЧА: 0.00 [18:20:34]line НСП 1% : 4.43 [18:20:34]line НДС 12% : 53.14 [18:20:34]line Наличными: 500.00 [18:20:34]line Безнал.: 0.00 [18:20:34]line Место: АЗС № 85 "Партнер Нефть" [18:20:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:20:34]line СНО: Общий режим [18:20:34]line Чек 279 23.10.2024 18:20 [18:20:34]line Смена: 196 ФФД: 1.0 [18:20:34]line ЗНМ: 0300000167 [18:20:34]line РНМ: 0000000000156251 [18:20:34]line Версия ККМ: v1.0 [18:20:34]line ФМ: 0000000000963346 [18:20:34]line ФД: 70763 [18:20:34]line ФПД: 211727196055525 [18:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182035&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70763&fm=211727196055525&tin=02508201610067®Number=0000000000156251&sum=50000 [18:20:34]OFD Sender: Processing packet 70763 [packets to send 18, broken 17] [18:20:34]ProducePacketName [18:20:34]name=ofd_packets/00070763 [18:20:34]OFD Sender: To server: pG, [18:20:34]CommunicateWithHost lk.salyk.kg:30040 [18:20:34]ConnectInit lk.salyk.kg [18:20:34]written 0, free lines is 4095 [18:20:34]Connected sock=10 [18:20: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 69 E9 07 01 F7 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 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 17 01 00 00 F4 03 04 00 73 3E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C0 90 94 4F 67 E5 97 6C 34 AA F7 8F 4B 27 [18:20: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 1A C6 47 00 50 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 6B 14 01 00 F4 03 04 00 10 E8 18 67 B6 04 01 00 00 C1 15 D9 12 35 C0 8D 24 [18:20:35]CommunicateWithHost err = 0 [18:20:35]CheckOFDResponse [18:20:35]1017 (14) - 77093643461234 [18:20:35]1041 (16) - 0000000000963346 [18:20:35]1040 (4) - 70763 [18:20:35]1012 (4) - 23.10.2024 12:12 [18:20:35]1206 (1) - 0 [18:20:35]OFD Sender: Remove packet 70763 [18:20:35]ProducePacketName [18:20:35]name=ofd_packets/00070763 [18:20:35]NVStorageDeleteData [18:20:35]Write to MH i2c: 01 00 00 DC 2E 0A [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 07 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 07 00 DC 2E 00 00 00 00 00 F3 0C 10 [18:20:35]RasterBufferAndPrint [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]written 0, free lines is 3321 [18:20:35]MH_Cut [18:20:35]Write to MH i2c: D1 01 00 E3 2E 01 E3 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 01 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 01 00 E3 2E 00 E2 [18:20:35]Write to MH i2c: 01 00 00 E4 2E 12 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]OFD Sender: No OFD packet to send [18:20:35]*** Cut start [18:20:35]*** Partial cut [18:20:35]*** CUTSNS_PIN = 1 [18:20:35]*** CUTSNS_PIN = 0 [18:20:36]*** Brake cut motor [18:20:36]Read from MH i2c: 01 [18:20:36]MH_I2C_Read... [18:20:36]*** Stop cut motor [18:20:36]*** Cut end [18:20:36]Read from MH i2c: 01 07 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: 01 07 00 E4 2E 00 00 00 00 00 FF 0F 27 [18:20:36]process_action close_receipt done [18:20:36]requested_data is exist [18:20:36]produce_requested_data [18:20:36]requested_item fm.sn is exist - process it [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 11 00 00 [18:20:36]Write to MH i2c: E2 08 00 E5 2E 80 11 00 00 00 00 00 00 8D [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 17 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 17 00 E5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [18:20: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:20:36]wFMCommunicate OK [18:20:36]requested_item fd.num is exist - process it [18:20:36]SAM_PROTO_GetFieldsCounters [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 13 00 00 [18:20:36]Write to MH i2c: E2 08 00 E6 2E 80 13 00 00 00 00 00 00 90 [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 62 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 62 00 E6 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 6B 14 01 00 0E 04 04 00 C4 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 37 [18:20: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 6B 14 01 00 0E 04 04 00 C4 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 [18:20:36]wFMCommunicate OK [18:20:36]SAM_PROTO_GetFieldsCounters done [18:20:36]requested_item shift.num is exist - process it [18:20:36]requested_item shift.opened is exist - process it [18:20:36]req_shift_opened [18:20:36]FM_GetShiftState [18:20:36]SAM_PROTO_GetShiftState [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 13 01 00 [18:20:36]Write to MH i2c: E2 08 00 E7 2E 80 13 01 00 00 00 00 00 92 [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 0E 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 0E 00 E7 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1F [18:20:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:20:36]wFMCommunicate OK [18:20:36]SAM_PROTO_GetShiftState done [18:20:36]FM_GetShiftState done [18:20:36]req_shift_opened done [18:20:36]requested_item shift.open_date is exist - process it [18:20:36]req_shift_open_date [18:20:36]req_shift_open_date done [18:20:36]produce_requested_data done [18:20:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70763,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:20:36]process_action_free close_receipt [18:20:36]json_value_free [18:20:36]json_value_free done [18:20:36]process_json_proto returns [18:20:36]Send response to host [18:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70763,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:20:36]free response buf [18:20:36]execute_script done [18:20:36]execute_script returns [18:20:36]free content buf [18:20:36]Sock 9.Close socket [18:20:36]Sock 9.Thread stoped [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:21]accept exits with 7 [18:23:21]New connection [18:23:21]New thread 3067034980 created [18:23:21]Thread 3066891620 joined [18:23:21]Waiting for new connection... [18:23:21] Sock 7.Parse request [18:23:21]Sock 7.Check first char [18:23:21]Sock 7.First char is OK [18:23:21]request: POST /json_proto HTTP/1.0 [18:23:21]Method: POST [18:23:21]URL: /json_proto [18:23:21]Method is POST - this is cgi request [18:23:21]url: /json_proto [18:23:21]query_string will be loaded in cgi processing [18:23:21]execute_cgi json_proto POST (null) [18:23:21]execute_cgi path=json_proto method=POST [18:23:21]POST find Content-Length [18:23:21]Host: 172.17.50.3:8080 [18:23:21]Content-Length: 683 [18:23:21]Content-Type: application/json [18:23:21] [18:23:21]POST finish read [18:23:21]Found Content-Length = 683 [18:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886548", "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" : 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" ] } } [18:23:21]execute_script... [18:23: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)2886548", "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" : 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" ] } } [18:23:21]POST & json_proto [18:23:21]process_json_proto [18:23:21]json parsed OK: [18:23:21]protocol is kg_v1.0 [18:23:21]action value=close_receipt [18:23:21]process_action close_receipt [18:23:21]cmd_close_receipt [18:23:21]MH_GetDate [18:23:21]Write to MH i2c: F0 00 00 E8 2E 05 [18:23:21]Write i2c OK [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 09 00 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 09 00 E8 2E 00 1B 3F 19 67 6B 98 1E 66 6F [18:23:21]GetLastDocTimeStamp 1729707635 [18:23:21]current date 1729707803 [18:23:21]FM_GetShiftState [18:23:21]SAM_PROTO_GetShiftState [18:23:21]wFMCommunicate request_size=4 [18:23:21]MH_SAM_APDU [18:23:21]CAPDU: 80 13 01 00 [18:23:21]Write to MH i2c: E2 08 00 E9 2E 80 13 01 00 00 00 00 00 94 [18:23:21]Write i2c OK [18:23:21]MH_I2C_Read... [18:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:21]Read from MH i2c: E2 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 E9 2E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 21 [18:23:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:23:21]wFMCommunicate OK [18:23:21]SAM_PROTO_GetShiftState done [18:23:21]FM_GetShiftState done [18:23:21]opened in 1729642435 [18:23:21]opened+sec_in_day 1729728835 [18:23:21]quantity*price = 150056 [18:23:21]sum+1 = 150058 [18:23: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 СНО: Общий режим Чек 280 23.10.2024 18:23 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70764 ФПД: 74607813061154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70764&fm=74607813061154&tin=02508201610067®Number=0000000000156251&sum=150000 [18:23:22]StoreToDocumentArchive [18:23:22]shift 196 fd 70764 [18:23:22]save to /storage/0196/doc_00070764 [18:23:22]save last doc name /storage/0196/doc_00070764 to /storage/kkm_last_doc_name [18:23:22]save OK [18:23:22]Clear old archive folders... [18:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:22]tlvbuf is 00223B10 [18:23:22]SAM_PROTO_ClearQueue [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 09 00 00 [18:23:22]Write to MH i2c: E2 08 00 F6 2E 80 09 00 00 00 00 00 00 96 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F6 2E 00 90 00 98 [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_ClearQueue done [18:23:22]KKMCreateOFDPacket [18:23:22]OFDProtocolAddRootSTLVToBuf [18:23:22]FM_MakeSignedData [18:23:22]FM_MakeSignedData [18:23:22]SAM_PROTO_SignData [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 01 02 [18:23:22]Write to MH i2c: E2 08 00 F7 2E 80 0D 01 02 00 00 00 00 9E [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F7 2E 00 90 00 99 [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=255 [18:23:22]MH_SAM_APDU [18:23: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 18 01 00 00 F4 03 04 00 1B 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 43 [18:23:22]Write to MH i2c: E2 02 01 F8 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 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 18 01 00 00 F4 03 04 00 1B 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 43 00 00 EB [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F8 2E 00 90 00 9A [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=10 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 02 02 05 DA FC 31 EA 22 [18:23:22]Write to MH i2c: E2 0D 00 F9 2E 80 0D 02 02 05 00 DA FC 31 EA 22 00 00 BE [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 03 02 [18:23:22]Write to MH i2c: E2 08 00 FA 2E 80 0D 03 02 00 00 00 00 A3 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0B 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0B 00 FA 2E 00 B1 0F B7 99 AD 31 1A 04 90 00 B0 [18:23:22]RAPDU: B1 0F B7 99 AD 31 1A 04 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_SignData done [18:23:22]FM_MakeSignedData done [18:23:22]CreateOFDProtocolMessage [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 11 00 00 [18:23:22]Write to MH i2c: E2 08 00 FB 2E 80 11 00 00 00 00 00 00 A3 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 17 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 17 00 FB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [18:23: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:23:22]wFMCommunicate OK [18:23:22]CreateOFDProtocolMessage done [18:23:22]OFDSenderStorePacket 70764 [18:23:22]StoreOFDPacket docnum=70764 [18:23: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 DE 29 07 01 4E 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 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 18 01 00 00 F4 03 04 00 1B 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 43 DA FC 31 EA 22 B1 0F B7 99 AD 31 1A 04 [18:23:22]CheckFolder [18:23:22]dirname=/storage/ofd_packets [18:23:22]CheckFolder done [18:23:22]ProducePacketName [18:23:22]name=ofd_packets/00070764 [18:23:22]NVStorageSaveData ofd_packets/00070764 [18:23:22]File name is /storage/ofd_packets/00070764 [18:23:22]Write 301 bytes [18:23:22]NVStorageSaveData done [18:23:22]OFDSenderStorePacket done [18:23:22]KKMCreateOFDPacket done [18:23:22]NVStorageSaveData kkm_last_timestamp [18:23:22]File name is /storage/kkm_last_timestamp [18:23:22]Write 4 bytes [18:23:22]NVStorageSaveData done [18:23:22]ExternCall_PrintAddStr [18:23:22]wPrintStart [18:23:22]Write to MH i2c: 01 00 00 FC 2E 2A [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 07 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 07 00 FC 2E 00 00 00 00 00 FF 0F 3F [18:23:22]RasterBufferAndPrint [18:23:22]line Счет N : (1)2886548 [18:23:22]line ИНН: 02508201610067 [18:23:22]line Контрольно-Кассовый Чек [18:23:22]line ПРОДАЖА [18:23:22]line ТРК (МРК, ГНК) : 32 [18:23:22]line Товар: 2710124130 [18:23:22]line Аи-92-К-5 [18:23:22]line 22.430 * 66.90 [18:23:22]line = 1500.57 [18:23:22]line НДС 12% НСП 1% [18:23:22]line > о реализуемом товаре [18:23:22]line ОКРУГЛЕНИЕ: -0.57 [18:23:22]line ИТОГО: 1500.00 [18:23:22]line Внесено: 1500.00 [18:23:22]line СДАЧА: 0.00 [18:23:22]line НСП 1% : 13.28 [18:23:22]line НДС 12% : 159.35 [18:23:22]line Наличными: 1500.00 [18:23:22]line Безнал.: 0.00 [18:23:22]line Место: АЗС № 85 "Партнер Нефть" [18:23:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:23:22]line СНО: Общий режим [18:23:22]line Чек 280 23.10.2024 18:23 [18:23:22]line Смена: 196 ФФД: 1.0 [18:23:22]line ЗНМ: 0300000167 [18:23:22]line РНМ: 0000000000156251 [18:23:22]line Версия ККМ: v1.0 [18:23:22]line ФМ: 0000000000963346 [18:23:22]line ФД: 70764 [18:23:22]line ФПД: 74607813061154 [18:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70764&fm=74607813061154&tin=02508201610067®Number=0000000000156251&sum=150000 [18:23:23]OFD Sender: Processing packet 70764 [packets to send 18, broken 17] [18:23:23]ProducePacketName [18:23:23]name=ofd_packets/00070764 [18:23:23]OFD Sender: To server: pG, [18:23:23]CommunicateWithHost lk.salyk.kg:30040 [18:23:23]ConnectInit lk.salyk.kg [18:23:23]written 0, free lines is 4095 [18:23:23]Connected sock=10 [18:23: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 DE 29 07 01 4E 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 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 18 01 00 00 F4 03 04 00 1B 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 43 DA FC 31 EA 22 B1 0F B7 99 AD 31 1A 04 [18:23: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 CD B7 47 00 7B 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 6C 14 01 00 F4 03 04 00 B8 E8 18 67 B6 04 01 00 00 96 EC A8 89 4C CE AB D5 [18:23:23]CommunicateWithHost err = 0 [18:23:23]CheckOFDResponse [18:23:23]1017 (14) - 77093643461234 [18:23:23]1041 (16) - 0000000000963346 [18:23:23]1040 (4) - 70764 [18:23:23]1012 (4) - 23.10.2024 12:14 [18:23:23]1206 (1) - 0 [18:23:23]OFD Sender: Remove packet 70764 [18:23:23]ProducePacketName [18:23:23]name=ofd_packets/00070764 [18:23:23]NVStorageDeleteData [18:23:23]Write to MH i2c: 01 00 00 27 2F 56 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 27 2F 00 00 00 00 00 F6 0C 5F [18:23:23]RasterBufferAndPrint [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]written 0, free lines is 3324 [18:23:23]MH_Cut [18:23:23]Write to MH i2c: D1 01 00 2E 2F 01 2F [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 01 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 01 00 2E 2F 00 2E [18:23:23]Write to MH i2c: 01 00 00 2F 2F 5E [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]OFD Sender: No OFD packet to send [18:23:24]*** Cut start [18:23:24]*** Partial cut [18:23:24]*** CUTSNS_PIN = 1 [18:23:24]*** CUTSNS_PIN = 0 [18:23:24]*** Brake cut motor [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]*** Stop cut motor [18:23:24]*** Cut end [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 FF 0F 73 [18:23:24]process_action close_receipt done [18:23:24]requested_data is exist [18:23:24]produce_requested_data [18:23:24]requested_item fm.sn is exist - process it [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 11 00 00 [18:23:24]Write to MH i2c: E2 08 00 30 2F 80 11 00 00 00 00 00 00 D9 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 30 2F 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:23: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:23:24]wFMCommunicate OK [18:23:24]requested_item fd.num is exist - process it [18:23:24]SAM_PROTO_GetFieldsCounters [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 13 00 00 [18:23:24]Write to MH i2c: E2 08 00 31 2F 80 13 00 00 00 00 00 00 DC [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:25]Read from MH i2c: E2 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 62 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 62 00 31 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 6C 14 01 00 0E 04 04 00 C4 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 87 [18:23: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 6C 14 01 00 0E 04 04 00 C4 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 [18:23:25]wFMCommunicate OK [18:23:25]SAM_PROTO_GetFieldsCounters done [18:23:25]requested_item shift.num is exist - process it [18:23:25]requested_item shift.opened is exist - process it [18:23:25]req_shift_opened [18:23:25]FM_GetShiftState [18:23:25]SAM_PROTO_GetShiftState [18:23:25]wFMCommunicate request_size=4 [18:23:25]MH_SAM_APDU [18:23:25]CAPDU: 80 13 01 00 [18:23:25]Write to MH i2c: E2 08 00 32 2F 80 13 01 00 00 00 00 00 DE [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:25]Read from MH i2c: E2 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 0E 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 0E 00 32 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6B [18:23:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:23:25]wFMCommunicate OK [18:23:25]SAM_PROTO_GetShiftState done [18:23:25]FM_GetShiftState done [18:23:25]req_shift_opened done [18:23:25]requested_item shift.open_date is exist - process it [18:23:25]req_shift_open_date [18:23:25]req_shift_open_date done [18:23:25]produce_requested_data done [18:23:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70764,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:23:25]process_action_free close_receipt [18:23:25]json_value_free [18:23:25]json_value_free done [18:23:25]process_json_proto returns [18:23:25]Send response to host [18:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70764,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:23:25]free response buf [18:23:25]execute_script done [18:23:25]execute_script returns [18:23:25]free content buf [18:23:25]Sock 7.Close socket [18:23:25]Sock 7.Thread stoped [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:50]accept exits with 9 [18:25:50]New connection [18:25:50]New thread 3066891620 created [18:25:50]Thread 3067034980 joined [18:25:50]Waiting for new connection... [18:25:50] Sock 9.Parse request [18:25:50]Sock 9.Check first char [18:25:50]Sock 9.First char is OK [18:25:50]request: POST /json_proto HTTP/1.0 [18:25:50]Method: POST [18:25:50]URL: /json_proto [18:25:50]Method is POST - this is cgi request [18:25:50]url: /json_proto [18:25:50]query_string will be loaded in cgi processing [18:25:50]execute_cgi json_proto POST (null) [18:25:50]execute_cgi path=json_proto method=POST [18:25:50]POST find Content-Length [18:25:50]Host: 172.17.50.3:8080 [18:25:50]Content-Length: 683 [18:25:50]Content-Type: application/json [18:25:50] [18:25:50]POST finish read [18:25:50]Found Content-Length = 683 [18:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886549", "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:25:50]execute_script... [18:25: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)2886549", "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:25:50]POST & json_proto [18:25:50]process_json_proto [18:25:50]json parsed OK: [18:25:50]protocol is kg_v1.0 [18:25:50]action value=close_receipt [18:25:50]process_action close_receipt [18:25:50]cmd_close_receipt [18:25:50]MH_GetDate [18:25:50]Write to MH i2c: F0 00 00 33 2F 51 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: F0 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: F0 09 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: F0 09 00 33 2F 00 B0 3F 19 67 6B 98 1E 66 50 [18:25:50]GetLastDocTimeStamp 1729707803 [18:25:50]current date 1729707952 [18:25:50]FM_GetShiftState [18:25:50]SAM_PROTO_GetShiftState [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 13 01 00 [18:25:50]Write to MH i2c: E2 08 00 34 2F 80 13 01 00 00 00 00 00 E0 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0E 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0E 00 34 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6D [18:25:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:25:50]wFMCommunicate OK [18:25:50]SAM_PROTO_GetShiftState done [18:25:50]FM_GetShiftState done [18:25:50]opened in 1729642435 [18:25:50]opened+sec_in_day 1729728835 [18:25:50]quantity*price = 100015 [18:25:50]sum+1 = 100017 [18:25:50]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 СНО: Общий режим Чек 281 23.10.2024 18:25 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70765 ФПД: 270680897976196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70765&fm=270680897976196&tin=02508201610067®Number=0000000000156251&sum=100000 [18:25:51]StoreToDocumentArchive [18:25:51]shift 196 fd 70765 [18:25:51]save to /storage/0196/doc_00070765 [18:25:51]save last doc name /storage/0196/doc_00070765 to /storage/kkm_last_doc_name [18:25:51]save OK [18:25:51]Clear old archive folders... [18:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:51]tlvbuf is 0015BFC0 [18:25:51]SAM_PROTO_ClearQueue [18:25:51]wFMCommunicate request_size=4 [18:25:51]MH_SAM_APDU [18:25:51]CAPDU: 80 09 00 00 [18:25:51]Write to MH i2c: E2 08 00 41 2F 80 09 00 00 00 00 00 00 E2 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:51]Read from MH i2c: E2 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: E2 03 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: E2 03 00 41 2F 00 90 00 E4 [18:25:51]RAPDU: 90 00 [18:25:51]wFMCommunicate OK [18:25:51]SAM_PROTO_ClearQueue done [18:25:51]KKMCreateOFDPacket [18:25:51]OFDProtocolAddRootSTLVToBuf [18:25:51]FM_MakeSignedData [18:25:51]FM_MakeSignedData [18:25:51]SAM_PROTO_SignData [18:25:51]wFMCommunicate request_size=4 [18:25:51]MH_SAM_APDU [18:25:51]CAPDU: 80 0D 01 02 [18:25:51]Write to MH i2c: E2 08 00 42 2F 80 0D 01 02 00 00 00 00 EA [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:51]Read from MH i2c: E2 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: E2 03 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: E2 03 00 42 2F 00 90 00 E5 [18:25:51]RAPDU: 90 00 [18:25:51]wFMCommunicate OK [18:25:51]wFMCommunicate request_size=255 [18:25:51]MH_SAM_APDU [18:25: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 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 19 01 00 00 F4 03 04 00 B0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F6 [18:25:51]Write to MH i2c: E2 02 01 43 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 19 01 00 00 F4 03 04 00 B0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F6 00 00 32 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 03 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 03 00 43 2F 00 90 00 E6 [18:25:52]RAPDU: 90 00 [18:25:52]wFMCommunicate OK [18:25:52]wFMCommunicate request_size=10 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 0D 02 02 05 2E CE C5 77 84 [18:25:52]Write to MH i2c: E2 0D 00 44 2F 80 0D 02 02 05 00 2E CE C5 77 84 00 00 B3 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 03 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [18:25:52]RAPDU: 90 00 [18:25:52]wFMCommunicate OK [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 0D 03 02 [18:25:52]Write to MH i2c: E2 08 00 45 2F 80 0D 03 02 00 00 00 00 EF [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0B 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0B 00 45 2F 00 8D D6 79 3B 4E B4 40 72 90 00 BB [18:25:52]RAPDU: 8D D6 79 3B 4E B4 40 72 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_SignData done [18:25:52]FM_MakeSignedData done [18:25:52]CreateOFDProtocolMessage [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 11 00 00 [18:25:52]Write to MH i2c: E2 08 00 46 2F 80 11 00 00 00 00 00 00 EF [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 46 2F 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:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:25:52]wFMCommunicate OK [18:25:52]CreateOFDProtocolMessage done [18:25:52]OFDSenderStorePacket 70765 [18:25:52]StoreOFDPacket docnum=70765 [18:25: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 83 48 07 01 2A 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 19 01 00 00 F4 03 04 00 B0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F6 2E CE C5 77 84 8D D6 79 3B 4E B4 40 72 [18:25:52]CheckFolder [18:25:52]dirname=/storage/ofd_packets [18:25:52]CheckFolder done [18:25:52]ProducePacketName [18:25:52]name=ofd_packets/00070765 [18:25:52]NVStorageSaveData ofd_packets/00070765 [18:25:52]File name is /storage/ofd_packets/00070765 [18:25:52]Write 301 bytes [18:25:52]NVStorageSaveData done [18:25:52]OFDSenderStorePacket done [18:25:52]KKMCreateOFDPacket done [18:25:52]NVStorageSaveData kkm_last_timestamp [18:25:52]File name is /storage/kkm_last_timestamp [18:25:52]Write 4 bytes [18:25:52]NVStorageSaveData done [18:25:52]ExternCall_PrintAddStr [18:25:52]wPrintStart [18:25:52]Write to MH i2c: 01 00 00 47 2F 76 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 07 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 07 00 47 2F 00 00 00 00 00 FF 0F 8B [18:25:52]RasterBufferAndPrint [18:25:52]line Счет N : (1)2886549 [18:25:52]line ИНН: 02508201610067 [18:25:52]line Контрольно-Кассовый Чек [18:25:52]line ПРОДАЖА [18:25:52]line ТРК (МРК, ГНК) : 32 [18:25:52]line Товар: 2710124130 [18:25:52]line Аи-92-К-5 [18:25:52]line 14.950 * 66.90 [18:25:52]line = 1000.16 [18:25:52]line НДС 12% НСП 1% [18:25:52]line > о реализуемом товаре [18:25:52]line ОКРУГЛЕНИЕ: -0.16 [18:25:52]line ИТОГО: 1000.00 [18:25:52]line Внесено: 1000.00 [18:25:52]line СДАЧА: 0.00 [18:25:52]line НСП 1% : 8.85 [18:25:52]line НДС 12% : 106.21 [18:25:52]line Наличными: 1000.00 [18:25:52]line Безнал.: 0.00 [18:25:52]line Место: АЗС № 85 "Партнер Нефть" [18:25:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:25:52]line СНО: Общий режим [18:25:52]line Чек 281 23.10.2024 18:25 [18:25:52]line Смена: 196 ФФД: 1.0 [18:25:52]line ЗНМ: 0300000167 [18:25:52]line РНМ: 0000000000156251 [18:25:52]line Версия ККМ: v1.0 [18:25:52]line ФМ: 0000000000963346 [18:25:52]line ФД: 70765 [18:25:52]line ФПД: 270680897976196 [18:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70765&fm=270680897976196&tin=02508201610067®Number=0000000000156251&sum=100000 [18:25:52]OFD Sender: Processing packet 70765 [packets to send 18, broken 17] [18:25:52]ProducePacketName [18:25:52]name=ofd_packets/00070765 [18:25:52]OFD Sender: To server: pG, [18:25:52]CommunicateWithHost lk.salyk.kg:30040 [18:25:52]ConnectInit lk.salyk.kg [18:25:52]written 0, free lines is 4095 [18:25:52]Connected sock=10 [18:25: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 83 48 07 01 2A 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 19 01 00 00 F4 03 04 00 B0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F6 2E CE C5 77 84 8D D6 79 3B 4E B4 40 72 [18:25: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 82 19 47 00 EB 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 6D 14 01 00 F4 03 04 00 4E E9 18 67 B6 04 01 00 00 6D 61 F6 DA C1 AD E3 D0 [18:25:52]CommunicateWithHost err = 0 [18:25:52]CheckOFDResponse [18:25:52]1017 (14) - 77093643461234 [18:25:52]1041 (16) - 0000000000963346 [18:25:52]1040 (4) - 70765 [18:25:52]1012 (4) - 23.10.2024 12:17 [18:25:52]1206 (1) - 0 [18:25:52]OFD Sender: Remove packet 70765 [18:25:52]ProducePacketName [18:25:52]name=ofd_packets/00070765 [18:25:52]NVStorageDeleteData [18:25:53]Write to MH i2c: 01 00 00 72 2F A1 [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: 01 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: 01 07 00 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: 01 07 00 72 2F 00 00 00 00 00 EF 0C A3 [18:25:53]RasterBufferAndPrint [18:25:53]line [18:25:53]line [18:25:53]line [18:25:53]line [18:25:53]line [18:25:53]written 0, free lines is 3317 [18:25:53]MH_Cut [18:25:53]Write to MH i2c: D1 01 00 79 2F 01 7A [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: D1 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: D1 01 00 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: D1 01 00 79 2F 00 79 [18:25:53]Write to MH i2c: 01 00 00 7A 2F A9 [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]OFD Sender: No OFD packet to send [18:25:53]*** Cut start [18:25:53]*** Partial cut [18:25:53]*** CUTSNS_PIN = 1 [18:25:53]*** CUTSNS_PIN = 0 [18:25:54]*** Brake cut motor [18:25:54]Read from MH i2c: 01 [18:25:54]MH_I2C_Read... [18:25:54]*** Stop cut motor [18:25:54]*** Cut end [18:25:54]Read from MH i2c: 01 07 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 7A 2F 00 00 00 00 00 FF 0F BE [18:25:54]process_action close_receipt done [18:25:54]requested_data is exist [18:25:54]produce_requested_data [18:25:54]requested_item fm.sn is exist - process it [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 11 00 00 [18:25:54]Write to MH i2c: E2 08 00 7B 2F 80 11 00 00 00 00 00 00 24 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 17 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 17 00 7B 2F 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:25: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:25:54]wFMCommunicate OK [18:25:54]requested_item fd.num is exist - process it [18:25:54]SAM_PROTO_GetFieldsCounters [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 13 00 00 [18:25:54]Write to MH i2c: E2 08 00 7C 2F 80 13 00 00 00 00 00 00 27 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 62 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 62 00 7C 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 6D 14 01 00 0E 04 04 00 C4 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 D6 [18:25: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 6D 14 01 00 0E 04 04 00 C4 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 [18:25:54]wFMCommunicate OK [18:25:54]SAM_PROTO_GetFieldsCounters done [18:25:54]requested_item shift.num is exist - process it [18:25:54]requested_item shift.opened is exist - process it [18:25:54]req_shift_opened [18:25:54]FM_GetShiftState [18:25:54]SAM_PROTO_GetShiftState [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 13 01 00 [18:25:54]Write to MH i2c: E2 08 00 7D 2F 80 13 01 00 00 00 00 00 29 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 0E 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 0E 00 7D 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B6 [18:25:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:25:54]wFMCommunicate OK [18:25:54]SAM_PROTO_GetShiftState done [18:25:54]FM_GetShiftState done [18:25:54]req_shift_opened done [18:25:54]requested_item shift.open_date is exist - process it [18:25:54]req_shift_open_date [18:25:54]req_shift_open_date done [18:25:54]produce_requested_data done [18:25:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70765,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:25:54]process_action_free close_receipt [18:25:54]json_value_free [18:25:54]json_value_free done [18:25:54]process_json_proto returns [18:25:54]Send response to host [18:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70765,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:25:54]free response buf [18:25:54]execute_script done [18:25:54]execute_script returns [18:25:54]free content buf [18:25:54]Sock 9.Close socket [18:25:54]Sock 9.Thread stoped [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:54]accept exits with 7 [18:26:54]New connection [18:26:54]New thread 3067034980 created [18:26:54]Thread 3066891620 joined [18:26:54]Waiting for new connection... [18:26:54] Sock 7.Parse request [18:26:54]Sock 7.Check first char [18:26:54]Sock 7.First char is OK [18:26:54]request: POST /json_proto HTTP/1.0 [18:26:54]Method: POST [18:26:54]URL: /json_proto [18:26:54]Method is POST - this is cgi request [18:26:54]url: /json_proto [18:26:54]query_string will be loaded in cgi processing [18:26:54]execute_cgi json_proto POST (null) [18:26:54]execute_cgi path=json_proto method=POST [18:26:54]POST find Content-Length [18:26:54]Host: 172.17.50.3:8080 [18:26:54]Content-Length: 682 [18:26:54]Content-Type: application/json [18:26:54] [18:26:54]POST finish read [18:26:54]Found Content-Length = 682 [18:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886550", "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" : 20.570, "sum" : 800.17, "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" ] } } [18:26:54]execute_script... [18: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)2886550", "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" : 20.570, "sum" : 800.17, "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" ] } } [18:26:54]POST & json_proto [18:26:54]process_json_proto [18:26:54]json parsed OK: [18:26:54]protocol is kg_v1.0 [18:26:54]action value=close_receipt [18:26:54]process_action close_receipt [18:26:54]cmd_close_receipt [18:26:54]MH_GetDate [18:26:54]Write to MH i2c: F0 00 00 7E 2F 9C [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: F0 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: F0 09 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: F0 09 00 7E 2F 00 F0 3F 19 67 6B 98 1E 66 DB [18:26:54]GetLastDocTimeStamp 1729707952 [18:26:54]current date 1729708016 [18:26:54]FM_GetShiftState [18:26:54]SAM_PROTO_GetShiftState [18:26:54]wFMCommunicate request_size=4 [18:26:54]MH_SAM_APDU [18:26:54]CAPDU: 80 13 01 00 [18:26:54]Write to MH i2c: E2 08 00 7F 2F 80 13 01 00 00 00 00 00 2B [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 7F 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B8 [18:26:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:26:54]wFMCommunicate OK [18:26:54]SAM_PROTO_GetShiftState done [18:26:54]FM_GetShiftState done [18:26:54]opened in 1729642435 [18:26:54]opened+sec_in_day 1729728835 [18:26:54]quantity*price = 80017 [18:26:54]sum+1 = 80018 [18:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 282 23.10.2024 18:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70766 ФПД: 45247438423723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70766&fm=45247438423723&tin=02508201610067®Number=0000000000156251&sum=80000 [18:26:55]StoreToDocumentArchive [18:26:55]shift 196 fd 70766 [18:26:55]save to /storage/0196/doc_00070766 [18:26:55]save last doc name /storage/0196/doc_00070766 to /storage/kkm_last_doc_name [18:26:55]save OK [18:26:55]Clear old archive folders... [18:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:26:55]tlvbuf is 00146420 [18:26:55]SAM_PROTO_ClearQueue [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 09 00 00 [18:26:55]Write to MH i2c: E2 08 00 8C 2F 80 09 00 00 00 00 00 00 2D [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 8C 2F 00 90 00 2F [18:26:55]RAPDU: 90 00 [18:26:55]wFMCommunicate OK [18:26:55]SAM_PROTO_ClearQueue done [18:26:55]KKMCreateOFDPacket [18:26:55]OFDProtocolAddRootSTLVToBuf [18:26:55]FM_MakeSignedData [18:26:55]FM_MakeSignedData [18:26:55]SAM_PROTO_SignData [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 0D 01 02 [18:26:55]Write to MH i2c: E2 08 00 8D 2F 80 0D 01 02 00 00 00 00 35 [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 8D 2F 00 90 00 30 [18:26:55]RAPDU: 90 00 [18:26:55]wFMCommunicate OK [18:26:55]wFMCommunicate request_size=255 [18:26:55]MH_SAM_APDU [18:26: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 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 1A 01 00 00 F4 03 04 00 F0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 29 26 [18:26:55]Write to MH i2c: E2 02 01 8E 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 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 1A 01 00 00 F4 03 04 00 F0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 29 26 00 00 86 [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [18:26:55]RAPDU: 90 00 [18:26:55]wFMCommunicate OK [18:26:55]wFMCommunicate request_size=9 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 0D 02 02 04 FD 7E 86 AB [18:26:55]Write to MH i2c: E2 0C 00 8F 2F 80 0D 02 02 04 00 FD 7E 86 AB 00 00 EC [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [18:26:55]RAPDU: 90 00 [18:26:55]wFMCommunicate OK [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 0D 03 02 [18:26:55]Write to MH i2c: E2 08 00 90 2F 80 0D 03 02 00 00 00 00 3A [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:56]Read from MH i2c: E2 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 0B 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 0B 00 90 2F 00 7C 2B 80 F5 29 A6 6A 5F 90 00 EF [18:26:56]RAPDU: 7C 2B 80 F5 29 A6 6A 5F 90 00 [18:26:56]wFMCommunicate OK [18:26:56]SAM_PROTO_SignData done [18:26:56]FM_MakeSignedData done [18:26:56]CreateOFDProtocolMessage [18:26:56]wFMCommunicate request_size=4 [18:26:56]MH_SAM_APDU [18:26:56]CAPDU: 80 11 00 00 [18:26:56]Write to MH i2c: E2 08 00 91 2F 80 11 00 00 00 00 00 00 3A [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:56]Read from MH i2c: E2 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 17 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 17 00 91 2F 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: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 [18:26:56]wFMCommunicate OK [18:26:56]CreateOFDProtocolMessage done [18:26:56]OFDSenderStorePacket 70766 [18:26:56]StoreOFDPacket docnum=70766 [18: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 0E 01 00 00 4D 96 06 01 0D 06 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 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 1A 01 00 00 F4 03 04 00 F0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 29 26 FD 7E 86 AB 7C 2B 80 F5 29 A6 6A 5F [18:26:56]CheckFolder [18:26:56]dirname=/storage/ofd_packets [18:26:56]CheckFolder done [18:26:56]ProducePacketName [18:26:56]name=ofd_packets/00070766 [18:26:56]NVStorageSaveData ofd_packets/00070766 [18:26:56]File name is /storage/ofd_packets/00070766 [18:26:56]Write 300 bytes [18:26:56]NVStorageSaveData done [18:26:56]OFDSenderStorePacket done [18:26:56]KKMCreateOFDPacket done [18:26:56]NVStorageSaveData kkm_last_timestamp [18:26:56]File name is /storage/kkm_last_timestamp [18:26:56]Write 4 bytes [18:26:56]NVStorageSaveData done [18:26:56]ExternCall_PrintAddStr [18:26:56]wPrintStart [18:26:56]Write to MH i2c: 01 00 00 92 2F C1 [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 07 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 07 00 92 2F 00 00 00 00 00 FF 0F D6 [18:26:56]RasterBufferAndPrint [18:26:56]line Счет N : (1)2886550 [18:26:56]line ИНН: 02508201610067 [18:26:56]line Контрольно-Кассовый Чек [18:26:56]line ПРОДАЖА [18:26:56]line ТРК (МРК, ГНК) : 71 [18:26:56]line Товар: 2711129700 [18:26:56]line ГАЗ-К-3 [18:26:56]line 20.570 * 38.90 [18:26:56]line = 800.17 [18:26:56]line НДС 12% НСП 1% [18:26:56]line > о реализуемом товаре [18:26:56]line ОКРУГЛЕНИЕ: -0.17 [18:26:56]line ИТОГО: 800.00 [18:26:56]line Внесено: 800.00 [18:26:56]line СДАЧА: 0.00 [18:26:56]line НСП 1% : 7.08 [18:26:56]line НДС 12% : 84.97 [18:26:56]line Наличными: 800.00 [18:26:56]line Безнал.: 0.00 [18:26:56]line Место: АЗС № 85 "Партнер Нефть" [18:26:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:26:56]line СНО: Общий режим [18:26:56]line Чек 282 23.10.2024 18:26 [18:26:56]line Смена: 196 ФФД: 1.0 [18:26:56]line ЗНМ: 0300000167 [18:26:56]line РНМ: 0000000000156251 [18:26:56]line Версия ККМ: v1.0 [18:26:56]line ФМ: 0000000000963346 [18:26:56]line ФД: 70766 [18:26:56]line ФПД: 45247438423723 [18:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70766&fm=45247438423723&tin=02508201610067®Number=0000000000156251&sum=80000 [18:26:56]OFD Sender: Processing packet 70766 [packets to send 18, broken 17] [18:26:56]ProducePacketName [18:26:56]name=ofd_packets/00070766 [18:26:56]OFD Sender: To server: pG, [18:26:56]CommunicateWithHost lk.salyk.kg:30040 [18:26:56]ConnectInit lk.salyk.kg [18:26:56]written 0, free lines is 4095 [18:26:56]Connected sock=10 [18: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 0E 01 00 00 4D 96 06 01 0D 06 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 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 1A 01 00 00 F4 03 04 00 F0 3F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 29 26 FD 7E 86 AB 7C 2B 80 F5 29 A6 6A 5F [18: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 01 77 47 00 44 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 6E 14 01 00 F4 03 04 00 8D E9 18 67 B6 04 01 00 00 CD D6 BB DF 18 D2 30 CC [18:26:56]CommunicateWithHost err = 0 [18:26:56]CheckOFDResponse [18:26:56]1017 (14) - 77093643461234 [18:26:56]1041 (16) - 0000000000963346 [18:26:56]1040 (4) - 70766 [18:26:56]1012 (4) - 23.10.2024 12:18 [18:26:56]1206 (1) - 0 [18:26:56]OFD Sender: Remove packet 70766 [18:26:56]ProducePacketName [18:26:56]name=ofd_packets/00070766 [18:26:56]NVStorageDeleteData [18:26:56]Write to MH i2c: 01 00 00 BD 2F EC [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 07 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: 01 07 00 BD 2F 00 00 00 00 00 F4 0C F3 [18:26:56]RasterBufferAndPrint [18:26:56]line [18:26:56]line [18:26:56]line [18:26:56]line [18:26:56]line [18:26:56]written 0, free lines is 3322 [18:26:56]MH_Cut [18:26:56]Write to MH i2c: D1 01 00 C4 2F 01 C5 [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: D1 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: D1 01 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: D1 01 00 C4 2F 00 C4 [18:26:56]Write to MH i2c: 01 00 00 C5 2F F4 [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:57]OFD Sender: No OFD packet to send [18:26:57]*** Cut start [18:26:57]*** Partial cut [18:26:57]*** CUTSNS_PIN = 1 [18:26:57]*** CUTSNS_PIN = 0 [18:26:57]*** Brake cut motor [18:26:58]Read from MH i2c: 01 [18:26:58]MH_I2C_Read... [18:26:58]*** Stop cut motor [18:26:58]*** Cut end [18:26:58]Read from MH i2c: 01 07 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: 01 07 00 C5 2F 00 00 00 00 00 FF 0F 09 [18:26:58]process_action close_receipt done [18:26:58]requested_data is exist [18:26:58]produce_requested_data [18:26:58]requested_item fm.sn is exist - process it [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 11 00 00 [18:26:58]Write to MH i2c: E2 08 00 C6 2F 80 11 00 00 00 00 00 00 6F [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 17 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 17 00 C6 2F 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: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 [18:26:58]wFMCommunicate OK [18:26:58]requested_item fd.num is exist - process it [18:26:58]SAM_PROTO_GetFieldsCounters [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 13 00 00 [18:26:58]Write to MH i2c: E2 08 00 C7 2F 80 13 00 00 00 00 00 00 72 [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 62 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 62 00 C7 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 6E 14 01 00 0E 04 04 00 C4 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 25 [18: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 6E 14 01 00 0E 04 04 00 C4 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 [18:26:58]wFMCommunicate OK [18:26:58]SAM_PROTO_GetFieldsCounters done [18:26:58]requested_item shift.num is exist - process it [18:26:58]requested_item shift.opened is exist - process it [18:26:58]req_shift_opened [18:26:58]FM_GetShiftState [18:26:58]SAM_PROTO_GetShiftState [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 13 01 00 [18:26:58]Write to MH i2c: E2 08 00 C8 2F 80 13 01 00 00 00 00 00 74 [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0E 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0E 00 C8 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 01 [18:26:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:26:58]wFMCommunicate OK [18:26:58]SAM_PROTO_GetShiftState done [18:26:58]FM_GetShiftState done [18:26:58]req_shift_opened done [18:26:58]requested_item shift.open_date is exist - process it [18:26:58]req_shift_open_date [18:26:58]req_shift_open_date done [18:26:58]produce_requested_data done [18:26:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70766,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:26:58]process_action_free close_receipt [18:26:58]json_value_free [18:26:58]json_value_free done [18:26:58]process_json_proto returns [18:26:58]Send response to host [18:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70766,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:26:58]free response buf [18:26:58]execute_script done [18:26:58]execute_script returns [18:26:58]free content buf [18:26:58]Sock 7.Close socket [18:26:58]Sock 7.Thread stoped [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:23]accept exits with 9 [18:27:23]New connection [18:27:23]New thread 3066891620 created [18:27:23]Thread 3067034980 joined [18:27:23]Waiting for new connection... [18:27:23] Sock 9.Parse request [18:27:23]Sock 9.Check first char [18:27:23]Sock 9.First char is OK [18:27:23]request: POST /json_proto HTTP/1.0 [18:27:23]Method: POST [18:27:23]URL: /json_proto [18:27:23]Method is POST - this is cgi request [18:27:23]url: /json_proto [18:27:23]query_string will be loaded in cgi processing [18:27:23]execute_cgi json_proto POST (null) [18:27:23]execute_cgi path=json_proto method=POST [18:27:23]POST find Content-Length [18:27:23]Host: 172.17.50.3:8080 [18:27:23]Content-Length: 678 [18:27:23]Content-Type: application/json [18:27:23] [18:27:23]POST finish read [18:27:23]Found Content-Length = 678 [18:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886551", "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" ] } } [18:27:23]execute_script... [18:27: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)2886551", "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" ] } } [18:27:23]POST & json_proto [18:27:23]process_json_proto [18:27:23]json parsed OK: [18:27:23]protocol is kg_v1.0 [18:27:23]action value=close_receipt [18:27:23]process_action close_receipt [18:27:23]cmd_close_receipt [18:27:23]MH_GetDate [18:27:23]Write to MH i2c: F0 00 00 C9 2F E7 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 C9 2F 00 0E 40 19 67 6B 98 1E 66 45 [18:27:23]GetLastDocTimeStamp 1729708016 [18:27:23]current date 1729708046 [18:27:23]FM_GetShiftState [18:27:23]SAM_PROTO_GetShiftState [18:27:23]wFMCommunicate request_size=4 [18:27:23]MH_SAM_APDU [18:27:23]CAPDU: 80 13 01 00 [18:27:23]Write to MH i2c: E2 08 00 CA 2F 80 13 01 00 00 00 00 00 76 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0E 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0E 00 CA 2F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 03 [18:27:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_GetShiftState done [18:27:24]FM_GetShiftState done [18:27:24]opened in 1729642435 [18:27:24]opened+sec_in_day 1729728835 [18:27:24]quantity*price = 60027 [18:27:24]sum+1 = 60029 [18:27:24]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 СНО: Общий режим Чек 283 23.10.2024 18:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70767 ФПД: 3041693858260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70767&fm=3041693858260&tin=02508201610067®Number=0000000000156251&sum=60000 [18:27:25]StoreToDocumentArchive [18:27:25]shift 196 fd 70767 [18:27:25]save to /storage/0196/doc_00070767 [18:27:25]save last doc name /storage/0196/doc_00070767 to /storage/kkm_last_doc_name [18:27:25]save OK [18:27:25]Clear old archive folders... [18:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:25]tlvbuf is 001DF390 [18:27:25]SAM_PROTO_ClearQueue [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 09 00 00 [18:27:25]Write to MH i2c: E2 08 00 D7 2F 80 09 00 00 00 00 00 00 78 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 D7 2F 00 90 00 7A [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_ClearQueue done [18:27:25]KKMCreateOFDPacket [18:27:25]OFDProtocolAddRootSTLVToBuf [18:27:25]FM_MakeSignedData [18:27:25]FM_MakeSignedData [18:27:25]SAM_PROTO_SignData [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 0D 01 02 [18:27:25]Write to MH i2c: E2 08 00 D8 2F 80 0D 01 02 00 00 00 00 80 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]wFMCommunicate request_size=255 [18:27:25]MH_SAM_APDU [18:27: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 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 1B 01 00 00 F4 03 04 00 0E 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 [18:27:25]Write to MH i2c: E2 02 01 D9 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 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 1B 01 00 00 F4 03 04 00 0E 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 00 00 9B [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 D9 2F 00 90 00 7C [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]wFMCommunicate request_size=10 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 0D 02 02 05 C4 33 14 F9 D4 [18:27:25]Write to MH i2c: E2 0D 00 DA 2F 80 0D 02 02 05 00 C4 33 14 F9 D4 00 00 65 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 03 00 DA 2F 00 90 00 7D [18:27:25]RAPDU: 90 00 [18:27:25]wFMCommunicate OK [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 0D 03 02 [18:27:25]Write to MH i2c: E2 08 00 DB 2F 80 0D 03 02 00 00 00 00 85 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0B 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0B 00 DB 2F 00 68 DF 3C CB F9 1C 56 07 90 00 46 [18:27:25]RAPDU: 68 DF 3C CB F9 1C 56 07 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_SignData done [18:27:25]FM_MakeSignedData done [18:27:25]CreateOFDProtocolMessage [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 11 00 00 [18:27:25]Write to MH i2c: E2 08 00 DC 2F 80 11 00 00 00 00 00 00 85 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 17 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 17 00 DC 2F 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:27:25]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:25]wFMCommunicate OK [18:27:25]CreateOFDProtocolMessage done [18:27:25]OFDSenderStorePacket 70767 [18:27:25]StoreOFDPacket docnum=70767 [18:27: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 D9 C3 07 01 FA 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 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 1B 01 00 00 F4 03 04 00 0E 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 C4 33 14 F9 D4 68 DF 3C CB F9 1C 56 07 [18:27:25]CheckFolder [18:27:25]dirname=/storage/ofd_packets [18:27:25]CheckFolder done [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00070767 [18:27:25]NVStorageSaveData ofd_packets/00070767 [18:27:25]File name is /storage/ofd_packets/00070767 [18:27:25]Write 301 bytes [18:27:25]NVStorageSaveData done [18:27:25]OFDSenderStorePacket done [18:27:25]KKMCreateOFDPacket done [18:27:25]NVStorageSaveData kkm_last_timestamp [18:27:25]File name is /storage/kkm_last_timestamp [18:27:25]Write 4 bytes [18:27:25]NVStorageSaveData done [18:27:25]ExternCall_PrintAddStr [18:27:25]wPrintStart [18:27:25]Write to MH i2c: 01 00 00 DD 2F 0C [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 DD 2F 00 00 00 00 00 FF 0F 21 [18:27:25]RasterBufferAndPrint [18:27:25]line Счет N : (1)2886551 [18:27:25]line ИНН: 02508201610067 [18:27:25]line Контрольно-Кассовый Чек [18:27:25]line ПРОДАЖА [18:27:25]line ТРК (МРК, ГНК) : 13 [18:27:25]line Товар: 2710124500 [18:27:25]line Аи-95-К-5 [18:27:25]line 8.090 * 74.20 [18:27:25]line = 600.28 [18:27:25]line НДС 12% НСП 1% [18:27:25]line > о реализуемом товаре [18:27:25]line ОКРУГЛЕНИЕ: -0.28 [18:27:25]line ИТОГО: 600.00 [18:27:25]line Внесено: 600.00 [18:27:25]line СДАЧА: 0.00 [18:27:25]line НСП 1% : 5.31 [18:27:25]line НДС 12% : 63.75 [18:27:25]line Наличными: 600.00 [18:27:25]line Безнал.: 0.00 [18:27:25]line Место: АЗС № 85 "Партнер Нефть" [18:27:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:27:25]line СНО: Общий режим [18:27:25]line Чек 283 23.10.2024 18:27 [18:27:25]line Смена: 196 ФФД: 1.0 [18:27:25]line ЗНМ: 0300000167 [18:27:25]line РНМ: 0000000000156251 [18:27:25]line Версия ККМ: v1.0 [18:27:25]line ФМ: 0000000000963346 [18:27:25]line ФД: 70767 [18:27:25]line ФПД: 3041693858260 [18:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70767&fm=3041693858260&tin=02508201610067®Number=0000000000156251&sum=60000 [18:27:26]OFD Sender: Processing packet 70767 [packets to send 18, broken 17] [18:27:26]ProducePacketName [18:27:26]name=ofd_packets/00070767 [18:27:26]OFD Sender: To server: pG, [18:27:26]CommunicateWithHost lk.salyk.kg:30040 [18:27:26]ConnectInit lk.salyk.kg [18:27:26]written 0, free lines is 4095 [18:27:26]Connected sock=10 [18:27: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 C3 07 01 FA 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 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 1B 01 00 00 F4 03 04 00 0E 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 C4 33 14 F9 D4 68 DF 3C CB F9 1C 56 07 [18:27: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 0E 5A 47 00 52 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 AB E9 18 67 B6 04 01 00 00 23 B0 C5 91 3D DC 08 B9 [18:27:26]CommunicateWithHost err = 0 [18:27:26]CheckOFDResponse [18:27:26]1017 (14) - 77093643461234 [18:27:26]1041 (16) - 0000000000963346 [18:27:26]1040 (4) - 70767 [18:27:26]1012 (4) - 23.10.2024 12:18 [18:27:26]1206 (1) - 0 [18:27:26]OFD Sender: Remove packet 70767 [18:27:26]ProducePacketName [18:27:26]name=ofd_packets/00070767 [18:27:26]NVStorageDeleteData [18:27:26]Write to MH i2c: 01 00 00 08 30 38 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: 01 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: 01 07 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: 01 07 00 08 30 00 00 00 00 00 F6 0C 41 [18:27:26]RasterBufferAndPrint [18:27:26]line [18:27:26]line [18:27:26]line [18:27:26]line [18:27:26]line [18:27:26]written 0, free lines is 3324 [18:27:26]MH_Cut [18:27:26]Write to MH i2c: D1 01 00 0F 30 01 11 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: D1 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: D1 01 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: D1 01 00 0F 30 00 10 [18:27:26]Write to MH i2c: 01 00 00 10 30 40 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]OFD Sender: No OFD packet to send [18:27:27]*** Cut start [18:27:27]*** Partial cut [18:27:27]*** CUTSNS_PIN = 1 [18:27:27]*** CUTSNS_PIN = 0 [18:27:27]*** Brake cut motor [18:27:27]Read from MH i2c: 01 [18:27:27]MH_I2C_Read... [18:27:27]*** Stop cut motor [18:27:27]*** Cut end [18:27:27]Read from MH i2c: 01 07 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: 01 07 00 10 30 00 00 00 00 00 FF 0F 55 [18:27:27]process_action close_receipt done [18:27:27]requested_data is exist [18:27:27]produce_requested_data [18:27:27]requested_item fm.sn is exist - process it [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 11 00 00 [18:27:27]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 17 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 17 00 11 30 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:27: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:27:27]wFMCommunicate OK [18:27:27]requested_item fd.num is exist - process it [18:27:27]SAM_PROTO_GetFieldsCounters [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 13 00 00 [18:27:27]Write to MH i2c: E2 08 00 12 30 80 13 00 00 00 00 00 00 BE [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 62 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 62 00 12 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 6F 14 01 00 0E 04 04 00 C4 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 75 [18:27: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 6F 14 01 00 0E 04 04 00 C4 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 [18:27:28]wFMCommunicate OK [18:27:28]SAM_PROTO_GetFieldsCounters done [18:27:28]requested_item shift.num is exist - process it [18:27:28]requested_item shift.opened is exist - process it [18:27:28]req_shift_opened [18:27:28]FM_GetShiftState [18:27:28]SAM_PROTO_GetShiftState [18:27:28]wFMCommunicate request_size=4 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 13 01 00 [18:27:28]Write to MH i2c: E2 08 00 13 30 80 13 01 00 00 00 00 00 C0 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 0E 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 0E 00 13 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4D [18:27:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:27:28]wFMCommunicate OK [18:27:28]SAM_PROTO_GetShiftState done [18:27:28]FM_GetShiftState done [18:27:28]req_shift_opened done [18:27:28]requested_item shift.open_date is exist - process it [18:27:28]req_shift_open_date [18:27:28]req_shift_open_date done [18:27:28]produce_requested_data done [18:27:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70767,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:27:28]process_action_free close_receipt [18:27:28]json_value_free [18:27:28]json_value_free done [18:27:28]process_json_proto returns [18:27:28]Send response to host [18:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70767,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:27:28]free response buf [18:27:28]execute_script done [18:27:28]execute_script returns [18:27:28]free content buf [18:27:28]Sock 9.Close socket [18:27:28]Sock 9.Thread stoped [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [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 3067034980 created [18:30:03]Thread 3066891620 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: 683 [18:30:03]Content-Type: application/json [18:30:03] [18:30:03]POST finish read [18:30:03]Found Content-Length = 683 [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)2886552", "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" ] } } [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)2886552", "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" ] } } [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 14 30 33 [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 14 30 00 AE 40 19 67 6B 98 1E 66 31 [18:30:03]GetLastDocTimeStamp 1729708046 [18:30:03]current date 1729708206 [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 15 30 80 13 01 00 00 00 00 00 C2 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0E 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0E 00 15 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4F [18:30:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:30:04]wFMCommunicate OK [18:30:04]SAM_PROTO_GetShiftState done [18:30:04]FM_GetShiftState done [18:30:04]opened in 1729642435 [18:30:04]opened+sec_in_day 1729728835 [18:30:04]quantity*price = 100015 [18:30:04]sum+1 = 100017 [18:30: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 СНО: Общий режим Чек 284 23.10.2024 18:30 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70768 ФПД: 175811851794688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70768&fm=175811851794688&tin=02508201610067®Number=0000000000156251&sum=100000 [18:30:05]StoreToDocumentArchive [18:30:05]shift 196 fd 70768 [18:30:05]save to /storage/0196/doc_00070768 [18:30:05]save last doc name /storage/0196/doc_00070768 to /storage/kkm_last_doc_name [18:30:05]save OK [18:30:05]Clear old archive folders... [18:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:05]tlvbuf is 00235FB0 [18:30:05]SAM_PROTO_ClearQueue [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 09 00 00 [18:30:05]Write to MH i2c: E2 08 00 22 30 80 09 00 00 00 00 00 00 C4 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 09 00 00... 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 22 30 00 90 00 C6 [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_ClearQueue done [18:30:05]KKMCreateOFDPacket [18:30:05]OFDProtocolAddRootSTLVToBuf [18:30:05]FM_MakeSignedData [18:30:05]FM_MakeSignedData [18:30:05]SAM_PROTO_SignData [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 0D 01 02 [18:30:05]Write to MH i2c: E2 08 00 23 30 80 0D 01 02 00 00 00 00 CC [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 0D 01 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 23 30 00 90 00 C7 [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=255 [18:30:05]MH_SAM_APDU [18: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 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 01 00 00 F4 03 04 00 AE 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9F [18:30:05]Write to MH i2c: E2 02 01 24 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 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 01 00 00 F4 03 04 00 AE 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9F 00 00 C2 [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 24 30 00 90 00 C8 [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 E6 62 F9 39 00 [18:30:05]Write to MH i2c: E2 0D 00 25 30 80 0D 02 02 05 00 E6 62 F9 39 00 00 00 53 [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 25 30 00 90 00 C9 [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 26 30 80 0D 03 02 00 00 00 00 D1 [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 26 30 00 D4 A3 40 5F F7 50 EE D4 90 00 F1 [18:30:05]RAPDU: D4 A3 40 5F F7 50 EE D4 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 27 30 80 11 00 00 00 00 00 00 D1 [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 27 30 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: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 70768 [18:30:05]StoreOFDPacket docnum=70768 [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 3E 6A 07 01 95 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 01 00 00 F4 03 04 00 AE 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9F E6 62 F9 39 00 D4 A3 40 5F F7 50 EE D4 [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/00070768 [18:30:05]NVStorageSaveData ofd_packets/00070768 [18:30:05]File name is /storage/ofd_packets/00070768 [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 28 30 58 [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 28 30 00 00 00 00 00 FF 0F 6D [18:30:05]RasterBufferAndPrint [18:30:05]line Счет N : (1)2886552 [18:30:05]line ИНН: 02508201610067 [18:30:05]line Контрольно-Кассовый Чек [18:30:05]line ПРОДАЖА [18:30:05]line ТРК (МРК, ГНК) : 42 [18:30:05]line Товар: 2710124130 [18:30:05]line Аи-92-К-5 [18:30:05]line 14.950 * 66.90 [18:30:05]line = 1000.16 [18:30:05]line НДС 12% НСП 1% [18:30:05]line > о реализуемом товаре [18:30:05]line ОКРУГЛЕНИЕ: -0.16 [18:30:05]line ИТОГО: 1000.00 [18:30:05]line Внесено: 1000.00 [18:30:05]line СДАЧА: 0.00 [18:30:05]line НСП 1% : 8.85 [18:30:05]line НДС 12% : 106.21 [18:30:05]line Наличными: 1000.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 Чек 284 23.10.2024 18:30 [18:30:05]line Смена: 196 ФФД: 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 ФД: 70768 [18:30:05]line ФПД: 175811851794688 [18:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70768&fm=175811851794688&tin=02508201610067®Number=0000000000156251&sum=100000 [18:30:06]OFD Sender: Processing packet 70768 [packets to send 18, broken 17] [18:30:06]ProducePacketName [18:30:06]name=ofd_packets/00070768 [18:30:06]OFD Sender: To server: pG, [18:30:06]CommunicateWithHost lk.salyk.kg:30040 [18:30:06]ConnectInit lk.salyk.kg [18:30:06]written 0, free lines is 4095 [18:30:06]Connected sock=10 [18: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 3E 6A 07 01 95 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 01 00 00 F4 03 04 00 AE 40 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9F E6 62 F9 39 00 D4 A3 40 5F F7 50 EE D4 [18: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 29 AC 47 00 81 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 70 14 01 00 F4 03 04 00 4B EA 18 67 B6 04 01 00 00 02 33 6E CF 1F CF 2A 2A [18:30:06]CommunicateWithHost err = 0 [18:30:06]CheckOFDResponse [18:30:06]1017 (14) - 77093643461234 [18:30:06]1041 (16) - 0000000000963346 [18:30:06]1040 (4) - 70768 [18:30:06]1012 (4) - 23.10.2024 12:21 [18:30:06]1206 (1) - 0 [18:30:06]OFD Sender: Remove packet 70768 [18:30:06]ProducePacketName [18:30:06]name=ofd_packets/00070768 [18:30:06]NVStorageDeleteData [18:30:06]Write to MH i2c: 01 00 00 53 30 83 [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: 01 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: 01 07 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: 01 07 00 53 30 00 00 00 00 00 F4 0C 8A [18:30:06]RasterBufferAndPrint [18:30:06]line [18:30:06]line [18:30:06]line [18:30:06]line [18:30:06]line [18:30:06]written 0, free lines is 3322 [18:30:06]MH_Cut [18:30:06]Write to MH i2c: D1 01 00 5A 30 01 5C [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: D1 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: D1 01 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: D1 01 00 5A 30 00 5B [18:30:06]Write to MH i2c: 01 00 00 5B 30 8B [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:06]OFD Sender: No OFD packet to send [18:30:07]*** Cut start [18:30:07]*** Partial cut [18:30:07]*** CUTSNS_PIN = 1 [18:30:07]*** CUTSNS_PIN = 0 [18:30:07]*** 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 5B 30 00 00 00 00 00 FF 0F A0 [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 5C 30 80 11 00 00 00 00 00 00 06 [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 5C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [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 5D 30 80 13 00 00 00 00 00 00 09 [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 5D 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 70 14 01 00 0E 04 04 00 C4 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 C4 [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 70 14 01 00 0E 04 04 00 C4 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 [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 5E 30 80 13 01 00 00 00 00 00 0B [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 0E 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 0E 00 5E 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 98 [18:30:08]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:30:08]wFMCommunicate OK [18:30:08]SAM_PROTO_GetShiftState done [18:30:08]FM_GetShiftState done [18:30:08]req_shift_opened done [18:30:08]requested_item shift.open_date is exist - process it [18:30:08]req_shift_open_date [18:30:08]req_shift_open_date done [18:30:08]produce_requested_data done [18:30:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70768,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:30:08]process_action_free close_receipt [18:30:08]json_value_free [18:30:08]json_value_free done [18:30:08]process_json_proto returns [18:30:08]Send response to host [18:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70768,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:30:08]free response buf [18:30:08]execute_script done [18:30:08]execute_script returns [18:30:08]free content buf [18:30:08]Sock 7.Close socket [18:30:08]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:25]accept exits with 9 [18:32:25]New connection [18:32:25]New thread 3066891620 created [18:32:25]Thread 3067034980 joined [18:32:25]Waiting for new connection... [18:32:25] Sock 9.Parse request [18:32:25]Sock 9.Check first char [18:32:25]Sock 9.First char is OK [18:32:25]request: POST /json_proto HTTP/1.0 [18:32:25]Method: POST [18:32:25]URL: /json_proto [18:32:25]Method is POST - this is cgi request [18:32:25]url: /json_proto [18:32:25]query_string will be loaded in cgi processing [18:32:25]execute_cgi json_proto POST (null) [18:32:25]execute_cgi path=json_proto method=POST [18:32:25]POST find Content-Length [18:32:25]Host: 172.17.50.3:8080 [18:32:25]Content-Length: 793 [18:32:25]Content-Type: application/json [18:32:25] [18:32:25]POST finish read [18:32:25]Found Content-Length = 793 [18:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886553", "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\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" ] } } [18:32:25]execute_script... [18:32: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)2886553", "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\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" ] } } [18:32:25]POST & json_proto [18:32:25]process_json_proto [18:32:25]json parsed OK: [18:32:25]protocol is kg_v1.0 [18:32:25]action value=close_receipt [18:32:25]process_action close_receipt [18:32:25]cmd_close_receipt [18:32:25]MH_GetDate [18:32:25]Write to MH i2c: F0 00 00 5F 30 7E [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: F0 09 00 5F 30 00 3C 41 19 67 6B 98 1E 66 0B [18:32:25]GetLastDocTimeStamp 1729708206 [18:32:25]current date 1729708348 [18:32:25]FM_GetShiftState [18:32:25]SAM_PROTO_GetShiftState [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 13 01 00 [18:32:25]Write to MH i2c: E2 08 00 60 30 80 13 01 00 00 00 00 00 0D [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 60 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 9A [18:32:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetShiftState done [18:32:25]FM_GetShiftState done [18:32:25]opened in 1729642435 [18:32:25]opened+sec_in_day 1729728835 [18:32:25]quantity*price = 0 [18:32:25]sum+1 = 1 [18:32: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 СНО: Общий режим Чек 285 23.10.2024 18:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 03526 ФМ: 0000000000963346 ФД: 70769 ФПД: 277122733365262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70769&fm=277122733365262&tin=02508201610067®Number=0000000000156251&sum=0 [18:32:27]StoreToDocumentArchive [18:32:27]shift 196 fd 70769 [18:32:27]save to /storage/0196/doc_00070769 [18:32:27]save last doc name /storage/0196/doc_00070769 to /storage/kkm_last_doc_name [18:32:27]save OK [18:32:27]Clear old archive folders... [18:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:27]tlvbuf is 001DF180 [18:32:27]SAM_PROTO_ClearQueue [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 09 00 00 [18:32:27]Write to MH i2c: E2 08 00 6D 30 80 09 00 00 00 00 00 00 0F [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [18:32:27]RAPDU: 90 00 [18:32:27]wFMCommunicate OK [18:32:27]SAM_PROTO_ClearQueue done [18:32:27]KKMCreateOFDPacket [18:32:27]OFDProtocolAddRootSTLVToBuf [18:32:27]FM_MakeSignedData [18:32:27]FM_MakeSignedData [18:32:27]SAM_PROTO_SignData [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 0D 01 02 [18:32:27]Write to MH i2c: E2 08 00 6E 30 80 0D 01 02 00 00 00 00 17 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [18:32:27]RAPDU: 90 00 [18:32:27]wFMCommunicate OK [18:32:27]wFMCommunicate request_size=255 [18:32:27]MH_SAM_APDU [18:32: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 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 1D 01 00 00 F4 03 04 00 3C 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FC [18:32:27]Write to MH i2c: E2 02 01 6F 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 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 1D 01 00 00 F4 03 04 00 3C 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FC 00 00 21 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 6F 30 00 90 00 13 [18:32:27]RAPDU: 90 00 [18:32:27]wFMCommunicate OK [18:32:27]wFMCommunicate request_size=10 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 0D 02 02 05 0A AA 14 D8 0E [18:32:27]Write to MH i2c: E2 0D 00 70 30 80 0D 02 02 05 00 0A AA 14 D8 0E 00 00 D2 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 03 00 70 30 00 90 00 14 [18:32:27]RAPDU: 90 00 [18:32:27]wFMCommunicate OK [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 0D 03 02 [18:32:27]Write to MH i2c: E2 08 00 71 30 80 0D 03 02 00 00 00 00 1C [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 0B 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 0B 00 71 30 00 C3 C7 F7 C5 1B 67 3F B5 90 00 D9 [18:32:27]RAPDU: C3 C7 F7 C5 1B 67 3F B5 90 00 [18:32:27]wFMCommunicate OK [18:32:27]SAM_PROTO_SignData done [18:32:27]FM_MakeSignedData done [18:32:27]CreateOFDProtocolMessage [18:32:27]wFMCommunicate request_size=4 [18:32:27]MH_SAM_APDU [18:32:27]CAPDU: 80 11 00 00 [18:32:27]Write to MH i2c: E2 08 00 72 30 80 11 00 00 00 00 00 00 1C [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:27]Read from MH i2c: E2 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: E2 17 00 72 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [18:32: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:32:27]wFMCommunicate OK [18:32:27]CreateOFDProtocolMessage done [18:32:27]OFDSenderStorePacket 70769 [18:32:27]StoreOFDPacket docnum=70769 [18:32: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 97 95 07 01 99 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 01 00 00 F4 03 04 00 3C 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FC 0A AA 14 D8 0E C3 C7 F7 C5 1B 67 3F B5 [18:32:27]CheckFolder [18:32:27]dirname=/storage/ofd_packets [18:32:27]CheckFolder done [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00070769 [18:32:27]NVStorageSaveData ofd_packets/00070769 [18:32:27]File name is /storage/ofd_packets/00070769 [18:32:27]Write 301 bytes [18:32:27]NVStorageSaveData done [18:32:27]OFDSenderStorePacket done [18:32:27]KKMCreateOFDPacket done [18:32:27]NVStorageSaveData kkm_last_timestamp [18:32:27]File name is /storage/kkm_last_timestamp [18:32:27]Write 4 bytes [18:32:27]NVStorageSaveData done [18:32:27]ExternCall_PrintAddStr [18:32:27]wPrintStart [18:32:27]Write to MH i2c: 01 00 00 73 30 A3 [18:32:27]Write i2c OK [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 [18:32:27]MH_I2C_Read... [18:32:27]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 FF 0F B8 [18:32:27]RasterBufferAndPrint [18:32:27]line Счет N : (1)2886553 [18:32:27]line ИНН: 02508201610067 [18:32:27]line Контрольно-Кассовый Чек [18:32:27]line ПРОДАЖА [18:32:27]line ТРК (МРК, ГНК) : 32 [18:32:27]line Товар: 2710124130 [18:32:27]line Аи-92-К-5 [18:32:27]line 30.000 * 0.00 [18:32:27]line = 0.00 [18:32:27]line НДС 12% НСП 1% [18:32:27]line > о реализуемом товаре [18:32:27]line ИТОГО: 0.00 [18:32:27]line НСП 1% : 0.00 [18:32:27]line НДС 12% : 0.00 [18:32:27]line Наличными: 0.00 [18:32:27]line Безнал.: 0.00 [18:32:27]line Место: АЗС № 85 "Партнер Нефть" [18:32:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:32:27]line СНО: Общий режим [18:32:27]line Чек 285 23.10.2024 18:32 [18:32:27]line Смена: 196 ФФД: 1.0 [18:32:27]line ЗНМ: 0300000167 [18:32:27]line РНМ: 0000000000156251 [18:32:27]line Версия ККМ: v1.0 [18:32:27]line Талоны: Топливная Карта [18:32:27]line 03526 [18:32:27]line ФМ: 0000000000963346 [18:32:27]line ФД: 70769 [18:32:27]line ФПД: 277122733365262 [18:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70769&fm=277122733365262&tin=02508201610067®Number=0000000000156251&sum=0 [18:32:27]OFD Sender: Processing packet 70769 [packets to send 18, broken 17] [18:32:27]ProducePacketName [18:32:27]name=ofd_packets/00070769 [18:32:27]OFD Sender: To server: pG, [18:32:27]CommunicateWithHost lk.salyk.kg:30040 [18:32:27]ConnectInit lk.salyk.kg [18:32:27]written 0, free lines is 4095 [18:32:28]Write to MH i2c: 01 00 00 9D 30 CD [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: 01 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: 01 07 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: 01 07 00 9D 30 00 00 00 00 00 F3 0C D3 [18:32:28]RasterBufferAndPrint [18:32:28]line [18:32:28]line [18:32:28]line [18:32:28]line [18:32:28]line [18:32:28]written 0, free lines is 3320 [18:32:28]MH_Cut [18:32:28]Write to MH i2c: D1 01 00 A4 30 01 A6 [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: D1 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: D1 01 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: D1 01 00 A4 30 00 A5 [18:32:28]Write to MH i2c: 01 00 00 A5 30 D5 [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:29]*** Cut start [18:32:29]*** Partial cut [18:32:29]*** CUTSNS_PIN = 1 [18:32:29]*** CUTSNS_PIN = 0 [18:32:29]*** Brake cut motor [18:32:29]Read from MH i2c: 01 [18:32:29]MH_I2C_Read... [18:32:29]*** Stop cut motor [18:32:29]*** Cut end [18:32:29]Read from MH i2c: 01 07 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: 01 07 00 A5 30 00 00 00 00 00 FF 0F EA [18:32:29]process_action close_receipt done [18:32:29]requested_data is exist [18:32:29]produce_requested_data [18:32:29]requested_item fm.sn is exist - process it [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 11 00 00 [18:32:29]Write to MH i2c: E2 08 00 A6 30 80 11 00 00 00 00 00 00 50 [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:29]Read from MH i2c: E2 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 17 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 17 00 A6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [18:32: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:32:29]wFMCommunicate OK [18:32:29]requested_item fd.num is exist - process it [18:32:29]SAM_PROTO_GetFieldsCounters [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 13 00 00 [18:32:29]Write to MH i2c: E2 08 00 A7 30 80 13 00 00 00 00 00 00 53 [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:29]Read from MH i2c: E2 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 62 00 [18:32:29]MH_I2C_Read... [18:32:29]Read from MH i2c: E2 62 00 A7 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 71 14 01 00 0E 04 04 00 C4 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 12 [18:32: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 71 14 01 00 0E 04 04 00 C4 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 [18:32:29]wFMCommunicate OK [18:32:29]SAM_PROTO_GetFieldsCounters done [18:32:29]requested_item shift.num is exist - process it [18:32:29]requested_item shift.opened is exist - process it [18:32:29]req_shift_opened [18:32:29]FM_GetShiftState [18:32:29]SAM_PROTO_GetShiftState [18:32:29]wFMCommunicate request_size=4 [18:32:29]MH_SAM_APDU [18:32:29]CAPDU: 80 13 01 00 [18:32:29]Write to MH i2c: E2 08 00 A8 30 80 13 01 00 00 00 00 00 55 [18:32:29]Write i2c OK [18:32:29]MH_I2C_Read... [18:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:30]Read from MH i2c: E2 [18:32:30]MH_I2C_Read... [18:32:30]Read from MH i2c: E2 0E 00 [18:32:30]MH_I2C_Read... [18:32:30]Read from MH i2c: E2 0E 00 A8 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E2 [18:32:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:32:30]wFMCommunicate OK [18:32:30]SAM_PROTO_GetShiftState done [18:32:30]FM_GetShiftState done [18:32:30]req_shift_opened done [18:32:30]requested_item shift.open_date is exist - process it [18:32:30]req_shift_open_date [18:32:30]req_shift_open_date done [18:32:30]produce_requested_data done [18:32:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70769,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:32:30]process_action_free close_receipt [18:32:30]json_value_free [18:32:30]json_value_free done [18:32:30]process_json_proto returns [18:32:30]Send response to host [18:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70769,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:32:30]free response buf [18:32:30]execute_script done [18:32:30]execute_script returns [18:32:30]free content buf [18:32:30]Sock 9.Close socket [18:32:30]Sock 9.Thread stoped [18:33:17]accept exits with 7 [18:33:17]New connection [18:33:17]New thread 3067034980 created [18:33:17]Thread 3066891620 joined [18:33:17]Waiting for new connection... [18:33:17] Sock 7.Parse request [18:33:17]Sock 7.Check first char [18:33:17]Sock 7.First char is OK [18:33:17]request: POST /json_proto HTTP/1.0 [18:33:17]Method: POST [18:33:17]URL: /json_proto [18:33:17]Method is POST - this is cgi request [18:33:17]url: /json_proto [18:33:17]query_string will be loaded in cgi processing [18:33:17]execute_cgi json_proto POST (null) [18:33:17]execute_cgi path=json_proto method=POST [18:33:17]POST find Content-Length [18:33:17]Host: 172.17.50.3:8080 [18:33:17]Content-Length: 683 [18:33:17]Content-Type: application/json [18:33:17] [18:33:17]POST finish read [18:33:17]Found Content-Length = 683 [18:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886554", "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" ] } } [18:33:17]execute_script... [18:33: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)2886554", "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" ] } } [18:33:17]POST & json_proto [18:33:17]process_json_proto [18:33:17]json parsed OK: [18:33:17]protocol is kg_v1.0 [18:33:17]action value=close_receipt [18:33:17]process_action close_receipt [18:33:17]cmd_close_receipt [18:33:17]MH_GetDate [18:33:17]Write to MH i2c: F0 00 00 A9 30 C8 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: F0 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: F0 09 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: F0 09 00 A9 30 00 6F 41 19 67 6B 98 1E 66 88 [18:33:17]GetLastDocTimeStamp 1729708348 [18:33:17]current date 1729708399 [18:33:17]FM_GetShiftState [18:33:17]SAM_PROTO_GetShiftState [18:33:17]wFMCommunicate request_size=4 [18:33:17]MH_SAM_APDU [18:33:17]CAPDU: 80 13 01 00 [18:33:17]Write to MH i2c: E2 08 00 AA 30 80 13 01 00 00 00 00 00 57 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:17]Read from MH i2c: E2 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 0E 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 0E 00 AA 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E4 [18:33:17]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:33:17]wFMCommunicate OK [18:33:17]SAM_PROTO_GetShiftState done [18:33:17]FM_GetShiftState done [18:33:17]opened in 1729642435 [18:33:17]opened+sec_in_day 1729728835 [18:33:17]quantity*price = 100015 [18:33:17]sum+1 = 100017 [18:33: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 СНО: Общий режим Чек 286 23.10.2024 18:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70770 ФПД: 124899913617142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70770&fm=124899913617142&tin=02508201610067®Number=0000000000156251&sum=100000 [18:33:18]StoreToDocumentArchive [18:33:18]shift 196 fd 70770 [18:33:18]save to /storage/0196/doc_00070770 [18:33:18]save last doc name /storage/0196/doc_00070770 to /storage/kkm_last_doc_name [18:33:18]save OK [18:33:18]Clear old archive folders... [18:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:18]tlvbuf is 00179300 [18:33:18]SAM_PROTO_ClearQueue [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 09 00 00 [18:33:18]Write to MH i2c: E2 08 00 B7 30 80 09 00 00 00 00 00 00 59 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 B7 30 00 90 00 5B [18:33:18]RAPDU: 90 00 [18:33:18]wFMCommunicate OK [18:33:18]SAM_PROTO_ClearQueue done [18:33:18]KKMCreateOFDPacket [18:33:18]OFDProtocolAddRootSTLVToBuf [18:33:18]FM_MakeSignedData [18:33:18]FM_MakeSignedData [18:33:18]SAM_PROTO_SignData [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 0D 01 02 [18:33:18]Write to MH i2c: E2 08 00 B8 30 80 0D 01 02 00 00 00 00 61 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 B8 30 00 90 00 5C [18:33:18]RAPDU: 90 00 [18:33:18]wFMCommunicate OK [18:33:18]wFMCommunicate request_size=255 [18:33:18]MH_SAM_APDU [18:33: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 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 1E 01 00 00 F4 03 04 00 6F 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 71 [18:33:18]Write to MH i2c: E2 02 01 B9 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 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 1E 01 00 00 F4 03 04 00 6F 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 71 00 00 EF [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 B9 30 00 90 00 5D [18:33:18]RAPDU: 90 00 [18:33:18]wFMCommunicate OK [18:33:18]wFMCommunicate request_size=10 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 0D 02 02 05 98 86 FB CE F6 [18:33:18]Write to MH i2c: E2 0D 00 BA 30 80 0D 02 02 05 00 98 86 FB CE F6 00 00 4B [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 03 00 BA 30 00 90 00 5E [18:33:18]RAPDU: 90 00 [18:33:18]wFMCommunicate OK [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 0D 03 02 [18:33:18]Write to MH i2c: E2 08 00 BB 30 80 0D 03 02 00 00 00 00 66 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:19]Read from MH i2c: E2 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 0B 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 0B 00 BB 30 00 C5 83 E7 DE C0 25 77 18 90 00 E8 [18:33:19]RAPDU: C5 83 E7 DE C0 25 77 18 90 00 [18:33:19]wFMCommunicate OK [18:33:19]SAM_PROTO_SignData done [18:33:19]FM_MakeSignedData done [18:33:19]CreateOFDProtocolMessage [18:33:19]wFMCommunicate request_size=4 [18:33:19]MH_SAM_APDU [18:33:19]CAPDU: 80 11 00 00 [18:33:19]Write to MH i2c: E2 08 00 BC 30 80 11 00 00 00 00 00 00 66 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:19]Read from MH i2c: E2 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 17 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 17 00 BC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [18:33: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:33:19]wFMCommunicate OK [18:33:19]CreateOFDProtocolMessage done [18:33:19]OFDSenderStorePacket 70770 [18:33:19]StoreOFDPacket docnum=70770 [18:33: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 B0 B8 07 01 50 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 01 00 00 F4 03 04 00 6F 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 71 98 86 FB CE F6 C5 83 E7 DE C0 25 77 18 [18:33:19]CheckFolder [18:33:19]dirname=/storage/ofd_packets [18:33:19]CheckFolder done [18:33:19]ProducePacketName [18:33:19]name=ofd_packets/00070770 [18:33:19]NVStorageSaveData ofd_packets/00070770 [18:33:19]File name is /storage/ofd_packets/00070770 [18:33:19]Write 301 bytes [18:33:19]NVStorageSaveData done [18:33:19]OFDSenderStorePacket done [18:33:19]KKMCreateOFDPacket done [18:33:19]NVStorageSaveData kkm_last_timestamp [18:33:19]File name is /storage/kkm_last_timestamp [18:33:19]Write 4 bytes [18:33:19]NVStorageSaveData done [18:33:19]ExternCall_PrintAddStr [18:33:19]wPrintStart [18:33:19]Write to MH i2c: 01 00 00 BD 30 ED [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 07 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 07 00 BD 30 00 00 00 00 00 FF 0F 02 [18:33:19]RasterBufferAndPrint [18:33:19]line Счет N : (1)2886554 [18:33:19]line ИНН: 02508201610067 [18:33:19]line Контрольно-Кассовый Чек [18:33:19]line ПРОДАЖА [18:33:19]line ТРК (МРК, ГНК) : 12 [18:33:19]line Товар: 2710124130 [18:33:19]line Аи-92-К-5 [18:33:19]line 14.950 * 66.90 [18:33:19]line = 1000.16 [18:33:19]line НДС 12% НСП 1% [18:33:19]line > о реализуемом товаре [18:33:19]line ОКРУГЛЕНИЕ: -0.16 [18:33:19]line ИТОГО: 1000.00 [18:33:19]line Внесено: 1000.00 [18:33:19]line СДАЧА: 0.00 [18:33:19]line НСП 1% : 8.85 [18:33:19]line НДС 12% : 106.21 [18:33:19]line Наличными: 1000.00 [18:33:19]line Безнал.: 0.00 [18:33:19]line Место: АЗС № 85 "Партнер Нефть" [18:33:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:33:19]line СНО: Общий режим [18:33:19]line Чек 286 23.10.2024 18:33 [18:33:19]line Смена: 196 ФФД: 1.0 [18:33:19]line ЗНМ: 0300000167 [18:33:19]line РНМ: 0000000000156251 [18:33:19]line Версия ККМ: v1.0 [18:33:19]line ФМ: 0000000000963346 [18:33:19]line ФД: 70770 [18:33:19]line ФПД: 124899913617142 [18:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70770&fm=124899913617142&tin=02508201610067®Number=0000000000156251&sum=100000 [18:33:19]written 0, free lines is 4095 [18:33:19]Write to MH i2c: 01 00 00 E8 30 18 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 07 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 07 00 E8 30 00 00 00 00 00 D8 0C 03 [18:33:19]RasterBufferAndPrint [18:33:19]line [18:33:19]line [18:33:19]line [18:33:19]line [18:33:19]line [18:33:19]written 0, free lines is 3292 [18:33:19]MH_Cut [18:33:19]Write to MH i2c: D1 01 00 EF 30 01 F1 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: D1 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: D1 01 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: D1 01 00 EF 30 00 F0 [18:33:19]Write to MH i2c: 01 00 00 F0 30 20 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:20]*** Cut start [18:33:20]*** Partial cut [18:33:20]*** CUTSNS_PIN = 1 [18:33:20]*** CUTSNS_PIN = 0 [18:33:20]*** Brake cut motor [18:33:21]Read from MH i2c: 01 [18:33:21]MH_I2C_Read... [18:33:21]*** Stop cut motor [18:33:21]*** Cut end [18:33:21]Read from MH i2c: 01 07 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: 01 07 00 F0 30 00 00 00 00 00 FF 0F 35 [18:33:21]process_action close_receipt done [18:33:21]requested_data is exist [18:33:21]produce_requested_data [18:33:21]requested_item fm.sn is exist - process it [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 11 00 00 [18:33:21]Write to MH i2c: E2 08 00 F1 30 80 11 00 00 00 00 00 00 9B [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 17 00 [18:33:21]MH_I2C_Read... [18:33:21]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 [18:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:33:21]wFMCommunicate OK [18:33:21]requested_item fd.num is exist - process it [18:33:21]SAM_PROTO_GetFieldsCounters [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 13 00 00 [18:33:21]Write to MH i2c: E2 08 00 F2 30 80 13 00 00 00 00 00 00 9E [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 62 00 [18:33:21]MH_I2C_Read... [18:33:21]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 72 14 01 00 0E 04 04 00 C4 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 61 [18:33: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 72 14 01 00 0E 04 04 00 C4 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 [18:33:21]wFMCommunicate OK [18:33:21]SAM_PROTO_GetFieldsCounters done [18:33:21]requested_item shift.num is exist - process it [18:33:21]requested_item shift.opened is exist - process it [18:33:21]req_shift_opened [18:33:21]FM_GetShiftState [18:33:21]SAM_PROTO_GetShiftState [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 13 01 00 [18:33:21]Write to MH i2c: E2 08 00 F3 30 80 13 01 00 00 00 00 00 A0 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 0E 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 0E 00 F3 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2D [18:33:21]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:33:21]wFMCommunicate OK [18:33:21]SAM_PROTO_GetShiftState done [18:33:21]FM_GetShiftState done [18:33:21]req_shift_opened done [18:33:21]requested_item shift.open_date is exist - process it [18:33:21]req_shift_open_date [18:33:21]req_shift_open_date done [18:33:21]produce_requested_data done [18:33:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70770,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:33:21]process_action_free close_receipt [18:33:21]json_value_free [18:33:21]json_value_free done [18:33:21]process_json_proto returns [18:33:21]Send response to host [18:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70770,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:33:21]free response buf [18:33:21]execute_script done [18:33:21]execute_script returns [18:33:21]free content buf [18:33:21]Sock 7.Close socket [18:33:21]Sock 7.Thread stoped [18:34:40]ConnectInit Can't connect to host [18:34:40]CommunicateWithHost connect error [18:34:40]CommunicateWithHost err = -1 [18:34:40]OFD Sender: Server communicate error [18:34:40]OFD Sender: Processing packet 70769 [packets to send 19, broken 17] [18:34:40]ProducePacketName [18:34:40]name=ofd_packets/00070769 [18:34:40]OFD Sender: To server: pG, [18:34:40]CommunicateWithHost lk.salyk.kg:30040 [18:34:40]ConnectInit lk.salyk.kg [18:34:40]Connected sock=7 [18:34: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 97 95 07 01 99 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 01 00 00 F4 03 04 00 3C 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FC 0A AA 14 D8 0E C3 C7 F7 C5 1B 67 3F B5 [18:34: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 41 BC 47 00 40 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 71 14 01 00 F4 03 04 00 5D EB 18 67 B6 04 01 00 00 8A 22 21 E6 69 9B 89 45 [18:34:40]CommunicateWithHost err = 0 [18:34:40]CheckOFDResponse [18:34:40]1017 (14) - 77093643461234 [18:34:40]1041 (16) - 0000000000963346 [18:34:40]1040 (4) - 70769 [18:34:40]1012 (4) - 23.10.2024 12:26 [18:34:40]1206 (1) - 0 [18:34:40]OFD Sender: Remove packet 70769 [18:34:40]ProducePacketName [18:34:40]name=ofd_packets/00070769 [18:34:40]NVStorageDeleteData [18:34:41]OFD Sender: Processing packet 70770 [packets to send 18, broken 17] [18:34:41]ProducePacketName [18:34:41]name=ofd_packets/00070770 [18:34:41]OFD Sender: To server: pG, [18:34:41]CommunicateWithHost lk.salyk.kg:30040 [18:34:41]ConnectInit lk.salyk.kg [18:34:41]Connected sock=7 [18:34: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 B0 B8 07 01 50 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 01 00 00 F4 03 04 00 6F 41 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 71 98 86 FB CE F6 C5 83 E7 DE C0 25 77 18 [18:34: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 D9 FA 47 00 BE 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 72 14 01 00 F4 03 04 00 5E EB 18 67 B6 04 01 00 00 B1 C0 85 D3 D7 D2 40 F2 [18:34:41]CommunicateWithHost err = 0 [18:34:41]CheckOFDResponse [18:34:41]1017 (14) - 77093643461234 [18:34:41]1041 (16) - 0000000000963346 [18:34:41]1040 (4) - 70770 [18:34:41]1012 (4) - 23.10.2024 12:26 [18:34:41]1206 (1) - 0 [18:34:41]OFD Sender: Remove packet 70770 [18:34:41]ProducePacketName [18:34:41]name=ofd_packets/00070770 [18:34:41]NVStorageDeleteData [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:23]accept exits with 9 [18:37:23]New connection [18:37:23]New thread 3066891620 created [18:37:23]Thread 3067034980 joined [18:37:23]Waiting for new connection... [18:37:23] Sock 9.Parse request [18:37:23]Sock 9.Check first char [18:37:23]Sock 9.First char is OK [18:37:23]request: POST /json_proto HTTP/1.0 [18:37:23]Method: POST [18:37:23]URL: /json_proto [18:37:23]Method is POST - this is cgi request [18:37:23]url: /json_proto [18:37:23]query_string will be loaded in cgi processing [18:37:23]execute_cgi json_proto POST (null) [18:37:23]execute_cgi path=json_proto method=POST [18:37:23]POST find Content-Length [18:37:23]Host: 172.17.50.3:8080 [18:37:23]Content-Length: 686 [18:37:23]Content-Type: application/json [18:37:23] [18:37:23]POST finish read [18:37:23]Found Content-Length = 686 [18:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886555", "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" ] } } [18:37:23]execute_script... [18:37: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)2886555", "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" ] } } [18:37:23]POST & json_proto [18:37:23]process_json_proto [18:37:23]json parsed OK: [18:37:23]protocol is kg_v1.0 [18:37:23]action value=close_receipt [18:37:23]process_action close_receipt [18:37:23]cmd_close_receipt [18:37:23]MH_GetDate [18:37:23]Write to MH i2c: F0 00 00 F4 30 13 [18:37:23]Write i2c OK [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: F0 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: F0 09 00 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: F0 09 00 F4 30 00 65 42 19 67 6B 98 1E 66 CA [18:37:23]GetLastDocTimeStamp 1729708399 [18:37:23]current date 1729708645 [18:37:23]FM_GetShiftState [18:37:23]SAM_PROTO_GetShiftState [18:37:23]wFMCommunicate request_size=4 [18:37:23]MH_SAM_APDU [18:37:23]CAPDU: 80 13 01 00 [18:37:23]Write to MH i2c: E2 08 00 F5 30 80 13 01 00 00 00 00 00 A2 [18:37:23]Write i2c OK [18:37:23]MH_I2C_Read... [18:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:23]Read from MH i2c: E2 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: E2 0E 00 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: E2 0E 00 F5 30 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2F [18:37:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:37:23]wFMCommunicate OK [18:37:23]SAM_PROTO_GetShiftState done [18:37:23]FM_GetShiftState done [18:37:23]opened in 1729642435 [18:37:23]opened+sec_in_day 1729728835 [18:37:23]quantity*price = 200023 [18:37:23]sum+1 = 200025 [18:37:23]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 СНО: Общий режим Чек 287 23.10.2024 18:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70771 ФПД: 194491046037835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70771&fm=194491046037835&tin=02508201610067®Number=0000000000156251&sum=200000 [18:37:24]StoreToDocumentArchive [18:37:24]shift 196 fd 70771 [18:37:24]save to /storage/0196/doc_00070771 [18:37:24]save last doc name /storage/0196/doc_00070771 to /storage/kkm_last_doc_name [18:37:24]save OK [18:37:24]Clear old archive folders... [18:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:37:24]tlvbuf is 0020C290 [18:37:24]SAM_PROTO_ClearQueue [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 09 00 00 [18:37:24]Write to MH i2c: E2 08 00 02 31 80 09 00 00 00 00 00 00 A5 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 02 31 00 90 00 A7 [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]SAM_PROTO_ClearQueue done [18:37:24]KKMCreateOFDPacket [18:37:24]OFDProtocolAddRootSTLVToBuf [18:37:24]FM_MakeSignedData [18:37:24]FM_MakeSignedData [18:37:24]SAM_PROTO_SignData [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 01 02 [18:37:24]Write to MH i2c: E2 08 00 03 31 80 0D 01 02 00 00 00 00 AD [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 03 31 00 90 00 A8 [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=255 [18:37:24]MH_SAM_APDU [18:37: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 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 1F 01 00 00 F4 03 04 00 65 42 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B0 E3 [18:37:24]Write to MH i2c: E2 02 01 04 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 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 1F 01 00 00 F4 03 04 00 65 42 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B0 E3 00 00 AD [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 04 31 00 90 00 A9 [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=9 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 02 02 04 79 B6 09 4B [18:37:24]Write to MH i2c: E2 0C 00 05 31 80 0D 02 02 04 00 79 B6 09 4B 00 00 3B [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 05 31 00 90 00 AA [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 03 02 [18:37:24]Write to MH i2c: E2 08 00 06 31 80 0D 03 02 00 00 00 00 B2 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 0B 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 0B 00 06 31 00 1D 92 3C AA 6F E7 B5 75 90 00 C8 [18:37:24]RAPDU: 1D 92 3C AA 6F E7 B5 75 90 00 [18:37:24]wFMCommunicate OK [18:37:24]SAM_PROTO_SignData done [18:37:24]FM_MakeSignedData done [18:37:24]CreateOFDProtocolMessage [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 11 00 00 [18:37:24]Write to MH i2c: E2 08 00 07 31 80 11 00 00 00 00 00 00 B2 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 17 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 17 00 07 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [18:37: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:37:24]wFMCommunicate OK [18:37:24]CreateOFDProtocolMessage done [18:37:24]OFDSenderStorePacket 70771 [18:37:24]StoreOFDPacket docnum=70771 [18:37: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 16 38 06 01 D5 16 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 1F 01 00 00 F4 03 04 00 65 42 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B0 E3 79 B6 09 4B 1D 92 3C AA 6F E7 B5 75 [18:37:24]CheckFolder [18:37:24]dirname=/storage/ofd_packets [18:37:24]CheckFolder done [18:37:24]ProducePacketName [18:37:24]name=ofd_packets/00070771 [18:37:24]NVStorageSaveData ofd_packets/00070771 [18:37:24]File name is /storage/ofd_packets/00070771 [18:37:24]Write 300 bytes [18:37:24]NVStorageSaveData done [18:37:24]OFDSenderStorePacket done [18:37:24]KKMCreateOFDPacket done [18:37:24]NVStorageSaveData kkm_last_timestamp [18:37:24]File name is /storage/kkm_last_timestamp [18:37:24]Write 4 bytes [18:37:24]NVStorageSaveData done [18:37:24]ExternCall_PrintAddStr [18:37:24]wPrintStart [18:37:24]Write to MH i2c: 01 00 00 08 31 39 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 07 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 07 00 08 31 00 00 00 00 00 FF 0F 4E [18:37:24]RasterBufferAndPrint [18:37:24]line Счет N : (1)2886555 [18:37:24]line ИНН: 02508201610067 [18:37:24]line Контрольно-Кассовый Чек [18:37:24]line ПРОДАЖА [18:37:24]line ТРК (МРК, ГНК) : 71 [18:37:24]line Товар: 2711129700 [18:37:24]line ГАЗ-К-3 [18:37:24]line 51.420 * 38.90 [18:37:24]line = 2000.24 [18:37:24]line НДС 12% НСП 1% [18:37:24]line > о реализуемом товаре [18:37:24]line ОКРУГЛЕНИЕ: -0.24 [18:37:24]line ИТОГО: 2000.00 [18:37:24]line Внесено: 2000.00 [18:37:24]line СДАЧА: 0.00 [18:37:24]line НСП 1% : 17.70 [18:37:24]line НДС 12% : 212.41 [18:37:24]line Наличными: 2000.00 [18:37:24]line Безнал.: 0.00 [18:37:24]line Место: АЗС № 85 "Партнер Нефть" [18:37:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:37:24]line СНО: Общий режим [18:37:24]line Чек 287 23.10.2024 18:37 [18:37:24]line Смена: 196 ФФД: 1.0 [18:37:24]line ЗНМ: 0300000167 [18:37:24]line РНМ: 0000000000156251 [18:37:24]line Версия ККМ: v1.0 [18:37:24]line ФМ: 0000000000963346 [18:37:24]line ФД: 70771 [18:37:24]line ФПД: 194491046037835 [18:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70771&fm=194491046037835&tin=02508201610067®Number=0000000000156251&sum=200000 [18:37:25]OFD Sender: Processing packet 70771 [packets to send 18, broken 17] [18:37:25]ProducePacketName [18:37:25]name=ofd_packets/00070771 [18:37:25]OFD Sender: To server: pG, [18:37:25]CommunicateWithHost lk.salyk.kg:30040 [18:37:25]ConnectInit lk.salyk.kg [18:37:25]written 0, free lines is 4095 [18:37:25]Connected sock=10 [18:37: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 16 38 06 01 D5 16 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 1F 01 00 00 F4 03 04 00 65 42 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B0 E3 79 B6 09 4B 1D 92 3C AA 6F E7 B5 75 [18:37: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 E4 61 47 00 95 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 73 14 01 00 F4 03 04 00 02 EC 18 67 B6 04 01 00 00 2C 3F 06 E7 D1 5D 94 F6 [18:37:25]CommunicateWithHost err = 0 [18:37:25]CheckOFDResponse [18:37:25]1017 (14) - 77093643461234 [18:37:25]1041 (16) - 0000000000963346 [18:37:25]1040 (4) - 70771 [18:37:25]1012 (4) - 23.10.2024 12:28 [18:37:25]1206 (1) - 0 [18:37:25]OFD Sender: Remove packet 70771 [18:37:25]ProducePacketName [18:37:25]name=ofd_packets/00070771 [18:37:25]NVStorageDeleteData [18:37:25]Write to MH i2c: 01 00 00 33 31 64 [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 07 00 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 07 00 33 31 00 00 00 00 00 EA 0C 61 [18:37:25]RasterBufferAndPrint [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]written 0, free lines is 3312 [18:37:25]MH_Cut [18:37:25]Write to MH i2c: D1 01 00 3A 31 01 3D [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 01 00 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 01 00 3A 31 00 3C [18:37:25]Write to MH i2c: 01 00 00 3B 31 6C [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]OFD Sender: No OFD packet to send [18:37:26]*** Cut start [18:37:26]*** Partial cut [18:37:26]*** CUTSNS_PIN = 1 [18:37:26]*** CUTSNS_PIN = 0 [18:37:26]*** Brake cut motor [18:37:26]Read from MH i2c: 01 [18:37:26]MH_I2C_Read... [18:37:26]*** Stop cut motor [18:37:26]*** Cut end [18:37:26]Read from MH i2c: 01 07 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: 01 07 00 3B 31 00 00 00 00 00 FF 0F 81 [18:37:26]process_action close_receipt done [18:37:26]requested_data is exist [18:37:26]produce_requested_data [18:37:26]requested_item fm.sn is exist - process it [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 11 00 00 [18:37:26]Write to MH i2c: E2 08 00 3C 31 80 11 00 00 00 00 00 00 E7 [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:26]Read from MH i2c: E2 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 17 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 17 00 3C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [18: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 [18:37:26]wFMCommunicate OK [18:37:26]requested_item fd.num is exist - process it [18:37:26]SAM_PROTO_GetFieldsCounters [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 13 00 00 [18:37:26]Write to MH i2c: E2 08 00 3D 31 80 13 00 00 00 00 00 00 EA [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 62 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 62 00 3D 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 73 14 01 00 0E 04 04 00 C4 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 B1 [18:37: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 73 14 01 00 0E 04 04 00 C4 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 [18:37:27]wFMCommunicate OK [18:37:27]SAM_PROTO_GetFieldsCounters done [18:37:27]requested_item shift.num is exist - process it [18:37:27]requested_item shift.opened is exist - process it [18:37:27]req_shift_opened [18:37:27]FM_GetShiftState [18:37:27]SAM_PROTO_GetShiftState [18:37:27]wFMCommunicate request_size=4 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 13 01 00 [18:37:27]Write to MH i2c: E2 08 00 3E 31 80 13 01 00 00 00 00 00 EC [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 0E 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 0E 00 3E 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 79 [18:37:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:37:27]wFMCommunicate OK [18:37:27]SAM_PROTO_GetShiftState done [18:37:27]FM_GetShiftState done [18:37:27]req_shift_opened done [18:37:27]requested_item shift.open_date is exist - process it [18:37:27]req_shift_open_date [18:37:27]req_shift_open_date done [18:37:27]produce_requested_data done [18:37:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70771,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:37:27]process_action_free close_receipt [18:37:27]json_value_free [18:37:27]json_value_free done [18:37:27]process_json_proto returns [18:37:27]Send response to host [18:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70771,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:37:27]free response buf [18:37:27]execute_script done [18:37:27]execute_script returns [18:37:27]free content buf [18:37:27]Sock 9.Close socket [18:37:27]Sock 9.Thread stoped [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [18:39:10]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:55]accept exits with 7 [18:40:55]New connection [18:40:55]New thread 3067034980 created [18:40:55]Thread 3066891620 joined [18:40:55]Waiting for new connection... [18:40:55] Sock 7.Parse request [18:40:55]Sock 7.Check first char [18:40:55]Sock 7.First char is OK [18:40:55]request: POST /json_proto HTTP/1.0 [18:40:55]Method: POST [18:40:55]URL: /json_proto [18:40:55]Method is POST - this is cgi request [18:40:55]url: /json_proto [18:40:55]query_string will be loaded in cgi processing [18:40:55]execute_cgi json_proto POST (null) [18:40:55]execute_cgi path=json_proto method=POST [18:40:55]POST find Content-Length [18:40:55]Host: 172.17.50.3:8080 [18:40:55]Content-Length: 689 [18:40:55]Content-Type: application/json [18:40:55] [18:40:55]POST finish read [18:40:55]Found Content-Length = 689 [18:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886556", "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" : 20.920, "sum" : 1615.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 1615.00, "payments": [ { "type": 0, "sum" : 1615.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:55]execute_script... [18:40: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)2886556", "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" : 20.920, "sum" : 1615.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 1615.00, "payments": [ { "type": 0, "sum" : 1615.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:55]POST & json_proto [18:40:55]process_json_proto [18:40:55]json parsed OK: [18:40:55]protocol is kg_v1.0 [18:40:55]action value=close_receipt [18:40:55]process_action close_receipt [18:40:55]cmd_close_receipt [18:40:55]MH_GetDate [18:40:55]Write to MH i2c: F0 00 00 3F 31 5F [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: F0 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: F0 09 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: F0 09 00 3F 31 00 3A 43 19 67 6B 98 1E 66 EC [18:40:55]GetLastDocTimeStamp 1729708645 [18:40:55]current date 1729708858 [18:40:55]FM_GetShiftState [18:40:55]SAM_PROTO_GetShiftState [18:40:55]wFMCommunicate request_size=4 [18:40:55]MH_SAM_APDU [18:40:55]CAPDU: 80 13 01 00 [18:40:55]Write to MH i2c: E2 08 00 40 31 80 13 01 00 00 00 00 00 EE [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:56]Read from MH i2c: E2 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: E2 0E 00 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: E2 0E 00 40 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 7B [18:40:56]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:40:56]wFMCommunicate OK [18:40:56]SAM_PROTO_GetShiftState done [18:40:56]FM_GetShiftState done [18:40:56]opened in 1729642435 [18:40:56]opened+sec_in_day 1729728835 [18:40:56]quantity*price = 161502 [18:40:56]sum+1 = 161503 [18:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1615.00 Внесено: 7000.00 СДАЧА: 5385.00 НСП 1% : 14.29 НДС 12% : 171.51 Наличными: 1615.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 288 23.10.2024 18:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70772 ФПД: 171298186970322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70772&fm=171298186970322&tin=02508201610067®Number=0000000000156251&sum=161500 [18:40:57]StoreToDocumentArchive [18:40:57]shift 196 fd 70772 [18:40:57]save to /storage/0196/doc_00070772 [18:40:57]save last doc name /storage/0196/doc_00070772 to /storage/kkm_last_doc_name [18:40:57]save OK [18:40:57]Clear old archive folders... [18:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:40:57]tlvbuf is B6F6C680 [18:40:57]SAM_PROTO_ClearQueue [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 09 00 00 [18:40:57]Write to MH i2c: E2 08 00 4D 31 80 09 00 00 00 00 00 00 F0 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 4D 31 00 90 00 F2 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]SAM_PROTO_ClearQueue done [18:40:57]KKMCreateOFDPacket [18:40:57]OFDProtocolAddRootSTLVToBuf [18:40:57]FM_MakeSignedData [18:40:57]FM_MakeSignedData [18:40:57]SAM_PROTO_SignData [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 0D 01 02 [18:40:57]Write to MH i2c: E2 08 00 4E 31 80 0D 01 02 00 00 00 00 F8 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 4E 31 00 90 00 F3 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]wFMCommunicate request_size=255 [18:40:57]MH_SAM_APDU [18:40: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 B8 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 FF 42 00 00 00 00 07 04 06 00 DC 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 20 01 00 00 F4 03 04 00 3A 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [18:40:57]Write to MH i2c: E2 02 01 4F 31 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 B8 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 FF 42 00 00 00 00 07 04 06 00 DC 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 20 01 00 00 F4 03 04 00 3A 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 FB [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 4F 31 00 90 00 F4 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]wFMCommunicate request_size=16 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9B CB 77 95 C4 D2 [18:40:57]Write to MH i2c: E2 13 00 50 31 80 0D 02 02 0B 00 00 35 04 06 00 9B CB 77 95 C4 D2 00 00 58 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 50 31 00 90 00 F5 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 0D 03 02 [18:40:57]Write to MH i2c: E2 08 00 51 31 80 0D 03 02 00 00 00 00 FD [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 0B 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 0B 00 51 31 00 C9 12 86 9F 8B CB 21 BB 90 00 30 [18:40:57]RAPDU: C9 12 86 9F 8B CB 21 BB 90 00 [18:40:57]wFMCommunicate OK [18:40:57]SAM_PROTO_SignData done [18:40:57]FM_MakeSignedData done [18:40:57]CreateOFDProtocolMessage [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 11 00 00 [18:40:57]Write to MH i2c: E2 08 00 52 31 80 11 00 00 00 00 00 00 FD [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 17 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 17 00 52 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [18: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 [18:40:57]wFMCommunicate OK [18:40:57]CreateOFDProtocolMessage done [18:40:57]OFDSenderStorePacket 70772 [18:40:57]StoreOFDPacket docnum=70772 [18:40: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 34 80 0D 01 8E 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 B8 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 FF 42 00 00 00 00 07 04 06 00 DC 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 20 01 00 00 F4 03 04 00 3A 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B CB 77 95 C4 D2 C9 12 86 9F 8B CB 21 BB [18:40:57]CheckFolder [18:40:57]dirname=/storage/ofd_packets [18:40:57]CheckFolder done [18:40:57]ProducePacketName [18:40:57]name=ofd_packets/00070772 [18:40:57]NVStorageSaveData ofd_packets/00070772 [18:40:57]File name is /storage/ofd_packets/00070772 [18:40:57]Write 307 bytes [18:40:57]NVStorageSaveData done [18:40:57]OFDSenderStorePacket done [18:40:57]KKMCreateOFDPacket done [18:40:57]NVStorageSaveData kkm_last_timestamp [18:40:57]File name is /storage/kkm_last_timestamp [18:40:57]Write 4 bytes [18:40:57]NVStorageSaveData done [18:40:57]ExternCall_PrintAddStr [18:40:57]wPrintStart [18:40:57]Write to MH i2c: 01 00 00 53 31 84 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: 01 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: 01 07 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: 01 07 00 53 31 00 00 00 00 00 FF 0F 99 [18:40:57]RasterBufferAndPrint [18:40:57]line Счет N : (1)2886556 [18:40:57]line ИНН: 02508201610067 [18:40:57]line Контрольно-Кассовый Чек [18:40:57]line ПРОДАЖА [18:40:57]line ТРК (МРК, ГНК) : 41 [18:40:57]line Товар: 2710194240 [18:40:57]line D-ENERGY Дт-К-2 [18:40:57]line 20.920 * 77.20 [18:40:57]line = 1615.02 [18:40:57]line НДС 12% НСП 1% [18:40:57]line > о реализуемом товаре [18:40:57]line ОКРУГЛЕНИЕ: -0.02 [18:40:57]line ИТОГО: 1615.00 [18:40:57]line Внесено: 7000.00 [18:40:57]line СДАЧА: 5385.00 [18:40:57]line НСП 1% : 14.29 [18:40:57]line НДС 12% : 171.51 [18:40:57]line Наличными: 1615.00 [18:40:57]line Безнал.: 0.00 [18:40:57]line Место: АЗС № 85 "Партнер Нефть" [18:40:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:40:57]line СНО: Общий режим [18:40:57]line Чек 288 23.10.2024 18:40 [18:40:57]line Смена: 196 ФФД: 1.0 [18:40:57]line ЗНМ: 0300000167 [18:40:57]line РНМ: 0000000000156251 [18:40:57]line Версия ККМ: v1.0 [18:40:57]line ФМ: 0000000000963346 [18:40:57]line ФД: 70772 [18:40:57]line ФПД: 171298186970322 [18:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70772&fm=171298186970322&tin=02508201610067®Number=0000000000156251&sum=161500 [18:40:57]written 0, free lines is 4095 [18:40:57]OFD Sender: Processing packet 70772 [packets to send 18, broken 17] [18:40:57]ProducePacketName [18:40:57]name=ofd_packets/00070772 [18:40:57]OFD Sender: To server: pG, [18:40:58]CommunicateWithHost lk.salyk.kg:30040 [18:40:58]ConnectInit lk.salyk.kg [18:40:58]Connected sock=10 [18:40: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 34 80 0D 01 8E 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 B8 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 FF 42 00 00 00 00 07 04 06 00 DC 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 20 01 00 00 F4 03 04 00 3A 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B CB 77 95 C4 D2 C9 12 86 9F 8B CB 21 BB [18:40:58]Write to MH i2c: 01 00 00 7E 31 AF [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 07 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 07 00 7E 31 00 00 00 00 00 F6 0C B8 [18:40:58]RasterBufferAndPrint [18:40:58]line [18:40:58]line [18:40:58]line [18:40:58]line [18:40:58]line [18:40:58]written 0, free lines is 3324 [18:40:58]MH_Cut [18:40:58]Write to MH i2c: D1 01 00 85 31 01 88 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: D1 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: D1 01 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: D1 01 00 85 31 00 87 [18:40:58]Write to MH i2c: 01 00 00 86 31 B7 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40: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 5F 08 47 00 A4 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 74 14 01 00 F4 03 04 00 D7 EC 18 67 B6 04 01 00 00 AC 1C CF CB B9 B2 22 AA [18:40:58]CommunicateWithHost err = 0 [18:40:58]CheckOFDResponse [18:40:58]1017 (14) - 77093643461234 [18:40:58]1041 (16) - 0000000000963346 [18:40:58]1040 (4) - 70772 [18:40:58]1012 (4) - 23.10.2024 12:32 [18:40:58]1206 (1) - 0 [18:40:58]OFD Sender: Remove packet 70772 [18:40:58]ProducePacketName [18:40:58]name=ofd_packets/00070772 [18:40:58]NVStorageDeleteData [18:40:58]*** Cut start [18:40:58]*** Partial cut [18:40:58]*** CUTSNS_PIN = 1 [18:40:58]OFD Sender: No OFD packet to send [18:40:58]*** CUTSNS_PIN = 0 [18:40:59]*** Brake cut motor [18:40:59]Read from MH i2c: 01 [18:40:59]MH_I2C_Read... [18:40:59]*** Stop cut motor [18:40:59]*** Cut end [18:40:59]Read from MH i2c: 01 07 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 86 31 00 00 00 00 00 FF 0F CC [18:40:59]process_action close_receipt done [18:40:59]requested_data is exist [18:40:59]produce_requested_data [18:40:59]requested_item fm.sn is exist - process it [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 11 00 00 [18:40:59]Write to MH i2c: E2 08 00 87 31 80 11 00 00 00 00 00 00 32 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 17 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 17 00 87 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [18:40: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:40:59]wFMCommunicate OK [18:40:59]requested_item fd.num is exist - process it [18:40:59]SAM_PROTO_GetFieldsCounters [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 13 00 00 [18:40:59]Write to MH i2c: E2 08 00 88 31 80 13 00 00 00 00 00 00 35 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 62 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 62 00 88 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 74 14 01 00 0E 04 04 00 C4 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 00 [18:40: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 74 14 01 00 0E 04 04 00 C4 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 [18:40:59]wFMCommunicate OK [18:40:59]SAM_PROTO_GetFieldsCounters done [18:40:59]requested_item shift.num is exist - process it [18:40:59]requested_item shift.opened is exist - process it [18:40:59]req_shift_opened [18:40:59]FM_GetShiftState [18:40:59]SAM_PROTO_GetShiftState [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 13 01 00 [18:40:59]Write to MH i2c: E2 08 00 89 31 80 13 01 00 00 00 00 00 37 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 0E 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 0E 00 89 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C4 [18:40:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:40:59]wFMCommunicate OK [18:40:59]SAM_PROTO_GetShiftState done [18:40:59]FM_GetShiftState done [18:40:59]req_shift_opened done [18:40:59]requested_item shift.open_date is exist - process it [18:40:59]req_shift_open_date [18:40:59]req_shift_open_date done [18:40:59]produce_requested_data done [18:40:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70772,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:40:59]process_action_free close_receipt [18:40:59]json_value_free [18:40:59]json_value_free done [18:40:59]process_json_proto returns [18:40:59]Send response to host [18:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70772,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:40:59]free response buf [18:40:59]execute_script done [18:40:59]execute_script returns [18:40:59]free content buf [18:40:59]Sock 7.Close socket [18:40:59]Sock 7.Thread stoped [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]accept exits with 9 [18:42:38]New connection [18:42:38]New thread 3066891620 created [18:42:38]Thread 3067034980 joined [18:42:38]Waiting for new connection... [18:42:38] Sock 9.Parse request [18:42:38]Sock 9.Check first char [18:42:38]Sock 9.First char is OK [18:42:38]request: POST /json_proto HTTP/1.0 [18:42:38]Method: POST [18:42:38]URL: /json_proto [18:42:38]Method is POST - this is cgi request [18:42:38]url: /json_proto [18:42:38]query_string will be loaded in cgi processing [18:42:38]execute_cgi json_proto POST (null) [18:42:38]execute_cgi path=json_proto method=POST [18:42:38]POST find Content-Length [18:42:38]Host: 172.17.50.3:8080 [18:42:38]Content-Length: 683 [18:42:38]Content-Type: application/json [18:42:38] [18:42:38]POST finish read [18:42:38]Found Content-Length = 683 [18:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886557", "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" : 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" ] } } [18:42:38]execute_script... [18: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)2886557", "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" : 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" ] } } [18:42:38]POST & json_proto [18:42:38]process_json_proto [18:42:38]json parsed OK: [18:42:38]protocol is kg_v1.0 [18:42:38]action value=close_receipt [18:42:38]process_action close_receipt [18:42:38]cmd_close_receipt [18:42:38]MH_GetDate [18:42:38]Write to MH i2c: F0 00 00 8A 31 AA [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: F0 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: F0 09 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: F0 09 00 8A 31 00 A1 43 19 67 6B 98 1E 66 9E [18:42:38]GetLastDocTimeStamp 1729708858 [18:42:38]current date 1729708961 [18:42:38]FM_GetShiftState [18:42:38]SAM_PROTO_GetShiftState [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 13 01 00 [18:42:38]Write to MH i2c: E2 08 00 8B 31 80 13 01 00 00 00 00 00 39 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0E 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0E 00 8B 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C6 [18:42:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:42:38]wFMCommunicate OK [18:42:38]SAM_PROTO_GetShiftState done [18:42:38]FM_GetShiftState done [18:42:38]opened in 1729642435 [18:42:38]opened+sec_in_day 1729728835 [18:42:38]quantity*price = 150056 [18:42:38]sum+1 = 150058 [18:42:38]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 СНО: Общий режим Чек 289 23.10.2024 18:42 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70773 ФПД: 12242813074560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70773&fm=12242813074560&tin=02508201610067®Number=0000000000156251&sum=150000 [18:42:40]StoreToDocumentArchive [18:42:40]shift 196 fd 70773 [18:42:40]save to /storage/0196/doc_00070773 [18:42:40]save last doc name /storage/0196/doc_00070773 to /storage/kkm_last_doc_name [18:42:40]save OK [18:42:40]Clear old archive folders... [18:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:40]tlvbuf is B6EEE910 [18:42:40]SAM_PROTO_ClearQueue [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 09 00 00 [18:42:40]Write to MH i2c: E2 08 00 98 31 80 09 00 00 00 00 00 00 3B [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 98 31 00 90 00 3D [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]SAM_PROTO_ClearQueue done [18:42:40]KKMCreateOFDPacket [18:42:40]OFDProtocolAddRootSTLVToBuf [18:42:40]FM_MakeSignedData [18:42:40]FM_MakeSignedData [18:42:40]SAM_PROTO_SignData [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 0D 01 02 [18:42:40]Write to MH i2c: E2 08 00 99 31 80 0D 01 02 00 00 00 00 43 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 99 31 00 90 00 3E [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]wFMCommunicate request_size=255 [18:42:40]MH_SAM_APDU [18:42: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 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 21 01 00 00 F4 03 04 00 A1 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B [18:42:40]Write to MH i2c: E2 02 01 9A 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 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 21 01 00 00 F4 03 04 00 A1 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B 00 00 F4 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]wFMCommunicate request_size=10 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 0D 02 02 05 22 80 86 3C 80 [18:42:40]Write to MH i2c: E2 0D 00 9B 31 80 0D 02 02 05 00 22 80 86 3C 80 00 00 34 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 0D 03 02 [18:42:40]Write to MH i2c: E2 08 00 9C 31 80 0D 03 02 00 00 00 00 48 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 0B 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 0B 00 9C 31 00 2B 43 5F 5A 18 A9 04 CE 90 00 03 [18:42:40]RAPDU: 2B 43 5F 5A 18 A9 04 CE 90 00 [18:42:40]wFMCommunicate OK [18:42:40]SAM_PROTO_SignData done [18:42:40]FM_MakeSignedData done [18:42:40]CreateOFDProtocolMessage [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 11 00 00 [18:42:40]Write to MH i2c: E2 08 00 9D 31 80 11 00 00 00 00 00 00 48 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 17 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 17 00 9D 31 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: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 [18:42:40]wFMCommunicate OK [18:42:40]CreateOFDProtocolMessage done [18:42:40]OFDSenderStorePacket 70773 [18:42:40]StoreOFDPacket docnum=70773 [18: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 0F 01 00 00 A8 78 07 01 97 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 01 00 00 F4 03 04 00 A1 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B 22 80 86 3C 80 2B 43 5F 5A 18 A9 04 CE [18:42:40]CheckFolder [18:42:40]dirname=/storage/ofd_packets [18:42:40]CheckFolder done [18:42:40]ProducePacketName [18:42:40]name=ofd_packets/00070773 [18:42:40]NVStorageSaveData ofd_packets/00070773 [18:42:40]File name is /storage/ofd_packets/00070773 [18:42:40]Write 301 bytes [18:42:40]NVStorageSaveData done [18:42:40]OFDSenderStorePacket done [18:42:40]KKMCreateOFDPacket done [18:42:40]NVStorageSaveData kkm_last_timestamp [18:42:40]File name is /storage/kkm_last_timestamp [18:42:40]Write 4 bytes [18:42:40]NVStorageSaveData done [18:42:40]ExternCall_PrintAddStr [18:42:40]wPrintStart [18:42:40]Write to MH i2c: 01 00 00 9E 31 CF [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: 01 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: 01 07 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: 01 07 00 9E 31 00 00 00 00 00 FF 0F E4 [18:42:40]RasterBufferAndPrint [18:42:40]line Счет N : (1)2886557 [18:42:40]line ИНН: 02508201610067 [18:42:40]line Контрольно-Кассовый Чек [18:42:40]line ПРОДАЖА [18:42:40]line ТРК (МРК, ГНК) : 32 [18:42:40]line Товар: 2710124130 [18:42:40]line Аи-92-К-5 [18:42:40]line 22.430 * 66.90 [18:42:40]line = 1500.57 [18:42:40]line НДС 12% НСП 1% [18:42:40]line > о реализуемом товаре [18:42:40]line ОКРУГЛЕНИЕ: -0.57 [18:42:40]line ИТОГО: 1500.00 [18:42:40]line Внесено: 1500.00 [18:42:40]line СДАЧА: 0.00 [18:42:40]line НСП 1% : 13.28 [18:42:40]line НДС 12% : 159.35 [18:42:40]line Наличными: 1500.00 [18:42:40]line Безнал.: 0.00 [18:42:40]line Место: АЗС № 85 "Партнер Нефть" [18:42:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:42:40]line СНО: Общий режим [18:42:40]line Чек 289 23.10.2024 18:42 [18:42:40]line Смена: 196 ФФД: 1.0 [18:42:40]line ЗНМ: 0300000167 [18:42:40]line РНМ: 0000000000156251 [18:42:40]line Версия ККМ: v1.0 [18:42:40]line ФМ: 0000000000963346 [18:42:40]line ФД: 70773 [18:42:40]line ФПД: 12242813074560 [18:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70773&fm=12242813074560&tin=02508201610067®Number=0000000000156251&sum=150000 [18:42:40]OFD Sender: Processing packet 70773 [packets to send 18, broken 17] [18:42:40]ProducePacketName [18:42:40]name=ofd_packets/00070773 [18:42:40]OFD Sender: To server: pG, [18:42:40]CommunicateWithHost lk.salyk.kg:30040 [18:42:40]ConnectInit lk.salyk.kg [18:42:40]written 0, free lines is 4095 [18:42:41]Connected sock=10 [18: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 0F 01 00 00 A8 78 07 01 97 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 01 00 00 F4 03 04 00 A1 43 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B 22 80 86 3C 80 2B 43 5F 5A 18 A9 04 CE [18: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 DC 4D 47 00 86 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 75 14 01 00 F4 03 04 00 3E ED 18 67 B6 04 01 00 00 43 D8 20 40 BC 5B 11 DC [18:42:41]CommunicateWithHost err = 0 [18:42:41]CheckOFDResponse [18:42:41]1017 (14) - 77093643461234 [18:42:41]1041 (16) - 0000000000963346 [18:42:41]1040 (4) - 70773 [18:42:41]1012 (4) - 23.10.2024 12:34 [18:42:41]1206 (1) - 0 [18:42:41]OFD Sender: Remove packet 70773 [18:42:41]ProducePacketName [18:42:41]name=ofd_packets/00070773 [18:42:41]NVStorageDeleteData [18:42:41]Write to MH i2c: 01 00 00 C9 31 FA [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 07 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 07 00 C9 31 00 00 00 00 00 EC 0C F9 [18:42:41]RasterBufferAndPrint [18:42:41]line [18:42:41]line [18:42:41]line [18:42:41]line [18:42:41]line [18:42:41]written 0, free lines is 3314 [18:42:41]MH_Cut [18:42:41]Write to MH i2c: D1 01 00 D0 31 01 D3 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: D1 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: D1 01 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: D1 01 00 D0 31 00 D2 [18:42:41]Write to MH i2c: 01 00 00 D1 31 02 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]OFD Sender: No OFD packet to send [18:42:42]*** Cut start [18:42:42]*** Partial cut [18:42:42]*** CUTSNS_PIN = 1 [18:42:42]*** CUTSNS_PIN = 0 [18:42:42]*** Brake cut motor [18:42:42]Read from MH i2c: 01 [18:42:42]MH_I2C_Read... [18:42:42]*** Stop cut motor [18:42:42]*** Cut end [18:42:42]Read from MH i2c: 01 07 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: 01 07 00 D1 31 00 00 00 00 00 FF 0F 17 [18:42:42]process_action close_receipt done [18:42:42]requested_data is exist [18:42:42]produce_requested_data [18:42:42]requested_item fm.sn is exist - process it [18:42:42]wFMCommunicate request_size=4 [18:42:42]MH_SAM_APDU [18:42:42]CAPDU: 80 11 00 00 [18:42:42]Write to MH i2c: E2 08 00 D2 31 80 11 00 00 00 00 00 00 7D [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:42]Read from MH i2c: E2 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 17 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 17 00 D2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [18:42: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:42:42]wFMCommunicate OK [18:42:42]requested_item fd.num is exist - process it [18:42:42]SAM_PROTO_GetFieldsCounters [18:42:42]wFMCommunicate request_size=4 [18:42:42]MH_SAM_APDU [18:42:42]CAPDU: 80 13 00 00 [18:42:42]Write to MH i2c: E2 08 00 D3 31 80 13 00 00 00 00 00 00 80 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:42]Read from MH i2c: E2 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 62 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 62 00 D3 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 75 14 01 00 0E 04 04 00 C4 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 4F [18:42: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 75 14 01 00 0E 04 04 00 C4 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 [18:42:42]wFMCommunicate OK [18:42:42]SAM_PROTO_GetFieldsCounters done [18:42:42]requested_item shift.num is exist - process it [18:42:42]requested_item shift.opened is exist - process it [18:42:42]req_shift_opened [18:42:42]FM_GetShiftState [18:42:42]SAM_PROTO_GetShiftState [18:42:42]wFMCommunicate request_size=4 [18:42:42]MH_SAM_APDU [18:42:42]CAPDU: 80 13 01 00 [18:42:42]Write to MH i2c: E2 08 00 D4 31 80 13 01 00 00 00 00 00 82 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:42]Read from MH i2c: E2 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: E2 0E 00 D4 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0F [18:42:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:42:42]wFMCommunicate OK [18:42:42]SAM_PROTO_GetShiftState done [18:42:42]FM_GetShiftState done [18:42:42]req_shift_opened done [18:42:42]requested_item shift.open_date is exist - process it [18:42:42]req_shift_open_date [18:42:42]req_shift_open_date done [18:42:42]produce_requested_data done [18:42:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70773,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:42:42]process_action_free close_receipt [18:42:42]json_value_free [18:42:42]json_value_free done [18:42:42]process_json_proto returns [18:42:42]Send response to host [18:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70773,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:42:42]free response buf [18:42:42]execute_script done [18:42:42]execute_script returns [18:42:42]free content buf [18:42:42]Sock 9.Close socket [18:42:42]Sock 9.Thread stoped [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:34]accept exits with 7 [18:44:34]New connection [18:44:34]New thread 3067034980 created [18:44:34]Thread 3066891620 joined [18:44:34]Waiting for new connection... [18:44:34] Sock 7.Parse request [18:44:34]Sock 7.Check first char [18:44:34]Sock 7.First char is OK [18:44:34]request: POST /json_proto HTTP/1.0 [18:44:34]Method: POST [18:44:34]URL: /json_proto [18:44:34]Method is POST - this is cgi request [18:44:34]url: /json_proto [18:44:34]query_string will be loaded in cgi processing [18:44:34]execute_cgi json_proto POST (null) [18:44:34]execute_cgi path=json_proto method=POST [18:44:34]POST find Content-Length [18:44:34]Host: 172.17.50.3:8080 [18:44:34]Content-Length: 678 [18:44:34]Content-Type: application/json [18:44:34] [18:44:34]POST finish read [18:44:34]Found Content-Length = 678 [18:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886558", "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" ] } } [18:44:34]execute_script... [18:44: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)2886558", "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" ] } } [18:44:34]POST & json_proto [18:44:34]process_json_proto [18:44:34]json parsed OK: [18:44:34]protocol is kg_v1.0 [18:44:34]action value=close_receipt [18:44:34]process_action close_receipt [18:44:34]cmd_close_receipt [18:44:34]MH_GetDate [18:44:34]Write to MH i2c: F0 00 00 D5 31 F5 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 D5 31 00 15 44 19 67 6B 98 1E 66 5E [18:44:34]GetLastDocTimeStamp 1729708961 [18:44:34]current date 1729709077 [18:44:34]FM_GetShiftState [18:44:34]SAM_PROTO_GetShiftState [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 13 01 00 [18:44:34]Write to MH i2c: E2 08 00 D6 31 80 13 01 00 00 00 00 00 84 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 0E 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 0E 00 D6 31 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 11 [18:44:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:44:35]wFMCommunicate OK [18:44:35]SAM_PROTO_GetShiftState done [18:44:35]FM_GetShiftState done [18:44:35]opened in 1729642435 [18:44:35]opened+sec_in_day 1729728835 [18:44:35]quantity*price = 30038 [18:44:35]sum+1 = 30039 [18:44:35]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 СНО: Общий режим Чек 290 23.10.2024 18:44 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70774 ФПД: 77028988215067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70774&fm=77028988215067&tin=02508201610067®Number=0000000000156251&sum=30000 [18:44:36]StoreToDocumentArchive [18:44:36]shift 196 fd 70774 [18:44:36]save to /storage/0196/doc_00070774 [18:44:36]save last doc name /storage/0196/doc_00070774 to /storage/kkm_last_doc_name [18:44:36]save OK [18:44:36]Clear old archive folders... [18:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:36]tlvbuf is 00146010 [18:44:36]SAM_PROTO_ClearQueue [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 09 00 00 [18:44:36]Write to MH i2c: E2 08 00 E3 31 80 09 00 00 00 00 00 00 86 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_ClearQueue done [18:44:36]KKMCreateOFDPacket [18:44:36]OFDProtocolAddRootSTLVToBuf [18:44:36]FM_MakeSignedData [18:44:36]FM_MakeSignedData [18:44:36]SAM_PROTO_SignData [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 01 02 [18:44:36]Write to MH i2c: E2 08 00 E4 31 80 0D 01 02 00 00 00 00 8E [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 E4 31 00 90 00 89 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=255 [18:44:36]MH_SAM_APDU [18:44: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 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 22 01 00 00 F4 03 04 00 15 44 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 46 [18:44:36]Write to MH i2c: E2 02 01 E5 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 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 22 01 00 00 F4 03 04 00 15 44 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 46 00 00 9C [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 E5 31 00 90 00 8A [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=10 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 02 02 05 0E B5 7A DF 1B [18:44:36]Write to MH i2c: E2 0D 00 E6 31 80 0D 02 02 05 00 0E B5 7A DF 1B 00 00 D2 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 E6 31 00 90 00 8B [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 03 02 [18:44:36]Write to MH i2c: E2 08 00 E7 31 80 0D 03 02 00 00 00 00 93 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 E7 31 00 2B 82 AF 0D F7 C1 DC FC 90 00 8D [18:44:36]RAPDU: 2B 82 AF 0D F7 C1 DC FC 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_SignData done [18:44:36]FM_MakeSignedData done [18:44:36]CreateOFDProtocolMessage [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 11 00 00 [18:44:36]Write to MH i2c: E2 08 00 E8 31 80 11 00 00 00 00 00 00 93 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 E8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [18:44: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:44:36]wFMCommunicate OK [18:44:36]CreateOFDProtocolMessage done [18:44:36]OFDSenderStorePacket 70774 [18:44:36]StoreOFDPacket docnum=70774 [18:44: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 7A B2 07 01 EB 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 22 01 00 00 F4 03 04 00 15 44 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 46 0E B5 7A DF 1B 2B 82 AF 0D F7 C1 DC FC [18:44:36]CheckFolder [18:44:36]dirname=/storage/ofd_packets [18:44:36]CheckFolder done [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00070774 [18:44:36]NVStorageSaveData ofd_packets/00070774 [18:44:36]File name is /storage/ofd_packets/00070774 [18:44:36]Write 301 bytes [18:44:36]NVStorageSaveData done [18:44:36]OFDSenderStorePacket done [18:44:36]KKMCreateOFDPacket done [18:44:36]NVStorageSaveData kkm_last_timestamp [18:44:36]File name is /storage/kkm_last_timestamp [18:44:36]Write 4 bytes [18:44:36]NVStorageSaveData done [18:44:36]ExternCall_PrintAddStr [18:44:36]wPrintStart [18:44:36]Write to MH i2c: 01 00 00 E9 31 1A [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 E9 31 00 00 00 00 00 FF 0F 2F [18:44:36]RasterBufferAndPrint [18:44:36]line Счет N : (1)2886558 [18:44:36]line ИНН: 02508201610067 [18:44:36]line Контрольно-Кассовый Чек [18:44:36]line ПРОДАЖА [18:44:36]line ТРК (МРК, ГНК) : 12 [18:44:36]line Товар: 2710124130 [18:44:36]line Аи-92-К-5 [18:44:36]line 4.490 * 66.90 [18:44:36]line = 300.38 [18:44:36]line НДС 12% НСП 1% [18:44:36]line > о реализуемом товаре [18:44:36]line ОКРУГЛЕНИЕ: -0.38 [18:44:36]line ИТОГО: 300.00 [18:44:36]line Внесено: 300.00 [18:44:36]line СДАЧА: 0.00 [18:44:36]line НСП 1% : 2.66 [18:44:36]line НДС 12% : 31.90 [18:44:36]line Наличными: 300.00 [18:44:36]line Безнал.: 0.00 [18:44:36]line Место: АЗС № 85 "Партнер Нефть" [18:44:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:44:36]line СНО: Общий режим [18:44:36]line Чек 290 23.10.2024 18:44 [18:44:36]line Смена: 196 ФФД: 1.0 [18:44:36]line ЗНМ: 0300000167 [18:44:36]line РНМ: 0000000000156251 [18:44:36]line Версия ККМ: v1.0 [18:44:36]line ФМ: 0000000000963346 [18:44:36]line ФД: 70774 [18:44:36]line ФПД: 77028988215067 [18:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70774&fm=77028988215067&tin=02508201610067®Number=0000000000156251&sum=30000 [18:44:37]OFD Sender: Processing packet 70774 [packets to send 18, broken 17] [18:44:37]ProducePacketName [18:44:37]name=ofd_packets/00070774 [18:44:37]OFD Sender: To server: pG, [18:44:37]CommunicateWithHost lk.salyk.kg:30040 [18:44:37]ConnectInit lk.salyk.kg [18:44:37]written 0, free lines is 4095 [18:44:37]Connected sock=11 [18:44: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 7A B2 07 01 EB 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 22 01 00 00 F4 03 04 00 15 44 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 46 0E B5 7A DF 1B 2B 82 AF 0D F7 C1 DC FC [18:44: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 2A D7 47 00 3F 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 76 14 01 00 F4 03 04 00 B2 ED 18 67 B6 04 01 00 00 78 1C 1B CB FA BE E4 FA [18:44:37]CommunicateWithHost err = 0 [18:44:37]CheckOFDResponse [18:44:37]1017 (14) - 77093643461234 [18:44:37]1041 (16) - 0000000000963346 [18:44:37]1040 (4) - 70774 [18:44:37]1012 (4) - 23.10.2024 12:36 [18:44:37]1206 (1) - 0 [18:44:37]OFD Sender: Remove packet 70774 [18:44:37]ProducePacketName [18:44:37]name=ofd_packets/00070774 [18:44:37]NVStorageDeleteData [18:44:37]Write to MH i2c: 01 00 00 14 32 46 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 14 32 00 00 00 00 00 E4 0C 3D [18:44:37]RasterBufferAndPrint [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]written 0, free lines is 3306 [18:44:37]MH_Cut [18:44:37]Write to MH i2c: D1 01 00 1B 32 01 1F [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 01 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 01 00 1B 32 00 1E [18:44:37]Write to MH i2c: 01 00 00 1C 32 4E [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]OFD Sender: No OFD packet to send [18:44:38]*** Cut start [18:44:38]*** Partial cut [18:44:38]*** CUTSNS_PIN = 1 [18:44:38]*** CUTSNS_PIN = 0 [18:44:38]*** Brake cut motor [18:44:38]Read from MH i2c: 01 [18:44:38]MH_I2C_Read... [18:44:38]*** Stop cut motor [18:44:38]*** Cut end [18:44:38]Read from MH i2c: 01 07 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 07 00 1C 32 00 00 00 00 00 FF 0F 63 [18:44:38]process_action close_receipt done [18:44:38]requested_data is exist [18:44:38]produce_requested_data [18:44:38]requested_item fm.sn is exist - process it [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 11 00 00 [18:44:38]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [18:44: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:44:38]wFMCommunicate OK [18:44:38]requested_item fd.num is exist - process it [18:44:38]SAM_PROTO_GetFieldsCounters [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 13 00 00 [18:44:38]Write to MH i2c: E2 08 00 1E 32 80 13 00 00 00 00 00 00 CC [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 62 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 62 00 1E 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 76 14 01 00 0E 04 04 00 C4 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 9F [18:44: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 76 14 01 00 0E 04 04 00 C4 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 [18:44:39]wFMCommunicate OK [18:44:39]SAM_PROTO_GetFieldsCounters done [18:44:39]requested_item shift.num is exist - process it [18:44:39]requested_item shift.opened is exist - process it [18:44:39]req_shift_opened [18:44:39]FM_GetShiftState [18:44:39]SAM_PROTO_GetShiftState [18:44:39]wFMCommunicate request_size=4 [18:44:39]MH_SAM_APDU [18:44:39]CAPDU: 80 13 01 00 [18:44:39]Write to MH i2c: E2 08 00 1F 32 80 13 01 00 00 00 00 00 CE [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 0E 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 0E 00 1F 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5B [18:44:39]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:44:39]wFMCommunicate OK [18:44:39]SAM_PROTO_GetShiftState done [18:44:39]FM_GetShiftState done [18:44:39]req_shift_opened done [18:44:39]requested_item shift.open_date is exist - process it [18:44:39]req_shift_open_date [18:44:39]req_shift_open_date done [18:44:39]produce_requested_data done [18:44:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70774,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:44:39]process_action_free close_receipt [18:44:39]json_value_free [18:44:39]json_value_free done [18:44:39]process_json_proto returns [18:44:39]Send response to host [18:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70774,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:44:39]free response buf [18:44:39]execute_script done [18:44:39]execute_script returns [18:44:39]free content buf [18:44:39]Sock 7.Close socket [18:44:39]Sock 7.Thread stoped [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47: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:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:25]accept exits with 9 [18:53:25]New connection [18:53:25]New thread 3066891620 created [18:53:25]Thread 3067034980 joined [18:53:25]Waiting for new connection... [18:53:25] Sock 9.Parse request [18:53:25]Sock 9.Check first char [18:53:25]Sock 9.First char is OK [18:53:25]request: POST /json_proto HTTP/1.0 [18:53:25]Method: POST [18:53:25]URL: /json_proto [18:53:25]Method is POST - this is cgi request [18:53:25]url: /json_proto [18:53:25]query_string will be loaded in cgi processing [18:53:25]execute_cgi json_proto POST (null) [18:53:25]execute_cgi path=json_proto method=POST [18:53:25]POST find Content-Length [18:53:25]Host: 172.17.50.3:8080 [18:53:25]Content-Length: 679 [18:53:25]Content-Type: application/json [18:53:25] [18:53:25]POST finish read [18:53:25]Found Content-Length = 679 [18:53:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886560", "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 }]} ], "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:53:25]execute_script... [18:53: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)2886560", "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 }]} ], "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:53:25]POST & json_proto [18:53:25]process_json_proto [18:53:25]json parsed OK: [18:53:25]protocol is kg_v1.0 [18:53:25]action value=close_receipt [18:53:25]process_action close_receipt [18:53:25]cmd_close_receipt [18:53:25]MH_GetDate [18:53:25]Write to MH i2c: F0 00 00 20 32 41 [18:53:25]Write i2c OK [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 09 00 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 09 00 20 32 00 27 46 19 67 6B 98 1E 66 BE [18:53:25]GetLastDocTimeStamp 1729709077 [18:53:25]current date 1729709607 [18:53:25]FM_GetShiftState [18:53:25]SAM_PROTO_GetShiftState [18:53:25]wFMCommunicate request_size=4 [18:53:25]MH_SAM_APDU [18:53:25]CAPDU: 80 13 01 00 [18:53:25]Write to MH i2c: E2 08 00 21 32 80 13 01 00 00 00 00 00 D0 [18:53:25]Write i2c OK [18:53:25]MH_I2C_Read... [18:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:25]Read from MH i2c: E2 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 21 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5D [18:53:25]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:53:25]wFMCommunicate OK [18:53:25]SAM_PROTO_GetShiftState done [18:53:25]FM_GetShiftState done [18:53:25]opened in 1729642435 [18:53:25]opened+sec_in_day 1729728835 [18:53:25]quantity*price = 70044 [18:53:25]sum+1 = 70045 [18:53:25]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 СНО: Общий режим Чек 291 23.10.2024 18:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70775 ФПД: 24091473403014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70775&fm=24091473403014&tin=02508201610067®Number=0000000000156251&sum=70000 [18:53:26]StoreToDocumentArchive [18:53:26]shift 196 fd 70775 [18:53:26]save to /storage/0196/doc_00070775 [18:53:26]save last doc name /storage/0196/doc_00070775 to /storage/kkm_last_doc_name [18:53:26]save OK [18:53:26]Clear old archive folders... [18:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:26]tlvbuf is 0020C150 [18:53:26]SAM_PROTO_ClearQueue [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 09 00 00 [18:53:26]Write to MH i2c: E2 08 00 2E 32 80 09 00 00 00 00 00 00 D2 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 2E 32 00 90 00 D4 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]SAM_PROTO_ClearQueue done [18:53:26]KKMCreateOFDPacket [18:53:26]OFDProtocolAddRootSTLVToBuf [18:53:26]FM_MakeSignedData [18:53:26]FM_MakeSignedData [18:53:26]SAM_PROTO_SignData [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 01 02 [18:53:26]Write to MH i2c: E2 08 00 2F 32 80 0D 01 02 00 00 00 00 DA [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 2F 32 00 90 00 D5 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=255 [18:53:26]MH_SAM_APDU [18:53: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 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 23 01 00 00 F4 03 04 00 27 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 [18:53:26]Write to MH i2c: E2 02 01 30 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 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 23 01 00 00 F4 03 04 00 27 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 00 00 E9 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 30 32 00 90 00 D6 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=10 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 02 02 05 E9 3B B6 DC 86 [18:53:26]Write to MH i2c: E2 0D 00 31 32 80 0D 02 02 05 00 E9 3B B6 DC 86 00 00 23 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 31 32 00 90 00 D7 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 03 02 [18:53:26]Write to MH i2c: E2 08 00 32 32 80 0D 03 02 00 00 00 00 DF [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 0B 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 0B 00 32 32 00 56 49 E6 46 25 EB AF 88 90 00 F2 [18:53:27]RAPDU: 56 49 E6 46 25 EB AF 88 90 00 [18:53:27]wFMCommunicate OK [18:53:27]SAM_PROTO_SignData done [18:53:27]FM_MakeSignedData done [18:53:27]CreateOFDProtocolMessage [18:53:27]wFMCommunicate request_size=4 [18:53:27]MH_SAM_APDU [18:53:27]CAPDU: 80 11 00 00 [18:53:27]Write to MH i2c: E2 08 00 33 32 80 11 00 00 00 00 00 00 DF [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 17 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 17 00 33 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [18: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 [18:53:27]wFMCommunicate OK [18:53:27]CreateOFDProtocolMessage done [18:53:27]OFDSenderStorePacket 70775 [18:53:27]StoreOFDPacket docnum=70775 [18:53: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 E0 AC 07 01 C4 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 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 23 01 00 00 F4 03 04 00 27 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 E9 3B B6 DC 86 56 49 E6 46 25 EB AF 88 [18:53:27]CheckFolder [18:53:27]dirname=/storage/ofd_packets [18:53:27]CheckFolder done [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00070775 [18:53:27]NVStorageSaveData ofd_packets/00070775 [18:53:27]File name is /storage/ofd_packets/00070775 [18:53:27]Write 301 bytes [18:53:27]NVStorageSaveData done [18:53:27]OFDSenderStorePacket done [18:53:27]KKMCreateOFDPacket done [18:53:27]NVStorageSaveData kkm_last_timestamp [18:53:27]File name is /storage/kkm_last_timestamp [18:53:27]Write 4 bytes [18:53:27]NVStorageSaveData done [18:53:27]ExternCall_PrintAddStr [18:53:27]wPrintStart [18:53:27]Write to MH i2c: 01 00 00 34 32 66 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 FF 0F 7B [18:53:27]RasterBufferAndPrint [18:53:27]line Счет N : (1)2886560 [18:53:27]line ИНН: 02508201610067 [18:53:27]line Контрольно-Кассовый Чек [18:53:27]line ПРОДАЖА [18:53:27]line ТРК (МРК, ГНК) : 42 [18:53:27]line Товар: 2710124130 [18:53:27]line Аи-92-К-5 [18:53:27]line 10.470 * 66.90 [18:53:27]line = 700.44 [18:53:27]line НДС 12% НСП 1% [18:53:27]line > о реализуемом товаре [18:53:27]line ОКРУГЛЕНИЕ: -0.44 [18:53:27]line ИТОГО: 700.00 [18:53:27]line Внесено: 700.00 [18:53:27]line СДАЧА: 0.00 [18:53:27]line НСП 1% : 6.20 [18:53:27]line НДС 12% : 74.38 [18:53:27]line Наличными: 700.00 [18:53:27]line Безнал.: 0.00 [18:53:27]line Место: АЗС № 85 "Партнер Нефть" [18:53:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:53:27]line СНО: Общий режим [18:53:27]line Чек 291 23.10.2024 18:53 [18:53:27]line Смена: 196 ФФД: 1.0 [18:53:27]line ЗНМ: 0300000167 [18:53:27]line РНМ: 0000000000156251 [18:53:27]line Версия ККМ: v1.0 [18:53:27]line ФМ: 0000000000963346 [18:53:27]line ФД: 70775 [18:53:27]line ФПД: 24091473403014 [18:53:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70775&fm=24091473403014&tin=02508201610067®Number=0000000000156251&sum=70000 [18:53:27]OFD Sender: Processing packet 70775 [packets to send 18, broken 17] [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00070775 [18:53:27]OFD Sender: To server: pG, [18:53:27]CommunicateWithHost lk.salyk.kg:30040 [18:53:27]ConnectInit lk.salyk.kg [18:53:27]written 0, free lines is 4095 [18:53:27]Connected sock=10 [18:53: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 E0 AC 07 01 C4 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 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 23 01 00 00 F4 03 04 00 27 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 15 E9 3B B6 DC 86 56 49 E6 46 25 EB AF 88 [18:53: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 DD 89 47 00 5C 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 77 14 01 00 F4 03 04 00 C4 EF 18 67 B6 04 01 00 00 96 C2 00 46 F7 76 44 C0 [18:53:27]CommunicateWithHost err = 0 [18:53:27]CheckOFDResponse [18:53:27]1017 (14) - 77093643461234 [18:53:27]1041 (16) - 0000000000963346 [18:53:27]1040 (4) - 70775 [18:53:27]1012 (4) - 23.10.2024 12:44 [18:53:27]1206 (1) - 0 [18:53:27]OFD Sender: Remove packet 70775 [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00070775 [18:53:27]NVStorageDeleteData [18:53:27]Write to MH i2c: 01 00 00 5F 32 91 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 5F 32 00 00 00 00 00 E2 0C 86 [18:53:27]RasterBufferAndPrint [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]written 0, free lines is 3304 [18:53:27]MH_Cut [18:53:27]Write to MH i2c: D1 01 00 66 32 01 6A [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 66 32 00 69 [18:53:27]Write to MH i2c: 01 00 00 67 32 99 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:28]OFD Sender: No OFD packet to send [18:53:28]*** Cut start [18:53:28]*** Partial cut [18:53:28]*** CUTSNS_PIN = 1 [18:53:28]*** CUTSNS_PIN = 0 [18:53:28]*** Brake cut motor [18:53:29]Read from MH i2c: 01 [18:53:29]MH_I2C_Read... [18:53:29]*** Stop cut motor [18:53:29]*** Cut end [18:53:29]Read from MH i2c: 01 07 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: 01 07 00 67 32 00 00 00 00 00 FF 0F AE [18:53:29]process_action close_receipt done [18:53:29]requested_data is exist [18:53:29]produce_requested_data [18:53:29]requested_item fm.sn is exist - process it [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 11 00 00 [18:53:29]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 17 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [18:53: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:53:29]wFMCommunicate OK [18:53:29]requested_item fd.num is exist - process it [18:53:29]SAM_PROTO_GetFieldsCounters [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 13 00 00 [18:53:29]Write to MH i2c: E2 08 00 69 32 80 13 00 00 00 00 00 00 17 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 62 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 62 00 69 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 77 14 01 00 0E 04 04 00 C4 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 EE [18:53: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 77 14 01 00 0E 04 04 00 C4 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 [18:53:29]wFMCommunicate OK [18:53:29]SAM_PROTO_GetFieldsCounters done [18:53:29]requested_item shift.num is exist - process it [18:53:29]requested_item shift.opened is exist - process it [18:53:29]req_shift_opened [18:53:29]FM_GetShiftState [18:53:29]SAM_PROTO_GetShiftState [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 13 01 00 [18:53:29]Write to MH i2c: E2 08 00 6A 32 80 13 01 00 00 00 00 00 19 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 0E 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 0E 00 6A 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A6 [18:53:29]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:53:29]wFMCommunicate OK [18:53:29]SAM_PROTO_GetShiftState done [18:53:29]FM_GetShiftState done [18:53:29]req_shift_opened done [18:53:29]requested_item shift.open_date is exist - process it [18:53:29]req_shift_open_date [18:53:29]req_shift_open_date done [18:53:29]produce_requested_data done [18:53:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70775,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:53:29]process_action_free close_receipt [18:53:29]json_value_free [18:53:29]json_value_free done [18:53:29]process_json_proto returns [18:53:29]Send response to host [18:53:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70775,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:53:29]free response buf [18:53:29]execute_script done [18:53:29]execute_script returns [18:53:29]free content buf [18:53:29]Sock 9.Close socket [18:53:29]Sock 9.Thread stoped [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:40]accept exits with 7 [18:53:40]New connection [18:53:40]New thread 3067034980 created [18:53:40]Thread 3066891620 joined [18:53:40]Waiting for new connection... [18:53:40] Sock 7.Parse request [18:53:40]Sock 7.Check first char [18:53:40]Sock 7.First char is OK [18:53:40]request: POST /json_proto HTTP/1.0 [18:53:40]Method: POST [18:53:40]URL: /json_proto [18:53:40]Method is POST - this is cgi request [18:53:40]url: /json_proto [18:53:40]query_string will be loaded in cgi processing [18:53:40]execute_cgi json_proto POST (null) [18:53:40]execute_cgi path=json_proto method=POST [18:53:40]POST find Content-Length [18:53:40]Host: 172.17.50.3:8080 [18:53:40]Content-Length: 686 [18:53:40]Content-Type: application/json [18:53:40] [18:53:40]POST finish read [18:53:40]Found Content-Length = 686 [18:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886559", "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" ] } } [18:53:40]execute_script... [18:53: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)2886559", "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" ] } } [18:53:40]POST & json_proto [18:53:40]process_json_proto [18:53:40]json parsed OK: [18:53:40]protocol is kg_v1.0 [18:53:40]action value=close_receipt [18:53:40]process_action close_receipt [18:53:40]cmd_close_receipt [18:53:40]MH_GetDate [18:53:40]Write to MH i2c: F0 00 00 6B 32 8C [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 09 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 09 00 6B 32 00 36 46 19 67 6B 98 1E 66 18 [18:53:40]GetLastDocTimeStamp 1729709607 [18:53:40]current date 1729709622 [18:53:40]FM_GetShiftState [18:53:40]SAM_PROTO_GetShiftState [18:53:40]wFMCommunicate request_size=4 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 13 01 00 [18:53:40]Write to MH i2c: E2 08 00 6C 32 80 13 01 00 00 00 00 00 1B [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:40]Read from MH i2c: E2 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 0E 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 0E 00 6C 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A8 [18:53:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:53:40]wFMCommunicate OK [18:53:40]SAM_PROTO_GetShiftState done [18:53:40]FM_GetShiftState done [18:53:40]opened in 1729642435 [18:53:40]opened+sec_in_day 1729728835 [18:53:40]quantity*price = 100011 [18:53:40]sum+1 = 100013 [18:53: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 СНО: Общий режим Чек 292 23.10.2024 18:53 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70776 ФПД: 279709029248081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70776&fm=279709029248081&tin=02508201610067®Number=0000000000156251&sum=100000 [18:53:41]StoreToDocumentArchive [18:53:41]shift 196 fd 70776 [18:53:41]save to /storage/0196/doc_00070776 [18:53:41]save last doc name /storage/0196/doc_00070776 to /storage/kkm_last_doc_name [18:53:41]save OK [18:53:41]Clear old archive folders... [18:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:53:41]tlvbuf is 00142380 [18:53:41]SAM_PROTO_ClearQueue [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 09 00 00 [18:53:41]Write to MH i2c: E2 08 00 79 32 80 09 00 00 00 00 00 00 1D [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 79 32 00 90 00 1F [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_ClearQueue done [18:53:41]KKMCreateOFDPacket [18:53:41]OFDProtocolAddRootSTLVToBuf [18:53:41]FM_MakeSignedData [18:53:41]FM_MakeSignedData [18:53:41]SAM_PROTO_SignData [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 01 02 [18:53:41]Write to MH i2c: E2 08 00 7A 32 80 0D 01 02 00 00 00 00 25 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 7A 32 00 90 00 20 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=255 [18:53:41]MH_SAM_APDU [18:53: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 24 01 00 00 F4 03 04 00 36 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 64 [18:53:41]Write to MH i2c: E2 02 01 7B 32 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 24 01 00 00 F4 03 04 00 36 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 64 00 00 5D [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 7B 32 00 90 00 21 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=9 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 02 02 04 D5 54 2C 51 [18:53:41]Write to MH i2c: E2 0C 00 7C 32 80 0D 02 02 04 00 D5 54 2C 51 00 00 D6 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 7C 32 00 90 00 22 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 03 02 [18:53:41]Write to MH i2c: E2 08 00 7D 32 80 0D 03 02 00 00 00 00 2A [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 7D 32 00 52 B8 57 9C E6 02 92 E1 90 00 83 [18:53:41]RAPDU: 52 B8 57 9C E6 02 92 E1 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_SignData done [18:53:41]FM_MakeSignedData done [18:53:41]CreateOFDProtocolMessage [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 11 00 00 [18:53:41]Write to MH i2c: E2 08 00 7E 32 80 11 00 00 00 00 00 00 2A [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 7E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [18:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:53:41]wFMCommunicate OK [18:53:41]CreateOFDProtocolMessage done [18:53:41]OFDSenderStorePacket 70776 [18:53:41]StoreOFDPacket docnum=70776 [18:53: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 0E 01 00 00 8F 58 06 01 72 15 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 24 01 00 00 F4 03 04 00 36 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 64 D5 54 2C 51 52 B8 57 9C E6 02 92 E1 [18:53:41]CheckFolder [18:53:41]dirname=/storage/ofd_packets [18:53:41]CheckFolder done [18:53:41]ProducePacketName [18:53:41]name=ofd_packets/00070776 [18:53:41]NVStorageSaveData ofd_packets/00070776 [18:53:41]File name is /storage/ofd_packets/00070776 [18:53:41]Write 300 bytes [18:53:41]NVStorageSaveData done [18:53:41]OFDSenderStorePacket done [18:53:41]KKMCreateOFDPacket done [18:53:41]NVStorageSaveData kkm_last_timestamp [18:53:41]File name is /storage/kkm_last_timestamp [18:53:41]Write 4 bytes [18:53:41]NVStorageSaveData done [18:53:41]ExternCall_PrintAddStr [18:53:41]wPrintStart [18:53:41]Write to MH i2c: 01 00 00 7F 32 B1 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 7F 32 00 00 00 00 00 FF 0F C6 [18:53:41]RasterBufferAndPrint [18:53:41]line Счет N : (1)2886559 [18:53:41]line ИНН: 02508201610067 [18:53:41]line Контрольно-Кассовый Чек [18:53:41]line ПРОДАЖА [18:53:41]line ТРК (МРК, ГНК) : 71 [18:53:41]line Товар: 2711129700 [18:53:41]line ГАЗ-К-3 [18:53:41]line 25.710 * 38.90 [18:53:41]line = 1000.12 [18:53:41]line НДС 12% НСП 1% [18:53:41]line > о реализуемом товаре [18:53:41]line ОКРУГЛЕНИЕ: -0.12 [18:53:41]line ИТОГО: 1000.00 [18:53:41]line Внесено: 1000.00 [18:53:41]line СДАЧА: 0.00 [18:53:41]line НСП 1% : 8.85 [18:53:41]line НДС 12% : 106.21 [18:53:41]line Наличными: 1000.00 [18:53:41]line Безнал.: 0.00 [18:53:41]line Место: АЗС № 85 "Партнер Нефть" [18:53:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:53:41]line СНО: Общий режим [18:53:41]line Чек 292 23.10.2024 18:53 [18:53:41]line Смена: 196 ФФД: 1.0 [18:53:41]line ЗНМ: 0300000167 [18:53:41]line РНМ: 0000000000156251 [18:53:41]line Версия ККМ: v1.0 [18:53:41]line ФМ: 0000000000963346 [18:53:41]line ФД: 70776 [18:53:41]line ФПД: 279709029248081 [18:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70776&fm=279709029248081&tin=02508201610067®Number=0000000000156251&sum=100000 [18:53:42]OFD Sender: Processing packet 70776 [packets to send 18, broken 17] [18:53:42]ProducePacketName [18:53:42]name=ofd_packets/00070776 [18:53:42]OFD Sender: To server: pG, [18:53:42]CommunicateWithHost lk.salyk.kg:30040 [18:53:42]ConnectInit lk.salyk.kg [18:53:42]written 0, free lines is 4095 [18:53:42]Connected sock=10 [18:53: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 8F 58 06 01 72 15 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 24 01 00 00 F4 03 04 00 36 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 FE 64 D5 54 2C 51 52 B8 57 9C E6 02 92 E1 [18:53: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 FB B7 47 00 2B 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 78 14 01 00 F4 03 04 00 D3 EF 18 67 B6 04 01 00 00 4D 58 83 78 D2 25 81 87 [18:53:42]CommunicateWithHost err = 0 [18:53:42]CheckOFDResponse [18:53:42]1017 (14) - 77093643461234 [18:53:42]1041 (16) - 0000000000963346 [18:53:42]1040 (4) - 70776 [18:53:42]1012 (4) - 23.10.2024 12:45 [18:53:42]1206 (1) - 0 [18:53:42]OFD Sender: Remove packet 70776 [18:53:42]ProducePacketName [18:53:42]name=ofd_packets/00070776 [18:53:42]NVStorageDeleteData [18:53:42]Write to MH i2c: 01 00 00 AA 32 DC [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 AA 32 00 00 00 00 00 F9 0C E8 [18:53:42]RasterBufferAndPrint [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]written 0, free lines is 3327 [18:53:42]MH_Cut [18:53:42]Write to MH i2c: D1 01 00 B1 32 01 B5 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 01 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 01 00 B1 32 00 B4 [18:53:42]Write to MH i2c: 01 00 00 B2 32 E4 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:43]OFD Sender: No OFD packet to send [18:53:43]*** Cut start [18:53:43]*** Partial cut [18:53:43]*** CUTSNS_PIN = 1 [18:53:43]*** CUTSNS_PIN = 0 [18:53:43]*** Brake cut motor [18:53:44]Read from MH i2c: 01 [18:53:44]MH_I2C_Read... [18:53:44]*** Stop cut motor [18:53:44]*** Cut end [18:53:44]Read from MH i2c: 01 07 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: 01 07 00 B2 32 00 00 00 00 00 FF 0F F9 [18:53:44]process_action close_receipt done [18:53:44]requested_data is exist [18:53:44]produce_requested_data [18:53:44]requested_item fm.sn is exist - process it [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 11 00 00 [18:53:44]Write to MH i2c: E2 08 00 B3 32 80 11 00 00 00 00 00 00 5F [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 17 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 17 00 B3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [18:53: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:53:44]wFMCommunicate OK [18:53:44]requested_item fd.num is exist - process it [18:53:44]SAM_PROTO_GetFieldsCounters [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 13 00 00 [18:53:44]Write to MH i2c: E2 08 00 B4 32 80 13 00 00 00 00 00 00 62 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 62 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 62 00 B4 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 78 14 01 00 0E 04 04 00 C4 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 3D [18:53: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 78 14 01 00 0E 04 04 00 C4 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 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_GetFieldsCounters done [18:53:44]requested_item shift.num is exist - process it [18:53:44]requested_item shift.opened is exist - process it [18:53:44]req_shift_opened [18:53:44]FM_GetShiftState [18:53:44]SAM_PROTO_GetShiftState [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 13 01 00 [18:53:44]Write to MH i2c: E2 08 00 B5 32 80 13 01 00 00 00 00 00 64 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:44]Read from MH i2c: E2 0E 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0E 00 B5 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F1 [18:53:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_GetShiftState done [18:53:44]FM_GetShiftState done [18:53:44]req_shift_opened done [18:53:44]requested_item shift.open_date is exist - process it [18:53:44]req_shift_open_date [18:53:44]req_shift_open_date done [18:53:44]produce_requested_data done [18:53:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70776,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:53:44]process_action_free close_receipt [18:53:44]json_value_free [18:53:44]json_value_free done [18:53:44]process_json_proto returns [18:53:44]Send response to host [18:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70776,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:53:44]free response buf [18:53:44]execute_script done [18:53:44]execute_script returns [18:53:44]free content buf [18:53:44]Sock 7.Close socket [18:53:44]Sock 7.Thread stoped [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:31]accept exits with 9 [18:54:31]New connection [18:54:31]New thread 3066891620 created [18:54:31]Thread 3067034980 joined [18:54:31]Waiting for new connection... [18:54:31] Sock 9.Parse request [18:54:31]Sock 9.Check first char [18:54:31]Sock 9.First char is OK [18:54:31]request: POST /json_proto HTTP/1.0 [18:54:31]Method: POST [18:54:31]URL: /json_proto [18:54:31]Method is POST - this is cgi request [18:54:31]url: /json_proto [18:54:31]query_string will be loaded in cgi processing [18:54:31]execute_cgi json_proto POST (null) [18:54:31]execute_cgi path=json_proto method=POST [18:54:31]POST find Content-Length [18:54:31]Host: 172.17.50.3:8080 [18:54:31]Content-Length: 689 [18:54:31]Content-Type: application/json [18:54:31] [18:54:31]POST finish read [18:54:31]Found Content-Length = 689 [18:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886561", "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:54:31]execute_script... [18:54: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)2886561", "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:54:31]POST & json_proto [18:54:31]process_json_proto [18:54:31]json parsed OK: [18:54:31]protocol is kg_v1.0 [18:54:31]action value=close_receipt [18:54:31]process_action close_receipt [18:54:31]cmd_close_receipt [18:54:31]MH_GetDate [18:54:31]Write to MH i2c: F0 00 00 B6 32 D7 [18:54:31]Write i2c OK [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: F0 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: F0 09 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: F0 09 00 B6 32 00 69 46 19 67 6B 98 1E 66 96 [18:54:31]GetLastDocTimeStamp 1729709622 [18:54:31]current date 1729709673 [18:54:31]FM_GetShiftState [18:54:31]SAM_PROTO_GetShiftState [18:54:31]wFMCommunicate request_size=4 [18:54:31]MH_SAM_APDU [18:54:31]CAPDU: 80 13 01 00 [18:54:31]Write to MH i2c: E2 08 00 B7 32 80 13 01 00 00 00 00 00 66 [18:54:31]Write i2c OK [18:54:31]MH_I2C_Read... [18:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:31]Read from MH i2c: E2 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 0E 00 [18:54:31]MH_I2C_Read... [18:54:31]Read from MH i2c: E2 0E 00 B7 32 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F3 [18:54:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:54:31]wFMCommunicate OK [18:54:31]SAM_PROTO_GetShiftState done [18:54:31]FM_GetShiftState done [18:54:31]opened in 1729642435 [18:54:31]opened+sec_in_day 1729728835 [18:54:31]quantity*price = 100051 [18:54:31]sum+1 = 100052 [18:54: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 СНО: Общий режим Чек 293 23.10.2024 18:54 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70777 ФПД: 114594458295789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70777&fm=114594458295789&tin=02508201610067®Number=0000000000156251&sum=100000 [18:54:32]StoreToDocumentArchive [18:54:32]shift 196 fd 70777 [18:54:32]save to /storage/0196/doc_00070777 [18:54:32]save last doc name /storage/0196/doc_00070777 to /storage/kkm_last_doc_name [18:54:32]save OK [18:54:32]Clear old archive folders... [18:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:54:32]tlvbuf is 00202010 [18:54:32]SAM_PROTO_ClearQueue [18:54:32]wFMCommunicate request_size=4 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 09 00 00 [18:54:32]Write to MH i2c: E2 08 00 C4 32 80 09 00 00 00 00 00 00 68 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 C4 32 00 90 00 6A [18:54:32]RAPDU: 90 00 [18:54:32]wFMCommunicate OK [18:54:32]SAM_PROTO_ClearQueue done [18:54:32]KKMCreateOFDPacket [18:54:32]OFDProtocolAddRootSTLVToBuf [18:54:32]FM_MakeSignedData [18:54:32]FM_MakeSignedData [18:54:32]SAM_PROTO_SignData [18:54:32]wFMCommunicate request_size=4 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 0D 01 02 [18:54:32]Write to MH i2c: E2 08 00 C5 32 80 0D 01 02 00 00 00 00 70 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 C5 32 00 90 00 6B [18:54:32]RAPDU: 90 00 [18:54:32]wFMCommunicate OK [18:54:32]wFMCommunicate request_size=255 [18:54:32]MH_SAM_APDU [18:54:32]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 25 01 00 00 F4 03 04 00 69 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [18:54:32]Write to MH i2c: E2 02 01 C6 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 25 01 00 00 F4 03 04 00 69 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 69 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 C6 32 00 90 00 6C [18:54:32]RAPDU: 90 00 [18:54:32]wFMCommunicate OK [18:54:32]wFMCommunicate request_size=16 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 68 39 19 FA DD ED [18:54:32]Write to MH i2c: E2 13 00 C7 32 80 0D 02 02 0B 00 00 35 04 06 00 68 39 19 FA DD ED 00 00 46 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 03 00 C7 32 00 90 00 6D [18:54:32]RAPDU: 90 00 [18:54:32]wFMCommunicate OK [18:54:32]wFMCommunicate request_size=4 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 0D 03 02 [18:54:32]Write to MH i2c: E2 08 00 C8 32 80 0D 03 02 00 00 00 00 75 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 0B 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 0B 00 C8 32 00 1D 14 CB E7 F0 1B 6A 33 90 00 01 [18:54:32]RAPDU: 1D 14 CB E7 F0 1B 6A 33 90 00 [18:54:32]wFMCommunicate OK [18:54:32]SAM_PROTO_SignData done [18:54:32]FM_MakeSignedData done [18:54:32]CreateOFDProtocolMessage [18:54:32]wFMCommunicate request_size=4 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 11 00 00 [18:54:32]Write to MH i2c: E2 08 00 C9 32 80 11 00 00 00 00 00 00 75 [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:33]Read from MH i2c: E2 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 17 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 17 00 C9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [18:54: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:54:33]wFMCommunicate OK [18:54:33]CreateOFDProtocolMessage done [18:54:33]OFDSenderStorePacket 70777 [18:54:33]StoreOFDPacket docnum=70777 [18:54: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 50 8E 0D 01 3C 71 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 25 01 00 00 F4 03 04 00 69 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 68 39 19 FA DD ED 1D 14 CB E7 F0 1B 6A 33 [18:54:33]CheckFolder [18:54:33]dirname=/storage/ofd_packets [18:54:33]CheckFolder done [18:54:33]ProducePacketName [18:54:33]name=ofd_packets/00070777 [18:54:33]NVStorageSaveData ofd_packets/00070777 [18:54:33]File name is /storage/ofd_packets/00070777 [18:54:33]Write 307 bytes [18:54:33]NVStorageSaveData done [18:54:33]OFDSenderStorePacket done [18:54:33]KKMCreateOFDPacket done [18:54:33]NVStorageSaveData kkm_last_timestamp [18:54:33]File name is /storage/kkm_last_timestamp [18:54:33]Write 4 bytes [18:54:33]NVStorageSaveData done [18:54:33]ExternCall_PrintAddStr [18:54:33]wPrintStart [18:54:33]Write to MH i2c: 01 00 00 CA 32 FC [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 07 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 07 00 CA 32 00 00 00 00 00 FF 0F 11 [18:54:33]RasterBufferAndPrint [18:54:33]line Счет N : (1)2886561 [18:54:33]line ИНН: 02508201610067 [18:54:33]line Контрольно-Кассовый Чек [18:54:33]line ПРОДАЖА [18:54:33]line ТРК (МРК, ГНК) : 21 [18:54:33]line Товар: 2710194240 [18:54:33]line D-ENERGY Дт-К-2 [18:54:33]line 12.960 * 77.20 [18:54:33]line = 1000.51 [18:54:33]line НДС 12% НСП 1% [18:54:33]line > о реализуемом товаре [18:54:33]line ОКРУГЛЕНИЕ: -0.51 [18:54:33]line ИТОГО: 1000.00 [18:54:33]line Внесено: 1000.00 [18:54:33]line СДАЧА: 0.00 [18:54:33]line НСП 1% : 8.85 [18:54:33]line НДС 12% : 106.25 [18:54:33]line Наличными: 1000.00 [18:54:33]line Безнал.: 0.00 [18:54:33]line Место: АЗС № 85 "Партнер Нефть" [18:54:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:54:33]line СНО: Общий режим [18:54:33]line Чек 293 23.10.2024 18:54 [18:54:33]line Смена: 196 ФФД: 1.0 [18:54:33]line ЗНМ: 0300000167 [18:54:33]line РНМ: 0000000000156251 [18:54:33]line Версия ККМ: v1.0 [18:54:33]line ФМ: 0000000000963346 [18:54:33]line ФД: 70777 [18:54:33]line ФПД: 114594458295789 [18:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70777&fm=114594458295789&tin=02508201610067®Number=0000000000156251&sum=100000 [18:54:33]OFD Sender: Processing packet 70777 [packets to send 18, broken 17] [18:54:33]ProducePacketName [18:54:33]name=ofd_packets/00070777 [18:54:33]OFD Sender: To server: pG, [18:54:33]CommunicateWithHost lk.salyk.kg:30040 [18:54:33]ConnectInit lk.salyk.kg [18:54:33]written 0, free lines is 4095 [18:54:33]Connected sock=10 [18:54: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 15 01 00 00 50 8E 0D 01 3C 71 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 25 01 00 00 F4 03 04 00 69 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 68 39 19 FA DD ED 1D 14 CB E7 F0 1B 6A 33 [18:54: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 8C 0A 47 00 2B 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 79 14 01 00 F4 03 04 00 06 F0 18 67 B6 04 01 00 00 6F B5 A1 7F F2 B3 4A A4 [18:54:33]CommunicateWithHost err = 0 [18:54:33]CheckOFDResponse [18:54:33]1017 (14) - 77093643461234 [18:54:33]1041 (16) - 0000000000963346 [18:54:33]1040 (4) - 70777 [18:54:33]1012 (4) - 23.10.2024 12:45 [18:54:33]1206 (1) - 0 [18:54:33]OFD Sender: Remove packet 70777 [18:54:33]ProducePacketName [18:54:33]name=ofd_packets/00070777 [18:54:33]NVStorageDeleteData [18:54:33]Write to MH i2c: 01 00 00 F5 32 27 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 07 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: 01 07 00 F5 32 00 00 00 00 00 EC 0C 26 [18:54:33]RasterBufferAndPrint [18:54:33]line [18:54:33]line [18:54:33]line [18:54:33]line [18:54:33]line [18:54:33]written 0, free lines is 3314 [18:54:33]MH_Cut [18:54:33]Write to MH i2c: D1 01 00 FC 32 01 00 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: D1 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: D1 01 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: D1 01 00 FC 32 00 FF [18:54:33]Write to MH i2c: 01 00 00 FD 32 2F [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:34]OFD Sender: No OFD packet to send [18:54:34]*** Cut start [18:54:34]*** Partial cut [18:54:34]*** CUTSNS_PIN = 1 [18:54:34]*** CUTSNS_PIN = 0 [18:54:34]*** Brake cut motor [18:54:35]Read from MH i2c: 01 [18:54:35]MH_I2C_Read... [18:54:35]*** Stop cut motor [18:54:35]*** Cut end [18:54:35]Read from MH i2c: 01 07 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: 01 07 00 FD 32 00 00 00 00 00 FF 0F 44 [18:54:35]process_action close_receipt done [18:54:35]requested_data is exist [18:54:35]produce_requested_data [18:54:35]requested_item fm.sn is exist - process it [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 11 00 00 [18:54:35]Write to MH i2c: E2 08 00 FE 32 80 11 00 00 00 00 00 00 AA [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 17 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 17 00 FE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [18:54: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:54:35]wFMCommunicate OK [18:54:35]requested_item fd.num is exist - process it [18:54:35]SAM_PROTO_GetFieldsCounters [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 13 00 00 [18:54:35]Write to MH i2c: E2 08 00 FF 32 80 13 00 00 00 00 00 00 AD [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 62 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 62 00 FF 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 79 14 01 00 0E 04 04 00 C4 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 8C [18:54: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 79 14 01 00 0E 04 04 00 C4 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 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_GetFieldsCounters done [18:54:35]requested_item shift.num is exist - process it [18:54:35]requested_item shift.opened is exist - process it [18:54:35]req_shift_opened [18:54:35]FM_GetShiftState [18:54:35]SAM_PROTO_GetShiftState [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 13 01 00 [18:54:35]Write to MH i2c: E2 08 00 00 33 80 13 01 00 00 00 00 00 B0 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0E 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0E 00 00 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3D [18:54:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_GetShiftState done [18:54:35]FM_GetShiftState done [18:54:35]req_shift_opened done [18:54:35]requested_item shift.open_date is exist - process it [18:54:35]req_shift_open_date [18:54:35]req_shift_open_date done [18:54:35]produce_requested_data done [18:54:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70777,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:54:35]process_action_free close_receipt [18:54:35]json_value_free [18:54:35]json_value_free done [18:54:35]process_json_proto returns [18:54:35]Send response to host [18:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70777,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:54:35]free response buf [18:54:35]execute_script done [18:54:35]execute_script returns [18:54:35]free content buf [18:54:35]Sock 9.Close socket [18:54:35]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:03]accept exits with 7 [18:55:03]New connection [18:55:03]New thread 3067034980 created [18:55:03]Thread 3066891620 joined [18:55:03]Waiting for new connection... [18:55:03] Sock 7.Parse request [18:55:03]Sock 7.Check first char [18:55:03]Sock 7.First char is OK [18:55:03]request: POST /json_proto HTTP/1.0 [18:55:03]Method: POST [18:55:03]URL: /json_proto [18:55:03]Method is POST - this is cgi request [18:55:03]url: /json_proto [18:55:03]query_string will be loaded in cgi processing [18:55:03]execute_cgi json_proto POST (null) [18:55:03]execute_cgi path=json_proto method=POST [18:55:03]POST find Content-Length [18:55:03]Host: 172.17.50.3:8080 [18:55:03]Content-Length: 754 [18:55:03]Content-Type: application/json [18:55:03] [18:55:03]POST finish read [18:55:03]Found Content-Length = 754 [18:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886562", "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" ] } } [18:55:03]execute_script... [18:55: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)2886562", "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" ] } } [18:55:03]POST & json_proto [18:55:03]process_json_proto [18:55:03]json parsed OK: [18:55:03]protocol is kg_v1.0 [18:55:03]action value=close_receipt [18:55:03]process_action close_receipt [18:55:03]cmd_close_receipt [18:55:03]MH_GetDate [18:55:03]Write to MH i2c: F0 00 00 01 33 23 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 09 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: F0 09 00 01 33 00 89 46 19 67 6B 98 1E 66 02 [18:55:03]GetLastDocTimeStamp 1729709673 [18:55:03]current date 1729709705 [18:55:03]FM_GetShiftState [18:55:03]SAM_PROTO_GetShiftState [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 01 00 [18:55:03]Write to MH i2c: E2 08 00 02 33 80 13 01 00 00 00 00 00 B2 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 02 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3F [18:55:03]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetShiftState done [18:55:03]FM_GetShiftState done [18:55:03]opened in 1729642435 [18:55:03]opened+sec_in_day 1729728835 [18:55:03]quantity*price = 0 [18:55:03]sum+1 = 1 [18:55: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 СНО: Общий режим Чек 294 23.10.2024 18:55 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 70778 ФПД: 178217846530097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70778&fm=178217846530097&tin=02508201610067®Number=0000000000156251&sum=0 [18:55:04]StoreToDocumentArchive [18:55:04]shift 196 fd 70778 [18:55:04]save to /storage/0196/doc_00070778 [18:55:04]save last doc name /storage/0196/doc_00070778 to /storage/kkm_last_doc_name [18:55:04]save OK [18:55:04]Clear old archive folders... [18:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:04]tlvbuf is B6EEEEF0 [18:55:04]SAM_PROTO_ClearQueue [18:55:04]wFMCommunicate request_size=4 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 09 00 00 [18:55:04]Write to MH i2c: E2 08 00 0F 33 80 09 00 00 00 00 00 00 B4 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 0F 33 00 90 00 B6 [18:55:04]RAPDU: 90 00 [18:55:04]wFMCommunicate OK [18:55:04]SAM_PROTO_ClearQueue done [18:55:04]KKMCreateOFDPacket [18:55:04]OFDProtocolAddRootSTLVToBuf [18:55:04]FM_MakeSignedData [18:55:04]FM_MakeSignedData [18:55:04]SAM_PROTO_SignData [18:55:04]wFMCommunicate request_size=4 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 0D 01 02 [18:55:04]Write to MH i2c: E2 08 00 10 33 80 0D 01 02 00 00 00 00 BC [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 10 33 00 90 00 B7 [18:55:04]RAPDU: 90 00 [18:55:04]wFMCommunicate OK [18:55:04]wFMCommunicate request_size=255 [18:55:04]MH_SAM_APDU [18:55: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 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 26 01 00 00 F4 03 04 00 89 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 [18:55:04]Write to MH i2c: E2 02 01 11 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 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 26 01 00 00 F4 03 04 00 89 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 00 00 C6 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 11 33 00 90 00 B8 [18:55:04]RAPDU: 90 00 [18:55:04]wFMCommunicate OK [18:55:04]wFMCommunicate request_size=10 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 0D 02 02 05 16 93 6F 60 31 [18:55:04]Write to MH i2c: E2 0D 00 12 33 80 0D 02 02 05 00 16 93 6F 60 31 00 00 72 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 03 00 12 33 00 90 00 B9 [18:55:04]RAPDU: 90 00 [18:55:04]wFMCommunicate OK [18:55:04]wFMCommunicate request_size=4 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 0D 03 02 [18:55:04]Write to MH i2c: E2 08 00 13 33 80 0D 03 02 00 00 00 00 C1 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 0B 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 0B 00 13 33 00 BE A4 C6 3A 4E FD 9B 37 90 00 41 [18:55:04]RAPDU: BE A4 C6 3A 4E FD 9B 37 90 00 [18:55:04]wFMCommunicate OK [18:55:04]SAM_PROTO_SignData done [18:55:04]FM_MakeSignedData done [18:55:04]CreateOFDProtocolMessage [18:55:04]wFMCommunicate request_size=4 [18:55:04]MH_SAM_APDU [18:55:04]CAPDU: 80 11 00 00 [18:55:04]Write to MH i2c: E2 08 00 14 33 80 11 00 00 00 00 00 00 C1 [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:04]Read from MH i2c: E2 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 17 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: E2 17 00 14 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [18: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 [18:55:04]wFMCommunicate OK [18:55:04]CreateOFDProtocolMessage done [18:55:04]OFDSenderStorePacket 70778 [18:55:04]StoreOFDPacket docnum=70778 [18: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 FF B3 07 01 E7 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 01 00 00 F4 03 04 00 89 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 16 93 6F 60 31 BE A4 C6 3A 4E FD 9B 37 [18:55:04]CheckFolder [18:55:04]dirname=/storage/ofd_packets [18:55:04]CheckFolder done [18:55:04]ProducePacketName [18:55:04]name=ofd_packets/00070778 [18:55:04]NVStorageSaveData ofd_packets/00070778 [18:55:04]File name is /storage/ofd_packets/00070778 [18:55:04]Write 301 bytes [18:55:04]NVStorageSaveData done [18:55:04]OFDSenderStorePacket done [18:55:04]KKMCreateOFDPacket done [18:55:04]NVStorageSaveData kkm_last_timestamp [18:55:04]File name is /storage/kkm_last_timestamp [18:55:04]Write 4 bytes [18:55:04]NVStorageSaveData done [18:55:04]ExternCall_PrintAddStr [18:55:04]wPrintStart [18:55:04]Write to MH i2c: 01 00 00 15 33 48 [18:55:04]OFD Sender: Processing packet 70778 [packets to send 18, broken 17] [18:55:04]ProducePacketName [18:55:04]name=ofd_packets/00070778 [18:55:04]OFD Sender: To server: pG, [18:55:04]CommunicateWithHost lk.salyk.kg:30040 [18:55:04]ConnectInit lk.salyk.kg [18:55:04]Write i2c OK [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: 01 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: 01 07 00 [18:55:04]MH_I2C_Read... [18:55:04]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 FF 0F 5D [18:55:04]RasterBufferAndPrint [18:55:04]line Счет N : (1)2886562 [18:55:04]line ИНН: 02508201610067 [18:55:04]line Контрольно-Кассовый Чек [18:55:04]line ПРОДАЖА [18:55:04]line ТРК (МРК, ГНК) : 32 [18:55:04]line Товар: 2710124130 [18:55:04]line Аи-92-К-5 [18:55:04]line 5.000 * 0.00 [18:55:04]line = 0.00 [18:55:04]line НДС 12% НСП 1% [18:55:04]line > о реализуемом товаре [18:55:04]line ИТОГО: 0.00 [18:55:04]line НСП 1% : 0.00 [18:55:04]line НДС 12% : 0.00 [18:55:04]line Наличными: 0.00 [18:55:04]line Безнал.: 0.00 [18:55:04]line Место: АЗС № 85 "Партнер Нефть" [18:55:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:55:04]line СНО: Общий режим [18:55:04]line Чек 294 23.10.2024 18:55 [18:55:04]line Смена: 196 ФФД: 1.0 [18:55:04]line ЗНМ: 0300000167 [18:55:04]line РНМ: 0000000000156251 [18:55:04]line Версия ККМ: v1.0 [18:55:04]line Талоны: ТК ГПНА Online [18:55:04]line 30100970 [18:55:04]line ФМ: 0000000000963346 [18:55:04]line ФД: 70778 [18:55:04]line ФПД: 178217846530097 [18:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70778&fm=178217846530097&tin=02508201610067®Number=0000000000156251&sum=0 [18:55:05]Connected sock=10 [18:55: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 FF B3 07 01 E7 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 01 00 00 F4 03 04 00 89 46 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 16 93 6F 60 31 BE A4 C6 3A 4E FD 9B 37 [18:55:05]written 0, free lines is 4095 [18:55: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 49 5F 47 00 37 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 7A 14 01 00 F4 03 04 00 26 F0 18 67 B6 04 01 00 00 EA DA 37 FB E0 FF C3 FF [18:55:05]CommunicateWithHost err = 0 [18:55:05]CheckOFDResponse [18:55:05]1017 (14) - 77093643461234 [18:55:05]1041 (16) - 0000000000963346 [18:55:05]1040 (4) - 70778 [18:55:05]1012 (4) - 23.10.2024 12:46 [18:55:05]1206 (1) - 0 [18:55:05]OFD Sender: Remove packet 70778 [18:55:05]ProducePacketName [18:55:05]name=ofd_packets/00070778 [18:55:05]NVStorageDeleteData [18:55:05]Write to MH i2c: 01 00 00 3F 33 72 [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 07 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: 01 07 00 3F 33 00 00 00 00 00 F3 0C 78 [18:55:05]RasterBufferAndPrint [18:55:05]line [18:55:05]line [18:55:05]line [18:55:05]line [18:55:05]line [18:55:05]written 0, free lines is 3321 [18:55:05]MH_Cut [18:55:05]Write to MH i2c: D1 01 00 46 33 01 4B [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: D1 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: D1 01 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: D1 01 00 46 33 00 4A [18:55:05]Write to MH i2c: 01 00 00 47 33 7A [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]OFD Sender: No OFD packet to send [18:55:06]*** Cut start [18:55:06]*** Partial cut [18:55:06]*** CUTSNS_PIN = 1 [18:55:06]*** CUTSNS_PIN = 0 [18:55:06]*** Brake cut motor [18:55:07]Read from MH i2c: 01 [18:55:07]MH_I2C_Read... [18:55:07]*** Stop cut motor [18:55:07]*** Cut end [18:55:07]Read from MH i2c: 01 07 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 47 33 00 00 00 00 00 FF 0F 8F [18:55:07]process_action close_receipt done [18:55:07]requested_data is exist [18:55:07]produce_requested_data [18:55:07]requested_item fm.sn is exist - process it [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 11 00 00 [18:55:07]Write to MH i2c: E2 08 00 48 33 80 11 00 00 00 00 00 00 F5 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 48 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [18:55: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:55:07]wFMCommunicate OK [18:55:07]requested_item fd.num is exist - process it [18:55:07]SAM_PROTO_GetFieldsCounters [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 13 00 00 [18:55:07]Write to MH i2c: E2 08 00 49 33 80 13 00 00 00 00 00 00 F8 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 62 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 62 00 49 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 7A 14 01 00 0E 04 04 00 C4 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 DB [18:55: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 7A 14 01 00 0E 04 04 00 C4 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 [18:55:07]wFMCommunicate OK [18:55:07]SAM_PROTO_GetFieldsCounters done [18:55:07]requested_item shift.num is exist - process it [18:55:07]requested_item shift.opened is exist - process it [18:55:07]req_shift_opened [18:55:07]FM_GetShiftState [18:55:07]SAM_PROTO_GetShiftState [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 13 01 00 [18:55:07]Write to MH i2c: E2 08 00 4A 33 80 13 01 00 00 00 00 00 FA [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 0E 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 0E 00 4A 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 87 [18:55:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:55:07]wFMCommunicate OK [18:55:07]SAM_PROTO_GetShiftState done [18:55:07]FM_GetShiftState done [18:55:07]req_shift_opened done [18:55:07]requested_item shift.open_date is exist - process it [18:55:07]req_shift_open_date [18:55:07]req_shift_open_date done [18:55:07]produce_requested_data done [18:55:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70778,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:55:07]process_action_free close_receipt [18:55:07]json_value_free [18:55:07]json_value_free done [18:55:07]process_json_proto returns [18:55:07]Send response to host [18:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70778,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:55:07]free response buf [18:55:07]execute_script done [18:55:07]execute_script returns [18:55:07]free content buf [18:55:07]Sock 7.Close socket [18:55:07]Sock 7.Thread stoped [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:58:57]accept exits with 9 [18:58:57]New connection [18:58:57]New thread 3066891620 created [18:58:57]Thread 3067034980 joined [18:58:57]Waiting for new connection... [18:58:57] Sock 9.Parse request [18:58:57]Sock 9.Check first char [18:58:57]Sock 9.First char is OK [18:58:57]request: POST /json_proto HTTP/1.0 [18:58:57]Method: POST [18:58:57]URL: /json_proto [18:58:57]Method is POST - this is cgi request [18:58:57]url: /json_proto [18:58:57]query_string will be loaded in cgi processing [18:58:57]execute_cgi json_proto POST (null) [18:58:57]execute_cgi path=json_proto method=POST [18:58:57]POST find Content-Length [18:58:57]Host: 172.17.50.3:8080 [18:58:57]Content-Length: 678 [18:58:57]Content-Type: application/json [18:58:57] [18:58:57]POST finish read [18:58:57]Found Content-Length = 678 [18:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886563", "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" ] } } [18:58:57]execute_script... [18:58: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)2886563", "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" ] } } [18:58:57]POST & json_proto [18:58:57]process_json_proto [18:58:57]json parsed OK: [18:58:57]protocol is kg_v1.0 [18:58:57]action value=close_receipt [18:58:57]process_action close_receipt [18:58:57]cmd_close_receipt [18:58:57]MH_GetDate [18:58:57]Write to MH i2c: F0 00 00 4B 33 6D [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: F0 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: F0 09 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: F0 09 00 4B 33 00 73 47 19 67 6B 98 1E 66 37 [18:58:57]GetLastDocTimeStamp 1729709705 [18:58:57]current date 1729709939 [18:58:57]FM_GetShiftState [18:58:57]SAM_PROTO_GetShiftState [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 13 01 00 [18:58:57]Write to MH i2c: E2 08 00 4C 33 80 13 01 00 00 00 00 00 FC [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 4C 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 89 [18:58:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_GetShiftState done [18:58:57]FM_GetShiftState done [18:58:57]opened in 1729642435 [18:58:57]opened+sec_in_day 1729728835 [18:58:57]quantity*price = 50041 [18:58:57]sum+1 = 50042 [18:58:57]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 СНО: Общий режим Чек 295 23.10.2024 18:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70779 ФПД: 18054760106155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70779&fm=18054760106155&tin=02508201610067®Number=0000000000156251&sum=50000 [18:58:58]StoreToDocumentArchive [18:58:58]shift 196 fd 70779 [18:58:58]save to /storage/0196/doc_00070779 [18:58:58]save last doc name /storage/0196/doc_00070779 to /storage/kkm_last_doc_name [18:58:58]save OK [18:58:58]Clear old archive folders... [18:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:58]tlvbuf is B6F69550 [18:58:58]SAM_PROTO_ClearQueue [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 09 00 00 [18:58:58]Write to MH i2c: E2 08 00 59 33 80 09 00 00 00 00 00 00 FE [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 59 33 00 90 00 00 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]SAM_PROTO_ClearQueue done [18:58:58]KKMCreateOFDPacket [18:58:58]OFDProtocolAddRootSTLVToBuf [18:58:58]FM_MakeSignedData [18:58:58]FM_MakeSignedData [18:58:58]SAM_PROTO_SignData [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 0D 01 02 [18:58:58]Write to MH i2c: E2 08 00 5A 33 80 0D 01 02 00 00 00 00 06 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 5A 33 00 90 00 01 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=255 [18:58:58]MH_SAM_APDU [18:58: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 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 27 01 00 00 F4 03 04 00 73 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 [18:58:58]Write to MH i2c: E2 02 01 5B 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 27 01 00 00 F4 03 04 00 73 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 00 00 55 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 5B 33 00 90 00 02 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=10 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 0D 02 02 05 6B B3 90 08 AB [18:58:58]Write to MH i2c: E2 0D 00 5C 33 80 0D 02 02 05 00 6B B3 90 08 AB 00 00 74 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 5C 33 00 90 00 03 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 0D 03 02 [18:58:58]Write to MH i2c: E2 08 00 5D 33 80 0D 03 02 00 00 00 00 0B [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0B 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0B 00 5D 33 00 DC 23 C9 D8 28 4F A9 45 90 00 11 [18:58:59]RAPDU: DC 23 C9 D8 28 4F A9 45 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_SignData done [18:58:59]FM_MakeSignedData done [18:58:59]CreateOFDProtocolMessage [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 11 00 00 [18:58:59]Write to MH i2c: E2 08 00 5E 33 80 11 00 00 00 00 00 00 0B [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 5E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [18:58: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:58:59]wFMCommunicate OK [18:58:59]CreateOFDProtocolMessage done [18:58:59]OFDSenderStorePacket 70779 [18:58:59]StoreOFDPacket docnum=70779 [18:58: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 FA 79 07 01 B9 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 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 27 01 00 00 F4 03 04 00 73 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 6B B3 90 08 AB DC 23 C9 D8 28 4F A9 45 [18:58:59]CheckFolder [18:58:59]dirname=/storage/ofd_packets [18:58:59]CheckFolder done [18:58:59]ProducePacketName [18:58:59]name=ofd_packets/00070779 [18:58:59]NVStorageSaveData ofd_packets/00070779 [18:58:59]File name is /storage/ofd_packets/00070779 [18:58:59]Write 301 bytes [18:58:59]NVStorageSaveData done [18:58:59]OFDSenderStorePacket done [18:58:59]KKMCreateOFDPacket done [18:58:59]NVStorageSaveData kkm_last_timestamp [18:58:59]File name is /storage/kkm_last_timestamp [18:58:59]Write 4 bytes [18:58:59]NVStorageSaveData done [18:58:59]ExternCall_PrintAddStr [18:58:59]wPrintStart [18:58:59]Write to MH i2c: 01 00 00 5F 33 92 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 5F 33 00 00 00 00 00 FF 0F A7 [18:58:59]RasterBufferAndPrint [18:58:59]line Счет N : (1)2886563 [18:58:59]line ИНН: 02508201610067 [18:58:59]line Контрольно-Кассовый Чек [18:58:59]line ПРОДАЖА [18:58:59]line ТРК (МРК, ГНК) : 42 [18:58:59]line Товар: 2710124130 [18:58:59]line Аи-92-К-5 [18:58:59]line 7.480 * 66.90 [18:58:59]line = 500.41 [18:58:59]line НДС 12% НСП 1% [18:58:59]line > о реализуемом товаре [18:58:59]line ОКРУГЛЕНИЕ: -0.41 [18:58:59]line ИТОГО: 500.00 [18:58:59]line Внесено: 500.00 [18:58:59]line СДАЧА: 0.00 [18:58:59]line НСП 1% : 4.43 [18:58:59]line НДС 12% : 53.14 [18:58:59]line Наличными: 500.00 [18:58:59]line Безнал.: 0.00 [18:58:59]line Место: АЗС № 85 "Партнер Нефть" [18:58:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:58:59]line СНО: Общий режим [18:58:59]line Чек 295 23.10.2024 18:58 [18:58:59]line Смена: 196 ФФД: 1.0 [18:58:59]line ЗНМ: 0300000167 [18:58:59]line РНМ: 0000000000156251 [18:58:59]line Версия ККМ: v1.0 [18:58:59]line ФМ: 0000000000963346 [18:58:59]line ФД: 70779 [18:58:59]line ФПД: 18054760106155 [18:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185859&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70779&fm=18054760106155&tin=02508201610067®Number=0000000000156251&sum=50000 [18:58:59]OFD Sender: Processing packet 70779 [packets to send 18, broken 17] [18:58:59]ProducePacketName [18:58:59]name=ofd_packets/00070779 [18:58:59]OFD Sender: To server: pG, [18:58:59]CommunicateWithHost lk.salyk.kg:30040 [18:58:59]ConnectInit lk.salyk.kg [18:58:59]written 0, free lines is 4095 [18:58:59]Connected sock=10 [18:58: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 FA 79 07 01 B9 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 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 27 01 00 00 F4 03 04 00 73 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 6B B3 90 08 AB DC 23 C9 D8 28 4F A9 45 [18:58: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 34 78 47 00 5F 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 7B 14 01 00 F4 03 04 00 10 F1 18 67 B6 04 01 00 00 88 0E 5F 29 36 EC 9B D8 [18:58:59]CommunicateWithHost err = 0 [18:58:59]CheckOFDResponse [18:58:59]1017 (14) - 77093643461234 [18:58:59]1041 (16) - 0000000000963346 [18:58:59]1040 (4) - 70779 [18:58:59]1012 (4) - 23.10.2024 12:50 [18:58:59]1206 (1) - 0 [18:58:59]OFD Sender: Remove packet 70779 [18:58:59]ProducePacketName [18:58:59]name=ofd_packets/00070779 [18:58:59]NVStorageDeleteData [18:58:59]Write to MH i2c: 01 00 00 8A 33 BD [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 8A 33 00 00 00 00 00 D9 0C A9 [18:58:59]RasterBufferAndPrint [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]written 0, free lines is 3296 [18:58:59]MH_Cut [18:58:59]Write to MH i2c: D1 01 00 91 33 01 96 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 01 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 01 00 91 33 00 95 [18:58:59]Write to MH i2c: 01 00 00 92 33 C5 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:59:00]OFD Sender: No OFD packet to send [18:59:00]*** Cut start [18:59:00]*** Partial cut [18:59:00]*** CUTSNS_PIN = 1 [18:59:00]*** CUTSNS_PIN = 0 [18:59:00]*** Brake cut motor [18:59:01]Read from MH i2c: 01 [18:59:01]MH_I2C_Read... [18:59:01]*** Stop cut motor [18:59:01]*** Cut end [18:59:01]Read from MH i2c: 01 07 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: 01 07 00 92 33 00 00 00 00 00 FF 0F DA [18:59:01]process_action close_receipt done [18:59:01]requested_data is exist [18:59:01]produce_requested_data [18:59:01]requested_item fm.sn is exist - process it [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 11 00 00 [18:59:01]Write to MH i2c: E2 08 00 93 33 80 11 00 00 00 00 00 00 40 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 17 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 17 00 93 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [18:59: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:59:01]wFMCommunicate OK [18:59:01]requested_item fd.num is exist - process it [18:59:01]SAM_PROTO_GetFieldsCounters [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 13 00 00 [18:59:01]Write to MH i2c: E2 08 00 94 33 80 13 00 00 00 00 00 00 43 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 62 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 62 00 94 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 7B 14 01 00 0E 04 04 00 C4 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 2A [18:59: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 7B 14 01 00 0E 04 04 00 C4 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 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_GetFieldsCounters done [18:59:01]requested_item shift.num is exist - process it [18:59:01]requested_item shift.opened is exist - process it [18:59:01]req_shift_opened [18:59:01]FM_GetShiftState [18:59:01]SAM_PROTO_GetShiftState [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 13 01 00 [18:59:01]Write to MH i2c: E2 08 00 95 33 80 13 01 00 00 00 00 00 45 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 95 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D2 [18:59:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_GetShiftState done [18:59:01]FM_GetShiftState done [18:59:01]req_shift_opened done [18:59:01]requested_item shift.open_date is exist - process it [18:59:01]req_shift_open_date [18:59:01]req_shift_open_date done [18:59:01]produce_requested_data done [18:59:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70779,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [18:59:01]process_action_free close_receipt [18:59:01]json_value_free [18:59:01]json_value_free done [18:59:01]process_json_proto returns [18:59:01]Send response to host [18:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70779,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [18:59:01]free response buf [18:59:01]execute_script done [18:59:01]execute_script returns [18:59:01]free content buf [18:59:01]Sock 9.Close socket [18:59:01]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:31]accept exits with 7 [19:00:31]New connection [19:00:31]New thread 3067034980 created [19:00:31]Thread 3066891620 joined [19:00:31]Waiting for new connection... [19:00:31] Sock 7.Parse request [19:00:31]Sock 7.Check first char [19:00:31]Sock 7.First char is OK [19:00:31]request: POST /json_proto HTTP/1.0 [19:00:31]Method: POST [19:00:31]URL: /json_proto [19:00:31]Method is POST - this is cgi request [19:00:31]url: /json_proto [19:00:31]query_string will be loaded in cgi processing [19:00:31]execute_cgi json_proto POST (null) [19:00:31]execute_cgi path=json_proto method=POST [19:00:31]POST find Content-Length [19:00:31]Host: 172.17.50.3:8080 [19:00:31]Content-Length: 683 [19:00:31]Content-Type: application/json [19:00:31] [19:00:31]POST finish read [19:00:31]Found Content-Length = 683 [19:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886564", "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" ] } } [19:00:31]execute_script... [19:00: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)2886564", "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" ] } } [19:00:31]POST & json_proto [19:00:31]process_json_proto [19:00:31]json parsed OK: [19:00:31]protocol is kg_v1.0 [19:00:31]action value=close_receipt [19:00:31]process_action close_receipt [19:00:31]cmd_close_receipt [19:00:31]MH_GetDate [19:00:31]Write to MH i2c: F0 00 00 96 33 B8 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 09 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 09 00 96 33 00 D2 47 19 67 6B 98 1E 66 E1 [19:00:31]GetLastDocTimeStamp 1729709939 [19:00:31]current date 1729710034 [19:00:31]FM_GetShiftState [19:00:31]SAM_PROTO_GetShiftState [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 13 01 00 [19:00:31]Write to MH i2c: E2 08 00 97 33 80 13 01 00 00 00 00 00 47 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 97 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D4 [19:00:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:00:31]wFMCommunicate OK [19:00:31]SAM_PROTO_GetShiftState done [19:00:31]FM_GetShiftState done [19:00:31]opened in 1729642435 [19:00:31]opened+sec_in_day 1729728835 [19:00:31]quantity*price = 100015 [19:00:31]sum+1 = 100017 [19:00: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 СНО: Общий режим Чек 296 23.10.2024 19:00 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70780 ФПД: 256479817340918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70780&fm=256479817340918&tin=02508201610067®Number=0000000000156251&sum=100000 [19:00:33]StoreToDocumentArchive [19:00:33]shift 196 fd 70780 [19:00:33]save to /storage/0196/doc_00070780 [19:00:33]save last doc name /storage/0196/doc_00070780 to /storage/kkm_last_doc_name [19:00:33]save OK [19:00:33]Clear old archive folders... [19:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:33]tlvbuf is 0013C150 [19:00:33]SAM_PROTO_ClearQueue [19:00:33]wFMCommunicate request_size=4 [19:00:33]MH_SAM_APDU [19:00:33]CAPDU: 80 09 00 00 [19:00:33]Write to MH i2c: E2 08 00 A4 33 80 09 00 00 00 00 00 00 49 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 A4 33 00 90 00 4B [19:00:33]RAPDU: 90 00 [19:00:33]wFMCommunicate OK [19:00:33]SAM_PROTO_ClearQueue done [19:00:33]KKMCreateOFDPacket [19:00:33]OFDProtocolAddRootSTLVToBuf [19:00:33]FM_MakeSignedData [19:00:33]FM_MakeSignedData [19:00:33]SAM_PROTO_SignData [19:00:33]wFMCommunicate request_size=4 [19:00:33]MH_SAM_APDU [19:00:33]CAPDU: 80 0D 01 02 [19:00:33]Write to MH i2c: E2 08 00 A5 33 80 0D 01 02 00 00 00 00 51 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 A5 33 00 90 00 4C [19:00:33]RAPDU: 90 00 [19:00:33]wFMCommunicate OK [19:00:33]wFMCommunicate request_size=255 [19:00:33]MH_SAM_APDU [19:00: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 28 01 00 00 F4 03 04 00 D2 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 [19:00:33]Write to MH i2c: E2 02 01 A6 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 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 28 01 00 00 F4 03 04 00 D2 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 00 00 D4 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 A6 33 00 90 00 4D [19:00:33]RAPDU: 90 00 [19:00:33]wFMCommunicate OK [19:00:33]wFMCommunicate request_size=10 [19:00:33]MH_SAM_APDU [19:00:33]CAPDU: 80 0D 02 02 05 44 5C 67 97 F6 [19:00:33]Write to MH i2c: E2 0D 00 A7 33 80 0D 02 02 05 00 44 5C 67 97 F6 00 00 F2 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 03 00 A7 33 00 90 00 4E [19:00:33]RAPDU: 90 00 [19:00:33]wFMCommunicate OK [19:00:33]wFMCommunicate request_size=4 [19:00:33]MH_SAM_APDU [19:00:33]CAPDU: 80 0D 03 02 [19:00:33]Write to MH i2c: E2 08 00 A8 33 80 0D 03 02 00 00 00 00 56 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 0B 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 0B 00 A8 33 00 C4 42 E9 15 38 23 F3 9F 90 00 48 [19:00:33]RAPDU: C4 42 E9 15 38 23 F3 9F 90 00 [19:00:33]wFMCommunicate OK [19:00:33]SAM_PROTO_SignData done [19:00:33]FM_MakeSignedData done [19:00:33]CreateOFDProtocolMessage [19:00:33]wFMCommunicate request_size=4 [19:00:33]MH_SAM_APDU [19:00:33]CAPDU: 80 11 00 00 [19:00:33]Write to MH i2c: E2 08 00 A9 33 80 11 00 00 00 00 00 00 56 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:33]Read from MH i2c: E2 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 17 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: E2 17 00 A9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [19:00: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:00:33]wFMCommunicate OK [19:00:33]CreateOFDProtocolMessage done [19:00:33]OFDSenderStorePacket 70780 [19:00:33]StoreOFDPacket docnum=70780 [19:00: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 F8 C6 07 01 11 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 28 01 00 00 F4 03 04 00 D2 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 44 5C 67 97 F6 C4 42 E9 15 38 23 F3 9F [19:00:33]CheckFolder [19:00:33]dirname=/storage/ofd_packets [19:00:33]CheckFolder done [19:00:33]ProducePacketName [19:00:33]name=ofd_packets/00070780 [19:00:33]NVStorageSaveData ofd_packets/00070780 [19:00:33]File name is /storage/ofd_packets/00070780 [19:00:33]Write 301 bytes [19:00:33]NVStorageSaveData done [19:00:33]OFDSenderStorePacket done [19:00:33]KKMCreateOFDPacket done [19:00:33]NVStorageSaveData kkm_last_timestamp [19:00:33]File name is /storage/kkm_last_timestamp [19:00:33]Write 4 bytes [19:00:33]NVStorageSaveData done [19:00:33]ExternCall_PrintAddStr [19:00:33]wPrintStart [19:00:33]Write to MH i2c: 01 00 00 AA 33 DD [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 07 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 07 00 AA 33 00 00 00 00 00 FF 0F F2 [19:00:33]RasterBufferAndPrint [19:00:33]line Счет N : (1)2886564 [19:00:33]line ИНН: 02508201610067 [19:00:33]line Контрольно-Кассовый Чек [19:00:33]line ПРОДАЖА [19:00:33]line ТРК (МРК, ГНК) : 32 [19:00:33]line Товар: 2710124130 [19:00:33]line Аи-92-К-5 [19:00:33]line 14.950 * 66.90 [19:00:33]line = 1000.16 [19:00:33]line НДС 12% НСП 1% [19:00:33]line > о реализуемом товаре [19:00:33]line ОКРУГЛЕНИЕ: -0.16 [19:00:33]line ИТОГО: 1000.00 [19:00:33]line Внесено: 1000.00 [19:00:33]line СДАЧА: 0.00 [19:00:33]line НСП 1% : 8.85 [19:00:33]line НДС 12% : 106.21 [19:00:33]line Наличными: 1000.00 [19:00:33]line Безнал.: 0.00 [19:00:33]line Место: АЗС № 85 "Партнер Нефть" [19:00:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:00:33]line СНО: Общий режим [19:00:33]line Чек 296 23.10.2024 19:00 [19:00:33]line Смена: 196 ФФД: 1.0 [19:00:33]line ЗНМ: 0300000167 [19:00:33]line РНМ: 0000000000156251 [19:00:33]line Версия ККМ: v1.0 [19:00:33]line ФМ: 0000000000963346 [19:00:33]line ФД: 70780 [19:00:33]line ФПД: 256479817340918 [19:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70780&fm=256479817340918&tin=02508201610067®Number=0000000000156251&sum=100000 [19:00:33]OFD Sender: Processing packet 70780 [packets to send 18, broken 17] [19:00:33]ProducePacketName [19:00:33]name=ofd_packets/00070780 [19:00:33]OFD Sender: To server: pG, [19:00:33]CommunicateWithHost lk.salyk.kg:30040 [19:00:33]ConnectInit lk.salyk.kg [19:00:33]written 0, free lines is 4095 [19:00:33]Connected sock=10 [19:00: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 F8 C6 07 01 11 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 28 01 00 00 F4 03 04 00 D2 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 44 5C 67 97 F6 C4 42 E9 15 38 23 F3 9F [19:00: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 67 AA 47 00 6D 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 7C 14 01 00 F4 03 04 00 6F F1 18 67 B6 04 01 00 00 59 51 6C 90 FD 8B 32 74 [19:00:34]CommunicateWithHost err = 0 [19:00:34]CheckOFDResponse [19:00:34]1017 (14) - 77093643461234 [19:00:34]1041 (16) - 0000000000963346 [19:00:34]1040 (4) - 70780 [19:00:34]1012 (4) - 23.10.2024 12:51 [19:00:34]1206 (1) - 0 [19:00:34]OFD Sender: Remove packet 70780 [19:00:34]ProducePacketName [19:00:34]name=ofd_packets/00070780 [19:00:34]NVStorageDeleteData [19:00:34]Write to MH i2c: 01 00 00 D5 33 08 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: 01 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: 01 07 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 EB 0C 06 [19:00:34]RasterBufferAndPrint [19:00:34]line [19:00:34]line [19:00:34]line [19:00:34]line [19:00:34]line [19:00:34]written 0, free lines is 3313 [19:00:34]MH_Cut [19:00:34]Write to MH i2c: D1 01 00 DC 33 01 E1 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: D1 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: D1 01 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: D1 01 00 DC 33 00 E0 [19:00:34]Write to MH i2c: 01 00 00 DD 33 10 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]OFD Sender: No OFD packet to send [19:00:35]*** Cut start [19:00:35]*** Partial cut [19:00:35]*** CUTSNS_PIN = 1 [19:00:35]*** CUTSNS_PIN = 0 [19:00:35]*** Brake cut motor [19:00:35]Read from MH i2c: 01 [19:00:35]MH_I2C_Read... [19:00:35]*** Stop cut motor [19:00:35]*** Cut end [19:00:35]Read from MH i2c: 01 07 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: 01 07 00 DD 33 00 00 00 00 00 FF 0F 25 [19:00:35]process_action close_receipt done [19:00:35]requested_data is exist [19:00:35]produce_requested_data [19:00:35]requested_item fm.sn is exist - process it [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 11 00 00 [19:00:35]Write to MH i2c: E2 08 00 DE 33 80 11 00 00 00 00 00 00 8B [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 17 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 17 00 DE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [19:00: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:00:35]wFMCommunicate OK [19:00:35]requested_item fd.num is exist - process it [19:00:35]SAM_PROTO_GetFieldsCounters [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 00 00 [19:00:35]Write to MH i2c: E2 08 00 DF 33 80 13 00 00 00 00 00 00 8E [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 62 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 62 00 DF 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 7C 14 01 00 0E 04 04 00 C4 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 79 [19:00: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 14 01 00 0E 04 04 00 C4 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 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetFieldsCounters done [19:00:35]requested_item shift.num is exist - process it [19:00:35]requested_item shift.opened is exist - process it [19:00:35]req_shift_opened [19:00:35]FM_GetShiftState [19:00:35]SAM_PROTO_GetShiftState [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 01 00 [19:00:35]Write to MH i2c: E2 08 00 E0 33 80 13 01 00 00 00 00 00 90 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 E0 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [19:00:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetShiftState done [19:00:35]FM_GetShiftState done [19:00:35]req_shift_opened done [19:00:35]requested_item shift.open_date is exist - process it [19:00:35]req_shift_open_date [19:00:35]req_shift_open_date done [19:00:35]produce_requested_data done [19:00:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70780,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:00:35]process_action_free close_receipt [19:00:35]json_value_free [19:00:35]json_value_free done [19:00:35]process_json_proto returns [19:00:35]Send response to host [19:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70780,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:00:35]free response buf [19:00:35]execute_script done [19:00:35]execute_script returns [19:00:35]free content buf [19:00:35]Sock 7.Close socket [19:00:35]Sock 7.Thread stoped [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:14]accept exits with 9 [19:01:14]New connection [19:01:14]New thread 3066891620 created [19:01:14]Thread 3067034980 joined [19:01:14]Waiting for new connection... [19:01:14] Sock 9.Parse request [19:01:14]Sock 9.Check first char [19:01:14]Sock 9.First char is OK [19:01:14]request: POST /json_proto HTTP/1.0 [19:01:14]Method: POST [19:01:14]URL: /json_proto [19:01:14]Method is POST - this is cgi request [19:01:14]url: /json_proto [19:01:14]query_string will be loaded in cgi processing [19:01:14]execute_cgi json_proto POST (null) [19:01:14]execute_cgi path=json_proto method=POST [19:01:14]POST find Content-Length [19:01:14]Host: 172.17.50.3:8080 [19:01:14]Content-Length: 770 [19:01:14]Content-Type: application/json [19:01:14] [19:01:14]POST finish read [19:01:14]Found Content-Length = 770 [19:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886565", "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" : 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" ] } } [19:01:14]execute_script... [19:01: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)2886565", "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" : 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" ] } } [19:01:14]POST & json_proto [19:01:14]process_json_proto [19:01:14]json parsed OK: [19:01:14]protocol is kg_v1.0 [19:01:14]action value=close_receipt [19:01:14]process_action close_receipt [19:01:14]cmd_close_receipt [19:01:14]MH_GetDate [19:01:14]Write to MH i2c: F0 00 00 E1 33 03 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 09 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 09 00 E1 33 00 FD 47 19 67 6B 98 1E 66 57 [19:01:14]GetLastDocTimeStamp 1729710034 [19:01:14]current date 1729710077 [19:01:14]FM_GetShiftState [19:01:14]SAM_PROTO_GetShiftState [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 01 00 [19:01:14]Write to MH i2c: E2 08 00 E2 33 80 13 01 00 00 00 00 00 92 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 E2 33 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1F [19:01:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetShiftState done [19:01:14]FM_GetShiftState done [19:01:14]opened in 1729642435 [19:01:14]opened+sec_in_day 1729728835 [19:01:14]quantity*price = 110038 [19:01:14]sum+1 = 110040 [19:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.39 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 0.00 Безнал.: 1100.39 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 297 23.10.2024 19:01 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70781 ФПД: 200474701093492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70781&fm=200474701093492&tin=02508201610067®Number=0000000000156251&sum=110039 [19:01:16]StoreToDocumentArchive [19:01:16]shift 196 fd 70781 [19:01:16]save to /storage/0196/doc_00070781 [19:01:16]save last doc name /storage/0196/doc_00070781 to /storage/kkm_last_doc_name [19:01:16]save OK [19:01:16]Clear old archive folders... [19:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:16]tlvbuf is 001908D0 [19:01:16]SAM_PROTO_ClearQueue [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 09 00 00 [19:01:16]Write to MH i2c: E2 08 00 EF 33 80 09 00 00 00 00 00 00 94 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 EF 33 00 90 00 96 [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_ClearQueue done [19:01:16]KKMCreateOFDPacket [19:01:16]OFDProtocolAddRootSTLVToBuf [19:01:16]FM_MakeSignedData [19:01:16]FM_MakeSignedData [19:01:16]SAM_PROTO_SignData [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 0D 01 02 [19:01:16]Write to MH i2c: E2 08 00 F0 33 80 0D 01 02 00 00 00 00 9C [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 F0 33 00 90 00 97 [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]wFMCommunicate request_size=255 [19:01:16]MH_SAM_APDU [19:01: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 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 29 01 00 00 F4 03 04 00 FD 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 [19:01:16]Write to MH i2c: E2 02 01 F1 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 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 29 01 00 00 F4 03 04 00 FD 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 00 00 10 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 F1 33 00 90 00 98 [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]wFMCommunicate request_size=10 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 0D 02 02 05 54 A7 58 5A 74 [19:01:16]Write to MH i2c: E2 0D 00 F2 33 80 0D 02 02 05 00 54 A7 58 5A 74 00 00 CA [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 F2 33 00 90 00 99 [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 0D 03 02 [19:01:16]Write to MH i2c: E2 08 00 F3 33 80 0D 03 02 00 00 00 00 A1 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0B 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0B 00 F3 33 00 76 C2 1E BE E4 A3 B5 FE 90 00 F0 [19:01:16]RAPDU: 76 C2 1E BE E4 A3 B5 FE 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_SignData done [19:01:16]FM_MakeSignedData done [19:01:16]CreateOFDProtocolMessage [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 11 00 00 [19:01:16]Write to MH i2c: E2 08 00 F4 33 80 11 00 00 00 00 00 00 A1 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 F4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [19:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:01:16]wFMCommunicate OK [19:01:16]CreateOFDProtocolMessage done [19:01:16]OFDSenderStorePacket 70781 [19:01:16]StoreOFDPacket docnum=70781 [19:01: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 C9 83 07 01 2C 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 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 29 01 00 00 F4 03 04 00 FD 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 54 A7 58 5A 74 76 C2 1E BE E4 A3 B5 FE [19:01:16]CheckFolder [19:01:16]dirname=/storage/ofd_packets [19:01:16]CheckFolder done [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00070781 [19:01:16]NVStorageSaveData ofd_packets/00070781 [19:01:16]File name is /storage/ofd_packets/00070781 [19:01:16]Write 301 bytes [19:01:16]NVStorageSaveData done [19:01:16]OFDSenderStorePacket done [19:01:16]KKMCreateOFDPacket done [19:01:16]NVStorageSaveData kkm_last_timestamp [19:01:16]File name is /storage/kkm_last_timestamp [19:01:16]Write 4 bytes [19:01:16]NVStorageSaveData done [19:01:16]ExternCall_PrintAddStr [19:01:16]wPrintStart [19:01:16]Write to MH i2c: 01 00 00 F5 33 28 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 F5 33 00 00 00 00 00 FF 0F 3D [19:01:16]RasterBufferAndPrint [19:01:16]line Счет N : (1)2886565 [19:01:16]line ИНН: 02508201610067 [19:01:16]line Контрольно-Кассовый Чек [19:01:16]line ПРОДАЖА [19:01:16]line ТРК (МРК, ГНК) : 23 [19:01:16]line Товар: 2710124500 [19:01:16]line Аи-95-К-5 [19:01:16]line 14.830 * 74.20 [19:01:16]line = 1100.39 [19:01:16]line НДС 12% НСП 1% [19:01:16]line > о реализуемом товаре [19:01:16]line ИТОГО: 1100.39 [19:01:16]line НСП 1% : 9.74 [19:01:16]line НДС 12% : 116.86 [19:01:16]line Наличными: 0.00 [19:01:16]line Безнал.: 1100.39 [19:01:16]line Место: АЗС № 85 "Партнер Нефть" [19:01:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:01:16]line СНО: Общий режим [19:01:16]line Чек 297 23.10.2024 19:01 [19:01:16]line Смена: 196 ФФД: 1.0 [19:01:16]line ЗНМ: 0300000167 [19:01:16]line РНМ: 0000000000156251 [19:01:16]line Версия ККМ: v1.0 [19:01:16]line Платежная система: Mbank [19:01:16]line ФМ: 0000000000963346 [19:01:16]line ФД: 70781 [19:01:16]line ФПД: 200474701093492 [19:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70781&fm=200474701093492&tin=02508201610067®Number=0000000000156251&sum=110039 [19:01:16]OFD Sender: Processing packet 70781 [packets to send 18, broken 17] [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00070781 [19:01:16]OFD Sender: To server: pG, [19:01:16]CommunicateWithHost lk.salyk.kg:30040 [19:01:16]ConnectInit lk.salyk.kg [19:01:16]written 0, free lines is 4095 [19:01:17]Connected sock=10 [19:01: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 C9 83 07 01 2C 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 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 29 01 00 00 F4 03 04 00 FD 47 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 54 A7 58 5A 74 76 C2 1E BE E4 A3 B5 FE [19:01: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 62 B8 47 00 44 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 7D 14 01 00 F4 03 04 00 9A F1 18 67 B6 04 01 00 00 24 74 48 8A 8E 22 49 80 [19:01:17]CommunicateWithHost err = 0 [19:01:17]CheckOFDResponse [19:01:17]1017 (14) - 77093643461234 [19:01:17]1041 (16) - 0000000000963346 [19:01:17]1040 (4) - 70781 [19:01:17]1012 (4) - 23.10.2024 12:52 [19:01:17]1206 (1) - 0 [19:01:17]OFD Sender: Remove packet 70781 [19:01:17]ProducePacketName [19:01:17]name=ofd_packets/00070781 [19:01:17]NVStorageDeleteData [19:01:17]Write to MH i2c: 01 00 00 1E 34 52 [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 07 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 07 00 1E 34 00 00 00 00 00 07 0D 6D [19:01:17]RasterBufferAndPrint [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]written 0, free lines is 3341 [19:01:17]MH_Cut [19:01:17]Write to MH i2c: D1 01 00 25 34 01 2B [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: D1 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: D1 01 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: D1 01 00 25 34 00 2A [19:01:17]Write to MH i2c: 01 00 00 26 34 5A [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]OFD Sender: No OFD packet to send [19:01:18]*** Cut start [19:01:18]*** Partial cut [19:01:18]*** CUTSNS_PIN = 1 [19:01:18]*** CUTSNS_PIN = 0 [19:01:18]*** Brake cut motor [19:01:18]Read from MH i2c: 01 [19:01:18]MH_I2C_Read... [19:01:18]*** Stop cut motor [19:01:18]*** Cut end [19:01:18]Read from MH i2c: 01 07 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: 01 07 00 26 34 00 00 00 00 00 FF 0F 6F [19:01:18]process_action close_receipt done [19:01:18]requested_data is exist [19:01:18]produce_requested_data [19:01:18]requested_item fm.sn is exist - process it [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 11 00 00 [19:01:18]Write to MH i2c: E2 08 00 27 34 80 11 00 00 00 00 00 00 D5 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 27 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [19:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:01:18]wFMCommunicate OK [19:01:18]requested_item fd.num is exist - process it [19:01:18]SAM_PROTO_GetFieldsCounters [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 13 00 00 [19:01:18]Write to MH i2c: E2 08 00 28 34 80 13 00 00 00 00 00 00 D8 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 62 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 62 00 28 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 7D 14 01 00 0E 04 04 00 C4 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 C7 [19:01: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 7D 14 01 00 0E 04 04 00 C4 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 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_GetFieldsCounters done [19:01:18]requested_item shift.num is exist - process it [19:01:18]requested_item shift.opened is exist - process it [19:01:18]req_shift_opened [19:01:18]FM_GetShiftState [19:01:18]SAM_PROTO_GetShiftState [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 13 01 00 [19:01:18]Write to MH i2c: E2 08 00 29 34 80 13 01 00 00 00 00 00 DA [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0E 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0E 00 29 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 67 [19:01:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_GetShiftState done [19:01:18]FM_GetShiftState done [19:01:18]req_shift_opened done [19:01:18]requested_item shift.open_date is exist - process it [19:01:18]req_shift_open_date [19:01:18]req_shift_open_date done [19:01:18]produce_requested_data done [19:01:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70781,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:01:18]process_action_free close_receipt [19:01:18]json_value_free [19:01:18]json_value_free done [19:01:18]process_json_proto returns [19:01:18]Send response to host [19:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70781,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:01:18]free response buf [19:01:18]execute_script done [19:01:18]execute_script returns [19:01:18]free content buf [19:01:18]Sock 9.Close socket [19:01:18]Sock 9.Thread stoped [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:50]accept exits with 7 [19:01:50]New connection [19:01:50]New thread 3067034980 created [19:01:50]Thread 3066891620 joined [19:01:50]Waiting for new connection... [19:01:50] Sock 7.Parse request [19:01:50]Sock 7.Check first char [19:01:50]Sock 7.First char is OK [19:01:50]request: POST /json_proto HTTP/1.0 [19:01:50]Method: POST [19:01:50]URL: /json_proto [19:01:50]Method is POST - this is cgi request [19:01:50]url: /json_proto [19:01:50]query_string will be loaded in cgi processing [19:01:50]execute_cgi json_proto POST (null) [19:01:50]execute_cgi path=json_proto method=POST [19:01:50]POST find Content-Length [19:01:50]Host: 172.17.50.3:8080 [19:01:50]Content-Length: 684 [19:01:50]Content-Type: application/json [19:01:50] [19:01:50]POST finish read [19:01:50]Found Content-Length = 684 [19:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886566", "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" : 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" ] } } [19:01:50]execute_script... [19:01: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)2886566", "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" : 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" ] } } [19:01:50]POST & json_proto [19:01:50]process_json_proto [19:01:50]json parsed OK: [19:01:50]protocol is kg_v1.0 [19:01:50]action value=close_receipt [19:01:50]process_action close_receipt [19:01:50]cmd_close_receipt [19:01:50]MH_GetDate [19:01:50]Write to MH i2c: F0 00 00 2A 34 4D [19:01:50]Write i2c OK [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 09 00 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: F0 09 00 2A 34 00 20 48 19 67 6B 98 1E 66 C5 [19:01:50]GetLastDocTimeStamp 1729710077 [19:01:50]current date 1729710112 [19:01:50]FM_GetShiftState [19:01:50]SAM_PROTO_GetShiftState [19:01:50]wFMCommunicate request_size=4 [19:01:50]MH_SAM_APDU [19:01:50]CAPDU: 80 13 01 00 [19:01:50]Write to MH i2c: E2 08 00 2B 34 80 13 01 00 00 00 00 00 DC [19:01:50]Write i2c OK [19:01:50]MH_I2C_Read... [19:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:50]Read from MH i2c: E2 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 0E 00 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 0E 00 2B 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 69 [19:01:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:01:50]wFMCommunicate OK [19:01:50]SAM_PROTO_GetShiftState done [19:01:50]FM_GetShiftState done [19:01:50]opened in 1729642435 [19:01:50]opened+sec_in_day 1729728835 [19:01:50]quantity*price = 60061 [19:01:50]sum+1 = 60063 [19:01:50]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 СНО: Общий режим Чек 298 23.10.2024 19:01 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70782 ФПД: 106959155804119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70782&fm=106959155804119&tin=02508201610067®Number=0000000000156251&sum=60000 [19:01:51]StoreToDocumentArchive [19:01:51]shift 196 fd 70782 [19:01:51]save to /storage/0196/doc_00070782 [19:01:51]save last doc name /storage/0196/doc_00070782 to /storage/kkm_last_doc_name [19:01:51]save OK [19:01:51]Clear old archive folders... [19:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:01:51]tlvbuf is 002238E0 [19:01:51]SAM_PROTO_ClearQueue [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 09 00 00 [19:01:51]Write to MH i2c: E2 08 00 38 34 80 09 00 00 00 00 00 00 DE [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 38 34 00 90 00 E0 [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]SAM_PROTO_ClearQueue done [19:01:51]KKMCreateOFDPacket [19:01:51]OFDProtocolAddRootSTLVToBuf [19:01:51]FM_MakeSignedData [19:01:51]FM_MakeSignedData [19:01:51]SAM_PROTO_SignData [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 0D 01 02 [19:01:51]Write to MH i2c: E2 08 00 39 34 80 0D 01 02 00 00 00 00 E6 [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 39 34 00 90 00 E1 [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]wFMCommunicate request_size=255 [19:01:51]MH_SAM_APDU [19:01: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 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 2A 01 00 00 F4 03 04 00 20 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:01:51]Write to MH i2c: E2 02 01 3A 34 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 2A 01 00 00 F4 03 04 00 20 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 BB [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 3A 34 00 90 00 E2 [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]wFMCommunicate request_size=16 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 61 47 5E 7C B7 D7 [19:01:51]Write to MH i2c: E2 13 00 3B 34 80 0D 02 02 0B 00 00 35 04 06 00 61 47 5E 7C B7 D7 00 00 4E [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 03 00 3B 34 00 90 00 E3 [19:01:51]RAPDU: 90 00 [19:01:51]wFMCommunicate OK [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 0D 03 02 [19:01:51]Write to MH i2c: E2 08 00 3C 34 80 0D 03 02 00 00 00 00 EB [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 0B 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 0B 00 3C 34 00 0F 4D A1 7E BD D3 45 E7 90 00 23 [19:01:51]RAPDU: 0F 4D A1 7E BD D3 45 E7 90 00 [19:01:51]wFMCommunicate OK [19:01:51]SAM_PROTO_SignData done [19:01:51]FM_MakeSignedData done [19:01:51]CreateOFDProtocolMessage [19:01:51]wFMCommunicate request_size=4 [19:01:51]MH_SAM_APDU [19:01:51]CAPDU: 80 11 00 00 [19:01:51]Write to MH i2c: E2 08 00 3D 34 80 11 00 00 00 00 00 00 EB [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:51]Read from MH i2c: E2 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 17 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: E2 17 00 3D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [19:01: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:01:51]wFMCommunicate OK [19:01:51]CreateOFDProtocolMessage done [19:01:51]OFDSenderStorePacket 70782 [19:01:51]StoreOFDPacket docnum=70782 [19:01: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 EC EA 0D 01 F6 D7 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 2A 01 00 00 F4 03 04 00 20 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 61 47 5E 7C B7 D7 0F 4D A1 7E BD D3 45 E7 [19:01:51]CheckFolder [19:01:51]dirname=/storage/ofd_packets [19:01:51]CheckFolder done [19:01:51]ProducePacketName [19:01:51]name=ofd_packets/00070782 [19:01:51]NVStorageSaveData ofd_packets/00070782 [19:01:51]File name is /storage/ofd_packets/00070782 [19:01:51]Write 307 bytes [19:01:51]NVStorageSaveData done [19:01:51]OFDSenderStorePacket done [19:01:51]KKMCreateOFDPacket done [19:01:51]NVStorageSaveData kkm_last_timestamp [19:01:51]File name is /storage/kkm_last_timestamp [19:01:51]Write 4 bytes [19:01:51]NVStorageSaveData done [19:01:51]ExternCall_PrintAddStr [19:01:51]wPrintStart [19:01:51]Write to MH i2c: 01 00 00 3E 34 72 [19:01:51]Write i2c OK [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: 01 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: 01 07 00 [19:01:51]MH_I2C_Read... [19:01:51]Read from MH i2c: 01 07 00 3E 34 00 00 00 00 00 FF 0F 87 [19:01:51]RasterBufferAndPrint [19:01:51]line Счет N : (1)2886566 [19:01:51]line ИНН: 02508201610067 [19:01:51]line Контрольно-Кассовый Чек [19:01:51]line ПРОДАЖА [19:01:51]line ТРК (МРК, ГНК) : 11 [19:01:51]line Товар: 2710194240 [19:01:51]line D-ENERGY Дт-К-2 [19:01:51]line 7.780 * 77.20 [19:01:51]line = 600.62 [19:01:51]line НДС 12% НСП 1% [19:01:51]line > о реализуемом товаре [19:01:51]line ОКРУГЛЕНИЕ: -0.62 [19:01:51]line ИТОГО: 600.00 [19:01:51]line Внесено: 600.00 [19:01:51]line СДАЧА: 0.00 [19:01:51]line НСП 1% : 5.31 [19:01:51]line НДС 12% : 63.78 [19:01:51]line Наличными: 600.00 [19:01:51]line Безнал.: 0.00 [19:01:51]line Место: АЗС № 85 "Партнер Нефть" [19:01:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:01:51]line СНО: Общий режим [19:01:51]line Чек 298 23.10.2024 19:01 [19:01:51]line Смена: 196 ФФД: 1.0 [19:01:51]line ЗНМ: 0300000167 [19:01:51]line РНМ: 0000000000156251 [19:01:51]line Версия ККМ: v1.0 [19:01:51]line ФМ: 0000000000963346 [19:01:51]line ФД: 70782 [19:01:51]line ФПД: 106959155804119 [19:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70782&fm=106959155804119&tin=02508201610067®Number=0000000000156251&sum=60000 [19:01:52]OFD Sender: Processing packet 70782 [packets to send 18, broken 17] [19:01:52]ProducePacketName [19:01:52]name=ofd_packets/00070782 [19:01:52]OFD Sender: To server: pG, [19:01:52]CommunicateWithHost lk.salyk.kg:30040 [19:01:52]ConnectInit lk.salyk.kg [19:01:52]written 0, free lines is 4095 [19:01:52]Connected sock=10 [19:01: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 EC EA 0D 01 F6 D7 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 2A 01 00 00 F4 03 04 00 20 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 61 47 5E 7C B7 D7 0F 4D A1 7E BD D3 45 E7 [19: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 A0 F2 47 00 DD 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 7E 14 01 00 F4 03 04 00 BD F1 18 67 B6 04 01 00 00 16 0C 2E EF 37 8F 35 B1 [19:01:52]CommunicateWithHost err = 0 [19:01:52]CheckOFDResponse [19:01:52]1017 (14) - 77093643461234 [19:01:52]1041 (16) - 0000000000963346 [19:01:52]1040 (4) - 70782 [19:01:52]1012 (4) - 23.10.2024 12:53 [19:01:52]1206 (1) - 0 [19:01:52]OFD Sender: Remove packet 70782 [19:01:52]ProducePacketName [19:01:52]name=ofd_packets/00070782 [19:01:52]NVStorageDeleteData [19:01:52]Write to MH i2c: 01 00 00 69 34 9D [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 07 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: 01 07 00 69 34 00 00 00 00 00 EA 0C 9A [19:01:52]RasterBufferAndPrint [19:01:52]line [19:01:52]line [19:01:52]line [19:01:52]line [19:01:52]line [19:01:52]written 0, free lines is 3312 [19:01:52]MH_Cut [19:01:52]Write to MH i2c: D1 01 00 70 34 01 76 [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: D1 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: D1 01 00 [19:01:52]MH_I2C_Read... [19:01:52]Read from MH i2c: D1 01 00 70 34 00 75 [19:01:52]Write to MH i2c: 01 00 00 71 34 A5 [19:01:52]Write i2c OK [19:01:52]MH_I2C_Read... [19:01:53]OFD Sender: No OFD packet to send [19:01:53]*** Cut start [19:01:53]*** Partial cut [19:01:53]*** CUTSNS_PIN = 1 [19:01:53]*** CUTSNS_PIN = 0 [19:01:53]*** Brake cut motor [19:01:53]Read from MH i2c: 01 [19:01:53]MH_I2C_Read... [19:01:53]*** Stop cut motor [19:01:53]*** Cut end [19:01:53]Read from MH i2c: 01 07 00 [19:01:53]MH_I2C_Read... [19:01:53]Read from MH i2c: 01 07 00 71 34 00 00 00 00 00 FF 0F BA [19:01:53]process_action close_receipt done [19:01:53]requested_data is exist [19:01:53]produce_requested_data [19:01:53]requested_item fm.sn is exist - process it [19:01:53]wFMCommunicate request_size=4 [19:01:53]MH_SAM_APDU [19:01:53]CAPDU: 80 11 00 00 [19:01:53]Write to MH i2c: E2 08 00 72 34 80 11 00 00 00 00 00 00 20 [19:01:53]Write i2c OK [19:01:54]MH_I2C_Read... [19:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:54]Read from MH i2c: E2 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 17 00 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 17 00 72 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [19:01: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:01:54]wFMCommunicate OK [19:01:54]requested_item fd.num is exist - process it [19:01:54]SAM_PROTO_GetFieldsCounters [19:01:54]wFMCommunicate request_size=4 [19:01:54]MH_SAM_APDU [19:01:54]CAPDU: 80 13 00 00 [19:01:54]Write to MH i2c: E2 08 00 73 34 80 13 00 00 00 00 00 00 23 [19:01:54]Write i2c OK [19:01:54]MH_I2C_Read... [19:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:54]Read from MH i2c: E2 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 62 00 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 62 00 73 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 7E 14 01 00 0E 04 04 00 C4 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 [19:01: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 7E 14 01 00 0E 04 04 00 C4 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 [19:01:54]wFMCommunicate OK [19:01:54]SAM_PROTO_GetFieldsCounters done [19:01:54]requested_item shift.num is exist - process it [19:01:54]requested_item shift.opened is exist - process it [19:01:54]req_shift_opened [19:01:54]FM_GetShiftState [19:01:54]SAM_PROTO_GetShiftState [19:01:54]wFMCommunicate request_size=4 [19:01:54]MH_SAM_APDU [19:01:54]CAPDU: 80 13 01 00 [19:01:54]Write to MH i2c: E2 08 00 74 34 80 13 01 00 00 00 00 00 25 [19:01:54]Write i2c OK [19:01:54]MH_I2C_Read... [19:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:54]Read from MH i2c: E2 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 0E 00 [19:01:54]MH_I2C_Read... [19:01:54]Read from MH i2c: E2 0E 00 74 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B2 [19:01:54]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:01:54]wFMCommunicate OK [19:01:54]SAM_PROTO_GetShiftState done [19:01:54]FM_GetShiftState done [19:01:54]req_shift_opened done [19:01:54]requested_item shift.open_date is exist - process it [19:01:54]req_shift_open_date [19:01:54]req_shift_open_date done [19:01:54]produce_requested_data done [19:01:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70782,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:01:54]process_action_free close_receipt [19:01:54]json_value_free [19:01:54]json_value_free done [19:01:54]process_json_proto returns [19:01:54]Send response to host [19:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70782,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:01:54]free response buf [19:01:54]execute_script done [19:01:54]execute_script returns [19:01:54]free content buf [19:01:54]Sock 7.Close socket [19:01:54]Sock 7.Thread stoped [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:55]accept exits with 9 [19:02:55]New connection [19:02:55]New thread 3066891620 created [19:02:55]Thread 3067034980 joined [19:02:55]Waiting for new connection... [19:02:55] Sock 9.Parse request [19:02:55]Sock 9.Check first char [19:02:55]Sock 9.First char is OK [19:02:55]request: POST /json_proto HTTP/1.0 [19:02:55]Method: POST [19:02:55]URL: /json_proto [19:02:55]Method is POST - this is cgi request [19:02:55]url: /json_proto [19:02:55]query_string will be loaded in cgi processing [19:02:55]execute_cgi json_proto POST (null) [19:02:55]execute_cgi path=json_proto method=POST [19:02:55]POST find Content-Length [19:02:55]Host: 172.17.50.3:8080 [19:02:55]Content-Length: 767 [19:02:55]Content-Type: application/json [19:02:55] [19:02:55]POST finish read [19:02:55]Found Content-Length = 767 [19:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886568", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:55]execute_script... [19:02: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)2886568", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:55]POST & json_proto [19:02:55]process_json_proto [19:02:55]json parsed OK: [19:02:55]protocol is kg_v1.0 [19:02:55]action value=close_receipt [19:02:55]process_action close_receipt [19:02:55]cmd_close_receipt [19:02:55]MH_GetDate [19:02:55]Write to MH i2c: F0 00 00 75 34 98 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 09 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 09 00 75 34 00 62 48 19 67 6B 98 1E 66 52 [19:02:55]GetLastDocTimeStamp 1729710112 [19:02:55]current date 1729710178 [19:02:55]FM_GetShiftState [19:02:55]SAM_PROTO_GetShiftState [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 13 01 00 [19:02:55]Write to MH i2c: E2 08 00 76 34 80 13 01 00 00 00 00 00 27 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0E 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0E 00 76 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B4 [19:02:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:02:55]wFMCommunicate OK [19:02:55]SAM_PROTO_GetShiftState done [19:02:55]FM_GetShiftState done [19:02:55]opened in 1729642435 [19:02:55]opened+sec_in_day 1729728835 [19:02:55]quantity*price = 30038 [19:02:55]sum+1 = 30039 [19:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 299 23.10.2024 19:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70783 ФПД: 104798112278813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190258&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70783&fm=104798112278813&tin=02508201610067®Number=0000000000156251&sum=30038 [19:02:57]StoreToDocumentArchive [19:02:57]shift 196 fd 70783 [19:02:57]save to /storage/0196/doc_00070783 [19:02:57]save last doc name /storage/0196/doc_00070783 to /storage/kkm_last_doc_name [19:02:57]save OK [19:02:57]Clear old archive folders... [19:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:57]tlvbuf is 00255930 [19:02:57]SAM_PROTO_ClearQueue [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 09 00 00 [19:02:57]Write to MH i2c: E2 08 00 83 34 80 09 00 00 00 00 00 00 29 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 83 34 00 90 00 2B [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_ClearQueue done [19:02:57]KKMCreateOFDPacket [19:02:57]OFDProtocolAddRootSTLVToBuf [19:02:57]FM_MakeSignedData [19:02:57]FM_MakeSignedData [19:02:57]SAM_PROTO_SignData [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 0D 01 02 [19:02:57]Write to MH i2c: E2 08 00 84 34 80 0D 01 02 00 00 00 00 31 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 84 34 00 90 00 2C [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]wFMCommunicate request_size=255 [19:02:57]MH_SAM_APDU [19:02: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 62 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F [19:02:57]Write to MH i2c: E2 02 01 85 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 62 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F 00 00 07 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 85 34 00 90 00 2D [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]wFMCommunicate request_size=10 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 0D 02 02 05 50 36 41 69 1D [19:02:57]Write to MH i2c: E2 0D 00 86 34 80 0D 02 02 05 00 50 36 41 69 1D 00 00 8B [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 86 34 00 90 00 2E [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 0D 03 02 [19:02:57]Write to MH i2c: E2 08 00 87 34 80 0D 03 02 00 00 00 00 36 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0B 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0B 00 87 34 00 62 94 04 DB A0 2D A6 D1 90 00 50 [19:02:57]RAPDU: 62 94 04 DB A0 2D A6 D1 90 00 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_SignData done [19:02:57]FM_MakeSignedData done [19:02:57]CreateOFDProtocolMessage [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 11 00 00 [19:02:57]Write to MH i2c: E2 08 00 88 34 80 11 00 00 00 00 00 00 36 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 17 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 17 00 88 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [19:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:02:57]wFMCommunicate OK [19:02:57]CreateOFDProtocolMessage done [19:02:57]OFDSenderStorePacket 70783 [19:02:57]StoreOFDPacket docnum=70783 [19:02: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 FE FA 07 01 48 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 62 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F 50 36 41 69 1D 62 94 04 DB A0 2D A6 D1 [19:02:57]CheckFolder [19:02:57]dirname=/storage/ofd_packets [19:02:57]CheckFolder done [19:02:57]ProducePacketName [19:02:57]name=ofd_packets/00070783 [19:02:57]NVStorageSaveData ofd_packets/00070783 [19:02:57]File name is /storage/ofd_packets/00070783 [19:02:57]Write 301 bytes [19:02:57]NVStorageSaveData done [19:02:57]OFDSenderStorePacket done [19:02:57]KKMCreateOFDPacket done [19:02:57]NVStorageSaveData kkm_last_timestamp [19:02:57]File name is /storage/kkm_last_timestamp [19:02:57]Write 4 bytes [19:02:57]NVStorageSaveData done [19:02:57]ExternCall_PrintAddStr [19:02:57]wPrintStart [19:02:57]Write to MH i2c: 01 00 00 89 34 BD [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 07 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 07 00 89 34 00 00 00 00 00 FF 0F D2 [19:02:57]RasterBufferAndPrint [19:02:57]line Счет N : (1)2886568 [19:02:57]line ИНН: 02508201610067 [19:02:57]line Контрольно-Кассовый Чек [19:02:57]line ПРОДАЖА [19:02:57]line ТРК (МРК, ГНК) : 32 [19:02:57]line Товар: 2710124130 [19:02:57]line Аи-92-К-5 [19:02:57]line 4.490 * 66.90 [19:02:57]line = 300.38 [19:02:57]line НДС 12% НСП 1% [19:02:57]line > о реализуемом товаре [19:02:57]line ИТОГО: 300.38 [19:02:57]line НСП 1% : 2.66 [19:02:57]line НДС 12% : 31.90 [19:02:57]line Наличными: 0.00 [19:02:57]line Безнал.: 300.38 [19:02:57]line Место: АЗС № 85 "Партнер Нефть" [19:02:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:02:57]line СНО: Общий режим [19:02:57]line Чек 299 23.10.2024 19:02 [19:02:57]line Смена: 196 ФФД: 1.0 [19:02:57]line ЗНМ: 0300000167 [19:02:57]line РНМ: 0000000000156251 [19:02:57]line Версия ККМ: v1.0 [19:02:57]line Платежная система: Mbank [19:02:57]line ФМ: 0000000000963346 [19:02:57]line ФД: 70783 [19:02:57]line ФПД: 104798112278813 [19:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190258&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70783&fm=104798112278813&tin=02508201610067®Number=0000000000156251&sum=30038 [19:02:57]OFD Sender: Processing packet 70783 [packets to send 18, broken 17] [19:02:57]ProducePacketName [19:02:57]name=ofd_packets/00070783 [19:02:57]OFD Sender: To server: pG, [19:02:57]CommunicateWithHost lk.salyk.kg:30040 [19:02:57]ConnectInit lk.salyk.kg [19:02:57]written 0, free lines is 4095 [19:02:57]Connected sock=10 [19:02: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 FE FA 07 01 48 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 62 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 5F 50 36 41 69 1D 62 94 04 DB A0 2D A6 D1 [19:02: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 94 FC 47 00 D5 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 7F 14 01 00 F4 03 04 00 FF F1 18 67 B6 04 01 00 00 4E 82 58 18 98 01 7D 11 [19:02:58]CommunicateWithHost err = 0 [19:02:58]CheckOFDResponse [19:02:58]1017 (14) - 77093643461234 [19:02:58]1041 (16) - 0000000000963346 [19:02:58]1040 (4) - 70783 [19:02:58]1012 (4) - 23.10.2024 12:54 [19:02:58]1206 (1) - 0 [19:02:58]OFD Sender: Remove packet 70783 [19:02:58]ProducePacketName [19:02:58]name=ofd_packets/00070783 [19:02:58]NVStorageDeleteData [19:02:58]Write to MH i2c: 01 00 00 B2 34 E6 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 B2 34 00 00 00 00 00 10 0D 0A [19:02:58]RasterBufferAndPrint [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]written 0, free lines is 3350 [19:02:58]MH_Cut [19:02:58]Write to MH i2c: D1 01 00 B9 34 01 BF [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 B9 34 00 BE [19:02:58]Write to MH i2c: 01 00 00 BA 34 EE [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]OFD Sender: No OFD packet to send [19:02:59]*** Cut start [19:02:59]*** Partial cut [19:02:59]*** CUTSNS_PIN = 1 [19:02:59]*** CUTSNS_PIN = 0 [19:02:59]*** Brake cut motor [19:02:59]Read from MH i2c: 01 [19:02:59]MH_I2C_Read... [19:02:59]*** Stop cut motor [19:02:59]*** Cut end [19:02:59]Read from MH i2c: 01 07 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 07 00 BA 34 00 00 00 00 00 FF 0F 03 [19:02:59]process_action close_receipt done [19:02:59]requested_data is exist [19:02:59]produce_requested_data [19:02:59]requested_item fm.sn is exist - process it [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 11 00 00 [19:02:59]Write to MH i2c: E2 08 00 BB 34 80 11 00 00 00 00 00 00 69 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 BB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [19:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:02:59]wFMCommunicate OK [19:02:59]requested_item fd.num is exist - process it [19:02:59]SAM_PROTO_GetFieldsCounters [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 00 00 [19:02:59]Write to MH i2c: E2 08 00 BC 34 80 13 00 00 00 00 00 00 6C [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 BC 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 7F 14 01 00 0E 04 04 00 C4 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 63 [19:02: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 7F 14 01 00 0E 04 04 00 C4 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 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetFieldsCounters done [19:02:59]requested_item shift.num is exist - process it [19:02:59]requested_item shift.opened is exist - process it [19:02:59]req_shift_opened [19:02:59]FM_GetShiftState [19:02:59]SAM_PROTO_GetShiftState [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 01 00 [19:02:59]Write to MH i2c: E2 08 00 BD 34 80 13 01 00 00 00 00 00 6E [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 BD 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [19:02:59]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetShiftState done [19:02:59]FM_GetShiftState done [19:02:59]req_shift_opened done [19:02:59]requested_item shift.open_date is exist - process it [19:02:59]req_shift_open_date [19:02:59]req_shift_open_date done [19:02:59]produce_requested_data done [19:02:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70783,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:02:59]process_action_free close_receipt [19:02:59]json_value_free [19:02:59]json_value_free done [19:02:59]process_json_proto returns [19:02:59]Send response to host [19:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70783,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:02:59]free response buf [19:02:59]execute_script done [19:02:59]execute_script returns [19:02:59]free content buf [19:02:59]Sock 9.Close socket [19:02:59]Sock 9.Thread stoped [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:20]accept exits with 7 [19:03:20]New connection [19:03:20]New thread 3067034980 created [19:03:20]Thread 3066891620 joined [19:03:20]Waiting for new connection... [19:03:20] Sock 7.Parse request [19:03:20]Sock 7.Check first char [19:03:20]Sock 7.First char is OK [19:03:20]request: POST /json_proto HTTP/1.0 [19:03:20]Method: POST [19:03:20]URL: /json_proto [19:03:20]Method is POST - this is cgi request [19:03:20]url: /json_proto [19:03:20]query_string will be loaded in cgi processing [19:03:20]execute_cgi json_proto POST (null) [19:03:20]execute_cgi path=json_proto method=POST [19:03:20]POST find Content-Length [19:03:20]Host: 172.17.50.3:8080 [19:03:20]Content-Length: 680 [19:03:20]Content-Type: application/json [19:03:20] [19:03:20]POST finish read [19:03:20]Found Content-Length = 680 [19:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886567", "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" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:20]execute_script... [19:03: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)2886567", "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" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:20]POST & json_proto [19:03:20]process_json_proto [19:03:20]json parsed OK: [19:03:20]protocol is kg_v1.0 [19:03:20]action value=close_receipt [19:03:20]process_action close_receipt [19:03:20]cmd_close_receipt [19:03:20]MH_GetDate [19:03:20]Write to MH i2c: F0 00 00 BE 34 E1 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: F0 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: F0 09 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: F0 09 00 BE 34 00 7B 48 19 67 6B 98 1E 66 B4 [19:03:20]GetLastDocTimeStamp 1729710178 [19:03:20]current date 1729710203 [19:03:20]FM_GetShiftState [19:03:20]SAM_PROTO_GetShiftState [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 13 01 00 [19:03:20]Write to MH i2c: E2 08 00 BF 34 80 13 01 00 00 00 00 00 70 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0E 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0E 00 BF 34 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FD [19:03:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_GetShiftState done [19:03:20]FM_GetShiftState done [19:03:20]opened in 1729642435 [19:03:20]opened+sec_in_day 1729728835 [19:03:20]quantity*price = 350062 [19:03:20]sum+1 = 350064 [19:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 300 23.10.2024 19:03 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70784 ФПД: 220788515655514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70784&fm=220788515655514&tin=02508201610067®Number=0000000000156251&sum=350000 [19:03:21]StoreToDocumentArchive [19:03:21]shift 196 fd 70784 [19:03:21]save to /storage/0196/doc_00070784 [19:03:21]save last doc name /storage/0196/doc_00070784 to /storage/kkm_last_doc_name [19:03:21]save OK [19:03:21]Clear old archive folders... [19:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:21]tlvbuf is 00175900 [19:03:21]SAM_PROTO_ClearQueue [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 09 00 00 [19:03:21]Write to MH i2c: E2 08 00 CC 34 80 09 00 00 00 00 00 00 72 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 CC 34 00 90 00 74 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]SAM_PROTO_ClearQueue done [19:03:21]KKMCreateOFDPacket [19:03:21]OFDProtocolAddRootSTLVToBuf [19:03:21]FM_MakeSignedData [19:03:21]FM_MakeSignedData [19:03:21]SAM_PROTO_SignData [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 0D 01 02 [19:03:21]Write to MH i2c: E2 08 00 CD 34 80 0D 01 02 00 00 00 00 7A [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 CD 34 00 90 00 75 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]wFMCommunicate request_size=255 [19:03:21]MH_SAM_APDU [19:03: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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 7B 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 CE 55 0B [19:03:21]Write to MH i2c: E2 02 01 CE 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 7B 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 CE 55 0B 00 00 69 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 CE 34 00 90 00 76 [19:03:22]RAPDU: 90 00 [19:03:22]wFMCommunicate OK [19:03:22]wFMCommunicate request_size=7 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 0D 02 02 02 CF 5A [19:03:22]Write to MH i2c: E2 0A 00 CF 34 80 0D 02 02 02 00 CF 5A 00 00 AA [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 CF 34 00 90 00 77 [19:03:22]RAPDU: 90 00 [19:03:22]wFMCommunicate OK [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 0D 03 02 [19:03:22]Write to MH i2c: E2 08 00 D0 34 80 0D 03 02 00 00 00 00 7F [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 0B 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 0B 00 D0 34 00 11 F0 73 AE 3F 2C 11 44 90 00 62 [19:03:22]RAPDU: 11 F0 73 AE 3F 2C 11 44 90 00 [19:03:22]wFMCommunicate OK [19:03:22]SAM_PROTO_SignData done [19:03:22]FM_MakeSignedData done [19:03:22]CreateOFDProtocolMessage [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 11 00 00 [19:03:22]Write to MH i2c: E2 08 00 D1 34 80 11 00 00 00 00 00 00 7F [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 17 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 17 00 D1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [19:03:22]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:22]wFMCommunicate OK [19:03:22]CreateOFDProtocolMessage done [19:03:22]OFDSenderStorePacket 70784 [19:03:22]StoreOFDPacket docnum=70784 [19:03: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 B9 B2 04 01 5D A5 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 7B 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 CE 55 0B CF 5A 11 F0 73 AE 3F 2C 11 44 [19:03:22]CheckFolder [19:03:22]dirname=/storage/ofd_packets [19:03:22]CheckFolder done [19:03:22]ProducePacketName [19:03:22]name=ofd_packets/00070784 [19:03:22]NVStorageSaveData ofd_packets/00070784 [19:03:22]File name is /storage/ofd_packets/00070784 [19:03:22]Write 298 bytes [19:03:22]NVStorageSaveData done [19:03:22]OFDSenderStorePacket done [19:03:22]KKMCreateOFDPacket done [19:03:22]NVStorageSaveData kkm_last_timestamp [19:03:22]File name is /storage/kkm_last_timestamp [19:03:22]Write 4 bytes [19:03:22]NVStorageSaveData done [19:03:22]ExternCall_PrintAddStr [19:03:22]wPrintStart [19:03:22]Write to MH i2c: 01 00 00 D2 34 06 [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 07 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 07 00 D2 34 00 00 00 00 00 FF 0F 1B [19:03:22]RasterBufferAndPrint [19:03:22]line Счет N : (1)2886567 [19:03:22]line ИНН: 02508201610067 [19:03:22]line Контрольно-Кассовый Чек [19:03:22]line ПРОДАЖА [19:03:22]line ТРК (МРК, ГНК) : 61 [19:03:22]line Товар: 2710194210 [19:03:22]line ДТ-К-5 [19:03:22]line 45.940 * 76.20 [19:03:22]line = 3500.63 [19:03:22]line НДС 12% НСП 1% [19:03:22]line > о реализуемом товаре [19:03:22]line ОКРУГЛЕНИЕ: -0.63 [19:03:22]line ИТОГО: 3500.00 [19:03:22]line Внесено: 3500.00 [19:03:22]line СДАЧА: 0.00 [19:03:22]line НСП 1% : 30.98 [19:03:22]line НДС 12% : 371.75 [19:03:22]line Наличными: 3500.00 [19:03:22]line Безнал.: 0.00 [19:03:22]line Место: АЗС № 85 "Партнер Нефть" [19:03:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:03:22]line СНО: Общий режим [19:03:22]line Чек 300 23.10.2024 19:03 [19:03:22]line Смена: 196 ФФД: 1.0 [19:03:22]line ЗНМ: 0300000167 [19:03:22]line РНМ: 0000000000156251 [19:03:22]line Версия ККМ: v1.0 [19:03:22]line ФМ: 0000000000963346 [19:03:22]line ФД: 70784 [19:03:22]line ФПД: 220788515655514 [19:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70784&fm=220788515655514&tin=02508201610067®Number=0000000000156251&sum=350000 [19:03:22]OFD Sender: Processing packet 70784 [packets to send 18, broken 17] [19:03:22]ProducePacketName [19:03:22]name=ofd_packets/00070784 [19:03:22]OFD Sender: To server: pG, [19:03:22]CommunicateWithHost lk.salyk.kg:30040 [19:03:22]ConnectInit lk.salyk.kg [19:03:22]written 0, free lines is 4095 [19:03:22]Connected sock=10 [19:03: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 B9 B2 04 01 5D A5 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 7B 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 CE 55 0B CF 5A 11 F0 73 AE 3F 2C 11 44 [19:03: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 E0 F3 47 00 9A BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 14 01 00 F4 03 04 00 18 F2 18 67 B6 04 01 00 00 3E 21 75 B3 07 16 C3 DD [19:03:23]CommunicateWithHost err = 0 [19:03:23]CheckOFDResponse [19:03:23]1017 (14) - 77093643461234 [19:03:23]1041 (16) - 0000000000963346 [19:03:23]1040 (4) - 70784 [19:03:23]1012 (4) - 23.10.2024 12:54 [19:03:23]1206 (1) - 0 [19:03:23]OFD Sender: Remove packet 70784 [19:03:23]ProducePacketName [19:03:23]name=ofd_packets/00070784 [19:03:23]NVStorageDeleteData [19:03:23]Write to MH i2c: 01 00 00 FD 34 31 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 FD 34 00 00 00 00 00 EB 0C 2F [19:03:23]RasterBufferAndPrint [19:03:23]line [19:03:23]line [19:03:23]line [19:03:23]line [19:03:23]line [19:03:23]written 0, free lines is 3313 [19:03:23]MH_Cut [19:03:23]Write to MH i2c: D1 01 00 04 35 01 0B [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: D1 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: D1 01 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: D1 01 00 04 35 00 0A [19:03:23]Write to MH i2c: 01 00 00 05 35 3A [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]OFD Sender: No OFD packet to send [19:03:23]*** Cut start [19:03:23]*** Partial cut [19:03:23]*** CUTSNS_PIN = 1 [19:03:23]*** CUTSNS_PIN = 0 [19:03:24]*** Brake cut motor [19:03:24]Read from MH i2c: 01 [19:03:24]MH_I2C_Read... [19:03:24]*** Stop cut motor [19:03:24]*** Cut end [19:03:24]Read from MH i2c: 01 07 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: 01 07 00 05 35 00 00 00 00 00 FF 0F 4F [19:03:24]process_action close_receipt done [19:03:24]requested_data is exist [19:03:24]produce_requested_data [19:03:24]requested_item fm.sn is exist - process it [19:03:24]wFMCommunicate request_size=4 [19:03:24]MH_SAM_APDU [19:03:24]CAPDU: 80 11 00 00 [19:03:24]Write to MH i2c: E2 08 00 06 35 80 11 00 00 00 00 00 00 B5 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:24]Read from MH i2c: E2 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 17 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 17 00 06 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [19:03: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:03:24]wFMCommunicate OK [19:03:24]requested_item fd.num is exist - process it [19:03:24]SAM_PROTO_GetFieldsCounters [19:03:24]wFMCommunicate request_size=4 [19:03:24]MH_SAM_APDU [19:03:24]CAPDU: 80 13 00 00 [19:03:24]Write to MH i2c: E2 08 00 07 35 80 13 00 00 00 00 00 00 B8 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:24]Read from MH i2c: E2 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 62 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 62 00 07 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 80 14 01 00 0E 04 04 00 C4 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 B3 [19:03: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 80 14 01 00 0E 04 04 00 C4 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 [19:03:24]wFMCommunicate OK [19:03:24]SAM_PROTO_GetFieldsCounters done [19:03:24]requested_item shift.num is exist - process it [19:03:24]requested_item shift.opened is exist - process it [19:03:24]req_shift_opened [19:03:24]FM_GetShiftState [19:03:24]SAM_PROTO_GetShiftState [19:03:24]wFMCommunicate request_size=4 [19:03:24]MH_SAM_APDU [19:03:24]CAPDU: 80 13 01 00 [19:03:24]Write to MH i2c: E2 08 00 08 35 80 13 01 00 00 00 00 00 BA [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:24]Read from MH i2c: E2 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 08 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 47 [19:03:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:03:24]wFMCommunicate OK [19:03:24]SAM_PROTO_GetShiftState done [19:03:24]FM_GetShiftState done [19:03:24]req_shift_opened done [19:03:24]requested_item shift.open_date is exist - process it [19:03:24]req_shift_open_date [19:03:24]req_shift_open_date done [19:03:24]produce_requested_data done [19:03:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70784,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:03:24]process_action_free close_receipt [19:03:24]json_value_free [19:03:24]json_value_free done [19:03:24]process_json_proto returns [19:03:24]Send response to host [19:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70784,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:03:24]free response buf [19:03:24]execute_script done [19:03:24]execute_script returns [19:03:24]free content buf [19:03:24]Sock 7.Close socket [19:03:24]Sock 7.Thread stoped [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:36]accept exits with 9 [19:04:36]New connection [19:04:36]New thread 3066891620 created [19:04:36]Thread 3067034980 joined [19:04:36]Waiting for new connection... [19:04:36] Sock 9.Parse request [19:04:36]Sock 9.Check first char [19:04:36]Sock 9.First char is OK [19:04:36]request: POST /json_proto HTTP/1.0 [19:04:36]Method: POST [19:04:36]URL: /json_proto [19:04:36]Method is POST - this is cgi request [19:04:36]url: /json_proto [19:04:36]query_string will be loaded in cgi processing [19:04:36]execute_cgi json_proto POST (null) [19:04:36]execute_cgi path=json_proto method=POST [19:04:36]POST find Content-Length [19:04:36]Host: 172.17.50.3:8080 [19:04:36]Content-Length: 678 [19:04:36]Content-Type: application/json [19:04:36] [19:04:36]POST finish read [19:04:36]Found Content-Length = 678 [19:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886571", "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" ] } } [19:04:36]execute_script... [19: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)2886571", "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" ] } } [19:04:36]POST & json_proto [19:04:36]process_json_proto [19:04:36]json parsed OK: [19:04:36]protocol is kg_v1.0 [19:04:36]action value=close_receipt [19:04:36]process_action close_receipt [19:04:36]cmd_close_receipt [19:04:36]MH_GetDate [19:04:36]Write to MH i2c: F0 00 00 09 35 2D [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: F0 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: F0 09 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: F0 09 00 09 35 00 C7 48 19 67 6B 98 1E 66 4C [19:04:36]GetLastDocTimeStamp 1729710203 [19:04:36]current date 1729710279 [19:04:36]FM_GetShiftState [19:04:36]SAM_PROTO_GetShiftState [19:04:36]wFMCommunicate request_size=4 [19:04:36]MH_SAM_APDU [19:04:36]CAPDU: 80 13 01 00 [19:04:36]Write to MH i2c: E2 08 00 0A 35 80 13 01 00 00 00 00 00 BC [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0E 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0E 00 0A 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 49 [19:04:36]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:04:36]wFMCommunicate OK [19:04:36]SAM_PROTO_GetShiftState done [19:04:36]FM_GetShiftState done [19:04:36]opened in 1729642435 [19:04:36]opened+sec_in_day 1729728835 [19:04:36]quantity*price = 30038 [19:04:36]sum+1 = 30039 [19:04:36]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 СНО: Общий режим Чек 301 23.10.2024 19:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70785 ФПД: 110781676787044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70785&fm=110781676787044&tin=02508201610067®Number=0000000000156251&sum=30000 [19:04:37]StoreToDocumentArchive [19:04:37]shift 196 fd 70785 [19:04:37]save to /storage/0196/doc_00070785 [19:04:37]save last doc name /storage/0196/doc_00070785 to /storage/kkm_last_doc_name [19:04:37]save OK [19:04:37]Clear old archive folders... [19:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:37]tlvbuf is 0025B450 [19:04:37]SAM_PROTO_ClearQueue [19:04:37]wFMCommunicate request_size=4 [19:04:37]MH_SAM_APDU [19:04:37]CAPDU: 80 09 00 00 [19:04:37]Write to MH i2c: E2 08 00 17 35 80 09 00 00 00 00 00 00 BE [19:04:37]Write i2c OK [19:04:37]MH_I2C_Read... [19:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:37]Read from MH i2c: E2 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: E2 03 00 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: E2 03 00 17 35 00 90 00 C0 [19:04:37]RAPDU: 90 00 [19:04:37]wFMCommunicate OK [19:04:37]SAM_PROTO_ClearQueue done [19:04:37]KKMCreateOFDPacket [19:04:37]OFDProtocolAddRootSTLVToBuf [19:04:37]FM_MakeSignedData [19:04:37]FM_MakeSignedData [19:04:37]SAM_PROTO_SignData [19:04:37]wFMCommunicate request_size=4 [19:04:37]MH_SAM_APDU [19:04:37]CAPDU: 80 0D 01 02 [19:04:37]Write to MH i2c: E2 08 00 18 35 80 0D 01 02 00 00 00 00 C6 [19:04:37]Write i2c OK [19:04:37]MH_I2C_Read... [19:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:37]Read from MH i2c: E2 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: E2 03 00 [19:04:37]MH_I2C_Read... [19:04:37]Read from MH i2c: E2 03 00 18 35 00 90 00 C1 [19:04:37]RAPDU: 90 00 [19:04:37]wFMCommunicate OK [19:04:37]wFMCommunicate request_size=255 [19:04:37]MH_SAM_APDU [19:04: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 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 01 00 00 F4 03 04 00 C7 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 64 [19:04:37]Write to MH i2c: E2 02 01 19 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 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 01 00 00 F4 03 04 00 C7 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 64 00 00 BE [19:04:37]Write i2c OK [19:04:37]MH_I2C_Read... [19:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:38]Read from MH i2c: E2 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 03 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 03 00 19 35 00 90 00 C2 [19:04:38]RAPDU: 90 00 [19:04:38]wFMCommunicate OK [19:04:38]wFMCommunicate request_size=10 [19:04:38]MH_SAM_APDU [19:04:38]CAPDU: 80 0D 02 02 05 C1 5E 7E 15 64 [19:04:38]Write to MH i2c: E2 0D 00 1A 35 80 0D 02 02 05 00 C1 5E 7E 15 64 00 00 E9 [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:38]Read from MH i2c: E2 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 03 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 03 00 1A 35 00 90 00 C3 [19:04:38]RAPDU: 90 00 [19:04:38]wFMCommunicate OK [19:04:38]wFMCommunicate request_size=4 [19:04:38]MH_SAM_APDU [19:04:38]CAPDU: 80 0D 03 02 [19:04:38]Write to MH i2c: E2 08 00 1B 35 80 0D 03 02 00 00 00 00 CB [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:38]Read from MH i2c: E2 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 0B 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 0B 00 1B 35 00 99 5D C9 3C A7 F7 6F D1 90 00 A5 [19:04:38]RAPDU: 99 5D C9 3C A7 F7 6F D1 90 00 [19:04:38]wFMCommunicate OK [19:04:38]SAM_PROTO_SignData done [19:04:38]FM_MakeSignedData done [19:04:38]CreateOFDProtocolMessage [19:04:38]wFMCommunicate request_size=4 [19:04:38]MH_SAM_APDU [19:04:38]CAPDU: 80 11 00 00 [19:04:38]Write to MH i2c: E2 08 00 1C 35 80 11 00 00 00 00 00 00 CB [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:38]Read from MH i2c: E2 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 17 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 17 00 1C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [19: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 [19:04:38]wFMCommunicate OK [19:04:38]CreateOFDProtocolMessage done [19:04:38]OFDSenderStorePacket 70785 [19:04:38]StoreOFDPacket docnum=70785 [19: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 0C 51 07 01 88 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 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 01 00 00 F4 03 04 00 C7 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 64 C1 5E 7E 15 64 99 5D C9 3C A7 F7 6F D1 [19:04:38]CheckFolder [19:04:38]dirname=/storage/ofd_packets [19:04:38]CheckFolder done [19:04:38]ProducePacketName [19:04:38]name=ofd_packets/00070785 [19:04:38]NVStorageSaveData ofd_packets/00070785 [19:04:38]File name is /storage/ofd_packets/00070785 [19:04:38]Write 301 bytes [19:04:38]NVStorageSaveData done [19:04:38]OFDSenderStorePacket done [19:04:38]KKMCreateOFDPacket done [19:04:38]NVStorageSaveData kkm_last_timestamp [19:04:38]File name is /storage/kkm_last_timestamp [19:04:38]Write 4 bytes [19:04:38]NVStorageSaveData done [19:04:38]ExternCall_PrintAddStr [19:04:38]wPrintStart [19:04:38]Write to MH i2c: 01 00 00 1D 35 52 [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: 01 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: 01 07 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: 01 07 00 1D 35 00 00 00 00 00 FF 0F 67 [19:04:38]RasterBufferAndPrint [19:04:38]line Счет N : (1)2886571 [19:04:38]line ИНН: 02508201610067 [19:04:38]line Контрольно-Кассовый Чек [19:04:38]line ПРОДАЖА [19:04:38]line ТРК (МРК, ГНК) : 42 [19:04:38]line Товар: 2710124130 [19:04:38]line Аи-92-К-5 [19:04:38]line 4.490 * 66.90 [19:04:38]line = 300.38 [19:04:38]line НДС 12% НСП 1% [19:04:38]line > о реализуемом товаре [19:04:38]line ОКРУГЛЕНИЕ: -0.38 [19:04:38]line ИТОГО: 300.00 [19:04:38]line Внесено: 300.00 [19:04:38]line СДАЧА: 0.00 [19:04:38]line НСП 1% : 2.66 [19:04:38]line НДС 12% : 31.90 [19:04:38]line Наличными: 300.00 [19:04:38]line Безнал.: 0.00 [19:04:38]line Место: АЗС № 85 "Партнер Нефть" [19:04:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:04:38]line СНО: Общий режим [19:04:38]line Чек 301 23.10.2024 19:04 [19:04:38]line Смена: 196 ФФД: 1.0 [19:04:38]line ЗНМ: 0300000167 [19:04:38]line РНМ: 0000000000156251 [19:04:38]line Версия ККМ: v1.0 [19:04:38]line ФМ: 0000000000963346 [19:04:38]line ФД: 70785 [19:04:38]line ФПД: 110781676787044 [19:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70785&fm=110781676787044&tin=02508201610067®Number=0000000000156251&sum=30000 [19:04:38]OFD Sender: Processing packet 70785 [packets to send 18, broken 17] [19:04:38]ProducePacketName [19:04:38]name=ofd_packets/00070785 [19:04:38]OFD Sender: To server: pG, [19:04:38]CommunicateWithHost lk.salyk.kg:30040 [19:04:38]ConnectInit lk.salyk.kg [19:04:38]written 0, free lines is 4095 [19:04:38]Connected sock=10 [19: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 0C 51 07 01 88 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 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 01 00 00 F4 03 04 00 C7 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 64 C1 5E 7E 15 64 99 5D C9 3C A7 F7 6F D1 [19:04: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 A5 19 47 00 0C 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 81 14 01 00 F4 03 04 00 64 F2 18 67 B6 04 01 00 00 31 7B 8A 24 9F F2 CF BC [19:04:39]CommunicateWithHost err = 0 [19:04:39]CheckOFDResponse [19:04:39]1017 (14) - 77093643461234 [19:04:39]1041 (16) - 0000000000963346 [19:04:39]1040 (4) - 70785 [19:04:39]1012 (4) - 23.10.2024 12:56 [19:04:39]1206 (1) - 0 [19:04:39]OFD Sender: Remove packet 70785 [19:04:39]ProducePacketName [19:04:39]name=ofd_packets/00070785 [19:04:39]NVStorageDeleteData [19:04:39]Write to MH i2c: 01 00 00 48 35 7D [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 07 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 07 00 48 35 00 00 00 00 00 E7 0C 77 [19:04:39]RasterBufferAndPrint [19:04:39]line [19:04:39]line [19:04:39]line [19:04:39]line [19:04:39]line [19:04:39]written 0, free lines is 3310 [19:04:39]MH_Cut [19:04:39]Write to MH i2c: D1 01 00 4F 35 01 56 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: D1 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: D1 01 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: D1 01 00 4F 35 00 55 [19:04:39]Write to MH i2c: 01 00 00 50 35 85 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]OFD Sender: No OFD packet to send [19:04:39]*** Cut start [19:04:39]*** Partial cut [19:04:39]*** CUTSNS_PIN = 1 [19:04:39]*** CUTSNS_PIN = 0 [19:04:40]*** Brake cut motor [19:04:40]Read from MH i2c: 01 [19:04:40]MH_I2C_Read... [19:04:40]*** Stop cut motor [19:04:40]*** Cut end [19:04:40]Read from MH i2c: 01 07 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: 01 07 00 50 35 00 00 00 00 00 FF 0F 9A [19:04:40]process_action close_receipt done [19:04:40]requested_data is exist [19:04:40]produce_requested_data [19:04:40]requested_item fm.sn is exist - process it [19:04:40]wFMCommunicate request_size=4 [19:04:40]MH_SAM_APDU [19:04:40]CAPDU: 80 11 00 00 [19:04:40]Write to MH i2c: E2 08 00 51 35 80 11 00 00 00 00 00 00 00 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:40]Read from MH i2c: E2 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 17 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 17 00 51 35 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: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 [19:04:40]wFMCommunicate OK [19:04:40]requested_item fd.num is exist - process it [19:04:40]SAM_PROTO_GetFieldsCounters [19:04:40]wFMCommunicate request_size=4 [19:04:40]MH_SAM_APDU [19:04:40]CAPDU: 80 13 00 00 [19:04:40]Write to MH i2c: E2 08 00 52 35 80 13 00 00 00 00 00 00 03 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:40]Read from MH i2c: E2 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 62 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 62 00 52 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 81 14 01 00 0E 04 04 00 C4 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 02 [19: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 81 14 01 00 0E 04 04 00 C4 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 [19:04:40]wFMCommunicate OK [19:04:40]SAM_PROTO_GetFieldsCounters done [19:04:40]requested_item shift.num is exist - process it [19:04:40]requested_item shift.opened is exist - process it [19:04:40]req_shift_opened [19:04:40]FM_GetShiftState [19:04:40]SAM_PROTO_GetShiftState [19:04:40]wFMCommunicate request_size=4 [19:04:40]MH_SAM_APDU [19:04:40]CAPDU: 80 13 01 00 [19:04:40]Write to MH i2c: E2 08 00 53 35 80 13 01 00 00 00 00 00 05 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:40]Read from MH i2c: E2 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 53 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 92 [19:04:40]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:04:40]wFMCommunicate OK [19:04:40]SAM_PROTO_GetShiftState done [19:04:40]FM_GetShiftState done [19:04:40]req_shift_opened done [19:04:40]requested_item shift.open_date is exist - process it [19:04:40]req_shift_open_date [19:04:40]req_shift_open_date done [19:04:40]produce_requested_data done [19:04:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70785,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:04:40]process_action_free close_receipt [19:04:40]json_value_free [19:04:40]json_value_free done [19:04:40]process_json_proto returns [19:04:40]Send response to host [19:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70785,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:04:40]free response buf [19:04:40]execute_script done [19:04:40]execute_script returns [19:04:40]free content buf [19:04:40]Sock 9.Close socket [19:04:40]Sock 9.Thread stoped [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:23]accept exits with 7 [19:05:23]New connection [19:05:23]New thread 3067034980 created [19:05:23]Thread 3066891620 joined [19:05:23]Waiting for new connection... [19:05:23] Sock 7.Parse request [19:05:23]Sock 7.Check first char [19:05:23]Sock 7.First char is OK [19:05:23]request: POST /json_proto HTTP/1.0 [19:05:23]Method: POST [19:05:23]URL: /json_proto [19:05:23]Method is POST - this is cgi request [19:05:23]url: /json_proto [19:05:23]query_string will be loaded in cgi processing [19:05:23]execute_cgi json_proto POST (null) [19:05:23]execute_cgi path=json_proto method=POST [19:05:23]POST find Content-Length [19:05:23]Host: 172.17.50.3:8080 [19:05:23]Content-Length: 683 [19:05:23]Content-Type: application/json [19:05:23] [19:05:23]POST finish read [19:05:23]Found Content-Length = 683 [19:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886569", "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.540, "sum" : 915.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:23]execute_script... [19:05: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)2886569", "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.540, "sum" : 915.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:23]POST & json_proto [19:05:23]process_json_proto [19:05:23]json parsed OK: [19:05:23]protocol is kg_v1.0 [19:05:23]action value=close_receipt [19:05:23]process_action close_receipt [19:05:23]cmd_close_receipt [19:05:23]MH_GetDate [19:05:23]Write to MH i2c: F0 00 00 54 35 78 [19:05:23]Write i2c OK [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: F0 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: F0 09 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: F0 09 00 54 35 00 F6 48 19 67 6B 98 1E 66 C6 [19:05:23]GetLastDocTimeStamp 1729710279 [19:05:23]current date 1729710326 [19:05:23]FM_GetShiftState [19:05:23]SAM_PROTO_GetShiftState [19:05:23]wFMCommunicate request_size=4 [19:05:23]MH_SAM_APDU [19:05:23]CAPDU: 80 13 01 00 [19:05:23]Write to MH i2c: E2 08 00 55 35 80 13 01 00 00 00 00 00 07 [19:05:23]Write i2c OK [19:05:23]MH_I2C_Read... [19:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:23]Read from MH i2c: E2 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 0E 00 [19:05:23]MH_I2C_Read... [19:05:23]Read from MH i2c: E2 0E 00 55 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 94 [19:05:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:05:23]wFMCommunicate OK [19:05:23]SAM_PROTO_GetShiftState done [19:05:23]FM_GetShiftState done [19:05:23]opened in 1729642435 [19:05:23]opened+sec_in_day 1729728835 [19:05:23]quantity*price = 91570 [19:05:23]sum+1 = 91572 [19:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 915.00 Внесено: 6000.00 СДАЧА: 5085.00 НСП 1% : 8.10 НДС 12% : 97.24 Наличными: 915.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 302 23.10.2024 19:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70786 ФПД: 239669708461649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70786&fm=239669708461649&tin=02508201610067®Number=0000000000156251&sum=91500 [19:05:24]StoreToDocumentArchive [19:05:24]shift 196 fd 70786 [19:05:24]save to /storage/0196/doc_00070786 [19:05:24]save last doc name /storage/0196/doc_00070786 to /storage/kkm_last_doc_name [19:05:24]save OK [19:05:24]Clear old archive folders... [19:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:05:24]tlvbuf is B6DBCAC0 [19:05:24]SAM_PROTO_ClearQueue [19:05:24]wFMCommunicate request_size=4 [19:05:24]MH_SAM_APDU [19:05:24]CAPDU: 80 09 00 00 [19:05:24]Write to MH i2c: E2 08 00 62 35 80 09 00 00 00 00 00 00 09 [19:05:24]Write i2c OK [19:05:24]MH_I2C_Read... [19:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:24]Read from MH i2c: E2 [19:05:24]MH_I2C_Read... [19:05:24]Read from MH i2c: E2 03 00 [19:05:24]MH_I2C_Read... [19:05:24]Read from MH i2c: E2 03 00 62 35 00 90 00 0B [19:05:24]RAPDU: 90 00 [19:05:24]wFMCommunicate OK [19:05:24]SAM_PROTO_ClearQueue done [19:05:24]KKMCreateOFDPacket [19:05:24]OFDProtocolAddRootSTLVToBuf [19:05:24]FM_MakeSignedData [19:05:24]FM_MakeSignedData [19:05:24]SAM_PROTO_SignData [19:05:24]wFMCommunicate request_size=4 [19:05:24]MH_SAM_APDU [19:05:24]CAPDU: 80 0D 01 02 [19:05:24]Write to MH i2c: E2 08 00 63 35 80 0D 01 02 00 00 00 00 11 [19:05:24]Write i2c OK [19:05:24]MH_I2C_Read... [19:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:24]Read from MH i2c: E2 [19:05:24]MH_I2C_Read... [19:05:24]Read from MH i2c: E2 03 00 [19:05:24]MH_I2C_Read... [19:05:24]Read from MH i2c: E2 03 00 63 35 00 90 00 0C [19:05:24]RAPDU: 90 00 [19:05:24]wFMCommunicate OK [19:05:24]wFMCommunicate request_size=255 [19:05:24]MH_SAM_APDU [19:05: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 F4 5B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 25 00 00 00 00 07 04 06 00 6C 65 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 01 00 00 F4 03 04 00 F6 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D9 FA [19:05:24]Write to MH i2c: E2 02 01 64 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 F4 5B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 25 00 00 00 00 07 04 06 00 6C 65 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 01 00 00 F4 03 04 00 F6 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D9 FA 00 00 79 [19:05:25]Write i2c OK [19:05:25]MH_I2C_Read... [19:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:25]Read from MH i2c: E2 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 03 00 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 03 00 64 35 00 90 00 0D [19:05:25]RAPDU: 90 00 [19:05:25]wFMCommunicate OK [19:05:25]wFMCommunicate request_size=9 [19:05:25]MH_SAM_APDU [19:05:25]CAPDU: 80 0D 02 02 04 73 D6 16 51 [19:05:25]Write to MH i2c: E2 0C 00 65 35 80 0D 02 02 04 00 73 D6 16 51 00 00 CC [19:05:25]Write i2c OK [19:05:25]MH_I2C_Read... [19:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:25]Read from MH i2c: E2 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 03 00 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 03 00 65 35 00 90 00 0E [19:05:25]RAPDU: 90 00 [19:05:25]wFMCommunicate OK [19:05:25]wFMCommunicate request_size=4 [19:05:25]MH_SAM_APDU [19:05:25]CAPDU: 80 0D 03 02 [19:05:25]Write to MH i2c: E2 08 00 66 35 80 0D 03 02 00 00 00 00 16 [19:05:25]Write i2c OK [19:05:25]MH_I2C_Read... [19:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:25]Read from MH i2c: E2 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 0B 00 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 0B 00 66 35 00 15 13 F6 85 3E 57 91 E1 90 00 C1 [19:05:25]RAPDU: 15 13 F6 85 3E 57 91 E1 90 00 [19:05:25]wFMCommunicate OK [19:05:25]SAM_PROTO_SignData done [19:05:25]FM_MakeSignedData done [19:05:25]CreateOFDProtocolMessage [19:05:25]wFMCommunicate request_size=4 [19:05:25]MH_SAM_APDU [19:05:25]CAPDU: 80 11 00 00 [19:05:25]Write to MH i2c: E2 08 00 67 35 80 11 00 00 00 00 00 00 16 [19:05:25]Write i2c OK [19:05:25]MH_I2C_Read... [19:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:25]Read from MH i2c: E2 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 17 00 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: E2 17 00 67 35 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:05:25]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:25]wFMCommunicate OK [19:05:25]CreateOFDProtocolMessage done [19:05:25]OFDSenderStorePacket 70786 [19:05:25]StoreOFDPacket docnum=70786 [19:05: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 E9 A7 06 01 32 54 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 F4 5B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 25 00 00 00 00 07 04 06 00 6C 65 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 01 00 00 F4 03 04 00 F6 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D9 FA 73 D6 16 51 15 13 F6 85 3E 57 91 E1 [19:05:25]CheckFolder [19:05:25]dirname=/storage/ofd_packets [19:05:25]CheckFolder done [19:05:25]ProducePacketName [19:05:25]name=ofd_packets/00070786 [19:05:25]NVStorageSaveData ofd_packets/00070786 [19:05:25]File name is /storage/ofd_packets/00070786 [19:05:25]Write 300 bytes [19:05:25]NVStorageSaveData done [19:05:25]OFDSenderStorePacket done [19:05:25]KKMCreateOFDPacket done [19:05:25]NVStorageSaveData kkm_last_timestamp [19:05:25]File name is /storage/kkm_last_timestamp [19:05:25]Write 4 bytes [19:05:25]NVStorageSaveData done [19:05:25]ExternCall_PrintAddStr [19:05:25]wPrintStart [19:05:25]Write to MH i2c: 01 00 00 68 35 9D [19:05:25]Write i2c OK [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: 01 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: 01 07 00 [19:05:25]MH_I2C_Read... [19:05:25]Read from MH i2c: 01 07 00 68 35 00 00 00 00 00 FF 0F B2 [19:05:25]RasterBufferAndPrint [19:05:25]line Счет N : (1)2886569 [19:05:25]line ИНН: 02508201610067 [19:05:25]line Контрольно-Кассовый Чек [19:05:25]line ПРОДАЖА [19:05:25]line ТРК (МРК, ГНК) : 71 [19:05:25]line Товар: 2711129700 [19:05:25]line ГАЗ-К-3 [19:05:25]line 23.540 * 38.90 [19:05:25]line = 915.71 [19:05:25]line НДС 12% НСП 1% [19:05:25]line > о реализуемом товаре [19:05:25]line ОКРУГЛЕНИЕ: -0.71 [19:05:25]line ИТОГО: 915.00 [19:05:25]line Внесено: 6000.00 [19:05:25]line СДАЧА: 5085.00 [19:05:25]line НСП 1% : 8.10 [19:05:25]line НДС 12% : 97.24 [19:05:25]line Наличными: 915.00 [19:05:25]line Безнал.: 0.00 [19:05:25]line Место: АЗС № 85 "Партнер Нефть" [19:05:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:05:25]line СНО: Общий режим [19:05:25]line Чек 302 23.10.2024 19:05 [19:05:25]line Смена: 196 ФФД: 1.0 [19:05:25]line ЗНМ: 0300000167 [19:05:25]line РНМ: 0000000000156251 [19:05:25]line Версия ККМ: v1.0 [19:05:25]line ФМ: 0000000000963346 [19:05:25]line ФД: 70786 [19:05:25]line ФПД: 239669708461649 [19:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70786&fm=239669708461649&tin=02508201610067®Number=0000000000156251&sum=91500 [19:05:25]OFD Sender: Processing packet 70786 [packets to send 18, broken 17] [19:05:25]ProducePacketName [19:05:25]name=ofd_packets/00070786 [19:05:25]OFD Sender: To server: pG, [19:05:25]CommunicateWithHost lk.salyk.kg:30040 [19:05:25]ConnectInit lk.salyk.kg [19:05:25]written 0, free lines is 4095 [19:05:25]Connected sock=10 [19:05: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 E9 A7 06 01 32 54 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 F4 5B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 25 00 00 00 00 07 04 06 00 6C 65 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 01 00 00 F4 03 04 00 F6 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 D9 FA 73 D6 16 51 15 13 F6 85 3E 57 91 E1 [19:05: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 F6 51 47 00 8F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 14 01 00 F4 03 04 00 93 F2 18 67 B6 04 01 00 00 A6 AA 57 8F DA 77 1B 9E [19:05:26]CommunicateWithHost err = 0 [19:05:26]CheckOFDResponse [19:05:26]1017 (14) - 77093643461234 [19:05:26]1041 (16) - 0000000000963346 [19:05:26]1040 (4) - 70786 [19:05:26]1012 (4) - 23.10.2024 12:56 [19:05:26]1206 (1) - 0 [19:05:26]OFD Sender: Remove packet 70786 [19:05:26]ProducePacketName [19:05:26]name=ofd_packets/00070786 [19:05:26]NVStorageDeleteData [19:05:26]Write to MH i2c: 01 00 00 93 35 C8 [19:05:26]Write i2c OK [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: 01 [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: 01 07 00 [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: 01 07 00 93 35 00 00 00 00 00 E0 0C BB [19:05:26]RasterBufferAndPrint [19:05:26]line [19:05:26]line [19:05:26]line [19:05:26]line [19:05:26]line [19:05:26]written 0, free lines is 3302 [19:05:26]MH_Cut [19:05:26]Write to MH i2c: D1 01 00 9A 35 01 A1 [19:05:26]Write i2c OK [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: D1 [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: D1 01 00 [19:05:26]MH_I2C_Read... [19:05:26]Read from MH i2c: D1 01 00 9A 35 00 A0 [19:05:26]Write to MH i2c: 01 00 00 9B 35 D0 [19:05:26]Write i2c OK [19:05:26]MH_I2C_Read... [19:05:26]OFD Sender: No OFD packet to send [19:05:26]*** Cut start [19:05:26]*** Partial cut [19:05:26]*** CUTSNS_PIN = 1 [19:05:26]*** CUTSNS_PIN = 0 [19:05:27]*** Brake cut motor [19:05:27]Read from MH i2c: 01 [19:05:27]MH_I2C_Read... [19:05:27]*** Stop cut motor [19:05:27]*** Cut end [19:05:27]Read from MH i2c: 01 07 00 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: 01 07 00 9B 35 00 00 00 00 00 FF 0F E5 [19:05:27]process_action close_receipt done [19:05:27]requested_data is exist [19:05:27]produce_requested_data [19:05:27]requested_item fm.sn is exist - process it [19:05:27]wFMCommunicate request_size=4 [19:05:27]MH_SAM_APDU [19:05:27]CAPDU: 80 11 00 00 [19:05:27]Write to MH i2c: E2 08 00 9C 35 80 11 00 00 00 00 00 00 4B [19:05:27]Write i2c OK [19:05:27]MH_I2C_Read... [19:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:27]Read from MH i2c: E2 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 17 00 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 17 00 9C 35 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: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 [19:05:27]wFMCommunicate OK [19:05:27]requested_item fd.num is exist - process it [19:05:27]SAM_PROTO_GetFieldsCounters [19:05:27]wFMCommunicate request_size=4 [19:05:27]MH_SAM_APDU [19:05:27]CAPDU: 80 13 00 00 [19:05:27]Write to MH i2c: E2 08 00 9D 35 80 13 00 00 00 00 00 00 4E [19:05:27]Write i2c OK [19:05:27]MH_I2C_Read... [19:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:27]Read from MH i2c: E2 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 62 00 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 62 00 9D 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 82 14 01 00 0E 04 04 00 C4 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 51 [19:05: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 82 14 01 00 0E 04 04 00 C4 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 [19:05:27]wFMCommunicate OK [19:05:27]SAM_PROTO_GetFieldsCounters done [19:05:27]requested_item shift.num is exist - process it [19:05:27]requested_item shift.opened is exist - process it [19:05:27]req_shift_opened [19:05:27]FM_GetShiftState [19:05:27]SAM_PROTO_GetShiftState [19:05:27]wFMCommunicate request_size=4 [19:05:27]MH_SAM_APDU [19:05:27]CAPDU: 80 13 01 00 [19:05:27]Write to MH i2c: E2 08 00 9E 35 80 13 01 00 00 00 00 00 50 [19:05:27]Write i2c OK [19:05:27]MH_I2C_Read... [19:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:27]Read from MH i2c: E2 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 0E 00 [19:05:27]MH_I2C_Read... [19:05:27]Read from MH i2c: E2 0E 00 9E 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DD [19:05:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:05:27]wFMCommunicate OK [19:05:27]SAM_PROTO_GetShiftState done [19:05:27]FM_GetShiftState done [19:05:27]req_shift_opened done [19:05:27]requested_item shift.open_date is exist - process it [19:05:27]req_shift_open_date [19:05:27]req_shift_open_date done [19:05:27]produce_requested_data done [19:05:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70786,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:05:27]process_action_free close_receipt [19:05:27]json_value_free [19:05:27]json_value_free done [19:05:27]process_json_proto returns [19:05:27]Send response to host [19:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70786,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:05:27]free response buf [19:05:27]execute_script done [19:05:27]execute_script returns [19:05:27]free content buf [19:05:27]Sock 7.Close socket [19:05:27]Sock 7.Thread stoped [19:05:31]OFD Sender: No OFD packet to send [19:05:31]accept exits with 9 [19:05:31]New connection [19:05:31]New thread 3066891620 created [19:05:31]Thread 3067034980 joined [19:05:31]Waiting for new connection... [19:05:31] Sock 9.Parse request [19:05:31]Sock 9.Check first char [19:05:31]Sock 9.First char is OK [19:05:31]request: POST /json_proto HTTP/1.0 [19:05:31]Method: POST [19:05:31]URL: /json_proto [19:05:31]Method is POST - this is cgi request [19:05:31]url: /json_proto [19:05:31]query_string will be loaded in cgi processing [19:05:31]execute_cgi json_proto POST (null) [19:05:31]execute_cgi path=json_proto method=POST [19:05:31]POST find Content-Length [19:05:31]Host: 172.17.50.3:8080 [19:05:31]Content-Length: 683 [19:05:31]Content-Type: application/json [19:05:31] [19:05:31]POST finish read [19:05:31]Found Content-Length = 683 [19:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886572", "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" ] } } [19:05:31]execute_script... [19:05: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)2886572", "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" ] } } [19:05:31]POST & json_proto [19:05:31]process_json_proto [19:05:31]json parsed OK: [19:05:31]protocol is kg_v1.0 [19:05:31]action value=close_receipt [19:05:31]process_action close_receipt [19:05:31]cmd_close_receipt [19:05:31]MH_GetDate [19:05:31]Write to MH i2c: F0 00 00 9F 35 C3 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: F0 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: F0 09 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: F0 09 00 9F 35 00 FE 48 19 67 6B 98 1E 66 19 [19:05:31]GetLastDocTimeStamp 1729710326 [19:05:31]current date 1729710334 [19:05:31]FM_GetShiftState [19:05:31]SAM_PROTO_GetShiftState [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 13 01 00 [19:05:31]Write to MH i2c: E2 08 00 A0 35 80 13 01 00 00 00 00 00 52 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0E 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0E 00 A0 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DF [19:05:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:05:31]wFMCommunicate OK [19:05:31]SAM_PROTO_GetShiftState done [19:05:31]FM_GetShiftState done [19:05:31]opened in 1729642435 [19:05:31]opened+sec_in_day 1729728835 [19:05:31]quantity*price = 120018 [19:05:31]sum+1 = 120020 [19:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 303 23.10.2024 19:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70787 ФПД: 224729847863077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70787&fm=224729847863077&tin=02508201610067®Number=0000000000156251&sum=120000 [19:05:32]StoreToDocumentArchive [19:05:32]shift 196 fd 70787 [19:05:32]save to /storage/0196/doc_00070787 [19:05:32]save last doc name /storage/0196/doc_00070787 to /storage/kkm_last_doc_name [19:05:32]save OK [19:05:32]Clear old archive folders... [19:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:32]tlvbuf is 00165A50 [19:05:32]SAM_PROTO_ClearQueue [19:05:32]wFMCommunicate request_size=4 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 09 00 00 [19:05:32]Write to MH i2c: E2 08 00 AD 35 80 09 00 00 00 00 00 00 54 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:32]Read from MH i2c: E2 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 03 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 03 00 AD 35 00 90 00 56 [19:05:32]RAPDU: 90 00 [19:05:32]wFMCommunicate OK [19:05:32]SAM_PROTO_ClearQueue done [19:05:32]KKMCreateOFDPacket [19:05:32]OFDProtocolAddRootSTLVToBuf [19:05:32]FM_MakeSignedData [19:05:32]FM_MakeSignedData [19:05:32]SAM_PROTO_SignData [19:05:32]wFMCommunicate request_size=4 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 0D 01 02 [19:05:32]Write to MH i2c: E2 08 00 AE 35 80 0D 01 02 00 00 00 00 5C [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:32]Read from MH i2c: E2 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 03 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 03 00 AE 35 00 90 00 57 [19:05:32]RAPDU: 90 00 [19:05:32]wFMCommunicate OK [19:05:32]wFMCommunicate request_size=255 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 01 00 00 F4 03 04 00 FE 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CC [19:05:32]Write to MH i2c: E2 02 01 AF 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 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 2F 01 00 00 F4 03 04 00 FE 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CC 00 00 0A [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 03 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 03 00 AF 35 00 90 00 58 [19:05:33]RAPDU: 90 00 [19:05:33]wFMCommunicate OK [19:05:33]wFMCommunicate request_size=10 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 0D 02 02 05 63 FE C0 97 25 [19:05:33]Write to MH i2c: E2 0D 00 B0 35 80 0D 02 02 05 00 63 FE C0 97 25 00 00 46 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 03 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 03 00 B0 35 00 90 00 59 [19:05:33]RAPDU: 90 00 [19:05:33]wFMCommunicate OK [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 0D 03 02 [19:05:33]Write to MH i2c: E2 08 00 B1 35 80 0D 03 02 00 00 00 00 61 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0B 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0B 00 B1 35 00 22 78 B5 35 CA 67 13 EC 90 00 16 [19:05:33]RAPDU: 22 78 B5 35 CA 67 13 EC 90 00 [19:05:33]wFMCommunicate OK [19:05:33]SAM_PROTO_SignData done [19:05:33]FM_MakeSignedData done [19:05:33]CreateOFDProtocolMessage [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 11 00 00 [19:05:33]Write to MH i2c: E2 08 00 B2 35 80 11 00 00 00 00 00 00 61 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 B2 35 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:05: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:05:33]wFMCommunicate OK [19:05:33]CreateOFDProtocolMessage done [19:05:33]OFDSenderStorePacket 70787 [19:05:33]StoreOFDPacket docnum=70787 [19:05: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 8B BC 07 01 88 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 01 00 00 F4 03 04 00 FE 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CC 63 FE C0 97 25 22 78 B5 35 CA 67 13 EC [19:05:33]CheckFolder [19:05:33]dirname=/storage/ofd_packets [19:05:33]CheckFolder done [19:05:33]ProducePacketName [19:05:33]name=ofd_packets/00070787 [19:05:33]NVStorageSaveData ofd_packets/00070787 [19:05:33]File name is /storage/ofd_packets/00070787 [19:05:33]Write 301 bytes [19:05:33]NVStorageSaveData done [19:05:33]OFDSenderStorePacket done [19:05:33]KKMCreateOFDPacket done [19:05:33]NVStorageSaveData kkm_last_timestamp [19:05:33]File name is /storage/kkm_last_timestamp [19:05:33]Write 4 bytes [19:05:33]NVStorageSaveData done [19:05:33]ExternCall_PrintAddStr [19:05:33]wPrintStart [19:05:33]Write to MH i2c: 01 00 00 B3 35 E8 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 B3 35 00 00 00 00 00 FF 0F FD [19:05:33]RasterBufferAndPrint [19:05:33]line Счет N : (1)2886572 [19:05:33]line ИНН: 02508201610067 [19:05:33]line Контрольно-Кассовый Чек [19:05:33]line ПРОДАЖА [19:05:33]line ТРК (МРК, ГНК) : 32 [19:05:33]line Товар: 2710124130 [19:05:33]line Аи-92-К-5 [19:05:33]line 17.940 * 66.90 [19:05:33]line = 1200.19 [19:05:33]line НДС 12% НСП 1% [19:05:33]line > о реализуемом товаре [19:05:33]line ОКРУГЛЕНИЕ: -0.19 [19:05:33]line ИТОГО: 1200.00 [19:05:33]line Внесено: 1200.00 [19:05:33]line СДАЧА: 0.00 [19:05:33]line НСП 1% : 10.62 [19:05:33]line НДС 12% : 127.45 [19:05:33]line Наличными: 1200.00 [19:05:33]line Безнал.: 0.00 [19:05:33]line Место: АЗС № 85 "Партнер Нефть" [19:05:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:05:33]line СНО: Общий режим [19:05:33]line Чек 303 23.10.2024 19:05 [19:05:33]line Смена: 196 ФФД: 1.0 [19:05:33]line ЗНМ: 0300000167 [19:05:33]line РНМ: 0000000000156251 [19:05:33]line Версия ККМ: v1.0 [19:05:33]line ФМ: 0000000000963346 [19:05:33]line ФД: 70787 [19:05:33]line ФПД: 224729847863077 [19:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70787&fm=224729847863077&tin=02508201610067®Number=0000000000156251&sum=120000 [19:05:33]written 0, free lines is 4095 [19:05:33]OFD Sender: Processing packet 70787 [packets to send 18, broken 17] [19:05:33]ProducePacketName [19:05:33]name=ofd_packets/00070787 [19:05:33]OFD Sender: To server: pG, [19:05:33]CommunicateWithHost lk.salyk.kg:30040 [19:05:33]ConnectInit lk.salyk.kg [19:05:33]Connected sock=10 [19:05: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 8B BC 07 01 88 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 01 00 00 F4 03 04 00 FE 48 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 CC 63 FE C0 97 25 22 78 B5 35 CA 67 13 EC [19:05: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 64 24 47 00 76 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 83 14 01 00 F4 03 04 00 9A F2 18 67 B6 04 01 00 00 A1 9D 3D 2E D0 CC DB 25 [19:05:33]CommunicateWithHost err = 0 [19:05:33]CheckOFDResponse [19:05:33]1017 (14) - 77093643461234 [19:05:33]1041 (16) - 0000000000963346 [19:05:33]1040 (4) - 70787 [19:05:33]1012 (4) - 23.10.2024 12:56 [19:05:33]1206 (1) - 0 [19:05:33]OFD Sender: Remove packet 70787 [19:05:33]ProducePacketName [19:05:33]name=ofd_packets/00070787 [19:05:33]NVStorageDeleteData [19:05:33]Write to MH i2c: 01 00 00 DE 35 13 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 DE 35 00 00 00 00 00 FD 0C 23 [19:05:33]RasterBufferAndPrint [19:05:33]line [19:05:33]line [19:05:33]line [19:05:33]line [19:05:33]line [19:05:33]written 0, free lines is 3334 [19:05:33]MH_Cut [19:05:33]Write to MH i2c: D1 01 00 E5 35 01 EC [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: D1 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: D1 01 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: D1 01 00 E5 35 00 EB [19:05:33]Write to MH i2c: 01 00 00 E6 35 1B [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:34]OFD Sender: No OFD packet to send [19:05:34]*** Cut start [19:05:34]*** Partial cut [19:05:34]*** CUTSNS_PIN = 1 [19:05:34]*** CUTSNS_PIN = 0 [19:05:34]*** Brake cut motor [19:05:35]Read from MH i2c: 01 [19:05:35]MH_I2C_Read... [19:05:35]*** Stop cut motor [19:05:35]*** Cut end [19:05:35]Read from MH i2c: 01 07 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: 01 07 00 E6 35 00 00 00 00 00 FF 0F 30 [19:05:35]process_action close_receipt done [19:05:35]requested_data is exist [19:05:35]produce_requested_data [19:05:35]requested_item fm.sn is exist - process it [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 11 00 00 [19:05:35]Write to MH i2c: E2 08 00 E7 35 80 11 00 00 00 00 00 00 96 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 17 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 17 00 E7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [19: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 [19:05:35]wFMCommunicate OK [19:05:35]requested_item fd.num is exist - process it [19:05:35]SAM_PROTO_GetFieldsCounters [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 13 00 00 [19:05:35]Write to MH i2c: E2 08 00 E8 35 80 13 00 00 00 00 00 00 99 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 62 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 62 00 E8 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 83 14 01 00 0E 04 04 00 C4 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 A0 [19:05: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 83 14 01 00 0E 04 04 00 C4 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 [19:05:35]wFMCommunicate OK [19:05:35]SAM_PROTO_GetFieldsCounters done [19:05:35]requested_item shift.num is exist - process it [19:05:35]requested_item shift.opened is exist - process it [19:05:35]req_shift_opened [19:05:35]FM_GetShiftState [19:05:35]SAM_PROTO_GetShiftState [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 13 01 00 [19:05:35]Write to MH i2c: E2 08 00 E9 35 80 13 01 00 00 00 00 00 9B [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 0E 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 0E 00 E9 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 28 [19:05:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:05:35]wFMCommunicate OK [19:05:35]SAM_PROTO_GetShiftState done [19:05:35]FM_GetShiftState done [19:05:35]req_shift_opened done [19:05:35]requested_item shift.open_date is exist - process it [19:05:35]req_shift_open_date [19:05:35]req_shift_open_date done [19:05:35]produce_requested_data done [19:05:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70787,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:05:35]process_action_free close_receipt [19:05:35]json_value_free [19:05:35]json_value_free done [19:05:35]process_json_proto returns [19:05:35]Send response to host [19:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70787,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:05:35]free response buf [19:05:35]execute_script done [19:05:35]execute_script returns [19:05:35]free content buf [19:05:35]Sock 9.Close socket [19:05:35]Sock 9.Thread stoped [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:27]accept exits with 7 [19:06:27]New connection [19:06:27]New thread 3067034980 created [19:06:27]Thread 3066891620 joined [19:06:27]Waiting for new connection... [19:06:27] Sock 7.Parse request [19:06:27]Sock 7.Check first char [19:06:27]Sock 7.First char is OK [19:06:27]request: POST /json_proto HTTP/1.0 [19:06:27]Method: POST [19:06:27]URL: /json_proto [19:06:27]Method is POST - this is cgi request [19:06:27]url: /json_proto [19:06:27]query_string will be loaded in cgi processing [19:06:27]execute_cgi json_proto POST (null) [19:06:27]execute_cgi path=json_proto method=POST [19:06:27]POST find Content-Length [19:06:27]Host: 172.17.50.3:8080 [19:06:27]Content-Length: 683 [19:06:27]Content-Type: application/json [19:06:27] [19:06:27]POST finish read [19:06:27]Found Content-Length = 683 [19:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886573", "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:06:27]execute_script... [19:06: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)2886573", "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:06:27]POST & json_proto [19:06:27]process_json_proto [19:06:27]json parsed OK: [19:06:27]protocol is kg_v1.0 [19:06:27]action value=close_receipt [19:06:27]process_action close_receipt [19:06:27]cmd_close_receipt [19:06:27]MH_GetDate [19:06:27]Write to MH i2c: F0 00 00 EA 35 0E [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 09 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: F0 09 00 EA 35 00 35 49 19 67 6B 98 1E 66 9C [19:06:27]GetLastDocTimeStamp 1729710334 [19:06:27]current date 1729710389 [19:06:27]FM_GetShiftState [19:06:27]SAM_PROTO_GetShiftState [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 13 01 00 [19:06:27]Write to MH i2c: E2 08 00 EB 35 80 13 01 00 00 00 00 00 9D [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0E 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 0E 00 EB 35 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2A [19:06:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:06:27]wFMCommunicate OK [19:06:27]SAM_PROTO_GetShiftState done [19:06:27]FM_GetShiftState done [19:06:27]opened in 1729642435 [19:06:27]opened+sec_in_day 1729728835 [19:06:27]quantity*price = 100021 [19:06:27]sum+1 = 100023 [19:06:27]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 СНО: Общий режим Чек 304 23.10.2024 19:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70788 ФПД: 65488728828800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70788&fm=65488728828800&tin=02508201610067®Number=0000000000156251&sum=100000 [19:06:28]StoreToDocumentArchive [19:06:28]shift 196 fd 70788 [19:06:28]save to /storage/0196/doc_00070788 [19:06:28]save last doc name /storage/0196/doc_00070788 to /storage/kkm_last_doc_name [19:06:28]save OK [19:06:28]Clear old archive folders... [19:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:28]tlvbuf is 001AD830 [19:06:28]SAM_PROTO_ClearQueue [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 09 00 00 [19:06:28]Write to MH i2c: E2 08 00 F8 35 80 09 00 00 00 00 00 00 9F [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 F8 35 00 90 00 A1 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_ClearQueue done [19:06:28]KKMCreateOFDPacket [19:06:28]OFDProtocolAddRootSTLVToBuf [19:06:28]FM_MakeSignedData [19:06:28]FM_MakeSignedData [19:06:28]SAM_PROTO_SignData [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 01 02 [19:06:28]Write to MH i2c: E2 08 00 F9 35 80 0D 01 02 00 00 00 00 A7 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 F9 35 00 90 00 A2 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=255 [19:06:28]MH_SAM_APDU [19:06: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 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 30 01 00 00 F4 03 04 00 35 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3B [19:06:28]Write to MH i2c: E2 02 01 FA 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 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 30 01 00 00 F4 03 04 00 35 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3B 00 00 14 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 FA 35 00 90 00 A3 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=10 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 02 02 05 8F C8 6B 2B 80 [19:06:28]Write to MH i2c: E2 0D 00 FB 35 80 0D 02 02 05 00 8F C8 6B 2B 80 00 00 21 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 FB 35 00 90 00 A4 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 03 02 [19:06:28]Write to MH i2c: E2 08 00 FC 35 80 0D 03 02 00 00 00 00 AC [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 FC 35 00 7D CB 92 C2 04 66 76 B2 90 00 DB [19:06:28]RAPDU: 7D CB 92 C2 04 66 76 B2 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_SignData done [19:06:28]FM_MakeSignedData done [19:06:28]CreateOFDProtocolMessage [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 11 00 00 [19:06:28]Write to MH i2c: E2 08 00 FD 35 80 11 00 00 00 00 00 00 AC [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 FD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [19:06: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:06:28]wFMCommunicate OK [19:06:28]CreateOFDProtocolMessage done [19:06:28]OFDSenderStorePacket 70788 [19:06:28]StoreOFDPacket docnum=70788 [19:06: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 21 89 07 01 22 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 30 01 00 00 F4 03 04 00 35 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3B 8F C8 6B 2B 80 7D CB 92 C2 04 66 76 B2 [19:06:28]CheckFolder [19:06:28]dirname=/storage/ofd_packets [19:06:28]CheckFolder done [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00070788 [19:06:28]NVStorageSaveData ofd_packets/00070788 [19:06:28]File name is /storage/ofd_packets/00070788 [19:06:28]Write 301 bytes [19:06:28]NVStorageSaveData done [19:06:28]OFDSenderStorePacket done [19:06:28]KKMCreateOFDPacket done [19:06:28]NVStorageSaveData kkm_last_timestamp [19:06:28]File name is /storage/kkm_last_timestamp [19:06:28]Write 4 bytes [19:06:28]NVStorageSaveData done [19:06:28]ExternCall_PrintAddStr [19:06:28]wPrintStart [19:06:28]Write to MH i2c: 01 00 00 FE 35 33 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 FE 35 00 00 00 00 00 FF 0F 48 [19:06:28]RasterBufferAndPrint [19:06:28]line Счет N : (1)2886573 [19:06:28]line ИНН: 02508201610067 [19:06:28]line Контрольно-Кассовый Чек [19:06:28]line ПРОДАЖА [19:06:28]line ТРК (МРК, ГНК) : 13 [19:06:28]line Товар: 2710124500 [19:06:28]line Аи-95-К-5 [19:06:28]line 13.480 * 74.20 [19:06:28]line = 1000.22 [19:06:28]line НДС 12% НСП 1% [19:06:28]line > о реализуемом товаре [19:06:28]line ОКРУГЛЕНИЕ: -0.22 [19:06:28]line ИТОГО: 1000.00 [19:06:28]line Внесено: 1000.00 [19:06:28]line СДАЧА: 0.00 [19:06:28]line НСП 1% : 8.85 [19:06:28]line НДС 12% : 106.22 [19:06:28]line Наличными: 1000.00 [19:06:28]line Безнал.: 0.00 [19:06:28]line Место: АЗС № 85 "Партнер Нефть" [19:06:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:06:28]line СНО: Общий режим [19:06:28]line Чек 304 23.10.2024 19:06 [19:06:29]line Смена: 196 ФФД: 1.0 [19:06:29]line ЗНМ: 0300000167 [19:06:29]line РНМ: 0000000000156251 [19:06:29]line Версия ККМ: v1.0 [19:06:29]line ФМ: 0000000000963346 [19:06:29]line ФД: 70788 [19:06:29]line ФПД: 65488728828800 [19:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70788&fm=65488728828800&tin=02508201610067®Number=0000000000156251&sum=100000 [19:06:29]OFD Sender: Processing packet 70788 [packets to send 18, broken 17] [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00070788 [19:06:29]OFD Sender: To server: pG, [19:06:29]CommunicateWithHost lk.salyk.kg:30040 [19:06:29]ConnectInit lk.salyk.kg [19:06:29]written 0, free lines is 4095 [19:06:29]Connected sock=10 [19:06: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 21 89 07 01 22 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 30 01 00 00 F4 03 04 00 35 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3B 8F C8 6B 2B 80 7D CB 92 C2 04 66 76 B2 [19:06: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 9A 46 47 00 1F 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 84 14 01 00 F4 03 04 00 D2 F2 18 67 B6 04 01 00 00 A7 40 8D 3E 28 5D EE 09 [19:06:29]CommunicateWithHost err = 0 [19:06:29]CheckOFDResponse [19:06:29]1017 (14) - 77093643461234 [19:06:29]1041 (16) - 0000000000963346 [19:06:29]1040 (4) - 70788 [19:06:29]1012 (4) - 23.10.2024 12:57 [19:06:29]1206 (1) - 0 [19:06:29]OFD Sender: Remove packet 70788 [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00070788 [19:06:29]NVStorageDeleteData [19:06:29]Write to MH i2c: 01 00 00 29 36 5F [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 29 36 00 00 00 00 00 EC 0C 5E [19:06:29]RasterBufferAndPrint [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]written 0, free lines is 3314 [19:06:29]MH_Cut [19:06:29]Write to MH i2c: D1 01 00 30 36 01 38 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 30 36 00 37 [19:06:29]Write to MH i2c: 01 00 00 31 36 67 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]OFD Sender: No OFD packet to send [19:06:30]*** Cut start [19:06:30]*** Partial cut [19:06:30]*** CUTSNS_PIN = 1 [19:06:30]*** CUTSNS_PIN = 0 [19:06:30]*** Brake cut motor [19:06:30]Read from MH i2c: 01 [19:06:30]MH_I2C_Read... [19:06:30]*** Stop cut motor [19:06:30]*** Cut end [19:06:30]Read from MH i2c: 01 07 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: 01 07 00 31 36 00 00 00 00 00 FF 0F 7C [19:06:30]process_action close_receipt done [19:06:30]requested_data is exist [19:06:30]produce_requested_data [19:06:30]requested_item fm.sn is exist - process it [19:06:30]wFMCommunicate request_size=4 [19:06:30]MH_SAM_APDU [19:06:30]CAPDU: 80 11 00 00 [19:06:30]Write to MH i2c: E2 08 00 32 36 80 11 00 00 00 00 00 00 E2 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:30]Read from MH i2c: E2 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 17 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 17 00 32 36 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:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:06:30]wFMCommunicate OK [19:06:30]requested_item fd.num is exist - process it [19:06:30]SAM_PROTO_GetFieldsCounters [19:06:30]wFMCommunicate request_size=4 [19:06:30]MH_SAM_APDU [19:06:30]CAPDU: 80 13 00 00 [19:06:30]Write to MH i2c: E2 08 00 33 36 80 13 00 00 00 00 00 00 E5 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 62 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 62 00 33 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 84 14 01 00 0E 04 04 00 C4 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 F0 [19:06: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 84 14 01 00 0E 04 04 00 C4 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 [19:06:31]wFMCommunicate OK [19:06:31]SAM_PROTO_GetFieldsCounters done [19:06:31]requested_item shift.num is exist - process it [19:06:31]requested_item shift.opened is exist - process it [19:06:31]req_shift_opened [19:06:31]FM_GetShiftState [19:06:31]SAM_PROTO_GetShiftState [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 13 01 00 [19:06:31]Write to MH i2c: E2 08 00 34 36 80 13 01 00 00 00 00 00 E7 [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 34 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 74 [19:06:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:06:31]wFMCommunicate OK [19:06:31]SAM_PROTO_GetShiftState done [19:06:31]FM_GetShiftState done [19:06:31]req_shift_opened done [19:06:31]requested_item shift.open_date is exist - process it [19:06:31]req_shift_open_date [19:06:31]req_shift_open_date done [19:06:31]produce_requested_data done [19:06:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70788,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:06:31]process_action_free close_receipt [19:06:31]json_value_free [19:06:31]json_value_free done [19:06:31]process_json_proto returns [19:06:31]Send response to host [19:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70788,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:06:31]free response buf [19:06:31]execute_script done [19:06:31]execute_script returns [19:06:31]free content buf [19:06:31]Sock 7.Close socket [19:06:31]Sock 7.Thread stoped [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:58]accept exits with 9 [19:07:58]New connection [19:07:58]New thread 3066891620 created [19:07:58]Thread 3067034980 joined [19:07:58]Waiting for new connection... [19:07:58] Sock 9.Parse request [19:07:58]Sock 9.Check first char [19:07:58]Sock 9.First char is OK [19:07:58]request: POST /json_proto HTTP/1.0 [19:07:58]Method: POST [19:07:58]URL: /json_proto [19:07:58]Method is POST - this is cgi request [19:07:58]url: /json_proto [19:07:58]query_string will be loaded in cgi processing [19:07:58]execute_cgi json_proto POST (null) [19:07:58]execute_cgi path=json_proto method=POST [19:07:58]POST find Content-Length [19:07:58]Host: 172.17.50.3:8080 [19:07:58]Content-Length: 683 [19:07:58]Content-Type: application/json [19:07:58] [19:07:58]POST finish read [19:07:58]Found Content-Length = 683 [19:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886574", "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" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:58]execute_script... [19:07: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)2886574", "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" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:58]POST & json_proto [19:07:58]process_json_proto [19:07:58]json parsed OK: [19:07:58]protocol is kg_v1.0 [19:07:58]action value=close_receipt [19:07:58]process_action close_receipt [19:07:58]cmd_close_receipt [19:07:58]MH_GetDate [19:07:58]Write to MH i2c: F0 00 00 35 36 5A [19:07:58]Write i2c OK [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 09 00 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 09 00 35 36 00 90 49 19 67 6B 98 1E 66 43 [19:07:58]GetLastDocTimeStamp 1729710389 [19:07:58]current date 1729710480 [19:07:58]FM_GetShiftState [19:07:58]SAM_PROTO_GetShiftState [19:07:58]wFMCommunicate request_size=4 [19:07:58]MH_SAM_APDU [19:07:58]CAPDU: 80 13 01 00 [19:07:58]Write to MH i2c: E2 08 00 36 36 80 13 01 00 00 00 00 00 E9 [19:07:58]Write i2c OK [19:07:58]MH_I2C_Read... [19:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:58]Read from MH i2c: E2 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: E2 0E 00 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: E2 0E 00 36 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 76 [19:07:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:07:58]wFMCommunicate OK [19:07:58]SAM_PROTO_GetShiftState done [19:07:58]FM_GetShiftState done [19:07:58]opened in 1729642435 [19:07:58]opened+sec_in_day 1729728835 [19:07:58]quantity*price = 170066 [19:07:58]sum+1 = 170067 [19:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 305 23.10.2024 19:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70789 ФПД: 200041229718811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190800&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70789&fm=200041229718811&tin=02508201610067®Number=0000000000156251&sum=170000 [19:07:59]StoreToDocumentArchive [19:07:59]shift 196 fd 70789 [19:07:59]save to /storage/0196/doc_00070789 [19:07:59]save last doc name /storage/0196/doc_00070789 to /storage/kkm_last_doc_name [19:07:59]save OK [19:07:59]Clear old archive folders... [19:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:59]tlvbuf is 001A9E20 [19:07:59]SAM_PROTO_ClearQueue [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 09 00 00 [19:07:59]Write to MH i2c: E2 08 00 43 36 80 09 00 00 00 00 00 00 EB [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 43 36 00 90 00 ED [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]SAM_PROTO_ClearQueue done [19:07:59]KKMCreateOFDPacket [19:07:59]OFDProtocolAddRootSTLVToBuf [19:07:59]FM_MakeSignedData [19:07:59]FM_MakeSignedData [19:07:59]SAM_PROTO_SignData [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 0D 01 02 [19:07:59]Write to MH i2c: E2 08 00 44 36 80 0D 01 02 00 00 00 00 F3 [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 44 36 00 90 00 EE [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]wFMCommunicate request_size=255 [19:07:59]MH_SAM_APDU [19:07: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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 90 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 [19:07:59]Write to MH i2c: E2 02 01 45 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 90 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 00 00 8A [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 45 36 00 90 00 EF [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]wFMCommunicate request_size=10 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 0D 02 02 05 EF BA 70 15 1B [19:07:59]Write to MH i2c: E2 0D 00 46 36 80 0D 02 02 05 00 EF BA 70 15 1B 00 00 49 [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 46 36 00 90 00 F0 [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 0D 03 02 [19:07:59]Write to MH i2c: E2 08 00 47 36 80 0D 03 02 00 00 00 00 F8 [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 0B 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 0B 00 47 36 00 A4 65 6B AF 3E EC FD 0B 90 00 4E [19:07:59]RAPDU: A4 65 6B AF 3E EC FD 0B 90 00 [19:07:59]wFMCommunicate OK [19:07:59]SAM_PROTO_SignData done [19:07:59]FM_MakeSignedData done [19:07:59]CreateOFDProtocolMessage [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 11 00 00 [19:07:59]Write to MH i2c: E2 08 00 48 36 80 11 00 00 00 00 00 00 F8 [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 17 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 17 00 48 36 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:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:07:59]wFMCommunicate OK [19:07:59]CreateOFDProtocolMessage done [19:07:59]OFDSenderStorePacket 70789 [19:07:59]StoreOFDPacket docnum=70789 [19:07: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 6D 0F 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 90 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 EF BA 70 15 1B A4 65 6B AF 3E EC FD 0B [19:07:59]CheckFolder [19:07:59]dirname=/storage/ofd_packets [19:07:59]CheckFolder done [19:07:59]ProducePacketName [19:07:59]name=ofd_packets/00070789 [19:07:59]NVStorageSaveData ofd_packets/00070789 [19:07:59]File name is /storage/ofd_packets/00070789 [19:07:59]Write 301 bytes [19:07:59]NVStorageSaveData done [19:07:59]OFDSenderStorePacket done [19:07:59]KKMCreateOFDPacket done [19:07:59]NVStorageSaveData kkm_last_timestamp [19:07:59]File name is /storage/kkm_last_timestamp [19:07:59]Write 4 bytes [19:07:59]NVStorageSaveData done [19:07:59]ExternCall_PrintAddStr [19:07:59]wPrintStart [19:07:59]Write to MH i2c: 01 00 00 49 36 7F [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: 01 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: 01 07 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: 01 07 00 49 36 00 00 00 00 00 FF 0F 94 [19:07:59]RasterBufferAndPrint [19:07:59]line Счет N : (1)2886574 [19:07:59]line ИНН: 02508201610067 [19:07:59]line Контрольно-Кассовый Чек [19:07:59]line ПРОДАЖА [19:07:59]line ТРК (МРК, ГНК) : 43 [19:07:59]line Товар: 2710124500 [19:07:59]line Аи-95-К-5 [19:07:59]line 22.920 * 74.20 [19:07:59]line = 1700.66 [19:07:59]line НДС 12% НСП 1% [19:07:59]line > о реализуемом товаре [19:07:59]line ОКРУГЛЕНИЕ: -0.66 [19:07:59]line ИТОГО: 1700.00 [19:07:59]line Внесено: 1700.00 [19:07:59]line СДАЧА: 0.00 [19:07:59]line НСП 1% : 15.05 [19:07:59]line НДС 12% : 180.60 [19:07:59]line Наличными: 1700.00 [19:07:59]line Безнал.: 0.00 [19:07:59]line Место: АЗС № 85 "Партнер Нефть" [19:07:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:07:59]line СНО: Общий режим [19:07:59]line Чек 305 23.10.2024 19:08 [19:07:59]line Смена: 196 ФФД: 1.0 [19:07:59]line ЗНМ: 0300000167 [19:07:59]line РНМ: 0000000000156251 [19:07:59]line Версия ККМ: v1.0 [19:07:59]line ФМ: 0000000000963346 [19:07:59]line ФД: 70789 [19:07:59]line ФПД: 200041229718811 [19:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190800&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70789&fm=200041229718811&tin=02508201610067®Number=0000000000156251&sum=170000 [19:08:00]OFD Sender: Processing packet 70789 [packets to send 18, broken 17] [19:08:00]ProducePacketName [19:08:00]name=ofd_packets/00070789 [19:08:00]OFD Sender: To server: pG, [19:08:00]CommunicateWithHost lk.salyk.kg:30040 [19:08:00]ConnectInit lk.salyk.kg [19:08:00]written 0, free lines is 4095 [19:08:00]Connected sock=10 [19:08: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 6D 0F 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 90 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B5 EF BA 70 15 1B A4 65 6B AF 3E EC FD 0B [19:08: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 F8 9F 47 00 D5 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 85 14 01 00 F4 03 04 00 2D F3 18 67 B6 04 01 00 00 F1 2B 6C 8A 5D B1 57 A7 [19:08:00]CommunicateWithHost err = 0 [19:08:00]CheckOFDResponse [19:08:00]1017 (14) - 77093643461234 [19:08:00]1041 (16) - 0000000000963346 [19:08:00]1040 (4) - 70789 [19:08:00]1012 (4) - 23.10.2024 12:59 [19:08:00]1206 (1) - 0 [19:08:00]OFD Sender: Remove packet 70789 [19:08:00]ProducePacketName [19:08:00]name=ofd_packets/00070789 [19:08:00]NVStorageDeleteData [19:08:00]Write to MH i2c: 01 00 00 74 36 AA [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 07 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 07 00 74 36 00 00 00 00 00 E7 0C A4 [19:08:00]RasterBufferAndPrint [19:08:00]line [19:08:00]line [19:08:00]line [19:08:00]line [19:08:00]line [19:08:00]written 0, free lines is 3309 [19:08:00]MH_Cut [19:08:00]Write to MH i2c: D1 01 00 7B 36 01 83 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: D1 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: D1 01 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: D1 01 00 7B 36 00 82 [19:08:00]Write to MH i2c: 01 00 00 7C 36 B2 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]OFD Sender: No OFD packet to send [19:08:01]*** Cut start [19:08:01]*** Partial cut [19:08:01]*** CUTSNS_PIN = 1 [19:08:01]*** CUTSNS_PIN = 0 [19:08:01]*** Brake cut motor [19:08:01]Read from MH i2c: 01 [19:08:01]MH_I2C_Read... [19:08:01]*** Stop cut motor [19:08:01]*** Cut end [19:08:01]Read from MH i2c: 01 07 00 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: 01 07 00 7C 36 00 00 00 00 00 FF 0F C7 [19:08:01]process_action close_receipt done [19:08:01]requested_data is exist [19:08:01]produce_requested_data [19:08:01]requested_item fm.sn is exist - process it [19:08:01]wFMCommunicate request_size=4 [19:08:01]MH_SAM_APDU [19:08:01]CAPDU: 80 11 00 00 [19:08:01]Write to MH i2c: E2 08 00 7D 36 80 11 00 00 00 00 00 00 2D [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:01]Read from MH i2c: E2 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: E2 17 00 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: E2 17 00 7D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [19: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 [19:08:01]wFMCommunicate OK [19:08:01]requested_item fd.num is exist - process it [19:08:01]SAM_PROTO_GetFieldsCounters [19:08:01]wFMCommunicate request_size=4 [19:08:01]MH_SAM_APDU [19:08:01]CAPDU: 80 13 00 00 [19:08:01]Write to MH i2c: E2 08 00 7E 36 80 13 00 00 00 00 00 00 30 [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:02]Read from MH i2c: E2 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 62 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 62 00 7E 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 85 14 01 00 0E 04 04 00 C4 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 3F [19:08: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 85 14 01 00 0E 04 04 00 C4 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 [19:08:02]wFMCommunicate OK [19:08:02]SAM_PROTO_GetFieldsCounters done [19:08:02]requested_item shift.num is exist - process it [19:08:02]requested_item shift.opened is exist - process it [19:08:02]req_shift_opened [19:08:02]FM_GetShiftState [19:08:02]SAM_PROTO_GetShiftState [19:08:02]wFMCommunicate request_size=4 [19:08:02]MH_SAM_APDU [19:08:02]CAPDU: 80 13 01 00 [19:08:02]Write to MH i2c: E2 08 00 7F 36 80 13 01 00 00 00 00 00 32 [19:08:02]Write i2c OK [19:08:02]MH_I2C_Read... [19:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:02]Read from MH i2c: E2 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 0E 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 0E 00 7F 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BF [19:08:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:08:02]wFMCommunicate OK [19:08:02]SAM_PROTO_GetShiftState done [19:08:02]FM_GetShiftState done [19:08:02]req_shift_opened done [19:08:02]requested_item shift.open_date is exist - process it [19:08:02]req_shift_open_date [19:08:02]req_shift_open_date done [19:08:02]produce_requested_data done [19:08:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70789,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:08:02]process_action_free close_receipt [19:08:02]json_value_free [19:08:02]json_value_free done [19:08:02]process_json_proto returns [19:08:02]Send response to host [19:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70789,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:08:02]free response buf [19:08:02]execute_script done [19:08:02]execute_script returns [19:08:02]free content buf [19:08:02]Sock 9.Close socket [19:08:02]Sock 9.Thread stoped [19:08:05]OFD Sender: No OFD packet to send [19:08:10]accept exits with 7 [19:08:10]New connection [19:08:10]New thread 3067034980 created [19:08:10]Thread 3066891620 joined [19:08:10]Waiting for new connection... [19:08:10] Sock 7.Parse request [19:08:10]Sock 7.Check first char [19:08:10]Sock 7.First char is OK [19:08:10]request: POST /json_proto HTTP/1.0 [19:08:10]Method: POST [19:08:10]URL: /json_proto [19:08:10]Method is POST - this is cgi request [19:08:10]url: /json_proto [19:08:10]query_string will be loaded in cgi processing [19:08:10]execute_cgi json_proto POST (null) [19:08:10]execute_cgi path=json_proto method=POST [19:08:10]POST find Content-Length [19:08:10]Host: 172.17.50.3:8080 [19:08:10]Content-Length: 683 [19:08:10]Content-Type: application/json [19:08:10] [19:08:10]POST finish read [19:08:10]Found Content-Length = 683 [19:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886575", "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" ] } } [19:08:10]execute_script... [19:08: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)2886575", "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" ] } } [19:08:10]POST & json_proto [19:08:10]process_json_proto [19:08:10]json parsed OK: [19:08:10]protocol is kg_v1.0 [19:08:10]action value=close_receipt [19:08:10]process_action close_receipt [19:08:10]cmd_close_receipt [19:08:10]MH_GetDate [19:08:10]Write to MH i2c: F0 00 00 80 36 A5 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 09 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 09 00 80 36 00 9C 49 19 67 6B 98 1E 66 9A [19:08:10]GetLastDocTimeStamp 1729710480 [19:08:10]current date 1729710492 [19:08:10]FM_GetShiftState [19:08:10]SAM_PROTO_GetShiftState [19:08:10]wFMCommunicate request_size=4 [19:08:10]MH_SAM_APDU [19:08:10]CAPDU: 80 13 01 00 [19:08:10]Write to MH i2c: E2 08 00 81 36 80 13 01 00 00 00 00 00 34 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:10]Read from MH i2c: E2 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 0E 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 0E 00 81 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C1 [19:08:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:08:10]wFMCommunicate OK [19:08:10]SAM_PROTO_GetShiftState done [19:08:10]FM_GetShiftState done [19:08:10]opened in 1729642435 [19:08:10]opened+sec_in_day 1729728835 [19:08:10]quantity*price = 100021 [19:08:10]sum+1 = 100023 [19:08:10]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 СНО: Общий режим Чек 306 23.10.2024 19:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70790 ФПД: 200326611629406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190812&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70790&fm=200326611629406&tin=02508201610067®Number=0000000000156251&sum=100000 [19:08:11]StoreToDocumentArchive [19:08:11]shift 196 fd 70790 [19:08:11]save to /storage/0196/doc_00070790 [19:08:11]save last doc name /storage/0196/doc_00070790 to /storage/kkm_last_doc_name [19:08:11]save OK [19:08:11]Clear old archive folders... [19:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:11]tlvbuf is B6EEE560 [19:08:11]SAM_PROTO_ClearQueue [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 09 00 00 [19:08:11]Write to MH i2c: E2 08 00 8E 36 80 09 00 00 00 00 00 00 36 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 8E 36 00 90 00 38 [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_ClearQueue done [19:08:11]KKMCreateOFDPacket [19:08:11]OFDProtocolAddRootSTLVToBuf [19:08:11]FM_MakeSignedData [19:08:11]FM_MakeSignedData [19:08:11]SAM_PROTO_SignData [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 01 02 [19:08:11]Write to MH i2c: E2 08 00 8F 36 80 0D 01 02 00 00 00 00 3E [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 8F 36 00 90 00 39 [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=255 [19:08:11]MH_SAM_APDU [19:08: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 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 32 01 00 00 F4 03 04 00 9C 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 [19:08:11]Write to MH i2c: E2 02 01 90 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 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 32 01 00 00 F4 03 04 00 9C 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 00 00 91 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 90 36 00 90 00 3A [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=10 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 02 02 05 32 2C 86 75 5E [19:08:11]Write to MH i2c: E2 0D 00 91 36 80 0D 02 02 05 00 32 2C 86 75 5E 00 00 02 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 91 36 00 90 00 3B [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 03 02 [19:08:11]Write to MH i2c: E2 08 00 92 36 80 0D 03 02 00 00 00 00 43 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 92 36 00 24 18 E8 ED 3D 9E C5 D6 90 00 CB [19:08:11]RAPDU: 24 18 E8 ED 3D 9E C5 D6 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_SignData done [19:08:11]FM_MakeSignedData done [19:08:11]CreateOFDProtocolMessage [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 93 36 80 11 00 00 00 00 00 00 43 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 93 36 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:08:11]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:11]wFMCommunicate OK [19:08:11]CreateOFDProtocolMessage done [19:08:11]OFDSenderStorePacket 70790 [19:08:11]StoreOFDPacket docnum=70790 [19:08: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 45 B2 07 01 28 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 32 2C 86 75 5E 24 18 E8 ED 3D 9E C5 D6 [19:08:11]CheckFolder [19:08:11]dirname=/storage/ofd_packets [19:08:11]CheckFolder done [19:08:11]ProducePacketName [19:08:11]name=ofd_packets/00070790 [19:08:11]NVStorageSaveData ofd_packets/00070790 [19:08:11]File name is /storage/ofd_packets/00070790 [19:08:11]Write 301 bytes [19:08:11]NVStorageSaveData done [19:08:11]OFDSenderStorePacket done [19:08:11]KKMCreateOFDPacket done [19:08:11]NVStorageSaveData kkm_last_timestamp [19:08:11]File name is /storage/kkm_last_timestamp [19:08:11]Write 4 bytes [19:08:11]NVStorageSaveData done [19:08:11]ExternCall_PrintAddStr [19:08:11]wPrintStart [19:08:11]Write to MH i2c: 01 00 00 94 36 CA [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 94 36 00 00 00 00 00 FF 0F DF [19:08:11]RasterBufferAndPrint [19:08:11]line Счет N : (1)2886575 [19:08:11]line ИНН: 02508201610067 [19:08:11]line Контрольно-Кассовый Чек [19:08:11]line ПРОДАЖА [19:08:11]line ТРК (МРК, ГНК) : 33 [19:08:11]line Товар: 2710124500 [19:08:11]line Аи-95-К-5 [19:08:11]line 13.480 * 74.20 [19:08:11]line = 1000.22 [19:08:11]line НДС 12% НСП 1% [19:08:11]line > о реализуемом товаре [19:08:11]line ОКРУГЛЕНИЕ: -0.22 [19:08:11]line ИТОГО: 1000.00 [19:08:11]line Внесено: 1000.00 [19:08:11]line СДАЧА: 0.00 [19:08:11]line НСП 1% : 8.85 [19:08:11]line НДС 12% : 106.22 [19:08:11]line Наличными: 1000.00 [19:08:11]line Безнал.: 0.00 [19:08:11]line Место: АЗС № 85 "Партнер Нефть" [19:08:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:08:11]line СНО: Общий режим [19:08:11]line Чек 306 23.10.2024 19:08 [19:08:11]line Смена: 196 ФФД: 1.0 [19:08:11]line ЗНМ: 0300000167 [19:08:11]line РНМ: 0000000000156251 [19:08:11]line Версия ККМ: v1.0 [19:08:11]line ФМ: 0000000000963346 [19:08:11]line ФД: 70790 [19:08:11]line ФПД: 200326611629406 [19:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190812&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70790&fm=200326611629406&tin=02508201610067®Number=0000000000156251&sum=100000 [19:08:12]OFD Sender: Processing packet 70790 [packets to send 18, broken 17] [19:08:12]ProducePacketName [19:08:12]name=ofd_packets/00070790 [19:08:12]OFD Sender: To server: pG, [19:08:12]CommunicateWithHost lk.salyk.kg:30040 [19:08:12]ConnectInit lk.salyk.kg [19:08:12]written 0, free lines is 4095 [19:08:12]Connected sock=10 [19:08: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 45 B2 07 01 28 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 B6 32 2C 86 75 5E 24 18 E8 ED 3D 9E C5 D6 [19:08: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 DD F2 47 00 00 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 86 14 01 00 F4 03 04 00 39 F3 18 67 B6 04 01 00 00 C5 69 73 68 BF C9 A3 BE [19:08:12]CommunicateWithHost err = 0 [19:08:12]CheckOFDResponse [19:08:12]1017 (14) - 77093643461234 [19:08:12]1041 (16) - 0000000000963346 [19:08:12]1040 (4) - 70790 [19:08:12]1012 (4) - 23.10.2024 12:59 [19:08:12]1206 (1) - 0 [19:08:12]OFD Sender: Remove packet 70790 [19:08:12]ProducePacketName [19:08:12]name=ofd_packets/00070790 [19:08:12]NVStorageDeleteData [19:08:12]Write to MH i2c: 01 00 00 BF 36 F5 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 BF 36 00 00 00 00 00 F3 0C FB [19:08:12]RasterBufferAndPrint [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]written 0, free lines is 3324 [19:08:12]MH_Cut [19:08:12]Write to MH i2c: D1 01 00 C6 36 01 CE [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 C6 36 00 CD [19:08:12]Write to MH i2c: 01 00 00 C7 36 FD [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:13]OFD Sender: No OFD packet to send [19:08:13]*** Cut start [19:08:13]*** Partial cut [19:08:13]*** CUTSNS_PIN = 1 [19:08:13]*** CUTSNS_PIN = 0 [19:08:13]*** Brake cut motor [19:08:14]Read from MH i2c: 01 [19:08:14]MH_I2C_Read... [19:08:14]*** Stop cut motor [19:08:14]*** Cut end [19:08:14]Read from MH i2c: 01 07 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 07 00 C7 36 00 00 00 00 00 FF 0F 12 [19:08:14]process_action close_receipt done [19:08:14]requested_data is exist [19:08:14]produce_requested_data [19:08:14]requested_item fm.sn is exist - process it [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 11 00 00 [19:08:14]Write to MH i2c: E2 08 00 C8 36 80 11 00 00 00 00 00 00 78 [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 C8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [19:08:14]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:14]wFMCommunicate OK [19:08:14]requested_item fd.num is exist - process it [19:08:14]SAM_PROTO_GetFieldsCounters [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 00 00 [19:08:14]Write to MH i2c: E2 08 00 C9 36 80 13 00 00 00 00 00 00 7B [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 C9 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 86 14 01 00 0E 04 04 00 C4 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 8E [19:08: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 86 14 01 00 0E 04 04 00 C4 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 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetFieldsCounters done [19:08:14]requested_item shift.num is exist - process it [19:08:14]requested_item shift.opened is exist - process it [19:08:14]req_shift_opened [19:08:14]FM_GetShiftState [19:08:14]SAM_PROTO_GetShiftState [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 01 00 [19:08:14]Write to MH i2c: E2 08 00 CA 36 80 13 01 00 00 00 00 00 7D [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 CA 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0A [19:08:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetShiftState done [19:08:14]FM_GetShiftState done [19:08:14]req_shift_opened done [19:08:14]requested_item shift.open_date is exist - process it [19:08:14]req_shift_open_date [19:08:14]req_shift_open_date done [19:08:14]produce_requested_data done [19:08:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70790,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:08:14]process_action_free close_receipt [19:08:14]json_value_free [19:08:14]json_value_free done [19:08:14]process_json_proto returns [19:08:14]Send response to host [19:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70790,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:08:14]free response buf [19:08:14]execute_script done [19:08:14]execute_script returns [19:08:14]free content buf [19:08:14]Sock 7.Close socket [19:08:14]Sock 7.Thread stoped [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:53]accept exits with 9 [19:08:53]New connection [19:08:53]New thread 3066891620 created [19:08:53]Thread 3067034980 joined [19:08:53]Waiting for new connection... [19:08:53] Sock 9.Parse request [19:08:53]Sock 9.Check first char [19:08:53]Sock 9.First char is OK [19:08:53]request: POST /json_proto HTTP/1.0 [19:08:53]Method: POST [19:08:53]URL: /json_proto [19:08:53]Method is POST - this is cgi request [19:08:53]url: /json_proto [19:08:53]query_string will be loaded in cgi processing [19:08:53]execute_cgi json_proto POST (null) [19:08:53]execute_cgi path=json_proto method=POST [19:08:53]POST find Content-Length [19:08:53]Host: 172.17.50.3:8080 [19:08:53]Content-Length: 793 [19:08:53]Content-Type: application/json [19:08:53] [19:08:53]POST finish read [19:08:53]Found Content-Length = 793 [19:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886576", "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" : 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\u000A81872", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:53]execute_script... [19:08: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)2886576", "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" : 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\u000A81872", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:53]POST & json_proto [19:08:53]process_json_proto [19:08:53]json parsed OK: [19:08:53]protocol is kg_v1.0 [19:08:53]action value=close_receipt [19:08:53]process_action close_receipt [19:08:53]cmd_close_receipt [19:08:53]MH_GetDate [19:08:53]Write to MH i2c: F0 00 00 CB 36 F0 [19:08:53]Write i2c OK [19:08:53]MH_I2C_Read... [19:08:53]Read from MH i2c: F0 [19:08:53]MH_I2C_Read... [19:08:53]Read from MH i2c: F0 09 00 [19:08:53]MH_I2C_Read... [19:08:53]Read from MH i2c: F0 09 00 CB 36 00 C8 49 19 67 6B 98 1E 66 11 [19:08:53]GetLastDocTimeStamp 1729710492 [19:08:53]current date 1729710536 [19:08:53]FM_GetShiftState [19:08:53]SAM_PROTO_GetShiftState [19:08:53]wFMCommunicate request_size=4 [19:08:53]MH_SAM_APDU [19:08:53]CAPDU: 80 13 01 00 [19:08:53]Write to MH i2c: E2 08 00 CC 36 80 13 01 00 00 00 00 00 7F [19:08:53]Write i2c OK [19:08:53]MH_I2C_Read... [19:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:53]Read from MH i2c: E2 [19:08:53]MH_I2C_Read... [19:08:53]Read from MH i2c: E2 0E 00 [19:08:53]MH_I2C_Read... [19:08:53]Read from MH i2c: E2 0E 00 CC 36 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0C [19:08:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:08:53]wFMCommunicate OK [19:08:53]SAM_PROTO_GetShiftState done [19:08:53]FM_GetShiftState done [19:08:53]opened in 1729642435 [19:08:53]opened+sec_in_day 1729728835 [19:08:53]quantity*price = 0 [19:08:53]sum+1 = 1 [19:08: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 СНО: Общий режим Чек 307 23.10.2024 19:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 81872 ФМ: 0000000000963346 ФД: 70791 ФПД: 267754836313229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190856&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70791&fm=267754836313229&tin=02508201610067®Number=0000000000156251&sum=0 [19:08:55]StoreToDocumentArchive [19:08:55]shift 196 fd 70791 [19:08:55]save to /storage/0196/doc_00070791 [19:08:55]save last doc name /storage/0196/doc_00070791 to /storage/kkm_last_doc_name [19:08:55]save OK [19:08:55]Clear old archive folders... [19:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:55]tlvbuf is 0020C1B0 [19:08:55]SAM_PROTO_ClearQueue [19:08:55]wFMCommunicate request_size=4 [19:08:55]MH_SAM_APDU [19:08:55]CAPDU: 80 09 00 00 [19:08:55]Write to MH i2c: E2 08 00 D9 36 80 09 00 00 00 00 00 00 81 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 D9 36 00 90 00 83 [19:08:55]RAPDU: 90 00 [19:08:55]wFMCommunicate OK [19:08:55]SAM_PROTO_ClearQueue done [19:08:55]KKMCreateOFDPacket [19:08:55]OFDProtocolAddRootSTLVToBuf [19:08:55]FM_MakeSignedData [19:08:55]FM_MakeSignedData [19:08:55]SAM_PROTO_SignData [19:08:55]wFMCommunicate request_size=4 [19:08:55]MH_SAM_APDU [19:08:55]CAPDU: 80 0D 01 02 [19:08:55]Write to MH i2c: E2 08 00 DA 36 80 0D 01 02 00 00 00 00 89 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [19:08:55]RAPDU: 90 00 [19:08:55]wFMCommunicate OK [19:08:55]wFMCommunicate request_size=255 [19:08:55]MH_SAM_APDU [19: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 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 33 01 00 00 F4 03 04 00 C8 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F3 [19:08:55]Write to MH i2c: E2 02 01 DB 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 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 33 01 00 00 F4 03 04 00 C8 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F3 00 00 77 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [19:08:55]RAPDU: 90 00 [19:08:55]wFMCommunicate OK [19:08:55]wFMCommunicate request_size=10 [19:08:55]MH_SAM_APDU [19:08:55]CAPDU: 80 0D 02 02 05 85 87 E7 C4 8D [19:08:55]Write to MH i2c: E2 0D 00 DC 36 80 0D 02 02 05 00 85 87 E7 C4 8D 00 00 DA [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 03 00 DC 36 00 90 00 86 [19:08:55]RAPDU: 90 00 [19:08:55]wFMCommunicate OK [19:08:55]wFMCommunicate request_size=4 [19:08:55]MH_SAM_APDU [19:08:55]CAPDU: 80 0D 03 02 [19:08:55]Write to MH i2c: E2 08 00 DD 36 80 0D 03 02 00 00 00 00 8E [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 0B 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 0B 00 DD 36 00 01 78 31 5B 8C F4 C1 AD 90 00 82 [19:08:55]RAPDU: 01 78 31 5B 8C F4 C1 AD 90 00 [19:08:55]wFMCommunicate OK [19:08:55]SAM_PROTO_SignData done [19:08:55]FM_MakeSignedData done [19:08:55]CreateOFDProtocolMessage [19:08:55]wFMCommunicate request_size=4 [19:08:55]MH_SAM_APDU [19:08:55]CAPDU: 80 11 00 00 [19:08:55]Write to MH i2c: E2 08 00 DE 36 80 11 00 00 00 00 00 00 8E [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:55]Read from MH i2c: E2 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 17 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: E2 17 00 DE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [19: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 [19:08:55]wFMCommunicate OK [19:08:55]CreateOFDProtocolMessage done [19:08:55]OFDSenderStorePacket 70791 [19:08:55]StoreOFDPacket docnum=70791 [19: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 3C 20 07 01 58 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 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 33 01 00 00 F4 03 04 00 C8 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F3 85 87 E7 C4 8D 01 78 31 5B 8C F4 C1 AD [19:08:55]CheckFolder [19:08:55]dirname=/storage/ofd_packets [19:08:55]CheckFolder done [19:08:55]ProducePacketName [19:08:55]name=ofd_packets/00070791 [19:08:55]NVStorageSaveData ofd_packets/00070791 [19:08:55]File name is /storage/ofd_packets/00070791 [19:08:55]Write 301 bytes [19:08:55]NVStorageSaveData done [19:08:55]OFDSenderStorePacket done [19:08:55]KKMCreateOFDPacket done [19:08:55]NVStorageSaveData kkm_last_timestamp [19:08:55]File name is /storage/kkm_last_timestamp [19:08:55]Write 4 bytes [19:08:55]NVStorageSaveData done [19:08:55]ExternCall_PrintAddStr [19:08:55]wPrintStart [19:08:55]Write to MH i2c: 01 00 00 DF 36 15 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 07 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 07 00 DF 36 00 00 00 00 00 FF 0F 2A [19:08:55]RasterBufferAndPrint [19:08:55]line Счет N : (1)2886576 [19:08:55]line ИНН: 02508201610067 [19:08:55]line Контрольно-Кассовый Чек [19:08:55]line ПРОДАЖА [19:08:55]line ТРК (МРК, ГНК) : 12 [19:08:55]line Товар: 2710124130 [19:08:55]line Аи-92-К-5 [19:08:55]line 15.000 * 0.00 [19:08:55]line = 0.00 [19:08:55]line НДС 12% НСП 1% [19:08:55]line > о реализуемом товаре [19:08:55]line ИТОГО: 0.00 [19:08:55]line НСП 1% : 0.00 [19:08:55]line НДС 12% : 0.00 [19:08:55]line Наличными: 0.00 [19:08:55]line Безнал.: 0.00 [19:08:55]line Место: АЗС № 85 "Партнер Нефть" [19:08:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:08:55]line СНО: Общий режим [19:08:55]line Чек 307 23.10.2024 19:08 [19:08:55]line Смена: 196 ФФД: 1.0 [19:08:55]line ЗНМ: 0300000167 [19:08:55]line РНМ: 0000000000156251 [19:08:55]line Версия ККМ: v1.0 [19:08:55]line Талоны: Топливная Карта [19:08:55]line 81872 [19:08:55]line ФМ: 0000000000963346 [19:08:55]line ФД: 70791 [19:08:55]line ФПД: 267754836313229 [19:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190856&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70791&fm=267754836313229&tin=02508201610067®Number=0000000000156251&sum=0 [19:08:55]OFD Sender: Processing packet 70791 [packets to send 18, broken 17] [19:08:55]ProducePacketName [19:08:55]name=ofd_packets/00070791 [19:08:55]OFD Sender: To server: pG, [19:08:55]CommunicateWithHost lk.salyk.kg:30040 [19:08:55]ConnectInit lk.salyk.kg [19:08:55]written 0, free lines is 4095 [19:08:56]Connected sock=10 [19: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 3C 20 07 01 58 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 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 33 01 00 00 F4 03 04 00 C8 49 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F3 85 87 E7 C4 8D 01 78 31 5B 8C F4 C1 AD [19: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 15 6A 47 00 16 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 87 14 01 00 F4 03 04 00 65 F3 18 67 B6 04 01 00 00 6A 97 70 A2 E2 CC A8 55 [19:08:56]CommunicateWithHost err = 0 [19:08:56]CheckOFDResponse [19:08:56]1017 (14) - 77093643461234 [19:08:56]1041 (16) - 0000000000963346 [19:08:56]1040 (4) - 70791 [19:08:56]1012 (4) - 23.10.2024 13:00 [19:08:56]1206 (1) - 0 [19:08:56]OFD Sender: Remove packet 70791 [19:08:56]ProducePacketName [19:08:56]name=ofd_packets/00070791 [19:08:56]NVStorageDeleteData [19:08:56]Write to MH i2c: 01 00 00 09 37 40 [19:08:56]Write i2c OK [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: 01 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: 01 07 00 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: 01 07 00 09 37 00 00 00 00 00 F7 0C 4A [19:08:56]RasterBufferAndPrint [19:08:56]line [19:08:56]line [19:08:56]line [19:08:56]line [19:08:56]line [19:08:56]written 0, free lines is 3325 [19:08:56]MH_Cut [19:08:56]Write to MH i2c: D1 01 00 10 37 01 19 [19:08:56]Write i2c OK [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: D1 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: D1 01 00 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: D1 01 00 10 37 00 18 [19:08:56]Write to MH i2c: 01 00 00 11 37 48 [19:08:56]Write i2c OK [19:08:56]MH_I2C_Read... [19:08:56]OFD Sender: No OFD packet to send [19:08:57]*** Cut start [19:08:57]*** Partial cut [19:08:57]*** CUTSNS_PIN = 1 [19:08:57]*** CUTSNS_PIN = 0 [19:08:57]*** Brake cut motor [19:08:57]Read from MH i2c: 01 [19:08:57]MH_I2C_Read... [19:08:57]*** Stop cut motor [19:08:57]*** Cut end [19:08:57]Read from MH i2c: 01 07 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: 01 07 00 11 37 00 00 00 00 00 FF 0F 5D [19:08:57]process_action close_receipt done [19:08:57]requested_data is exist [19:08:57]produce_requested_data [19:08:57]requested_item fm.sn is exist - process it [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 11 00 00 [19:08:57]Write to MH i2c: E2 08 00 12 37 80 11 00 00 00 00 00 00 C3 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 17 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 17 00 12 37 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: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 [19:08:57]wFMCommunicate OK [19:08:57]requested_item fd.num is exist - process it [19:08:57]SAM_PROTO_GetFieldsCounters [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 13 00 00 [19:08:57]Write to MH i2c: E2 08 00 13 37 80 13 00 00 00 00 00 00 C6 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 62 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 62 00 13 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 87 14 01 00 0E 04 04 00 C4 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 DD [19: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 87 14 01 00 0E 04 04 00 C4 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 [19:08:57]wFMCommunicate OK [19:08:57]SAM_PROTO_GetFieldsCounters done [19:08:57]requested_item shift.num is exist - process it [19:08:57]requested_item shift.opened is exist - process it [19:08:57]req_shift_opened [19:08:57]FM_GetShiftState [19:08:57]SAM_PROTO_GetShiftState [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 13 01 00 [19:08:57]Write to MH i2c: E2 08 00 14 37 80 13 01 00 00 00 00 00 C8 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 0E 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 0E 00 14 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 55 [19:08:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:08:57]wFMCommunicate OK [19:08:57]SAM_PROTO_GetShiftState done [19:08:57]FM_GetShiftState done [19:08:57]req_shift_opened done [19:08:57]requested_item shift.open_date is exist - process it [19:08:57]req_shift_open_date [19:08:57]req_shift_open_date done [19:08:57]produce_requested_data done [19:08:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70791,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:08:57]process_action_free close_receipt [19:08:57]json_value_free [19:08:57]json_value_free done [19:08:57]process_json_proto returns [19:08:57]Send response to host [19:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70791,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:08:57]free response buf [19:08:57]execute_script done [19:08:57]execute_script returns [19:08:57]free content buf [19:08:57]Sock 9.Close socket [19:08:57]Sock 9.Thread stoped [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:44]accept exits with 7 [19:10:44]New connection [19:10:44]New thread 3067034980 created [19:10:44]Thread 3066891620 joined [19:10:44]Waiting for new connection... [19:10:44] Sock 7.Parse request [19:10:44]Sock 7.Check first char [19:10:44]Sock 7.First char is OK [19:10:44]request: POST /json_proto HTTP/1.0 [19:10:44]Method: POST [19:10:44]URL: /json_proto [19:10:44]Method is POST - this is cgi request [19:10:44]url: /json_proto [19:10:44]query_string will be loaded in cgi processing [19:10:44]execute_cgi json_proto POST (null) [19:10:44]execute_cgi path=json_proto method=POST [19:10:44]POST find Content-Length [19:10:44]Host: 172.17.50.3:8080 [19:10:44]Content-Length: 678 [19:10:44]Content-Type: application/json [19:10:44] [19:10:44]POST finish read [19:10:44]Found Content-Length = 678 [19:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886577", "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" : 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" ] } } [19:10:44]execute_script... [19:10: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)2886577", "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" : 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" ] } } [19:10:44]POST & json_proto [19:10:44]process_json_proto [19:10:44]json parsed OK: [19:10:44]protocol is kg_v1.0 [19:10:44]action value=close_receipt [19:10:44]process_action close_receipt [19:10:44]cmd_close_receipt [19:10:44]MH_GetDate [19:10:44]Write to MH i2c: F0 00 00 15 37 3B [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 09 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: F0 09 00 15 37 00 37 4A 19 67 6B 98 1E 66 CC [19:10:44]GetLastDocTimeStamp 1729710536 [19:10:44]current date 1729710647 [19:10:44]FM_GetShiftState [19:10:44]SAM_PROTO_GetShiftState [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 13 01 00 [19:10:44]Write to MH i2c: E2 08 00 16 37 80 13 01 00 00 00 00 00 CA [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0E 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0E 00 16 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 57 [19:10:44]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:10:44]wFMCommunicate OK [19:10:44]SAM_PROTO_GetShiftState done [19:10:44]FM_GetShiftState done [19:10:44]opened in 1729642435 [19:10:44]opened+sec_in_day 1729728835 [19:10:44]quantity*price = 50010 [19:10:44]sum+1 = 50012 [19:10: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 СНО: Общий режим Чек 308 23.10.2024 19:10 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70792 ФПД: 22727034110622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191047&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70792&fm=22727034110622&tin=02508201610067®Number=0000000000156251&sum=50000 [19:10:46]StoreToDocumentArchive [19:10:46]shift 196 fd 70792 [19:10:46]save to /storage/0196/doc_00070792 [19:10:46]save last doc name /storage/0196/doc_00070792 to /storage/kkm_last_doc_name [19:10:46]save OK [19:10:46]Clear old archive folders... [19:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:46]tlvbuf is 001907D0 [19:10:46]SAM_PROTO_ClearQueue [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 09 00 00 [19:10:46]Write to MH i2c: E2 08 00 23 37 80 09 00 00 00 00 00 00 CC [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 23 37 00 90 00 CE [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_ClearQueue done [19:10:46]KKMCreateOFDPacket [19:10:46]OFDProtocolAddRootSTLVToBuf [19:10:46]FM_MakeSignedData [19:10:46]FM_MakeSignedData [19:10:46]SAM_PROTO_SignData [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 0D 01 02 [19:10:46]Write to MH i2c: E2 08 00 24 37 80 0D 01 02 00 00 00 00 D4 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 24 37 00 90 00 CF [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]wFMCommunicate request_size=255 [19:10:46]MH_SAM_APDU [19:10: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 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 34 01 00 00 F4 03 04 00 37 4A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 [19:10:46]Write to MH i2c: E2 02 01 25 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 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 34 01 00 00 F4 03 04 00 37 4A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 00 00 E0 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 25 37 00 90 00 D0 [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]wFMCommunicate request_size=10 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 0D 02 02 05 AB 8C CB 82 9E [19:10:46]Write to MH i2c: E2 0D 00 26 37 80 0D 02 02 05 00 AB 8C CB 82 9E 00 00 03 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 03 00 26 37 00 90 00 D1 [19:10:46]RAPDU: 90 00 [19:10:46]wFMCommunicate OK [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 0D 03 02 [19:10:46]Write to MH i2c: E2 08 00 27 37 80 0D 03 02 00 00 00 00 D9 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0B 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0B 00 27 37 00 D1 33 D1 C4 63 4D 24 F6 90 00 3D [19:10:46]RAPDU: D1 33 D1 C4 63 4D 24 F6 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_SignData done [19:10:46]FM_MakeSignedData done [19:10:46]CreateOFDProtocolMessage [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 11 00 00 [19:10:46]Write to MH i2c: E2 08 00 28 37 80 11 00 00 00 00 00 00 D9 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 28 37 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:10:46]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:46]wFMCommunicate OK [19:10:46]CreateOFDProtocolMessage done [19:10:46]OFDSenderStorePacket 70792 [19:10:46]StoreOFDPacket docnum=70792 [19:10: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 61 BD 07 01 2F 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 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 34 01 00 00 F4 03 04 00 37 4A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 AB 8C CB 82 9E D1 33 D1 C4 63 4D 24 F6 [19:10:46]CheckFolder [19:10:46]dirname=/storage/ofd_packets [19:10:46]CheckFolder done [19:10:46]ProducePacketName [19:10:46]name=ofd_packets/00070792 [19:10:46]NVStorageSaveData ofd_packets/00070792 [19:10:46]File name is /storage/ofd_packets/00070792 [19:10:46]Write 301 bytes [19:10:46]NVStorageSaveData done [19:10:46]OFDSenderStorePacket done [19:10:46]KKMCreateOFDPacket done [19:10:46]NVStorageSaveData kkm_last_timestamp [19:10:46]File name is /storage/kkm_last_timestamp [19:10:46]Write 4 bytes [19:10:46]NVStorageSaveData done [19:10:46]ExternCall_PrintAddStr [19:10:46]wPrintStart [19:10:46]Write to MH i2c: 01 00 00 29 37 60 [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 29 37 00 00 00 00 00 FF 0F 75 [19:10:46]RasterBufferAndPrint [19:10:46]line Счет N : (1)2886577 [19:10:46]line ИНН: 02508201610067 [19:10:46]line Контрольно-Кассовый Чек [19:10:46]line ПРОДАЖА [19:10:46]line ТРК (МРК, ГНК) : 43 [19:10:46]line Товар: 2710124500 [19:10:46]line Аи-95-К-5 [19:10:46]line 6.740 * 74.20 [19:10:46]line = 500.11 [19:10:46]line НДС 12% НСП 1% [19:10:46]line > о реализуемом товаре [19:10:46]line ОКРУГЛЕНИЕ: -0.11 [19:10:46]line ИТОГО: 500.00 [19:10:46]line Внесено: 500.00 [19:10:46]line СДАЧА: 0.00 [19:10:46]line НСП 1% : 4.43 [19:10:46]line НДС 12% : 53.11 [19:10:46]line Наличными: 500.00 [19:10:46]line Безнал.: 0.00 [19:10:46]line Место: АЗС № 85 "Партнер Нефть" [19:10:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:10:46]line СНО: Общий режим [19:10:46]line Чек 308 23.10.2024 19:10 [19:10:46]line Смена: 196 ФФД: 1.0 [19:10:46]line ЗНМ: 0300000167 [19:10:46]line РНМ: 0000000000156251 [19:10:46]line Версия ККМ: v1.0 [19:10:46]line ФМ: 0000000000963346 [19:10:46]line ФД: 70792 [19:10:46]line ФПД: 22727034110622 [19:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191047&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70792&fm=22727034110622&tin=02508201610067®Number=0000000000156251&sum=50000 [19:10:46]OFD Sender: Processing packet 70792 [packets to send 18, broken 17] [19:10:46]ProducePacketName [19:10:46]name=ofd_packets/00070792 [19:10:46]OFD Sender: To server: pG, [19:10:46]CommunicateWithHost lk.salyk.kg:30040 [19:10:46]ConnectInit lk.salyk.kg [19:10:46]written 0, free lines is 4095 [19:10:47]Connected sock=10 [19:10: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 61 BD 07 01 2F 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 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 34 01 00 00 F4 03 04 00 37 4A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 14 AB 8C CB 82 9E D1 33 D1 C4 63 4D 24 F6 [19:10: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 AC F4 47 00 87 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 88 14 01 00 F4 03 04 00 D4 F3 18 67 B6 04 01 00 00 10 5D 46 E3 11 D8 C6 69 [19:10:47]CommunicateWithHost err = 0 [19:10:47]CheckOFDResponse [19:10:47]1017 (14) - 77093643461234 [19:10:47]1041 (16) - 0000000000963346 [19:10:47]1040 (4) - 70792 [19:10:47]1012 (4) - 23.10.2024 13:02 [19:10:47]1206 (1) - 0 [19:10:47]OFD Sender: Remove packet 70792 [19:10:47]ProducePacketName [19:10:47]name=ofd_packets/00070792 [19:10:47]NVStorageDeleteData [19:10:47]Write to MH i2c: 01 00 00 54 37 8B [19:10:47]Write i2c OK [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: 01 [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: 01 07 00 [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: 01 07 00 54 37 00 00 00 00 00 DA 0C 78 [19:10:47]RasterBufferAndPrint [19:10:47]line [19:10:47]line [19:10:47]line [19:10:47]line [19:10:47]line [19:10:47]written 0, free lines is 3296 [19:10:47]MH_Cut [19:10:47]Write to MH i2c: D1 01 00 5B 37 01 64 [19:10:47]Write i2c OK [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: D1 [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: D1 01 00 [19:10:47]MH_I2C_Read... [19:10:47]Read from MH i2c: D1 01 00 5B 37 00 63 [19:10:47]Write to MH i2c: 01 00 00 5C 37 93 [19:10:47]Write i2c OK [19:10:47]MH_I2C_Read... [19:10:47]OFD Sender: No OFD packet to send [19:10:48]*** Cut start [19:10:48]*** Partial cut [19:10:48]*** CUTSNS_PIN = 1 [19:10:48]*** CUTSNS_PIN = 0 [19:10:48]*** Brake cut motor [19:10:48]Read from MH i2c: 01 [19:10:48]MH_I2C_Read... [19:10:48]*** Stop cut motor [19:10:48]*** Cut end [19:10:48]Read from MH i2c: 01 07 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: 01 07 00 5C 37 00 00 00 00 00 FF 0F A8 [19:10:48]process_action close_receipt done [19:10:48]requested_data is exist [19:10:48]produce_requested_data [19:10:48]requested_item fm.sn is exist - process it [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 11 00 00 [19:10:48]Write to MH i2c: E2 08 00 5D 37 80 11 00 00 00 00 00 00 0E [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 17 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 17 00 5D 37 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:10: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:10:48]wFMCommunicate OK [19:10:48]requested_item fd.num is exist - process it [19:10:48]SAM_PROTO_GetFieldsCounters [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 13 00 00 [19:10:48]Write to MH i2c: E2 08 00 5E 37 80 13 00 00 00 00 00 00 11 [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 62 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 62 00 5E 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 88 14 01 00 0E 04 04 00 C4 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 2C [19:10: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 88 14 01 00 0E 04 04 00 C4 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 [19:10:48]wFMCommunicate OK [19:10:48]SAM_PROTO_GetFieldsCounters done [19:10:48]requested_item shift.num is exist - process it [19:10:48]requested_item shift.opened is exist - process it [19:10:48]req_shift_opened [19:10:48]FM_GetShiftState [19:10:48]SAM_PROTO_GetShiftState [19:10:48]wFMCommunicate request_size=4 [19:10:48]MH_SAM_APDU [19:10:48]CAPDU: 80 13 01 00 [19:10:48]Write to MH i2c: E2 08 00 5F 37 80 13 01 00 00 00 00 00 13 [19:10:48]Write i2c OK [19:10:48]MH_I2C_Read... [19:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:48]Read from MH i2c: E2 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 0E 00 [19:10:48]MH_I2C_Read... [19:10:48]Read from MH i2c: E2 0E 00 5F 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A0 [19:10:48]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:10:48]wFMCommunicate OK [19:10:48]SAM_PROTO_GetShiftState done [19:10:48]FM_GetShiftState done [19:10:48]req_shift_opened done [19:10:48]requested_item shift.open_date is exist - process it [19:10:48]req_shift_open_date [19:10:48]req_shift_open_date done [19:10:48]produce_requested_data done [19:10:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70792,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:10:48]process_action_free close_receipt [19:10:48]json_value_free [19:10:48]json_value_free done [19:10:48]process_json_proto returns [19:10:48]Send response to host [19:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70792,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:10:48]free response buf [19:10:48]execute_script done [19:10:48]execute_script returns [19:10:48]free content buf [19:10:48]Sock 7.Close socket [19:10:48]Sock 7.Thread stoped [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]accept exits with 9 [19:18:43]New connection [19:18:43]New thread 3066891620 created [19:18:43]Thread 3067034980 joined [19:18:43]Waiting for new connection... [19:18:43] Sock 9.Parse request [19:18:43]Sock 9.Check first char [19:18:43]Sock 9.First char is OK [19:18:43]request: POST /json_proto HTTP/1.0 [19:18:43]Method: POST [19:18:43]URL: /json_proto [19:18:43]Method is POST - this is cgi request [19:18:43]url: /json_proto [19:18:43]query_string will be loaded in cgi processing [19:18:43]execute_cgi json_proto POST (null) [19:18:43]execute_cgi path=json_proto method=POST [19:18:43]POST find Content-Length [19:18:43]Host: 172.17.50.3:8080 [19:18:43]Content-Length: 689 [19:18:43]Content-Type: application/json [19:18:43] [19:18:43]POST finish read [19:18:43]Found Content-Length = 689 [19:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886578", "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" : 31.090, "sum" : 2400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:43]execute_script... [19: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)2886578", "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" : 31.090, "sum" : 2400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:43]POST & json_proto [19:18:43]process_json_proto [19:18:43]json parsed OK: [19:18:43]protocol is kg_v1.0 [19:18:43]action value=close_receipt [19:18:43]process_action close_receipt [19:18:43]cmd_close_receipt [19:18:43]MH_GetDate [19:18:43]Write to MH i2c: F0 00 00 60 37 86 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: F0 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: F0 09 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: F0 09 00 60 37 00 15 4C 19 67 6B 98 1E 66 F7 [19:18:43]GetLastDocTimeStamp 1729710647 [19:18:43]current date 1729711125 [19:18:43]FM_GetShiftState [19:18:43]SAM_PROTO_GetShiftState [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 13 01 00 [19:18:43]Write to MH i2c: E2 08 00 61 37 80 13 01 00 00 00 00 00 15 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 61 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A2 [19:18:43]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_GetShiftState done [19:18:43]FM_GetShiftState done [19:18:43]opened in 1729642435 [19:18:43]opened+sec_in_day 1729728835 [19:18:43]quantity*price = 240014 [19:18:43]sum+1 = 240016 [19:18:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 309 23.10.2024 19:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70793 ФПД: 256775789237225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70793&fm=256775789237225&tin=02508201610067®Number=0000000000156251&sum=240000 [19:18:44]StoreToDocumentArchive [19:18:44]shift 196 fd 70793 [19:18:44]save to /storage/0196/doc_00070793 [19:18:44]save last doc name /storage/0196/doc_00070793 to /storage/kkm_last_doc_name [19:18:44]save OK [19:18:44]Clear old archive folders... [19:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:18:44]tlvbuf is 0017FBD0 [19:18:44]SAM_PROTO_ClearQueue [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 09 00 00 [19:18:44]Write to MH i2c: E2 08 00 6E 37 80 09 00 00 00 00 00 00 17 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 6E 37 00 90 00 19 [19:18:44]RAPDU: 90 00 [19:18:44]wFMCommunicate OK [19:18:44]SAM_PROTO_ClearQueue done [19:18:44]KKMCreateOFDPacket [19:18:44]OFDProtocolAddRootSTLVToBuf [19:18:44]FM_MakeSignedData [19:18:44]FM_MakeSignedData [19:18:44]SAM_PROTO_SignData [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 0D 01 02 [19:18:44]Write to MH i2c: E2 08 00 6F 37 80 0D 01 02 00 00 00 00 1F [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 6F 37 00 90 00 1A [19:18:44]RAPDU: 90 00 [19:18:44]wFMCommunicate OK [19:18:44]wFMCommunicate request_size=255 [19:18:44]MH_SAM_APDU [19:18: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 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 15 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:18:44]Write to MH i2c: E2 02 01 70 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 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 15 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 13 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 70 37 00 90 00 1B [19:18:44]RAPDU: 90 00 [19:18:44]wFMCommunicate OK [19:18:44]wFMCommunicate request_size=16 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E9 89 45 B4 53 E9 [19:18:44]Write to MH i2c: E2 13 00 71 37 80 0D 02 02 0B 00 00 35 04 06 00 E9 89 45 B4 53 E9 00 00 1E [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 03 00 71 37 00 90 00 1C [19:18:44]RAPDU: 90 00 [19:18:44]wFMCommunicate OK [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 0D 03 02 [19:18:44]Write to MH i2c: E2 08 00 72 37 80 0D 03 02 00 00 00 00 24 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 0B 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 0B 00 72 37 00 C5 11 EF 17 86 7F 3A EB 90 00 2B [19:18:44]RAPDU: C5 11 EF 17 86 7F 3A EB 90 00 [19:18:44]wFMCommunicate OK [19:18:44]SAM_PROTO_SignData done [19:18:44]FM_MakeSignedData done [19:18:44]CreateOFDProtocolMessage [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 11 00 00 [19:18:44]Write to MH i2c: E2 08 00 73 37 80 11 00 00 00 00 00 00 24 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 17 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 17 00 73 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [19: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 [19:18:44]wFMCommunicate OK [19:18:44]CreateOFDProtocolMessage done [19:18:44]OFDSenderStorePacket 70793 [19:18:44]StoreOFDPacket docnum=70793 [19: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 15 01 00 00 B5 16 0D 01 9F 0A 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 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 15 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 89 45 B4 53 E9 C5 11 EF 17 86 7F 3A EB [19:18:44]CheckFolder [19:18:44]dirname=/storage/ofd_packets [19:18:44]CheckFolder done [19:18:44]ProducePacketName [19:18:44]name=ofd_packets/00070793 [19:18:44]NVStorageSaveData ofd_packets/00070793 [19:18:44]File name is /storage/ofd_packets/00070793 [19:18:44]Write 307 bytes [19:18:44]NVStorageSaveData done [19:18:44]OFDSenderStorePacket done [19:18:44]KKMCreateOFDPacket done [19:18:44]NVStorageSaveData kkm_last_timestamp [19:18:44]File name is /storage/kkm_last_timestamp [19:18:44]Write 4 bytes [19:18:44]NVStorageSaveData done [19:18:44]ExternCall_PrintAddStr [19:18:44]wPrintStart [19:18:44]Write to MH i2c: 01 00 00 74 37 AB [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 07 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 07 00 74 37 00 00 00 00 00 FF 0F C0 [19:18:44]RasterBufferAndPrint [19:18:44]line Счет N : (1)2886578 [19:18:44]line ИНН: 02508201610067 [19:18:44]line Контрольно-Кассовый Чек [19:18:44]line ПРОДАЖА [19:18:44]line ТРК (МРК, ГНК) : 31 [19:18:44]line Товар: 2710194240 [19:18:44]line D-ENERGY Дт-К-2 [19:18:44]line 31.090 * 77.20 [19:18:44]line = 2400.15 [19:18:44]line НДС 12% НСП 1% [19:18:44]line > о реализуемом товаре [19:18:44]line ОКРУГЛЕНИЕ: -0.15 [19:18:44]line ИТОГО: 2400.00 [19:18:44]line Внесено: 2400.00 [19:18:44]line СДАЧА: 0.00 [19:18:44]line НСП 1% : 21.24 [19:18:44]line НДС 12% : 254.88 [19:18:44]line Наличными: 2400.00 [19:18:44]line Безнал.: 0.00 [19:18:44]line Место: АЗС № 85 "Партнер Нефть" [19:18:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:18:44]line СНО: Общий режим [19:18:44]line Чек 309 23.10.2024 19:18 [19:18:44]line Смена: 196 ФФД: 1.0 [19:18:44]line ЗНМ: 0300000167 [19:18:44]line РНМ: 0000000000156251 [19:18:44]line Версия ККМ: v1.0 [19:18:44]line ФМ: 0000000000963346 [19:18:44]line ФД: 70793 [19:18:44]line ФПД: 256775789237225 [19:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70793&fm=256775789237225&tin=02508201610067®Number=0000000000156251&sum=240000 [19:18:45]OFD Sender: Processing packet 70793 [packets to send 18, broken 17] [19:18:45]ProducePacketName [19:18:45]name=ofd_packets/00070793 [19:18:45]OFD Sender: To server: pG, [19:18:45]CommunicateWithHost lk.salyk.kg:30040 [19:18:45]ConnectInit lk.salyk.kg [19:18:45]written 0, free lines is 4095 [19:18:45]Connected sock=10 [19:18: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 B5 16 0D 01 9F 0A 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 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 15 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 E9 89 45 B4 53 E9 C5 11 EF 17 86 7F 3A EB [19: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 68 69 47 00 5A 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 89 14 01 00 F4 03 04 00 B2 F5 18 67 B6 04 01 00 00 73 FC 78 CF 31 38 05 F3 [19:18:45]CommunicateWithHost err = 0 [19:18:45]CheckOFDResponse [19:18:45]1017 (14) - 77093643461234 [19:18:45]1041 (16) - 0000000000963346 [19:18:45]1040 (4) - 70793 [19:18:45]1012 (4) - 23.10.2024 13:10 [19:18:45]1206 (1) - 0 [19:18:45]OFD Sender: Remove packet 70793 [19:18:45]ProducePacketName [19:18:45]name=ofd_packets/00070793 [19:18:45]NVStorageDeleteData [19:18:45]Write to MH i2c: 01 00 00 9F 37 D6 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: 01 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: 01 07 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: 01 07 00 9F 37 00 00 00 00 00 EF 0C D8 [19:18:45]RasterBufferAndPrint [19:18:45]line [19:18:45]line [19:18:45]line [19:18:45]line [19:18:45]line [19:18:45]written 0, free lines is 3317 [19:18:45]MH_Cut [19:18:45]Write to MH i2c: D1 01 00 A6 37 01 AF [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: D1 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: D1 01 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: D1 01 00 A6 37 00 AE [19:18:45]Write to MH i2c: 01 00 00 A7 37 DE [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]OFD Sender: No OFD packet to send [19:18:46]*** Cut start [19:18:46]*** Partial cut [19:18:46]*** CUTSNS_PIN = 1 [19:18:46]*** CUTSNS_PIN = 0 [19:18:46]*** Brake cut motor [19:18:46]Read from MH i2c: 01 [19:18:46]MH_I2C_Read... [19:18:46]*** Stop cut motor [19:18:46]*** Cut end [19:18:46]Read from MH i2c: 01 07 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: 01 07 00 A7 37 00 00 00 00 00 FF 0F F3 [19:18:46]process_action close_receipt done [19:18:46]requested_data is exist [19:18:46]produce_requested_data [19:18:46]requested_item fm.sn is exist - process it [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 11 00 00 [19:18:46]Write to MH i2c: E2 08 00 A8 37 80 11 00 00 00 00 00 00 59 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 17 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 17 00 A8 37 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: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 [19:18:46]wFMCommunicate OK [19:18:46]requested_item fd.num is exist - process it [19:18:46]SAM_PROTO_GetFieldsCounters [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 13 00 00 [19:18:46]Write to MH i2c: E2 08 00 A9 37 80 13 00 00 00 00 00 00 5C [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 62 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 62 00 A9 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 89 14 01 00 0E 04 04 00 C4 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 7B [19:18: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 89 14 01 00 0E 04 04 00 C4 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 [19:18:47]wFMCommunicate OK [19:18:47]SAM_PROTO_GetFieldsCounters done [19:18:47]requested_item shift.num is exist - process it [19:18:47]requested_item shift.opened is exist - process it [19:18:47]req_shift_opened [19:18:47]FM_GetShiftState [19:18:47]SAM_PROTO_GetShiftState [19:18:47]wFMCommunicate request_size=4 [19:18:47]MH_SAM_APDU [19:18:47]CAPDU: 80 13 01 00 [19:18:47]Write to MH i2c: E2 08 00 AA 37 80 13 01 00 00 00 00 00 5E [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 0E 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 0E 00 AA 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EB [19:18:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:18:47]wFMCommunicate OK [19:18:47]SAM_PROTO_GetShiftState done [19:18:47]FM_GetShiftState done [19:18:47]req_shift_opened done [19:18:47]requested_item shift.open_date is exist - process it [19:18:47]req_shift_open_date [19:18:47]req_shift_open_date done [19:18:47]produce_requested_data done [19:18:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70793,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:18:47]process_action_free close_receipt [19:18:47]json_value_free [19:18:47]json_value_free done [19:18:47]process_json_proto returns [19:18:47]Send response to host [19:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70793,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:18:47]free response buf [19:18:47]execute_script done [19:18:47]execute_script returns [19:18:47]free content buf [19:18:47]Sock 9.Close socket [19:18:47]Sock 9.Thread stoped [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:01]accept exits with 7 [19:19:01]New connection [19:19:01]New thread 3067034980 created [19:19:01]Thread 3066891620 joined [19:19:01]Waiting for new connection... [19:19:01] Sock 7.Parse request [19:19:01]Sock 7.Check first char [19:19:01]Sock 7.First char is OK [19:19:01]request: POST /json_proto HTTP/1.0 [19:19:01]Method: POST [19:19:01]URL: /json_proto [19:19:01]Method is POST - this is cgi request [19:19:01]url: /json_proto [19:19:01]query_string will be loaded in cgi processing [19:19:01]execute_cgi json_proto POST (null) [19:19:01]execute_cgi path=json_proto method=POST [19:19:01]POST find Content-Length [19:19:01]Host: 172.17.50.3:8080 [19:19:01]Content-Length: 683 [19:19:01]Content-Type: application/json [19:19:01] [19:19:01]POST finish read [19:19:01]Found Content-Length = 683 [19:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886579", "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" ] } } [19:19:01]execute_script... [19:19: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)2886579", "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" ] } } [19:19:01]POST & json_proto [19:19:01]process_json_proto [19:19:01]json parsed OK: [19:19:01]protocol is kg_v1.0 [19:19:01]action value=close_receipt [19:19:01]process_action close_receipt [19:19:01]cmd_close_receipt [19:19:01]MH_GetDate [19:19:01]Write to MH i2c: F0 00 00 AB 37 D1 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: F0 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: F0 09 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: F0 09 00 AB 37 00 27 4C 19 67 6B 98 1E 66 54 [19:19:01]GetLastDocTimeStamp 1729711125 [19:19:01]current date 1729711143 [19:19:01]FM_GetShiftState [19:19:01]SAM_PROTO_GetShiftState [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 13 01 00 [19:19:01]Write to MH i2c: E2 08 00 AC 37 80 13 01 00 00 00 00 00 60 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 0E 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 0E 00 AC 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 ED [19:19:01]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:19:01]wFMCommunicate OK [19:19:01]SAM_PROTO_GetShiftState done [19:19:01]FM_GetShiftState done [19:19:01]opened in 1729642435 [19:19:01]opened+sec_in_day 1729728835 [19:19:01]quantity*price = 100015 [19:19:01]sum+1 = 100017 [19:19:01]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 СНО: Общий режим Чек 310 23.10.2024 19:19 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70794 ФПД: 145848651102558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191903&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70794&fm=145848651102558&tin=02508201610067®Number=0000000000156251&sum=100000 [19:19:02]StoreToDocumentArchive [19:19:02]shift 196 fd 70794 [19:19:02]save to /storage/0196/doc_00070794 [19:19:02]save last doc name /storage/0196/doc_00070794 to /storage/kkm_last_doc_name [19:19:02]save OK [19:19:02]Clear old archive folders... [19:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:02]tlvbuf is 00251740 [19:19:02]SAM_PROTO_ClearQueue [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 09 00 00 [19:19:02]Write to MH i2c: E2 08 00 B9 37 80 09 00 00 00 00 00 00 62 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 B9 37 00 90 00 64 [19:19:02]RAPDU: 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_ClearQueue done [19:19:02]KKMCreateOFDPacket [19:19:02]OFDProtocolAddRootSTLVToBuf [19:19:02]FM_MakeSignedData [19:19:02]FM_MakeSignedData [19:19:02]SAM_PROTO_SignData [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 0D 01 02 [19:19:02]Write to MH i2c: E2 08 00 BA 37 80 0D 01 02 00 00 00 00 6A [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 BA 37 00 90 00 65 [19:19:02]RAPDU: 90 00 [19:19:02]wFMCommunicate OK [19:19:02]wFMCommunicate request_size=255 [19:19:02]MH_SAM_APDU [19:19: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 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 36 01 00 00 F4 03 04 00 27 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 [19:19:02]Write to MH i2c: E2 02 01 BB 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 36 01 00 00 F4 03 04 00 27 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 00 00 FE [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 BB 37 00 90 00 66 [19:19:02]RAPDU: 90 00 [19:19:02]wFMCommunicate OK [19:19:02]wFMCommunicate request_size=10 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 0D 02 02 05 A6 09 0A 39 5E [19:19:02]Write to MH i2c: E2 0D 00 BC 37 80 0D 02 02 05 00 A6 09 0A 39 5E 00 00 C7 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 03 00 BC 37 00 90 00 67 [19:19:02]RAPDU: 90 00 [19:19:02]wFMCommunicate OK [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 0D 03 02 [19:19:02]Write to MH i2c: E2 08 00 BD 37 80 0D 03 02 00 00 00 00 6F [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0B 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0B 00 BD 37 00 18 13 ED 11 2F E5 32 97 90 00 76 [19:19:02]RAPDU: 18 13 ED 11 2F E5 32 97 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_SignData done [19:19:02]FM_MakeSignedData done [19:19:02]CreateOFDProtocolMessage [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 11 00 00 [19:19:02]Write to MH i2c: E2 08 00 BE 37 80 11 00 00 00 00 00 00 6F [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 17 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 17 00 BE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [19:19: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:19:03]wFMCommunicate OK [19:19:03]CreateOFDProtocolMessage done [19:19:03]OFDSenderStorePacket 70794 [19:19:03]StoreOFDPacket docnum=70794 [19:19: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 92 F3 07 01 6E 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 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 36 01 00 00 F4 03 04 00 27 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 A6 09 0A 39 5E 18 13 ED 11 2F E5 32 97 [19:19:03]CheckFolder [19:19:03]dirname=/storage/ofd_packets [19:19:03]CheckFolder done [19:19:03]ProducePacketName [19:19:03]name=ofd_packets/00070794 [19:19:03]NVStorageSaveData ofd_packets/00070794 [19:19:03]File name is /storage/ofd_packets/00070794 [19:19:03]Write 301 bytes [19:19:03]NVStorageSaveData done [19:19:03]OFDSenderStorePacket done [19:19:03]KKMCreateOFDPacket done [19:19:03]NVStorageSaveData kkm_last_timestamp [19:19:03]File name is /storage/kkm_last_timestamp [19:19:03]Write 4 bytes [19:19:03]NVStorageSaveData done [19:19:03]ExternCall_PrintAddStr [19:19:03]wPrintStart [19:19:03]Write to MH i2c: 01 00 00 BF 37 F6 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 BF 37 00 00 00 00 00 FF 0F 0B [19:19:03]RasterBufferAndPrint [19:19:03]line Счет N : (1)2886579 [19:19:03]line ИНН: 02508201610067 [19:19:03]line Контрольно-Кассовый Чек [19:19:03]line ПРОДАЖА [19:19:03]line ТРК (МРК, ГНК) : 22 [19:19:03]line Товар: 2710124130 [19:19:03]line Аи-92-К-5 [19:19:03]line 14.950 * 66.90 [19:19:03]line = 1000.16 [19:19:03]line НДС 12% НСП 1% [19:19:03]line > о реализуемом товаре [19:19:03]line ОКРУГЛЕНИЕ: -0.16 [19:19:03]line ИТОГО: 1000.00 [19:19:03]line Внесено: 1000.00 [19:19:03]line СДАЧА: 0.00 [19:19:03]line НСП 1% : 8.85 [19:19:03]line НДС 12% : 106.21 [19:19:03]line Наличными: 1000.00 [19:19:03]line Безнал.: 0.00 [19:19:03]line Место: АЗС № 85 "Партнер Нефть" [19:19:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:19:03]line СНО: Общий режим [19:19:03]line Чек 310 23.10.2024 19:19 [19:19:03]line Смена: 196 ФФД: 1.0 [19:19:03]line ЗНМ: 0300000167 [19:19:03]line РНМ: 0000000000156251 [19:19:03]line Версия ККМ: v1.0 [19:19:03]line ФМ: 0000000000963346 [19:19:03]line ФД: 70794 [19:19:03]line ФПД: 145848651102558 [19:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191903&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70794&fm=145848651102558&tin=02508201610067®Number=0000000000156251&sum=100000 [19:19:03]OFD Sender: Processing packet 70794 [packets to send 18, broken 17] [19:19:03]ProducePacketName [19:19:03]name=ofd_packets/00070794 [19:19:03]OFD Sender: To server: pG, [19:19:03]CommunicateWithHost lk.salyk.kg:30040 [19:19:03]ConnectInit lk.salyk.kg [19:19:03]written 0, free lines is 4095 [19:19:03]Connected sock=10 [19:19: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 92 F3 07 01 6E 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 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 36 01 00 00 F4 03 04 00 27 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 84 A6 09 0A 39 5E 18 13 ED 11 2F E5 32 97 [19:19: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 6D EE 47 00 2D 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 8A 14 01 00 F4 03 04 00 C4 F5 18 67 B6 04 01 00 00 C8 34 CD 88 4D CC 14 55 [19:19:03]CommunicateWithHost err = 0 [19:19:03]CheckOFDResponse [19:19:03]1017 (14) - 77093643461234 [19:19:03]1041 (16) - 0000000000963346 [19:19:03]1040 (4) - 70794 [19:19:03]1012 (4) - 23.10.2024 13:10 [19:19:03]1206 (1) - 0 [19:19:03]OFD Sender: Remove packet 70794 [19:19:03]ProducePacketName [19:19:03]name=ofd_packets/00070794 [19:19:03]NVStorageDeleteData [19:19:03]Write to MH i2c: 01 00 00 EA 37 21 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 EA 37 00 00 00 00 00 E4 0C 18 [19:19:03]RasterBufferAndPrint [19:19:03]line [19:19:03]line [19:19:03]line [19:19:03]line [19:19:03]line [19:19:03]written 0, free lines is 3306 [19:19:03]MH_Cut [19:19:03]Write to MH i2c: D1 01 00 F1 37 01 FA [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: D1 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: D1 01 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: D1 01 00 F1 37 00 F9 [19:19:03]Write to MH i2c: 01 00 00 F2 37 29 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:04]OFD Sender: No OFD packet to send [19:19:04]*** Cut start [19:19:04]*** Partial cut [19:19:04]*** CUTSNS_PIN = 1 [19:19:04]*** CUTSNS_PIN = 0 [19:19:04]*** Brake cut motor [19:19:05]Read from MH i2c: 01 [19:19:05]MH_I2C_Read... [19:19:05]*** Stop cut motor [19:19:05]*** Cut end [19:19:05]Read from MH i2c: 01 07 00 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: 01 07 00 F2 37 00 00 00 00 00 FF 0F 3E [19:19:05]process_action close_receipt done [19:19:05]requested_data is exist [19:19:05]produce_requested_data [19:19:05]requested_item fm.sn is exist - process it [19:19:05]wFMCommunicate request_size=4 [19:19:05]MH_SAM_APDU [19:19:05]CAPDU: 80 11 00 00 [19:19:05]Write to MH i2c: E2 08 00 F3 37 80 11 00 00 00 00 00 00 A4 [19:19:05]Write i2c OK [19:19:05]MH_I2C_Read... [19:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:05]Read from MH i2c: E2 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 17 00 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 17 00 F3 37 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:19: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:19:05]wFMCommunicate OK [19:19:05]requested_item fd.num is exist - process it [19:19:05]SAM_PROTO_GetFieldsCounters [19:19:05]wFMCommunicate request_size=4 [19:19:05]MH_SAM_APDU [19:19:05]CAPDU: 80 13 00 00 [19:19:05]Write to MH i2c: E2 08 00 F4 37 80 13 00 00 00 00 00 00 A7 [19:19:05]Write i2c OK [19:19:05]MH_I2C_Read... [19:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:05]Read from MH i2c: E2 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 62 00 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 62 00 F4 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 8A 14 01 00 0E 04 04 00 C4 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 CA [19:19: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 8A 14 01 00 0E 04 04 00 C4 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 [19:19:05]wFMCommunicate OK [19:19:05]SAM_PROTO_GetFieldsCounters done [19:19:05]requested_item shift.num is exist - process it [19:19:05]requested_item shift.opened is exist - process it [19:19:05]req_shift_opened [19:19:05]FM_GetShiftState [19:19:05]SAM_PROTO_GetShiftState [19:19:05]wFMCommunicate request_size=4 [19:19:05]MH_SAM_APDU [19:19:05]CAPDU: 80 13 01 00 [19:19:05]Write to MH i2c: E2 08 00 F5 37 80 13 01 00 00 00 00 00 A9 [19:19:05]Write i2c OK [19:19:05]MH_I2C_Read... [19:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:05]Read from MH i2c: E2 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 0E 00 [19:19:05]MH_I2C_Read... [19:19:05]Read from MH i2c: E2 0E 00 F5 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 36 [19:19:05]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:19:05]wFMCommunicate OK [19:19:05]SAM_PROTO_GetShiftState done [19:19:05]FM_GetShiftState done [19:19:05]req_shift_opened done [19:19:05]requested_item shift.open_date is exist - process it [19:19:05]req_shift_open_date [19:19:05]req_shift_open_date done [19:19:05]produce_requested_data done [19:19:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70794,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:19:05]process_action_free close_receipt [19:19:05]json_value_free [19:19:05]json_value_free done [19:19:05]process_json_proto returns [19:19:05]Send response to host [19:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70794,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:19:05]free response buf [19:19:05]execute_script done [19:19:05]execute_script returns [19:19:05]free content buf [19:19:05]Sock 7.Close socket [19:19:05]Sock 7.Thread stoped [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:00]accept exits with 9 [19:20:00]New connection [19:20:00]New thread 3066891620 created [19:20:00]Thread 3067034980 joined [19:20:00]Waiting for new connection... [19:20:00] Sock 9.Parse request [19:20:00]Sock 9.Check first char [19:20:00]Sock 9.First char is OK [19:20:00]request: POST /json_proto HTTP/1.0 [19:20:00]Method: POST [19:20:00]URL: /json_proto [19:20:00]Method is POST - this is cgi request [19:20:00]url: /json_proto [19:20:00]query_string will be loaded in cgi processing [19:20:00]execute_cgi json_proto POST (null) [19:20:00]execute_cgi path=json_proto method=POST [19:20:00]POST find Content-Length [19:20:00]Host: 172.17.50.3:8080 [19:20:00]Content-Length: 689 [19:20:00]Content-Type: application/json [19:20:00] [19:20:00]POST finish read [19:20:00]Found Content-Length = 689 [19:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886580", "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" ] } } [19:20:00]execute_script... [19:20: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)2886580", "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" ] } } [19:20:00]POST & json_proto [19:20:00]process_json_proto [19:20:00]json parsed OK: [19:20:00]protocol is kg_v1.0 [19:20:00]action value=close_receipt [19:20:00]process_action close_receipt [19:20:00]cmd_close_receipt [19:20:00]MH_GetDate [19:20:00]Write to MH i2c: F0 00 00 F6 37 1C [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: F0 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: F0 09 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: F0 09 00 F6 37 00 63 4C 19 67 6B 98 1E 66 DB [19:20:00]GetLastDocTimeStamp 1729711143 [19:20:00]current date 1729711203 [19:20:00]FM_GetShiftState [19:20:00]SAM_PROTO_GetShiftState [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 13 01 00 [19:20:00]Write to MH i2c: E2 08 00 F7 37 80 13 01 00 00 00 00 00 AB [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 F7 37 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 38 [19:20:00]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_GetShiftState done [19:20:00]FM_GetShiftState done [19:20:00]opened in 1729642435 [19:20:00]opened+sec_in_day 1729728835 [19:20:00]quantity*price = 100051 [19:20:00]sum+1 = 100052 [19:20:00]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 СНО: Общий режим Чек 311 23.10.2024 19:20 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70795 ФПД: 20020852303699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70795&fm=20020852303699&tin=02508201610067®Number=0000000000156251&sum=100000 [19:20:01]StoreToDocumentArchive [19:20:01]shift 196 fd 70795 [19:20:01]save to /storage/0196/doc_00070795 [19:20:01]save last doc name /storage/0196/doc_00070795 to /storage/kkm_last_doc_name [19:20:01]save OK [19:20:01]Clear old archive folders... [19:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:20:01]tlvbuf is 00146020 [19:20:01]SAM_PROTO_ClearQueue [19:20:01]wFMCommunicate request_size=4 [19:20:01]MH_SAM_APDU [19:20:01]CAPDU: 80 09 00 00 [19:20:01]Write to MH i2c: E2 08 00 04 38 80 09 00 00 00 00 00 00 AE [19:20:01]Write i2c OK [19:20:01]MH_I2C_Read... [19:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:01]Read from MH i2c: E2 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: E2 03 00 [19:20:01]MH_I2C_Read... [19:20:01]Read from MH i2c: E2 03 00 04 38 00 90 00 B0 [19:20:01]RAPDU: 90 00 [19:20:01]wFMCommunicate OK [19:20:01]SAM_PROTO_ClearQueue done [19:20:01]KKMCreateOFDPacket [19:20:01]OFDProtocolAddRootSTLVToBuf [19:20:01]FM_MakeSignedData [19:20:01]FM_MakeSignedData [19:20:01]SAM_PROTO_SignData [19:20:01]wFMCommunicate request_size=4 [19:20:01]MH_SAM_APDU [19:20:01]CAPDU: 80 0D 01 02 [19:20:01]Write to MH i2c: E2 08 00 05 38 80 0D 01 02 00 00 00 00 B6 [19:20:01]Write i2c OK [19:20:01]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 05 38 00 90 00 B1 [19:20:02]RAPDU: 90 00 [19:20:02]wFMCommunicate OK [19:20:02]wFMCommunicate request_size=255 [19:20:02]MH_SAM_APDU [19:20:02]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 37 01 00 00 F4 03 04 00 63 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:20:02]Write to MH i2c: E2 02 01 06 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 37 01 00 00 F4 03 04 00 63 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 D3 [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 06 38 00 90 00 B2 [19:20:02]RAPDU: 90 00 [19:20:02]wFMCommunicate OK [19:20:02]wFMCommunicate request_size=16 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 12 35 77 CA 27 53 [19:20:02]Write to MH i2c: E2 13 00 07 38 80 0D 02 02 0B 00 00 35 04 06 00 12 35 77 CA 27 53 00 00 10 [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 03 00 07 38 00 90 00 B3 [19:20:02]RAPDU: 90 00 [19:20:02]wFMCommunicate OK [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 0D 03 02 [19:20:02]Write to MH i2c: E2 08 00 08 38 80 0D 03 02 00 00 00 00 BB [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0B 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0B 00 08 38 00 5F AE 01 6E 94 A5 13 37 90 00 BB [19:20:02]RAPDU: 5F AE 01 6E 94 A5 13 37 90 00 [19:20:02]wFMCommunicate OK [19:20:02]SAM_PROTO_SignData done [19:20:02]FM_MakeSignedData done [19:20:02]CreateOFDProtocolMessage [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 11 00 00 [19:20:02]Write to MH i2c: E2 08 00 09 38 80 11 00 00 00 00 00 00 BB [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 17 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 17 00 09 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [19: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 [19:20:02]wFMCommunicate OK [19:20:02]CreateOFDProtocolMessage done [19:20:02]OFDSenderStorePacket 70795 [19:20:02]StoreOFDPacket docnum=70795 [19: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 15 01 00 00 6E EA 0D 01 7B A3 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 37 01 00 00 F4 03 04 00 63 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 35 77 CA 27 53 5F AE 01 6E 94 A5 13 37 [19:20:02]CheckFolder [19:20:02]dirname=/storage/ofd_packets [19:20:02]CheckFolder done [19:20:02]ProducePacketName [19:20:02]name=ofd_packets/00070795 [19:20:02]NVStorageSaveData ofd_packets/00070795 [19:20:02]File name is /storage/ofd_packets/00070795 [19:20:02]Write 307 bytes [19:20:02]NVStorageSaveData done [19:20:02]OFDSenderStorePacket done [19:20:02]KKMCreateOFDPacket done [19:20:02]NVStorageSaveData kkm_last_timestamp [19:20:02]File name is /storage/kkm_last_timestamp [19:20:02]Write 4 bytes [19:20:02]NVStorageSaveData done [19:20:02]ExternCall_PrintAddStr [19:20:02]wPrintStart [19:20:02]Write to MH i2c: 01 00 00 0A 38 42 [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: 01 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: 01 07 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: 01 07 00 0A 38 00 00 00 00 00 FF 0F 57 [19:20:02]RasterBufferAndPrint [19:20:02]line Счет N : (1)2886580 [19:20:02]line ИНН: 02508201610067 [19:20:02]line Контрольно-Кассовый Чек [19:20:02]line ПРОДАЖА [19:20:02]line ТРК (МРК, ГНК) : 11 [19:20:02]line Товар: 2710194240 [19:20:02]line D-ENERGY Дт-К-2 [19:20:02]line 12.960 * 77.20 [19:20:02]line = 1000.51 [19:20:02]line НДС 12% НСП 1% [19:20:02]line > о реализуемом товаре [19:20:02]line ОКРУГЛЕНИЕ: -0.51 [19:20:02]line ИТОГО: 1000.00 [19:20:02]line Внесено: 1000.00 [19:20:02]line СДАЧА: 0.00 [19:20:02]line НСП 1% : 8.85 [19:20:02]line НДС 12% : 106.25 [19:20:02]line Наличными: 1000.00 [19:20:02]line Безнал.: 0.00 [19:20:02]line Место: АЗС № 85 "Партнер Нефть" [19:20:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:20:02]line СНО: Общий режим [19:20:02]line Чек 311 23.10.2024 19:20 [19:20:02]line Смена: 196 ФФД: 1.0 [19:20:02]line ЗНМ: 0300000167 [19:20:02]line РНМ: 0000000000156251 [19:20:02]line Версия ККМ: v1.0 [19:20:02]line ФМ: 0000000000963346 [19:20:02]line ФД: 70795 [19:20:02]line ФПД: 20020852303699 [19:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192003&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70795&fm=20020852303699&tin=02508201610067®Number=0000000000156251&sum=100000 [19:20:02]OFD Sender: Processing packet 70795 [packets to send 18, broken 17] [19:20:02]ProducePacketName [19:20:02]name=ofd_packets/00070795 [19:20:02]OFD Sender: To server: pG, [19:20:02]CommunicateWithHost lk.salyk.kg:30040 [19:20:02]ConnectInit lk.salyk.kg [19:20:02]written 0, free lines is 4095 [19:20:03]Write to MH i2c: 01 00 00 35 38 6D [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 07 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: 01 07 00 35 38 00 00 00 00 00 EC 0C 6C [19:20:03]RasterBufferAndPrint [19:20:03]line [19:20:03]line [19:20:03]line [19:20:03]line [19:20:03]line [19:20:03]written 0, free lines is 3314 [19:20:03]MH_Cut [19:20:03]Write to MH i2c: D1 01 00 3C 38 01 46 [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: D1 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: D1 01 00 [19:20:03]MH_I2C_Read... [19:20:03]Read from MH i2c: D1 01 00 3C 38 00 45 [19:20:03]Write to MH i2c: 01 00 00 3D 38 75 [19:20:03]Write i2c OK [19:20:03]MH_I2C_Read... [19:20:03]*** Cut start [19:20:03]*** Partial cut [19:20:03]*** CUTSNS_PIN = 1 [19:20:03]*** CUTSNS_PIN = 0 [19:20:04]*** Brake cut motor [19:20:04]Read from MH i2c: 01 [19:20:04]MH_I2C_Read... [19:20:04]*** Stop cut motor [19:20:04]*** Cut end [19:20:04]Read from MH i2c: 01 07 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: 01 07 00 3D 38 00 00 00 00 00 FF 0F 8A [19:20:04]process_action close_receipt done [19:20:04]requested_data is exist [19:20:04]produce_requested_data [19:20:04]requested_item fm.sn is exist - process it [19:20:04]wFMCommunicate request_size=4 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 11 00 00 [19:20:04]Write to MH i2c: E2 08 00 3E 38 80 11 00 00 00 00 00 00 F0 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 17 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 17 00 3E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [19: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 [19:20:04]wFMCommunicate OK [19:20:04]requested_item fd.num is exist - process it [19:20:04]SAM_PROTO_GetFieldsCounters [19:20:04]wFMCommunicate request_size=4 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 13 00 00 [19:20:04]Write to MH i2c: E2 08 00 3F 38 80 13 00 00 00 00 00 00 F3 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 62 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 62 00 3F 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 8B 14 01 00 0E 04 04 00 C4 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 1A [19:20: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 8B 14 01 00 0E 04 04 00 C4 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 [19:20:04]wFMCommunicate OK [19:20:04]SAM_PROTO_GetFieldsCounters done [19:20:04]requested_item shift.num is exist - process it [19:20:04]requested_item shift.opened is exist - process it [19:20:04]req_shift_opened [19:20:04]FM_GetShiftState [19:20:04]SAM_PROTO_GetShiftState [19:20:04]wFMCommunicate request_size=4 [19:20:04]MH_SAM_APDU [19:20:04]CAPDU: 80 13 01 00 [19:20:04]Write to MH i2c: E2 08 00 40 38 80 13 01 00 00 00 00 00 F5 [19:20:04]Write i2c OK [19:20:04]MH_I2C_Read... [19:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:04]Read from MH i2c: E2 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 0E 00 [19:20:04]MH_I2C_Read... [19:20:04]Read from MH i2c: E2 0E 00 40 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 82 [19:20:04]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:20:04]wFMCommunicate OK [19:20:04]SAM_PROTO_GetShiftState done [19:20:04]FM_GetShiftState done [19:20:04]req_shift_opened done [19:20:04]requested_item shift.open_date is exist - process it [19:20:04]req_shift_open_date [19:20:04]req_shift_open_date done [19:20:04]produce_requested_data done [19:20:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70795,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:20:04]process_action_free close_receipt [19:20:04]json_value_free [19:20:04]json_value_free done [19:20:04]process_json_proto returns [19:20:04]Send response to host [19:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70795,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:20:04]free response buf [19:20:04]execute_script done [19:20:04]execute_script returns [19:20:04]free content buf [19:20:04]Sock 9.Close socket [19:20:04]Sock 9.Thread stoped [19:22:17]ConnectInit Can't connect to host [19:22:17]CommunicateWithHost connect error [19:22:17]CommunicateWithHost err = -1 [19:22:17]OFD Sender: Server communicate error [19:22:19]accept exits with 7 [19:22:19]New connection [19:22:19]New thread 3067034980 created [19:22:19]Thread 3066891620 joined [19:22:19]Waiting for new connection... [19:22:19] Sock 7.Parse request [19:22:19]Sock 7.Check first char [19:22:19]Sock 7.First char is OK [19:22:19]request: POST /json_proto HTTP/1.0 [19:22:19]Method: POST [19:22:19]URL: /json_proto [19:22:19]Method is POST - this is cgi request [19:22:19]url: /json_proto [19:22:19]query_string will be loaded in cgi processing [19:22:19]execute_cgi json_proto POST (null) [19:22:19]execute_cgi path=json_proto method=POST [19:22:19]POST find Content-Length [19:22:19]Host: 172.17.50.3:8080 [19:22:19]Content-Length: 683 [19:22:19]Content-Type: application/json [19:22:19] [19:22:19]POST finish read [19:22:19]Found Content-Length = 683 [19:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886581", "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.170, "sum" : 1550.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:19]execute_script... [19:22: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)2886581", "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.170, "sum" : 1550.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:19]POST & json_proto [19:22:19]process_json_proto [19:22:19]json parsed OK: [19:22:19]protocol is kg_v1.0 [19:22:19]action value=close_receipt [19:22:19]process_action close_receipt [19:22:19]cmd_close_receipt [19:22:19]MH_GetDate [19:22:19]Write to MH i2c: F0 00 00 41 38 68 [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: F0 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: F0 09 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: F0 09 00 41 38 00 ED 4C 19 67 6B 98 1E 66 B1 [19:22:19]GetLastDocTimeStamp 1729711203 [19:22:19]current date 1729711341 [19:22:19]FM_GetShiftState [19:22:19]SAM_PROTO_GetShiftState [19:22:19]wFMCommunicate request_size=4 [19:22:19]MH_SAM_APDU [19:22:19]CAPDU: 80 13 01 00 [19:22:19]Write to MH i2c: E2 08 00 42 38 80 13 01 00 00 00 00 00 F7 [19:22:19]Write i2c OK [19:22:19]MH_I2C_Read... [19:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:19]Read from MH i2c: E2 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 0E 00 [19:22:19]MH_I2C_Read... [19:22:19]Read from MH i2c: E2 0E 00 42 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 84 [19:22:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:22:19]wFMCommunicate OK [19:22:19]SAM_PROTO_GetShiftState done [19:22:19]FM_GetShiftState done [19:22:19]opened in 1729642435 [19:22:19]opened+sec_in_day 1729728835 [19:22:19]quantity*price = 155007 [19:22:19]sum+1 = 155008 [19:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.61 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 312 23.10.2024 19:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70796 ФПД: 14390121526404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70796&fm=14390121526404&tin=02508201610067®Number=0000000000156251&sum=155000 [19:22:20]StoreToDocumentArchive [19:22:20]shift 196 fd 70796 [19:22:20]save to /storage/0196/doc_00070796 [19:22:20]save last doc name /storage/0196/doc_00070796 to /storage/kkm_last_doc_name [19:22:20]save OK [19:22:20]Clear old archive folders... [19:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:20]tlvbuf is 001E4AA0 [19:22:20]SAM_PROTO_ClearQueue [19:22:20]wFMCommunicate request_size=4 [19:22:20]MH_SAM_APDU [19:22:20]CAPDU: 80 09 00 00 [19:22:20]Write to MH i2c: E2 08 00 4F 38 80 09 00 00 00 00 00 00 F9 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:20]Read from MH i2c: E2 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 4F 38 00 90 00 FB [19:22:20]RAPDU: 90 00 [19:22:20]wFMCommunicate OK [19:22:20]SAM_PROTO_ClearQueue done [19:22:20]KKMCreateOFDPacket [19:22:20]OFDProtocolAddRootSTLVToBuf [19:22:20]FM_MakeSignedData [19:22:20]FM_MakeSignedData [19:22:20]SAM_PROTO_SignData [19:22:20]wFMCommunicate request_size=4 [19:22:20]MH_SAM_APDU [19:22:20]CAPDU: 80 0D 01 02 [19:22:20]Write to MH i2c: E2 08 00 50 38 80 0D 01 02 00 00 00 00 01 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:20]Read from MH i2c: E2 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 50 38 00 90 00 FC [19:22:20]RAPDU: 90 00 [19:22:20]wFMCommunicate OK [19:22:20]wFMCommunicate request_size=255 [19:22:20]MH_SAM_APDU [19:22: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 82 5A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 ED 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0D [19:22:20]Write to MH i2c: E2 02 01 51 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 5A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 ED 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0D 00 00 FB [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:20]Read from MH i2c: E2 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 51 38 00 90 00 FD [19:22:20]RAPDU: 90 00 [19:22:20]wFMCommunicate OK [19:22:20]wFMCommunicate request_size=10 [19:22:20]MH_SAM_APDU [19:22:20]CAPDU: 80 0D 02 02 05 16 76 14 F4 84 [19:22:20]Write to MH i2c: E2 0D 00 52 38 80 0D 02 02 05 00 16 76 14 F4 84 00 00 26 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:20]Read from MH i2c: E2 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [19:22:20]RAPDU: 90 00 [19:22:20]wFMCommunicate OK [19:22:20]wFMCommunicate request_size=4 [19:22:20]MH_SAM_APDU [19:22:20]CAPDU: 80 0D 03 02 [19:22:20]Write to MH i2c: E2 08 00 53 38 80 0D 03 02 00 00 00 00 06 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:20]Read from MH i2c: E2 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 0B 00 [19:22:20]MH_I2C_Read... [19:22:20]Read from MH i2c: E2 0B 00 53 38 00 C3 C5 F9 D2 D9 9A A3 C9 90 00 39 [19:22:20]RAPDU: C3 C5 F9 D2 D9 9A A3 C9 90 00 [19:22:20]wFMCommunicate OK [19:22:20]SAM_PROTO_SignData done [19:22:20]FM_MakeSignedData done [19:22:20]CreateOFDProtocolMessage [19:22:20]wFMCommunicate request_size=4 [19:22:20]MH_SAM_APDU [19:22:20]CAPDU: 80 11 00 00 [19:22:20]Write to MH i2c: E2 08 00 54 38 80 11 00 00 00 00 00 00 06 [19:22:20]Write i2c OK [19:22:20]MH_I2C_Read... [19:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:21]Read from MH i2c: E2 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 17 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: E2 17 00 54 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [19:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:22:21]wFMCommunicate OK [19:22:21]CreateOFDProtocolMessage done [19:22:21]OFDSenderStorePacket 70796 [19:22:21]StoreOFDPacket docnum=70796 [19:22: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 13 FA 07 01 AA 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 82 5A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 ED 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0D 16 76 14 F4 84 C3 C5 F9 D2 D9 9A A3 C9 [19:22:21]CheckFolder [19:22:21]dirname=/storage/ofd_packets [19:22:21]CheckFolder done [19:22:21]ProducePacketName [19:22:21]name=ofd_packets/00070796 [19:22:21]NVStorageSaveData ofd_packets/00070796 [19:22:21]File name is /storage/ofd_packets/00070796 [19:22:21]Write 301 bytes [19:22:21]NVStorageSaveData done [19:22:21]OFDSenderStorePacket done [19:22:21]KKMCreateOFDPacket done [19:22:21]NVStorageSaveData kkm_last_timestamp [19:22:21]File name is /storage/kkm_last_timestamp [19:22:21]Write 4 bytes [19:22:21]NVStorageSaveData done [19:22:21]ExternCall_PrintAddStr [19:22:21]wPrintStart [19:22:21]Write to MH i2c: 01 00 00 55 38 8D [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 07 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 07 00 55 38 00 00 00 00 00 FF 0F A2 [19:22:21]RasterBufferAndPrint [19:22:21]line Счет N : (1)2886581 [19:22:21]line ИНН: 02508201610067 [19:22:21]line Контрольно-Кассовый Чек [19:22:21]line ПРОДАЖА [19:22:21]line ТРК (МРК, ГНК) : 42 [19:22:21]line Товар: 2710124130 [19:22:21]line Аи-92-К-5 [19:22:21]line 23.170 * 66.90 [19:22:21]line = 1550.07 [19:22:21]line НДС 12% НСП 1% [19:22:21]line > о реализуемом товаре [19:22:21]line ОКРУГЛЕНИЕ: -0.07 [19:22:21]line ИТОГО: 1550.00 [19:22:21]line Внесено: 1550.00 [19:22:21]line СДАЧА: 0.00 [19:22:21]line НСП 1% : 13.72 [19:22:21]line НДС 12% : 164.61 [19:22:21]line Наличными: 1550.00 [19:22:21]line Безнал.: 0.00 [19:22:21]line Место: АЗС № 85 "Партнер Нефть" [19:22:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:22:21]line СНО: Общий режим [19:22:21]line Чек 312 23.10.2024 19:22 [19:22:21]line Смена: 196 ФФД: 1.0 [19:22:21]line ЗНМ: 0300000167 [19:22:21]line РНМ: 0000000000156251 [19:22:21]line Версия ККМ: v1.0 [19:22:21]line ФМ: 0000000000963346 [19:22:21]line ФД: 70796 [19:22:21]line ФПД: 14390121526404 [19:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70796&fm=14390121526404&tin=02508201610067®Number=0000000000156251&sum=155000 [19:22:21]OFD Sender: Processing packet 70795 [packets to send 19, broken 17] [19:22:21]ProducePacketName [19:22:21]name=ofd_packets/00070795 [19:22:21]OFD Sender: To server: pG, [19:22:21]CommunicateWithHost lk.salyk.kg:30040 [19:22:21]ConnectInit lk.salyk.kg [19:22:21]written 0, free lines is 4095 [19:22:21]Connected sock=10 [19:22: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 6E EA 0D 01 7B A3 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 37 01 00 00 F4 03 04 00 63 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 35 77 CA 27 53 5F AE 01 6E 94 A5 13 37 [19:22: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 8A 60 47 00 0E 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 14 01 00 F4 03 04 00 8A F6 18 67 B6 04 01 00 00 15 DB DB 8E 39 A9 66 3E [19:22:21]CommunicateWithHost err = 0 [19:22:21]CheckOFDResponse [19:22:21]1017 (14) - 77093643461234 [19:22:21]1041 (16) - 0000000000963346 [19:22:21]1040 (4) - 70795 [19:22:21]1012 (4) - 23.10.2024 13:13 [19:22:21]1206 (1) - 0 [19:22:21]OFD Sender: Remove packet 70795 [19:22:21]ProducePacketName [19:22:21]name=ofd_packets/00070795 [19:22:21]NVStorageDeleteData [19:22:21]Write to MH i2c: 01 00 00 80 38 B8 [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 07 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: 01 07 00 80 38 00 00 00 00 00 E4 0C AF [19:22:21]RasterBufferAndPrint [19:22:21]line [19:22:21]line [19:22:21]line [19:22:21]line [19:22:21]line [19:22:21]written 0, free lines is 3306 [19:22:21]MH_Cut [19:22:21]Write to MH i2c: D1 01 00 87 38 01 91 [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: D1 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: D1 01 00 [19:22:21]MH_I2C_Read... [19:22:21]Read from MH i2c: D1 01 00 87 38 00 90 [19:22:21]Write to MH i2c: 01 00 00 88 38 C0 [19:22:21]Write i2c OK [19:22:21]MH_I2C_Read... [19:22:22]OFD Sender: Processing packet 70796 [packets to send 18, broken 17] [19:22:22]ProducePacketName [19:22:22]name=ofd_packets/00070796 [19:22:22]OFD Sender: To server: pG, [19:22:22]CommunicateWithHost lk.salyk.kg:30040 [19:22:22]ConnectInit lk.salyk.kg [19:22:22]Connected sock=10 [19:22: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 13 FA 07 01 AA 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 82 5A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 ED 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0D 16 76 14 F4 84 C3 C5 F9 D2 D9 9A A3 C9 [19:22:22]*** Cut start [19:22:22]*** Partial cut [19:22:22]*** CUTSNS_PIN = 1 [19:22: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 56 34 47 00 AE 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 8C 14 01 00 F4 03 04 00 8B F6 18 67 B6 04 01 00 00 6C 36 3E 4F AF 07 15 B4 [19:22:22]CommunicateWithHost err = 0 [19:22:22]CheckOFDResponse [19:22:22]1017 (14) - 77093643461234 [19:22:22]1041 (16) - 0000000000963346 [19:22:22]1040 (4) - 70796 [19:22:22]1012 (4) - 23.10.2024 13:13 [19:22:22]1206 (1) - 0 [19:22:22]OFD Sender: Remove packet 70796 [19:22:22]ProducePacketName [19:22:22]name=ofd_packets/00070796 [19:22:22]NVStorageDeleteData [19:22:22]*** CUTSNS_PIN = 0 [19:22:22]*** Brake cut motor [19:22:23]OFD Sender: No OFD packet to send [19:22:23]Read from MH i2c: 01 [19:22:23]MH_I2C_Read... [19:22:23]*** Stop cut motor [19:22:23]*** Cut end [19:22:23]Read from MH i2c: 01 07 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: 01 07 00 88 38 00 00 00 00 00 FF 0F D5 [19:22:23]process_action close_receipt done [19:22:23]requested_data is exist [19:22:23]produce_requested_data [19:22:23]requested_item fm.sn is exist - process it [19:22:23]wFMCommunicate request_size=4 [19:22:23]MH_SAM_APDU [19:22:23]CAPDU: 80 11 00 00 [19:22:23]Write to MH i2c: E2 08 00 89 38 80 11 00 00 00 00 00 00 3B [19:22:23]Write i2c OK [19:22:23]MH_I2C_Read... [19:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:23]Read from MH i2c: E2 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 17 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 17 00 89 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [19:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:22:23]wFMCommunicate OK [19:22:23]requested_item fd.num is exist - process it [19:22:23]SAM_PROTO_GetFieldsCounters [19:22:23]wFMCommunicate request_size=4 [19:22:23]MH_SAM_APDU [19:22:23]CAPDU: 80 13 00 00 [19:22:23]Write to MH i2c: E2 08 00 8A 38 80 13 00 00 00 00 00 00 3E [19:22:23]Write i2c OK [19:22:23]MH_I2C_Read... [19:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:23]Read from MH i2c: E2 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 62 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 62 00 8A 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 8C 14 01 00 0E 04 04 00 C4 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 69 [19:22: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 8C 14 01 00 0E 04 04 00 C4 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 [19:22:23]wFMCommunicate OK [19:22:23]SAM_PROTO_GetFieldsCounters done [19:22:23]requested_item shift.num is exist - process it [19:22:23]requested_item shift.opened is exist - process it [19:22:23]req_shift_opened [19:22:23]FM_GetShiftState [19:22:23]SAM_PROTO_GetShiftState [19:22:23]wFMCommunicate request_size=4 [19:22:23]MH_SAM_APDU [19:22:23]CAPDU: 80 13 01 00 [19:22:23]Write to MH i2c: E2 08 00 8B 38 80 13 01 00 00 00 00 00 40 [19:22:23]Write i2c OK [19:22:23]MH_I2C_Read... [19:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:23]Read from MH i2c: E2 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 0E 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 0E 00 8B 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CD [19:22:23]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:22:23]wFMCommunicate OK [19:22:23]SAM_PROTO_GetShiftState done [19:22:23]FM_GetShiftState done [19:22:23]req_shift_opened done [19:22:23]requested_item shift.open_date is exist - process it [19:22:23]req_shift_open_date [19:22:23]req_shift_open_date done [19:22:23]produce_requested_data done [19:22:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70796,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:22:23]process_action_free close_receipt [19:22:23]json_value_free [19:22:23]json_value_free done [19:22:23]process_json_proto returns [19:22:23]Send response to host [19:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70796,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:22:23]free response buf [19:22:23]execute_script done [19:22:23]execute_script returns [19:22:23]free content buf [19:22:23]Sock 7.Close socket [19:22:23]Sock 7.Thread stoped [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:34]accept exits with 9 [19:22:34]New connection [19:22:34]New thread 3066891620 created [19:22:34]Thread 3067034980 joined [19:22:34]Waiting for new connection... [19:22:34] Sock 9.Parse request [19:22:34]Sock 9.Check first char [19:22:34]Sock 9.First char is OK [19:22:34]request: POST /json_proto HTTP/1.0 [19:22:34]Method: POST [19:22:34]URL: /json_proto [19:22:34]Method is POST - this is cgi request [19:22:34]url: /json_proto [19:22:34]query_string will be loaded in cgi processing [19:22:34]execute_cgi json_proto POST (null) [19:22:34]execute_cgi path=json_proto method=POST [19:22:34]POST find Content-Length [19:22:34]Host: 172.17.50.3:8080 [19:22:34]Content-Length: 689 [19:22:34]Content-Type: application/json [19:22:34] [19:22:34]POST finish read [19:22:34]Found Content-Length = 689 [19:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886582", "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" ] } } [19:22:34]execute_script... [19:22: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)2886582", "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" ] } } [19:22:34]POST & json_proto [19:22:34]process_json_proto [19:22:34]json parsed OK: [19:22:34]protocol is kg_v1.0 [19:22:34]action value=close_receipt [19:22:34]process_action close_receipt [19:22:34]cmd_close_receipt [19:22:34]MH_GetDate [19:22:34]Write to MH i2c: F0 00 00 8C 38 B3 [19:22:34]Write i2c OK [19:22:34]MH_I2C_Read... [19:22:34]Read from MH i2c: F0 [19:22:34]MH_I2C_Read... [19:22:34]Read from MH i2c: F0 09 00 [19:22:34]MH_I2C_Read... [19:22:34]Read from MH i2c: F0 09 00 8C 38 00 FC 4C 19 67 6B 98 1E 66 0B [19:22:34]GetLastDocTimeStamp 1729711341 [19:22:34]current date 1729711356 [19:22:34]FM_GetShiftState [19:22:34]SAM_PROTO_GetShiftState [19:22:34]wFMCommunicate request_size=4 [19:22:34]MH_SAM_APDU [19:22:34]CAPDU: 80 13 01 00 [19:22:34]Write to MH i2c: E2 08 00 8D 38 80 13 01 00 00 00 00 00 42 [19:22:34]Write i2c OK [19:22:34]MH_I2C_Read... [19:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:34]Read from MH i2c: E2 [19:22:34]MH_I2C_Read... [19:22:34]Read from MH i2c: E2 0E 00 [19:22:34]MH_I2C_Read... [19:22:34]Read from MH i2c: E2 0E 00 8D 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 CF [19:22:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:22:34]wFMCommunicate OK [19:22:34]SAM_PROTO_GetShiftState done [19:22:34]FM_GetShiftState done [19:22:34]opened in 1729642435 [19:22:34]opened+sec_in_day 1729728835 [19:22:34]quantity*price = 100051 [19:22:34]sum+1 = 100052 [19:22:34]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 СНО: Общий режим Чек 313 23.10.2024 19:22 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70797 ФПД: 174613537427371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70797&fm=174613537427371&tin=02508201610067®Number=0000000000156251&sum=100000 [19:22:35]StoreToDocumentArchive [19:22:35]shift 196 fd 70797 [19:22:35]save to /storage/0196/doc_00070797 [19:22:35]save last doc name /storage/0196/doc_00070797 to /storage/kkm_last_doc_name [19:22:35]save OK [19:22:35]Clear old archive folders... [19:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:22:35]tlvbuf is 00190410 [19:22:35]SAM_PROTO_ClearQueue [19:22:35]wFMCommunicate request_size=4 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 09 00 00 [19:22:35]Write to MH i2c: E2 08 00 9A 38 80 09 00 00 00 00 00 00 44 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 9A 38 00 90 00 46 [19:22:35]RAPDU: 90 00 [19:22:35]wFMCommunicate OK [19:22:35]SAM_PROTO_ClearQueue done [19:22:35]KKMCreateOFDPacket [19:22:35]OFDProtocolAddRootSTLVToBuf [19:22:35]FM_MakeSignedData [19:22:35]FM_MakeSignedData [19:22:35]SAM_PROTO_SignData [19:22:35]wFMCommunicate request_size=4 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 0D 01 02 [19:22:35]Write to MH i2c: E2 08 00 9B 38 80 0D 01 02 00 00 00 00 4C [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [19:22:35]RAPDU: 90 00 [19:22:35]wFMCommunicate OK [19:22:35]wFMCommunicate request_size=255 [19:22:35]MH_SAM_APDU [19:22: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 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 39 01 00 00 F4 03 04 00 FC 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:22:35]Write to MH i2c: E2 02 01 9C 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 39 01 00 00 F4 03 04 00 FC 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 06 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [19:22:35]RAPDU: 90 00 [19:22:35]wFMCommunicate OK [19:22:35]wFMCommunicate request_size=16 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9E CF 61 DF 0F AB [19:22:35]Write to MH i2c: E2 13 00 9D 38 80 0D 02 02 0B 00 00 35 04 06 00 9E CF 61 DF 0F AB 00 00 0B [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [19:22:35]RAPDU: 90 00 [19:22:35]wFMCommunicate OK [19:22:35]wFMCommunicate request_size=4 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 0D 03 02 [19:22:35]Write to MH i2c: E2 08 00 9E 38 80 0D 03 02 00 00 00 00 51 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 0B 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 0B 00 9E 38 00 22 14 9B FE 62 80 A1 50 90 00 F4 [19:22:35]RAPDU: 22 14 9B FE 62 80 A1 50 90 00 [19:22:35]wFMCommunicate OK [19:22:35]SAM_PROTO_SignData done [19:22:35]FM_MakeSignedData done [19:22:35]CreateOFDProtocolMessage [19:22:35]wFMCommunicate request_size=4 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 11 00 00 [19:22:35]Write to MH i2c: E2 08 00 9F 38 80 11 00 00 00 00 00 00 51 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 17 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 17 00 9F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [19:22: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:22:35]wFMCommunicate OK [19:22:35]CreateOFDProtocolMessage done [19:22:35]OFDSenderStorePacket 70797 [19:22:35]StoreOFDPacket docnum=70797 [19:22: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 85 07 0D 01 08 38 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 39 01 00 00 F4 03 04 00 FC 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9E CF 61 DF 0F AB 22 14 9B FE 62 80 A1 50 [19:22:35]CheckFolder [19:22:35]dirname=/storage/ofd_packets [19:22:35]CheckFolder done [19:22:35]ProducePacketName [19:22:35]name=ofd_packets/00070797 [19:22:35]NVStorageSaveData ofd_packets/00070797 [19:22:35]File name is /storage/ofd_packets/00070797 [19:22:35]Write 307 bytes [19:22:35]NVStorageSaveData done [19:22:35]OFDSenderStorePacket done [19:22:35]KKMCreateOFDPacket done [19:22:35]NVStorageSaveData kkm_last_timestamp [19:22:35]File name is /storage/kkm_last_timestamp [19:22:35]Write 4 bytes [19:22:35]NVStorageSaveData done [19:22:35]ExternCall_PrintAddStr [19:22:35]wPrintStart [19:22:35]Write to MH i2c: 01 00 00 A0 38 D8 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: 01 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: 01 07 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 FF 0F ED [19:22:35]RasterBufferAndPrint [19:22:35]line Счет N : (1)2886582 [19:22:35]line ИНН: 02508201610067 [19:22:35]line Контрольно-Кассовый Чек [19:22:35]line ПРОДАЖА [19:22:35]line ТРК (МРК, ГНК) : 31 [19:22:35]line Товар: 2710194240 [19:22:35]line D-ENERGY Дт-К-2 [19:22:35]line 12.960 * 77.20 [19:22:35]line = 1000.51 [19:22:35]line НДС 12% НСП 1% [19:22:35]line > о реализуемом товаре [19:22:35]line ОКРУГЛЕНИЕ: -0.51 [19:22:35]line ИТОГО: 1000.00 [19:22:35]line Внесено: 1000.00 [19:22:35]line СДАЧА: 0.00 [19:22:35]line НСП 1% : 8.85 [19:22:35]line НДС 12% : 106.25 [19:22:35]line Наличными: 1000.00 [19:22:35]line Безнал.: 0.00 [19:22:35]line Место: АЗС № 85 "Партнер Нефть" [19:22:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:22:35]line СНО: Общий режим [19:22:35]line Чек 313 23.10.2024 19:22 [19:22:35]line Смена: 196 ФФД: 1.0 [19:22:35]line ЗНМ: 0300000167 [19:22:35]line РНМ: 0000000000156251 [19:22:35]line Версия ККМ: v1.0 [19:22:35]line ФМ: 0000000000963346 [19:22:35]line ФД: 70797 [19:22:35]line ФПД: 174613537427371 [19:22:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70797&fm=174613537427371&tin=02508201610067®Number=0000000000156251&sum=100000 [19:22:36]OFD Sender: Processing packet 70797 [packets to send 18, broken 17] [19:22:36]ProducePacketName [19:22:36]name=ofd_packets/00070797 [19:22:36]OFD Sender: To server: pG, [19:22:36]CommunicateWithHost lk.salyk.kg:30040 [19:22:36]ConnectInit lk.salyk.kg [19:22:36]written 0, free lines is 4095 [19:22:36]Connected sock=10 [19:22: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 85 07 0D 01 08 38 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 39 01 00 00 F4 03 04 00 FC 4C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9E CF 61 DF 0F AB 22 14 9B FE 62 80 A1 50 [19:22: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 30 D9 47 00 8E 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 8D 14 01 00 F4 03 04 00 99 F6 18 67 B6 04 01 00 00 CC 87 B4 51 3A 9C 27 25 [19:22:36]CommunicateWithHost err = 0 [19:22:36]CheckOFDResponse [19:22:36]1017 (14) - 77093643461234 [19:22:36]1041 (16) - 0000000000963346 [19:22:36]1040 (4) - 70797 [19:22:36]1012 (4) - 23.10.2024 13:14 [19:22:36]1206 (1) - 0 [19:22:36]OFD Sender: Remove packet 70797 [19:22:36]ProducePacketName [19:22:36]name=ofd_packets/00070797 [19:22:36]NVStorageDeleteData [19:22:36]Write to MH i2c: 01 00 00 CB 38 03 [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: 01 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: 01 07 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: 01 07 00 CB 38 00 00 00 00 00 ED 0C 03 [19:22:36]RasterBufferAndPrint [19:22:36]line [19:22:36]line [19:22:36]line [19:22:36]line [19:22:36]line [19:22:36]written 0, free lines is 3318 [19:22:36]MH_Cut [19:22:36]Write to MH i2c: D1 01 00 D2 38 01 DC [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: D1 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: D1 01 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: D1 01 00 D2 38 00 DB [19:22:36]Write to MH i2c: 01 00 00 D3 38 0B [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:37]OFD Sender: No OFD packet to send [19:22:37]*** Cut start [19:22:37]*** Partial cut [19:22:37]*** CUTSNS_PIN = 1 [19:22:37]*** CUTSNS_PIN = 0 [19:22:37]*** Brake cut motor [19:22:38]Read from MH i2c: 01 [19:22:38]MH_I2C_Read... [19:22:38]*** Stop cut motor [19:22:38]*** Cut end [19:22:38]Read from MH i2c: 01 07 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 FF 0F 20 [19:22:38]process_action close_receipt done [19:22:38]requested_data is exist [19:22:38]produce_requested_data [19:22:38]requested_item fm.sn is exist - process it [19:22:38]wFMCommunicate request_size=4 [19:22:38]MH_SAM_APDU [19:22:38]CAPDU: 80 11 00 00 [19:22:38]Write to MH i2c: E2 08 00 D4 38 80 11 00 00 00 00 00 00 86 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 17 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 17 00 D4 38 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:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:22:38]wFMCommunicate OK [19:22:38]requested_item fd.num is exist - process it [19:22:38]SAM_PROTO_GetFieldsCounters [19:22:38]wFMCommunicate request_size=4 [19:22:38]MH_SAM_APDU [19:22:38]CAPDU: 80 13 00 00 [19:22:38]Write to MH i2c: E2 08 00 D5 38 80 13 00 00 00 00 00 00 89 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 62 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 62 00 D5 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 8D 14 01 00 0E 04 04 00 C4 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 [19:22: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 8D 14 01 00 0E 04 04 00 C4 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 [19:22:38]wFMCommunicate OK [19:22:38]SAM_PROTO_GetFieldsCounters done [19:22:38]requested_item shift.num is exist - process it [19:22:38]requested_item shift.opened is exist - process it [19:22:38]req_shift_opened [19:22:38]FM_GetShiftState [19:22:38]SAM_PROTO_GetShiftState [19:22:38]wFMCommunicate request_size=4 [19:22:38]MH_SAM_APDU [19:22:38]CAPDU: 80 13 01 00 [19:22:38]Write to MH i2c: E2 08 00 D6 38 80 13 01 00 00 00 00 00 8B [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 0E 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 0E 00 D6 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 18 [19:22:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:22:38]wFMCommunicate OK [19:22:38]SAM_PROTO_GetShiftState done [19:22:38]FM_GetShiftState done [19:22:38]req_shift_opened done [19:22:38]requested_item shift.open_date is exist - process it [19:22:38]req_shift_open_date [19:22:38]req_shift_open_date done [19:22:38]produce_requested_data done [19:22:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70797,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:22:38]process_action_free close_receipt [19:22:38]json_value_free [19:22:38]json_value_free done [19:22:38]process_json_proto returns [19:22:38]Send response to host [19:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70797,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:22:38]free response buf [19:22:38]execute_script done [19:22:38]execute_script returns [19:22:38]free content buf [19:22:38]Sock 9.Close socket [19:22:38]Sock 9.Thread stoped [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:11]accept exits with 7 [19:26:11]New connection [19:26:11]New thread 3067034980 created [19:26:11]Thread 3066891620 joined [19:26:11]Waiting for new connection... [19:26:11] Sock 7.Parse request [19:26:11]Sock 7.Check first char [19:26:11]Sock 7.First char is OK [19:26:11]request: POST /json_proto HTTP/1.0 [19:26:11]Method: POST [19:26:11]URL: /json_proto [19:26:11]Method is POST - this is cgi request [19:26:11]url: /json_proto [19:26:11]query_string will be loaded in cgi processing [19:26:11]execute_cgi json_proto POST (null) [19:26:11]execute_cgi path=json_proto method=POST [19:26:11]POST find Content-Length [19:26:11]Host: 172.17.50.3:8080 [19:26:11]Content-Length: 680 [19:26:11]Content-Type: application/json [19:26:11] [19:26:11]POST finish read [19:26:11]Found Content-Length = 680 [19:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886583", "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" ] } } [19:26:11]execute_script... [19: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)2886583", "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" ] } } [19:26:11]POST & json_proto [19:26:11]process_json_proto [19:26:11]json parsed OK: [19:26:11]protocol is kg_v1.0 [19:26:11]action value=close_receipt [19:26:11]process_action close_receipt [19:26:11]cmd_close_receipt [19:26:11]MH_GetDate [19:26:11]Write to MH i2c: F0 00 00 D7 38 FE [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: F0 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: F0 09 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: F0 09 00 D7 38 00 D5 4D 19 67 6B 98 1E 66 30 [19:26:11]GetLastDocTimeStamp 1729711356 [19:26:11]current date 1729711573 [19:26:11]FM_GetShiftState [19:26:11]SAM_PROTO_GetShiftState [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 13 01 00 [19:26:11]Write to MH i2c: E2 08 00 D8 38 80 13 01 00 00 00 00 00 8D [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0E 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0E 00 D8 38 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1A [19:26:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:26:11]wFMCommunicate OK [19:26:11]SAM_PROTO_GetShiftState done [19:26:11]FM_GetShiftState done [19:26:11]opened in 1729642435 [19:26:11]opened+sec_in_day 1729728835 [19:26:11]quantity*price = 200025 [19:26:11]sum+1 = 200026 [19:26:11]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 СНО: Общий режим Чек 314 23.10.2024 19:26 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70798 ФПД: 208546354988789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70798&fm=208546354988789&tin=02508201610067®Number=0000000000156251&sum=200000 [19:26:12]StoreToDocumentArchive [19:26:12]shift 196 fd 70798 [19:26:12]save to /storage/0196/doc_00070798 [19:26:12]save last doc name /storage/0196/doc_00070798 to /storage/kkm_last_doc_name [19:26:12]save OK [19:26:12]Clear old archive folders... [19:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:26:12]tlvbuf is 00190CC0 [19:26:12]SAM_PROTO_ClearQueue [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 09 00 00 [19:26:12]Write to MH i2c: E2 08 00 E5 38 80 09 00 00 00 00 00 00 8F [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_ClearQueue done [19:26:12]KKMCreateOFDPacket [19:26:12]OFDProtocolAddRootSTLVToBuf [19:26:12]FM_MakeSignedData [19:26:12]FM_MakeSignedData [19:26:12]SAM_PROTO_SignData [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 01 02 [19:26:12]Write to MH i2c: E2 08 00 E6 38 80 0D 01 02 00 00 00 00 97 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 E6 38 00 90 00 92 [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=255 [19:26:12]MH_SAM_APDU [19:26: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 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 3A 01 00 00 F4 03 04 00 D5 4D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BD AB FB 68 [19:26:12]Write to MH i2c: E2 02 01 E7 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 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 3A 01 00 00 F4 03 04 00 D5 4D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BD AB FB 68 00 00 13 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 E7 38 00 90 00 93 [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=7 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 02 02 02 86 F5 [19:26:12]Write to MH i2c: E2 0A 00 E8 38 80 0D 02 02 02 00 86 F5 00 00 19 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 03 00 E8 38 00 90 00 94 [19:26:12]RAPDU: 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 0D 03 02 [19:26:12]Write to MH i2c: E2 08 00 E9 38 80 0D 03 02 00 00 00 00 9C [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0B 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0B 00 E9 38 00 3C 06 9F 69 20 9C D5 5B 90 00 D3 [19:26:12]RAPDU: 3C 06 9F 69 20 9C D5 5B 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_SignData done [19:26:12]FM_MakeSignedData done [19:26:12]CreateOFDProtocolMessage [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 11 00 00 [19:26:12]Write to MH i2c: E2 08 00 EA 38 80 11 00 00 00 00 00 00 9C [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 EA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [19:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:26:12]wFMCommunicate OK [19:26:12]CreateOFDProtocolMessage done [19:26:12]OFDSenderStorePacket 70798 [19:26:12]StoreOFDPacket docnum=70798 [19:26: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 D0 77 04 01 51 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 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 3A 01 00 00 F4 03 04 00 D5 4D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BD AB FB 68 86 F5 3C 06 9F 69 20 9C D5 5B [19:26:12]CheckFolder [19:26:12]dirname=/storage/ofd_packets [19:26:12]CheckFolder done [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00070798 [19:26:12]NVStorageSaveData ofd_packets/00070798 [19:26:12]File name is /storage/ofd_packets/00070798 [19:26:12]Write 298 bytes [19:26:12]NVStorageSaveData done [19:26:12]OFDSenderStorePacket done [19:26:12]KKMCreateOFDPacket done [19:26:12]NVStorageSaveData kkm_last_timestamp [19:26:12]File name is /storage/kkm_last_timestamp [19:26:12]Write 4 bytes [19:26:12]NVStorageSaveData done [19:26:12]ExternCall_PrintAddStr [19:26:12]wPrintStart [19:26:12]Write to MH i2c: 01 00 00 EB 38 23 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 FF 0F 38 [19:26:12]RasterBufferAndPrint [19:26:12]line Счет N : (1)2886583 [19:26:12]line ИНН: 02508201610067 [19:26:12]line Контрольно-Кассовый Чек [19:26:12]line ПРОДАЖА [19:26:12]line ТРК (МРК, ГНК) : 61 [19:26:12]line Товар: 2710194210 [19:26:12]line ДТ-К-5 [19:26:12]line 26.250 * 76.20 [19:26:12]line = 2000.25 [19:26:12]line НДС 12% НСП 1% [19:26:12]line > о реализуемом товаре [19:26:12]line ОКРУГЛЕНИЕ: -0.25 [19:26:12]line ИТОГО: 2000.00 [19:26:12]line Внесено: 2000.00 [19:26:12]line СДАЧА: 0.00 [19:26:12]line НСП 1% : 17.70 [19:26:12]line НДС 12% : 212.42 [19:26:12]line Наличными: 2000.00 [19:26:12]line Безнал.: 0.00 [19:26:12]line Место: АЗС № 85 "Партнер Нефть" [19:26:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:26:12]line СНО: Общий режим [19:26:12]line Чек 314 23.10.2024 19:26 [19:26:12]line Смена: 196 ФФД: 1.0 [19:26:12]line ЗНМ: 0300000167 [19:26:12]line РНМ: 0000000000156251 [19:26:12]line Версия ККМ: v1.0 [19:26:12]line ФМ: 0000000000963346 [19:26:13]line ФД: 70798 [19:26:13]line ФПД: 208546354988789 [19:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70798&fm=208546354988789&tin=02508201610067®Number=0000000000156251&sum=200000 [19:26:13]OFD Sender: Processing packet 70798 [packets to send 18, broken 17] [19:26:13]ProducePacketName [19:26:13]name=ofd_packets/00070798 [19:26:13]OFD Sender: To server: pG, [19:26:13]CommunicateWithHost lk.salyk.kg:30040 [19:26:13]ConnectInit lk.salyk.kg [19:26:13]written 0, free lines is 4095 [19:26:13]Connected sock=10 [19: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 0C 01 00 00 D0 77 04 01 51 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 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 3A 01 00 00 F4 03 04 00 D5 4D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BD AB FB 68 86 F5 3C 06 9F 69 20 9C D5 5B [19: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 6B 11 47 00 33 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 14 01 00 F4 03 04 00 72 F7 18 67 B6 04 01 00 00 65 0D 97 64 90 71 50 2D [19:26:13]CommunicateWithHost err = 0 [19:26:13]CheckOFDResponse [19:26:13]1017 (14) - 77093643461234 [19:26:13]1041 (16) - 0000000000963346 [19:26:13]1040 (4) - 70798 [19:26:13]1012 (4) - 23.10.2024 13:17 [19:26:13]1206 (1) - 0 [19:26:13]OFD Sender: Remove packet 70798 [19:26:13]ProducePacketName [19:26:13]name=ofd_packets/00070798 [19:26:13]NVStorageDeleteData [19:26:13]Write to MH i2c: 01 00 00 16 39 4F [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 07 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: 01 07 00 16 39 00 00 00 00 00 F8 0C 5A [19:26:13]RasterBufferAndPrint [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]line [19:26:13]written 0, free lines is 3326 [19:26:13]MH_Cut [19:26:13]Write to MH i2c: D1 01 00 1D 39 01 28 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 01 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: D1 01 00 1D 39 00 27 [19:26:13]Write to MH i2c: 01 00 00 1E 39 57 [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:14]OFD Sender: No OFD packet to send [19:26:14]*** Cut start [19:26:14]*** Partial cut [19:26:14]*** CUTSNS_PIN = 1 [19:26:14]*** CUTSNS_PIN = 0 [19:26:14]*** Brake cut motor [19:26:14]Read from MH i2c: 01 [19:26:14]MH_I2C_Read... [19:26:14]*** Stop cut motor [19:26:14]*** Cut end [19:26:14]Read from MH i2c: 01 07 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: 01 07 00 1E 39 00 00 00 00 00 FF 0F 6C [19:26:14]process_action close_receipt done [19:26:14]requested_data is exist [19:26:14]produce_requested_data [19:26:14]requested_item fm.sn is exist - process it [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 11 00 00 [19:26:14]Write to MH i2c: E2 08 00 1F 39 80 11 00 00 00 00 00 00 D2 [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 1F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [19: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 [19:26:15]wFMCommunicate OK [19:26:15]requested_item fd.num is exist - process it [19:26:15]SAM_PROTO_GetFieldsCounters [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 13 00 00 [19:26:15]Write to MH i2c: E2 08 00 20 39 80 13 00 00 00 00 00 00 D5 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 62 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 62 00 20 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 8E 14 01 00 0E 04 04 00 C4 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 08 [19: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 8E 14 01 00 0E 04 04 00 C4 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 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_GetFieldsCounters done [19:26:15]requested_item shift.num is exist - process it [19:26:15]requested_item shift.opened is exist - process it [19:26:15]req_shift_opened [19:26:15]FM_GetShiftState [19:26:15]SAM_PROTO_GetShiftState [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 13 01 00 [19:26:15]Write to MH i2c: E2 08 00 21 39 80 13 01 00 00 00 00 00 D7 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:15]Read from MH i2c: E2 0E 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 0E 00 21 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 64 [19:26:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_GetShiftState done [19:26:15]FM_GetShiftState done [19:26:15]req_shift_opened done [19:26:15]requested_item shift.open_date is exist - process it [19:26:15]req_shift_open_date [19:26:15]req_shift_open_date done [19:26:15]produce_requested_data done [19:26:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70798,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:26:15]process_action_free close_receipt [19:26:15]json_value_free [19:26:15]json_value_free done [19:26:15]process_json_proto returns [19:26:15]Send response to host [19:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70798,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:26:15]free response buf [19:26:15]execute_script done [19:26:15]execute_script returns [19:26:15]free content buf [19:26:15]Sock 7.Close socket [19:26:15]Sock 7.Thread stoped [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:46]accept exits with 9 [19:33:46]New connection [19:33:46]New thread 3066891620 created [19:33:46]Thread 3067034980 joined [19:33:46]Waiting for new connection... [19:33:46] Sock 9.Parse request [19:33:46]Sock 9.Check first char [19:33:46]Sock 9.First char is OK [19:33:46]request: POST /json_proto HTTP/1.0 [19:33:46]Method: POST [19:33:46]URL: /json_proto [19:33:46]Method is POST - this is cgi request [19:33:46]url: /json_proto [19:33:46]query_string will be loaded in cgi processing [19:33:46]execute_cgi json_proto POST (null) [19:33:46]execute_cgi path=json_proto method=POST [19:33:46]POST find Content-Length [19:33:46]Host: 172.17.50.3:8080 [19:33:46]Content-Length: 689 [19:33:46]Content-Type: application/json [19:33:46] [19:33:46]POST finish read [19:33:46]Found Content-Length = 689 [19:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886584", "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" ] } } [19:33:46]execute_script... [19:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886584", "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" ] } } [19:33:46]POST & json_proto [19:33:46]process_json_proto [19:33:46]json parsed OK: [19:33:46]protocol is kg_v1.0 [19:33:46]action value=close_receipt [19:33:46]process_action close_receipt [19:33:46]cmd_close_receipt [19:33:46]MH_GetDate [19:33:46]Write to MH i2c: F0 00 00 22 39 4A [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: F0 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: F0 09 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: F0 09 00 22 39 00 9D 4F 19 67 6B 98 1E 66 46 [19:33:46]GetLastDocTimeStamp 1729711573 [19:33:46]current date 1729712029 [19:33:46]FM_GetShiftState [19:33:46]SAM_PROTO_GetShiftState [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 13 01 00 [19:33:46]Write to MH i2c: E2 08 00 23 39 80 13 01 00 00 00 00 00 D9 [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 23 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 66 [19:33:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:33:46]wFMCommunicate OK [19:33:46]SAM_PROTO_GetShiftState done [19:33:46]FM_GetShiftState done [19:33:46]opened in 1729642435 [19:33:46]opened+sec_in_day 1729728835 [19:33:46]quantity*price = 200025 [19:33:46]sum+1 = 200026 [19:33:46]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 СНО: Общий режим Чек 315 23.10.2024 19:33 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70799 ФПД: 50855609765922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70799&fm=50855609765922&tin=02508201610067®Number=0000000000156251&sum=200000 [19:33:47]StoreToDocumentArchive [19:33:47]shift 196 fd 70799 [19:33:47]save to /storage/0196/doc_00070799 [19:33:47]save last doc name /storage/0196/doc_00070799 to /storage/kkm_last_doc_name [19:33:47]save OK [19:33:47]Clear old archive folders... [19:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:33:47]tlvbuf is 0015E380 [19:33:47]SAM_PROTO_ClearQueue [19:33:47]wFMCommunicate request_size=4 [19:33:47]MH_SAM_APDU [19:33:47]CAPDU: 80 09 00 00 [19:33:47]Write to MH i2c: E2 08 00 30 39 80 09 00 00 00 00 00 00 DB [19:33:47]Write i2c OK [19:33:47]MH_I2C_Read... [19:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:47]Read from MH i2c: E2 [19:33:47]MH_I2C_Read... [19:33:47]Read from MH i2c: E2 03 00 [19:33:47]MH_I2C_Read... [19:33:47]Read from MH i2c: E2 03 00 30 39 00 90 00 DD [19:33:47]RAPDU: 90 00 [19:33:47]wFMCommunicate OK [19:33:47]SAM_PROTO_ClearQueue done [19:33:47]KKMCreateOFDPacket [19:33:47]OFDProtocolAddRootSTLVToBuf [19:33:47]FM_MakeSignedData [19:33:47]FM_MakeSignedData [19:33:47]SAM_PROTO_SignData [19:33:47]wFMCommunicate request_size=4 [19:33:47]MH_SAM_APDU [19:33:47]CAPDU: 80 0D 01 02 [19:33:47]Write to MH i2c: E2 08 00 31 39 80 0D 01 02 00 00 00 00 E3 [19:33:47]Write i2c OK [19:33:47]MH_I2C_Read... [19:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:47]Read from MH i2c: E2 [19:33:47]MH_I2C_Read... [19:33:47]Read from MH i2c: E2 03 00 [19:33:47]MH_I2C_Read... [19:33:47]Read from MH i2c: E2 03 00 31 39 00 90 00 DE [19:33:47]RAPDU: 90 00 [19:33:47]wFMCommunicate OK [19:33:47]wFMCommunicate request_size=255 [19:33:47]MH_SAM_APDU [19:33:47]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 3B 01 00 00 F4 03 04 00 9D 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:33:47]Write to MH i2c: E2 02 01 32 39 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 3B 01 00 00 F4 03 04 00 9D 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 89 [19:33:47]Write i2c OK [19:33:47]MH_I2C_Read... [19:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:48]Read from MH i2c: E2 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 03 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 03 00 32 39 00 90 00 DF [19:33:48]RAPDU: 90 00 [19:33:48]wFMCommunicate OK [19:33:48]wFMCommunicate request_size=16 [19:33:48]MH_SAM_APDU [19:33:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2E 40 BE 8E 10 22 [19:33:48]Write to MH i2c: E2 13 00 33 39 80 0D 02 02 0B 00 00 35 04 06 00 2E 40 BE 8E 10 22 00 00 27 [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:48]Read from MH i2c: E2 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 03 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 03 00 33 39 00 90 00 E0 [19:33:48]RAPDU: 90 00 [19:33:48]wFMCommunicate OK [19:33:48]wFMCommunicate request_size=4 [19:33:48]MH_SAM_APDU [19:33:48]CAPDU: 80 0D 03 02 [19:33:48]Write to MH i2c: E2 08 00 34 39 80 0D 03 02 00 00 00 00 E8 [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:48]Read from MH i2c: E2 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 0B 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 0B 00 34 39 00 BB 2E 7B 20 B5 2D 68 8B 90 00 42 [19:33:48]RAPDU: BB 2E 7B 20 B5 2D 68 8B 90 00 [19:33:48]wFMCommunicate OK [19:33:48]SAM_PROTO_SignData done [19:33:48]FM_MakeSignedData done [19:33:48]CreateOFDProtocolMessage [19:33:48]wFMCommunicate request_size=4 [19:33:48]MH_SAM_APDU [19:33:48]CAPDU: 80 11 00 00 [19:33:48]Write to MH i2c: E2 08 00 35 39 80 11 00 00 00 00 00 00 E8 [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:48]Read from MH i2c: E2 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 17 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: E2 17 00 35 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [19:33: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:33:48]wFMCommunicate OK [19:33:48]CreateOFDProtocolMessage done [19:33:48]OFDSenderStorePacket 70799 [19:33:48]StoreOFDPacket docnum=70799 [19:33: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 15 01 00 00 5E 85 0D 01 FE 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 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 3B 01 00 00 F4 03 04 00 9D 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E 40 BE 8E 10 22 BB 2E 7B 20 B5 2D 68 8B [19:33:48]CheckFolder [19:33:48]dirname=/storage/ofd_packets [19:33:48]CheckFolder done [19:33:48]ProducePacketName [19:33:48]name=ofd_packets/00070799 [19:33:48]NVStorageSaveData ofd_packets/00070799 [19:33:48]File name is /storage/ofd_packets/00070799 [19:33:48]Write 307 bytes [19:33:48]NVStorageSaveData done [19:33:48]OFDSenderStorePacket done [19:33:48]KKMCreateOFDPacket done [19:33:48]NVStorageSaveData kkm_last_timestamp [19:33:48]File name is /storage/kkm_last_timestamp [19:33:48]Write 4 bytes [19:33:48]NVStorageSaveData done [19:33:48]ExternCall_PrintAddStr [19:33:48]wPrintStart [19:33:48]Write to MH i2c: 01 00 00 36 39 6F [19:33:48]Write i2c OK [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: 01 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: 01 07 00 [19:33:48]MH_I2C_Read... [19:33:48]Read from MH i2c: 01 07 00 36 39 00 00 00 00 00 FF 0F 84 [19:33:48]RasterBufferAndPrint [19:33:48]line Счет N : (1)2886584 [19:33:48]line ИНН: 02508201610067 [19:33:48]line Контрольно-Кассовый Чек [19:33:48]line ПРОДАЖА [19:33:48]line ТРК (МРК, ГНК) : 31 [19:33:48]line Товар: 2710194240 [19:33:48]line D-ENERGY Дт-К-2 [19:33:48]line 25.910 * 77.20 [19:33:48]line = 2000.25 [19:33:48]line НДС 12% НСП 1% [19:33:48]line > о реализуемом товаре [19:33:48]line ОКРУГЛЕНИЕ: -0.25 [19:33:48]line ИТОГО: 2000.00 [19:33:48]line Внесено: 2000.00 [19:33:48]line СДАЧА: 0.00 [19:33:48]line НСП 1% : 17.70 [19:33:48]line НДС 12% : 212.42 [19:33:48]line Наличными: 2000.00 [19:33:48]line Безнал.: 0.00 [19:33:48]line Место: АЗС № 85 "Партнер Нефть" [19:33:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:33:48]line СНО: Общий режим [19:33:48]line Чек 315 23.10.2024 19:33 [19:33:48]line Смена: 196 ФФД: 1.0 [19:33:48]line ЗНМ: 0300000167 [19:33:48]line РНМ: 0000000000156251 [19:33:48]line Версия ККМ: v1.0 [19:33:48]line ФМ: 0000000000963346 [19:33:48]line ФД: 70799 [19:33:48]line ФПД: 50855609765922 [19:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70799&fm=50855609765922&tin=02508201610067®Number=0000000000156251&sum=200000 [19:33:48]OFD Sender: Processing packet 70799 [packets to send 18, broken 17] [19:33:48]ProducePacketName [19:33:48]name=ofd_packets/00070799 [19:33:48]OFD Sender: To server: pG, [19:33:48]CommunicateWithHost lk.salyk.kg:30040 [19:33:48]ConnectInit lk.salyk.kg [19:33:48]written 0, free lines is 4095 [19:33:48]Connected sock=10 [19:33: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 15 01 00 00 5E 85 0D 01 FE 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 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 3B 01 00 00 F4 03 04 00 9D 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 2E 40 BE 8E 10 22 BB 2E 7B 20 B5 2D 68 8B [19:33: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 F9 D5 47 00 F6 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 8F 14 01 00 F4 03 04 00 3A F9 18 67 B6 04 01 00 00 A1 05 7D 3A 38 CD F4 BF [19:33:49]CommunicateWithHost err = 0 [19:33:49]CheckOFDResponse [19:33:49]1017 (14) - 77093643461234 [19:33:49]1041 (16) - 0000000000963346 [19:33:49]1040 (4) - 70799 [19:33:49]1012 (4) - 23.10.2024 13:25 [19:33:49]1206 (1) - 0 [19:33:49]OFD Sender: Remove packet 70799 [19:33:49]ProducePacketName [19:33:49]name=ofd_packets/00070799 [19:33:49]NVStorageDeleteData [19:33:49]Write to MH i2c: 01 00 00 61 39 9A [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: 01 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: 01 07 00 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: 01 07 00 61 39 00 00 00 00 00 E4 0C 91 [19:33:49]RasterBufferAndPrint [19:33:49]line [19:33:49]line [19:33:49]line [19:33:49]line [19:33:49]line [19:33:49]written 0, free lines is 3306 [19:33:49]MH_Cut [19:33:49]Write to MH i2c: D1 01 00 68 39 01 73 [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: D1 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: D1 01 00 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: D1 01 00 68 39 00 72 [19:33:49]Write to MH i2c: 01 00 00 69 39 A2 [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]OFD Sender: No OFD packet to send [19:33:49]*** Cut start [19:33:49]*** Partial cut [19:33:49]*** CUTSNS_PIN = 1 [19:33:49]*** CUTSNS_PIN = 0 [19:33:50]*** Brake cut motor [19:33:50]Read from MH i2c: 01 [19:33:50]MH_I2C_Read... [19:33:50]*** Stop cut motor [19:33:50]*** Cut end [19:33:50]Read from MH i2c: 01 07 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: 01 07 00 69 39 00 00 00 00 00 FF 0F B7 [19:33:50]process_action close_receipt done [19:33:50]requested_data is exist [19:33:50]produce_requested_data [19:33:50]requested_item fm.sn is exist - process it [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 11 00 00 [19:33:50]Write to MH i2c: E2 08 00 6A 39 80 11 00 00 00 00 00 00 1D [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 17 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 17 00 6A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [19:33: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:33:50]wFMCommunicate OK [19:33:50]requested_item fd.num is exist - process it [19:33:50]SAM_PROTO_GetFieldsCounters [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 13 00 00 [19:33:50]Write to MH i2c: E2 08 00 6B 39 80 13 00 00 00 00 00 00 20 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 62 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 62 00 6B 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 8F 14 01 00 0E 04 04 00 C4 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 57 [19:33: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 8F 14 01 00 0E 04 04 00 C4 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 [19:33:50]wFMCommunicate OK [19:33:50]SAM_PROTO_GetFieldsCounters done [19:33:50]requested_item shift.num is exist - process it [19:33:50]requested_item shift.opened is exist - process it [19:33:50]req_shift_opened [19:33:50]FM_GetShiftState [19:33:50]SAM_PROTO_GetShiftState [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 13 01 00 [19:33:50]Write to MH i2c: E2 08 00 6C 39 80 13 01 00 00 00 00 00 22 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 0E 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 0E 00 6C 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 AF [19:33:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:33:50]wFMCommunicate OK [19:33:50]SAM_PROTO_GetShiftState done [19:33:50]FM_GetShiftState done [19:33:50]req_shift_opened done [19:33:50]requested_item shift.open_date is exist - process it [19:33:50]req_shift_open_date [19:33:50]req_shift_open_date done [19:33:50]produce_requested_data done [19:33:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70799,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:33:50]process_action_free close_receipt [19:33:50]json_value_free [19:33:50]json_value_free done [19:33:50]process_json_proto returns [19:33:50]Send response to host [19:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70799,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:33:50]free response buf [19:33:50]execute_script done [19:33:50]execute_script returns [19:33:50]free content buf [19:33:50]Sock 9.Close socket [19:33:50]Sock 9.Thread stoped [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:16]accept exits with 7 [19:35:16]New connection [19:35:16]New thread 3067034980 created [19:35:16]Thread 3066891620 joined [19:35:16]Waiting for new connection... [19:35:16] Sock 7.Parse request [19:35:16]Sock 7.Check first char [19:35:16]Sock 7.First char is OK [19:35:16]request: POST /json_proto HTTP/1.0 [19:35:16]Method: POST [19:35:16]URL: /json_proto [19:35:16]Method is POST - this is cgi request [19:35:16]url: /json_proto [19:35:16]query_string will be loaded in cgi processing [19:35:16]execute_cgi json_proto POST (null) [19:35:16]execute_cgi path=json_proto method=POST [19:35:16]POST find Content-Length [19:35:16]Host: 172.17.50.3:8080 [19:35:16]Content-Length: 679 [19:35:16]Content-Type: application/json [19:35:16] [19:35:16]POST finish read [19:35:16]Found Content-Length = 679 [19:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886585", "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" ] } } [19:35:16]execute_script... [19:35: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)2886585", "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" ] } } [19:35:16]POST & json_proto [19:35:16]process_json_proto [19:35:16]json parsed OK: [19:35:16]protocol is kg_v1.0 [19:35:16]action value=close_receipt [19:35:16]process_action close_receipt [19:35:16]cmd_close_receipt [19:35:16]MH_GetDate [19:35:16]Write to MH i2c: F0 00 00 6D 39 95 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 09 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 09 00 6D 39 00 F6 4F 19 67 6B 98 1E 66 EA [19:35:16]GetLastDocTimeStamp 1729712029 [19:35:16]current date 1729712118 [19:35:16]FM_GetShiftState [19:35:16]SAM_PROTO_GetShiftState [19:35:16]wFMCommunicate request_size=4 [19:35:16]MH_SAM_APDU [19:35:16]CAPDU: 80 13 01 00 [19:35:16]Write to MH i2c: E2 08 00 6E 39 80 13 01 00 00 00 00 00 24 [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0E 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0E 00 6E 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B1 [19:35:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:35:16]wFMCommunicate OK [19:35:16]SAM_PROTO_GetShiftState done [19:35:16]FM_GetShiftState done [19:35:16]opened in 1729642435 [19:35:16]opened+sec_in_day 1729728835 [19:35:16]quantity*price = 80012 [19:35:16]sum+1 = 80013 [19:35:16]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 СНО: Общий режим Чек 316 23.10.2024 19:35 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70800 ФПД: 172691885045208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70800&fm=172691885045208&tin=02508201610067®Number=0000000000156251&sum=80000 [19:35:17]StoreToDocumentArchive [19:35:17]shift 196 fd 70800 [19:35:17]save to /storage/0196/doc_00070800 [19:35:17]save last doc name /storage/0196/doc_00070800 to /storage/kkm_last_doc_name [19:35:17]save OK [19:35:17]Clear old archive folders... [19:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:17]tlvbuf is 00223A40 [19:35:17]SAM_PROTO_ClearQueue [19:35:17]wFMCommunicate request_size=4 [19:35:17]MH_SAM_APDU [19:35:17]CAPDU: 80 09 00 00 [19:35:17]Write to MH i2c: E2 08 00 7B 39 80 09 00 00 00 00 00 00 26 [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 7B 39 00 90 00 28 [19:35:17]RAPDU: 90 00 [19:35:17]wFMCommunicate OK [19:35:17]SAM_PROTO_ClearQueue done [19:35:17]KKMCreateOFDPacket [19:35:17]OFDProtocolAddRootSTLVToBuf [19:35:17]FM_MakeSignedData [19:35:17]FM_MakeSignedData [19:35:17]SAM_PROTO_SignData [19:35:17]wFMCommunicate request_size=4 [19:35:17]MH_SAM_APDU [19:35:17]CAPDU: 80 0D 01 02 [19:35:17]Write to MH i2c: E2 08 00 7C 39 80 0D 01 02 00 00 00 00 2E [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 7C 39 00 90 00 29 [19:35:17]RAPDU: 90 00 [19:35:17]wFMCommunicate OK [19:35:17]wFMCommunicate request_size=255 [19:35:17]MH_SAM_APDU [19:35: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 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 3C 01 00 00 F4 03 04 00 F7 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D [19:35:17]Write to MH i2c: E2 02 01 7D 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 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 3C 01 00 00 F4 03 04 00 F7 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 00 00 AC [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 7D 39 00 90 00 2A [19:35:17]RAPDU: 90 00 [19:35:17]wFMCommunicate OK [19:35:17]wFMCommunicate request_size=10 [19:35:17]MH_SAM_APDU [19:35:17]CAPDU: 80 0D 02 02 05 0F F6 76 B5 D8 [19:35:17]Write to MH i2c: E2 0D 00 7E 39 80 0D 02 02 05 00 0F F6 76 B5 D8 00 00 43 [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 03 00 7E 39 00 90 00 2B [19:35:17]RAPDU: 90 00 [19:35:17]wFMCommunicate OK [19:35:17]wFMCommunicate request_size=4 [19:35:17]MH_SAM_APDU [19:35:17]CAPDU: 80 0D 03 02 [19:35:17]Write to MH i2c: E2 08 00 7F 39 80 0D 03 02 00 00 00 00 33 [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 0B 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 0B 00 7F 39 00 7E 17 70 60 E1 24 4F 03 90 00 F0 [19:35:17]RAPDU: 7E 17 70 60 E1 24 4F 03 90 00 [19:35:17]wFMCommunicate OK [19:35:17]SAM_PROTO_SignData done [19:35:17]FM_MakeSignedData done [19:35:17]CreateOFDProtocolMessage [19:35:17]wFMCommunicate request_size=4 [19:35:17]MH_SAM_APDU [19:35:17]CAPDU: 80 11 00 00 [19:35:17]Write to MH i2c: E2 08 00 80 39 80 11 00 00 00 00 00 00 33 [19:35:17]Write i2c OK [19:35:17]MH_I2C_Read... [19:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:17]Read from MH i2c: E2 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 17 00 [19:35:17]MH_I2C_Read... [19:35:17]Read from MH i2c: E2 17 00 80 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [19:35: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:35:17]wFMCommunicate OK [19:35:17]CreateOFDProtocolMessage done [19:35:17]OFDSenderStorePacket 70800 [19:35:17]StoreOFDPacket docnum=70800 [19:35: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 1C C9 07 01 C3 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 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 3C 01 00 00 F4 03 04 00 F7 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 0F F6 76 B5 D8 7E 17 70 60 E1 24 4F 03 [19:35:17]CheckFolder [19:35:17]dirname=/storage/ofd_packets [19:35:17]CheckFolder done [19:35:17]ProducePacketName [19:35:17]name=ofd_packets/00070800 [19:35:17]NVStorageSaveData ofd_packets/00070800 [19:35:17]File name is /storage/ofd_packets/00070800 [19:35:17]Write 301 bytes [19:35:17]NVStorageSaveData done [19:35:17]OFDSenderStorePacket done [19:35:17]KKMCreateOFDPacket done [19:35:17]NVStorageSaveData kkm_last_timestamp [19:35:17]File name is /storage/kkm_last_timestamp [19:35:17]Write 4 bytes [19:35:17]NVStorageSaveData done [19:35:17]OFD Sender: Processing packet 70800 [packets to send 18, broken 17] [19:35:17]ProducePacketName [19:35:17]name=ofd_packets/00070800 [19:35:17]OFD Sender: To server: pG, [19:35:17]CommunicateWithHost lk.salyk.kg:30040 [19:35:17]ConnectInit lk.salyk.kg [19:35:17]ExternCall_PrintAddStr [19:35:17]wPrintStart [19:35:17]Write to MH i2c: 01 00 00 81 39 BA [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 81 39 00 00 00 00 00 FF 0F CF [19:35:18]RasterBufferAndPrint [19:35:18]line Счет N : (1)2886585 [19:35:18]line ИНН: 02508201610067 [19:35:18]line Контрольно-Кассовый Чек [19:35:18]line ПРОДАЖА [19:35:18]line ТРК (МРК, ГНК) : 42 [19:35:18]line Товар: 2710124130 [19:35:18]line Аи-92-К-5 [19:35:18]line 11.960 * 66.90 [19:35:18]line = 800.12 [19:35:18]line НДС 12% НСП 1% [19:35:18]line > о реализуемом товаре [19:35:18]line ОКРУГЛЕНИЕ: -0.12 [19:35:18]line ИТОГО: 800.00 [19:35:18]line Внесено: 800.00 [19:35:18]line СДАЧА: 0.00 [19:35:18]line НСП 1% : 7.08 [19:35:18]line НДС 12% : 84.97 [19:35:18]line Наличными: 800.00 [19:35:18]line Безнал.: 0.00 [19:35:18]line Место: АЗС № 85 "Партнер Нефть" [19:35:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:35:18]line СНО: Общий режим [19:35:18]line Чек 316 23.10.2024 19:35 [19:35:18]line Смена: 196 ФФД: 1.0 [19:35:18]line ЗНМ: 0300000167 [19:35:18]line РНМ: 0000000000156251 [19:35:18]line Версия ККМ: v1.0 [19:35:18]line ФМ: 0000000000963346 [19:35:18]line ФД: 70800 [19:35:18]line ФПД: 172691885045208 [19:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70800&fm=172691885045208&tin=02508201610067®Number=0000000000156251&sum=80000 [19:35:18]Connected sock=11 [19:35: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 1C C9 07 01 C3 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 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 3C 01 00 00 F4 03 04 00 F7 4F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 0F F6 76 B5 D8 7E 17 70 60 E1 24 4F 03 [19:35:18]written 0, free lines is 4095 [19:35: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 8A EE 47 00 F7 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 90 14 01 00 F4 03 04 00 93 F9 18 67 B6 04 01 00 00 45 50 86 8A 11 3C 50 03 [19:35:18]CommunicateWithHost err = 0 [19:35:18]CheckOFDResponse [19:35:18]1017 (14) - 77093643461234 [19:35:18]1041 (16) - 0000000000963346 [19:35:18]1040 (4) - 70800 [19:35:18]1012 (4) - 23.10.2024 13:26 [19:35:18]1206 (1) - 0 [19:35:18]OFD Sender: Remove packet 70800 [19:35:18]ProducePacketName [19:35:18]name=ofd_packets/00070800 [19:35:18]NVStorageDeleteData [19:35:18]Write to MH i2c: 01 00 00 AC 39 E5 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 AC 39 00 00 00 00 00 E7 0C DF [19:35:18]RasterBufferAndPrint [19:35:18]line [19:35:18]line [19:35:18]line [19:35:18]line [19:35:18]line [19:35:18]written 0, free lines is 3310 [19:35:18]MH_Cut [19:35:18]Write to MH i2c: D1 01 00 B3 39 01 BE [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: D1 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: D1 01 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: D1 01 00 B3 39 00 BD [19:35:18]Write to MH i2c: 01 00 00 B4 39 ED [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:19]OFD Sender: No OFD packet to send [19:35:19]*** Cut start [19:35:19]*** Partial cut [19:35:19]*** CUTSNS_PIN = 1 [19:35:19]*** CUTSNS_PIN = 0 [19:35:19]*** Brake cut motor [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]*** Stop cut motor [19:35:20]*** Cut end [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 B4 39 00 00 00 00 00 FF 0F 02 [19:35:20]process_action close_receipt done [19:35:20]requested_data is exist [19:35:20]produce_requested_data [19:35:20]requested_item fm.sn is exist - process it [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 B5 39 80 11 00 00 00 00 00 00 68 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 B5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [19:35:20]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:20]wFMCommunicate OK [19:35:20]requested_item fd.num is exist - process it [19:35:20]SAM_PROTO_GetFieldsCounters [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 00 00 [19:35:20]Write to MH i2c: E2 08 00 B6 39 80 13 00 00 00 00 00 00 6B [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 B6 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 90 14 01 00 0E 04 04 00 C4 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 A6 [19:35: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 90 14 01 00 0E 04 04 00 C4 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 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetFieldsCounters done [19:35:20]requested_item shift.num is exist - process it [19:35:20]requested_item shift.opened is exist - process it [19:35:20]req_shift_opened [19:35:20]FM_GetShiftState [19:35:20]SAM_PROTO_GetShiftState [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 01 00 [19:35:20]Write to MH i2c: E2 08 00 B7 39 80 13 01 00 00 00 00 00 6D [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 B7 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FA [19:35:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetShiftState done [19:35:20]FM_GetShiftState done [19:35:20]req_shift_opened done [19:35:20]requested_item shift.open_date is exist - process it [19:35:20]req_shift_open_date [19:35:20]req_shift_open_date done [19:35:20]produce_requested_data done [19:35:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70800,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:35:20]process_action_free close_receipt [19:35:20]json_value_free [19:35:20]json_value_free done [19:35:20]process_json_proto returns [19:35:20]Send response to host [19:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70800,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:35:20]free response buf [19:35:20]execute_script done [19:35:20]execute_script returns [19:35:20]free content buf [19:35:20]Sock 7.Close socket [19:35:20]Sock 7.Thread stoped [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:07]accept exits with 10 [19:47:07]New connection [19:47:07]New thread 3066891620 created [19:47:07]Thread 3067034980 joined [19:47:07]Waiting for new connection... [19:47:07] Sock 10.Parse request [19:47:07]Sock 10.Check first char [19:47:07]Sock 10.First char is OK [19:47:07]request: POST /json_proto HTTP/1.0 [19:47:07]Method: POST [19:47:07]URL: /json_proto [19:47:07]Method is POST - this is cgi request [19:47:07]url: /json_proto [19:47:07]query_string will be loaded in cgi processing [19:47:07]execute_cgi json_proto POST (null) [19:47:07]execute_cgi path=json_proto method=POST [19:47:07]POST find Content-Length [19:47:07]Host: 172.17.50.3:8080 [19:47:07]Content-Length: 773 [19:47:07]Content-Type: application/json [19:47:07] [19:47:07]POST finish read [19:47:07]Found Content-Length = 773 [19:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886586", "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" ] } } [19:47:07]execute_script... [19:47: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)2886586", "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" ] } } [19:47:07]POST & json_proto [19:47:07]process_json_proto [19:47:07]json parsed OK: [19:47:07]protocol is kg_v1.0 [19:47:07]action value=close_receipt [19:47:07]process_action close_receipt [19:47:07]cmd_close_receipt [19:47:07]MH_GetDate [19:47:07]Write to MH i2c: F0 00 00 B8 39 E0 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 B8 39 00 BD 52 19 67 6B 98 1E 66 FF [19:47:07]GetLastDocTimeStamp 1729712119 [19:47:07]current date 1729712829 [19:47:07]FM_GetShiftState [19:47:07]SAM_PROTO_GetShiftState [19:47:07]wFMCommunicate request_size=4 [19:47:07]MH_SAM_APDU [19:47:07]CAPDU: 80 13 01 00 [19:47:07]Write to MH i2c: E2 08 00 B9 39 80 13 01 00 00 00 00 00 6F [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:07]Read from MH i2c: E2 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 B9 39 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FC [19:47:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:47:07]wFMCommunicate OK [19:47:07]SAM_PROTO_GetShiftState done [19:47:07]FM_GetShiftState done [19:47:07]opened in 1729642435 [19:47:07]opened+sec_in_day 1729728835 [19:47:07]quantity*price = 100011 [19:47:07]sum+1 = 100013 [19:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 317 23.10.2024 19:47 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70801 ФПД: 97605109027989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70801&fm=97605109027989&tin=02508201610067®Number=0000000000156251&sum=100012 [19:47:08]StoreToDocumentArchive [19:47:08]shift 196 fd 70801 [19:47:08]save to /storage/0196/doc_00070801 [19:47:08]save last doc name /storage/0196/doc_00070801 to /storage/kkm_last_doc_name [19:47:08]save OK [19:47:08]Clear old archive folders... [19:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:47:08]tlvbuf is 00179890 [19:47:08]SAM_PROTO_ClearQueue [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 09 00 00 [19:47:08]Write to MH i2c: E2 08 00 C6 39 80 09 00 00 00 00 00 00 71 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 C6 39 00 90 00 73 [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_ClearQueue done [19:47:08]KKMCreateOFDPacket [19:47:08]OFDProtocolAddRootSTLVToBuf [19:47:08]FM_MakeSignedData [19:47:08]FM_MakeSignedData [19:47:08]SAM_PROTO_SignData [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 01 02 [19:47:08]Write to MH i2c: E2 08 00 C7 39 80 0D 01 02 00 00 00 00 79 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 C7 39 00 90 00 74 [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=255 [19:47:08]MH_SAM_APDU [19:47:08]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 3D 01 00 00 F4 03 04 00 BD 52 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 58 C5 [19:47:08]Write to MH i2c: E2 02 01 C8 39 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 3D 01 00 00 F4 03 04 00 BD 52 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 58 C5 00 00 49 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 C8 39 00 90 00 75 [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=9 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 02 02 04 75 DA 14 95 [19:47:08]Write to MH i2c: E2 0C 00 C9 39 80 0D 02 02 04 00 75 DA 14 95 00 00 7C [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 C9 39 00 90 00 76 [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 03 02 [19:47:08]Write to MH i2c: E2 08 00 CA 39 80 0D 03 02 00 00 00 00 7E [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0B 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0B 00 CA 39 00 7C 86 F1 02 5C 8B 9C 66 90 00 5D [19:47:08]RAPDU: 7C 86 F1 02 5C 8B 9C 66 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_SignData done [19:47:08]FM_MakeSignedData done [19:47:08]CreateOFDProtocolMessage [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 11 00 00 [19:47:08]Write to MH i2c: E2 08 00 CB 39 80 11 00 00 00 00 00 00 7E [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 17 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 17 00 CB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [19:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:47:08]wFMCommunicate OK [19:47:08]CreateOFDProtocolMessage done [19:47:08]OFDSenderStorePacket 70801 [19:47:08]StoreOFDPacket docnum=70801 [19:47: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 0E 01 00 00 49 FE 06 01 0F 3D 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 3D 01 00 00 F4 03 04 00 BD 52 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 58 C5 75 DA 14 95 7C 86 F1 02 5C 8B 9C 66 [19:47:08]CheckFolder [19:47:08]dirname=/storage/ofd_packets [19:47:08]CheckFolder done [19:47:08]ProducePacketName [19:47:08]name=ofd_packets/00070801 [19:47:08]NVStorageSaveData ofd_packets/00070801 [19:47:08]File name is /storage/ofd_packets/00070801 [19:47:08]Write 300 bytes [19:47:08]NVStorageSaveData done [19:47:08]OFDSenderStorePacket done [19:47:08]KKMCreateOFDPacket done [19:47:08]NVStorageSaveData kkm_last_timestamp [19:47:08]File name is /storage/kkm_last_timestamp [19:47:08]Write 4 bytes [19:47:08]NVStorageSaveData done [19:47:08]ExternCall_PrintAddStr [19:47:08]wPrintStart [19:47:08]Write to MH i2c: 01 00 00 CC 39 05 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: 01 07 00 CC 39 00 00 00 00 00 FF 0F 1A [19:47:08]RasterBufferAndPrint [19:47:08]line Счет N : (1)2886586 [19:47:08]line ИНН: 02508201610067 [19:47:08]line Контрольно-Кассовый Чек [19:47:08]line ПРОДАЖА [19:47:08]line ТРК (МРК, ГНК) : 71 [19:47:08]line Товар: 2711129700 [19:47:08]line ГАЗ-К-3 [19:47:08]line 25.710 * 38.90 [19:47:08]line = 1000.12 [19:47:08]line НДС 12% НСП 1% [19:47:08]line > о реализуемом товаре [19:47:08]line ИТОГО: 1000.12 [19:47:08]line НСП 1% : 8.85 [19:47:08]line НДС 12% : 106.21 [19:47:08]line Наличными: 0.00 [19:47:08]line Безнал.: 1000.12 [19:47:08]line Место: АЗС № 85 "Партнер Нефть" [19:47:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:47:08]line СНО: Общий режим [19:47:08]line Чек 317 23.10.2024 19:47 [19:47:08]line Смена: 196 ФФД: 1.0 [19:47:08]line ЗНМ: 0300000167 [19:47:08]line РНМ: 0000000000156251 [19:47:08]line Версия ККМ: v1.0 [19:47:08]line Платежная система: Mbank [19:47:08]line ФМ: 0000000000963346 [19:47:08]line ФД: 70801 [19:47:08]line ФПД: 97605109027989 [19:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70801&fm=97605109027989&tin=02508201610067®Number=0000000000156251&sum=100012 [19:47:09]OFD Sender: Processing packet 70801 [packets to send 18, broken 17] [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00070801 [19:47:09]OFD Sender: To server: pG, [19:47:09]CommunicateWithHost lk.salyk.kg:30040 [19:47:09]ConnectInit lk.salyk.kg [19:47:09]written 0, free lines is 4095 [19:47:09]Connected sock=9 [19:47: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 0E 01 00 00 49 FE 06 01 0F 3D 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 3D 01 00 00 F4 03 04 00 BD 52 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 58 C5 75 DA 14 95 7C 86 F1 02 5C 8B 9C 66 [19:47: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 8B 46 47 00 8B 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 91 14 01 00 F4 03 04 00 5A FC 18 67 B6 04 01 00 00 02 5A D1 FD 27 8F 51 C0 [19:47:09]CommunicateWithHost err = 0 [19:47:09]CheckOFDResponse [19:47:09]1017 (14) - 77093643461234 [19:47:09]1041 (16) - 0000000000963346 [19:47:09]1040 (4) - 70801 [19:47:09]1012 (4) - 23.10.2024 13:38 [19:47:09]1206 (1) - 0 [19:47:09]OFD Sender: Remove packet 70801 [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00070801 [19:47:09]NVStorageDeleteData [19:47:09]Write to MH i2c: 01 00 00 F5 39 2E [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 F5 39 00 00 00 00 00 02 0D 44 [19:47:09]RasterBufferAndPrint [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]line [19:47:09]written 0, free lines is 3337 [19:47:09]MH_Cut [19:47:09]Write to MH i2c: D1 01 00 FC 39 01 07 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 01 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: D1 01 00 FC 39 00 06 [19:47:09]Write to MH i2c: 01 00 00 FD 39 36 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]OFD Sender: No OFD packet to send [19:47:10]*** Cut start [19:47:10]*** Partial cut [19:47:10]*** CUTSNS_PIN = 1 [19:47:10]*** CUTSNS_PIN = 0 [19:47:10]*** Brake cut motor [19:47:10]Read from MH i2c: 01 [19:47:10]MH_I2C_Read... [19:47:10]*** Stop cut motor [19:47:10]*** Cut end [19:47:10]Read from MH i2c: 01 07 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 FD 39 00 00 00 00 00 FF 0F 4B [19:47:10]process_action close_receipt done [19:47:10]requested_data is exist [19:47:10]produce_requested_data [19:47:10]requested_item fm.sn is exist - process it [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 11 00 00 [19:47:10]Write to MH i2c: E2 08 00 FE 39 80 11 00 00 00 00 00 00 B1 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 FE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [19: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 [19:47:10]wFMCommunicate OK [19:47:10]requested_item fd.num is exist - process it [19:47:10]SAM_PROTO_GetFieldsCounters [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 13 00 00 [19:47:10]Write to MH i2c: E2 08 00 FF 39 80 13 00 00 00 00 00 00 B4 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 FF 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 91 14 01 00 0E 04 04 00 C4 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 F3 [19:47: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 91 14 01 00 0E 04 04 00 C4 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 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetFieldsCounters done [19:47:11]requested_item shift.num is exist - process it [19:47:11]requested_item shift.opened is exist - process it [19:47:11]req_shift_opened [19:47:11]FM_GetShiftState [19:47:11]SAM_PROTO_GetShiftState [19:47:11]wFMCommunicate request_size=4 [19:47:11]MH_SAM_APDU [19:47:11]CAPDU: 80 13 01 00 [19:47:11]Write to MH i2c: E2 08 00 00 3A 80 13 01 00 00 00 00 00 B7 [19:47:11]Write i2c OK [19:47:11]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 00 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 44 [19:47:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetShiftState done [19:47:11]FM_GetShiftState done [19:47:11]req_shift_opened done [19:47:11]requested_item shift.open_date is exist - process it [19:47:11]req_shift_open_date [19:47:11]req_shift_open_date done [19:47:11]produce_requested_data done [19:47:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70801,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:47:11]process_action_free close_receipt [19:47:11]json_value_free [19:47:11]json_value_free done [19:47:11]process_json_proto returns [19:47:11]Send response to host [19:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70801,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:47:11]free response buf [19:47:11]execute_script done [19:47:11]execute_script returns [19:47:11]free content buf [19:47:11]Sock 10.Close socket [19:47:11]Sock 10.Thread stoped [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:27]accept exits with 7 [19:58:27]New connection [19:58:27]New thread 3067034980 created [19:58:27]Thread 3066891620 joined [19:58:27]Waiting for new connection... [19:58:27] Sock 7.Parse request [19:58:27]Sock 7.Check first char [19:58:27]Sock 7.First char is OK [19:58:27]request: POST /json_proto HTTP/1.0 [19:58:27]Method: POST [19:58:27]URL: /json_proto [19:58:27]Method is POST - this is cgi request [19:58:27]url: /json_proto [19:58:27]query_string will be loaded in cgi processing [19:58:27]execute_cgi json_proto POST (null) [19:58:27]execute_cgi path=json_proto method=POST [19:58:27]POST find Content-Length [19:58:27]Host: 172.17.50.3:8080 [19:58:27]Content-Length: 774 [19:58:27]Content-Type: application/json [19:58:27] [19:58:27]POST finish read [19:58:27]Found Content-Length = 774 [19:58:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886587", "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" ] } } [19:58:27]execute_script... [19:58: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)2886587", "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" ] } } [19:58:27]POST & json_proto [19:58:27]process_json_proto [19:58:27]json parsed OK: [19:58:27]protocol is kg_v1.0 [19:58:27]action value=close_receipt [19:58:27]process_action close_receipt [19:58:27]cmd_close_receipt [19:58:27]MH_GetDate [19:58:27]Write to MH i2c: F0 00 00 01 3A 2A [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: F0 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: F0 09 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: F0 09 00 01 3A 00 66 55 19 67 6B 98 1E 66 F5 [19:58:27]GetLastDocTimeStamp 1729712829 [19:58:27]current date 1729713510 [19:58:27]FM_GetShiftState [19:58:27]SAM_PROTO_GetShiftState [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 13 01 00 [19:58:27]Write to MH i2c: E2 08 00 02 3A 80 13 01 00 00 00 00 00 B9 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0E 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0E 00 02 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 46 [19:58:27]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:58:27]wFMCommunicate OK [19:58:27]SAM_PROTO_GetShiftState done [19:58:27]FM_GetShiftState done [19:58:27]opened in 1729642435 [19:58:27]opened+sec_in_day 1729728835 [19:58:27]quantity*price = 80056 [19:58:27]sum+1 = 80057 [19:58:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 318 23.10.2024 19:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70802 ФПД: 113179554445383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70802&fm=113179554445383&tin=02508201610067®Number=0000000000156251&sum=80056 [19:58:28]StoreToDocumentArchive [19:58:28]shift 196 fd 70802 [19:58:28]save to /storage/0196/doc_00070802 [19:58:28]save last doc name /storage/0196/doc_00070802 to /storage/kkm_last_doc_name [19:58:28]save OK [19:58:28]Clear old archive folders... [19:58:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:58:28]tlvbuf is 00146030 [19:58:28]SAM_PROTO_ClearQueue [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 09 00 00 [19:58:28]Write to MH i2c: E2 08 00 0F 3A 80 09 00 00 00 00 00 00 BB [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 0F 3A 00 90 00 BD [19:58:28]RAPDU: 90 00 [19:58:28]wFMCommunicate OK [19:58:28]SAM_PROTO_ClearQueue done [19:58:28]KKMCreateOFDPacket [19:58:28]OFDProtocolAddRootSTLVToBuf [19:58:28]FM_MakeSignedData [19:58:28]FM_MakeSignedData [19:58:28]SAM_PROTO_SignData [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 0D 01 02 [19:58:28]Write to MH i2c: E2 08 00 10 3A 80 0D 01 02 00 00 00 00 C3 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [19:58:28]RAPDU: 90 00 [19:58:28]wFMCommunicate OK [19:58:28]wFMCommunicate request_size=255 [19:58:28]MH_SAM_APDU [19:58: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 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 3E 01 00 00 F4 03 04 00 66 55 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [19:58:28]Write to MH i2c: E2 02 01 11 3A 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 3E 01 00 00 F4 03 04 00 66 55 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 F7 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 03 00 11 3A 00 90 00 BF [19:58:28]RAPDU: 90 00 [19:58:28]wFMCommunicate OK [19:58:28]wFMCommunicate request_size=16 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 EF AB 23 78 47 [19:58:28]Write to MH i2c: E2 13 00 12 3A 80 0D 02 02 0B 00 00 35 04 06 00 66 EF AB 23 78 47 00 00 FD [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 03 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 03 00 12 3A 00 90 00 C0 [19:58:29]RAPDU: 90 00 [19:58:29]wFMCommunicate OK [19:58:29]wFMCommunicate request_size=4 [19:58:29]MH_SAM_APDU [19:58:29]CAPDU: 80 0D 03 02 [19:58:29]Write to MH i2c: E2 08 00 13 3A 80 0D 03 02 00 00 00 00 C8 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 0B 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 0B 00 13 3A 00 07 F0 E9 A3 D7 56 08 75 90 00 F6 [19:58:29]RAPDU: 07 F0 E9 A3 D7 56 08 75 90 00 [19:58:29]wFMCommunicate OK [19:58:29]SAM_PROTO_SignData done [19:58:29]FM_MakeSignedData done [19:58:29]CreateOFDProtocolMessage [19:58:29]wFMCommunicate request_size=4 [19:58:29]MH_SAM_APDU [19:58:29]CAPDU: 80 11 00 00 [19:58:29]Write to MH i2c: E2 08 00 14 3A 80 11 00 00 00 00 00 00 C8 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 17 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 17 00 14 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [19:58: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:58:29]wFMCommunicate OK [19:58:29]CreateOFDProtocolMessage done [19:58:29]OFDSenderStorePacket 70802 [19:58:29]StoreOFDPacket docnum=70802 [19:58: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 75 F2 0D 01 D9 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 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 3E 01 00 00 F4 03 04 00 66 55 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 EF AB 23 78 47 07 F0 E9 A3 D7 56 08 75 [19:58:29]CheckFolder [19:58:29]dirname=/storage/ofd_packets [19:58:29]CheckFolder done [19:58:29]ProducePacketName [19:58:29]name=ofd_packets/00070802 [19:58:29]NVStorageSaveData ofd_packets/00070802 [19:58:29]File name is /storage/ofd_packets/00070802 [19:58:29]Write 307 bytes [19:58:29]NVStorageSaveData done [19:58:29]OFDSenderStorePacket done [19:58:29]KKMCreateOFDPacket done [19:58:29]NVStorageSaveData kkm_last_timestamp [19:58:29]File name is /storage/kkm_last_timestamp [19:58:29]Write 4 bytes [19:58:29]NVStorageSaveData done [19:58:29]ExternCall_PrintAddStr [19:58:29]wPrintStart [19:58:29]Write to MH i2c: 01 00 00 15 3A 4F [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 07 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 FF 0F 64 [19:58:29]RasterBufferAndPrint [19:58:29]line Счет N : (1)2886587 [19:58:29]line ИНН: 02508201610067 [19:58:29]line Контрольно-Кассовый Чек [19:58:29]line ПРОДАЖА [19:58:29]line ТРК (МРК, ГНК) : 31 [19:58:29]line Товар: 2710194240 [19:58:29]line D-ENERGY Дт-К-2 [19:58:29]line 10.370 * 77.20 [19:58:29]line = 800.56 [19:58:29]line НДС 12% НСП 1% [19:58:29]line > о реализуемом товаре [19:58:29]line ИТОГО: 800.56 [19:58:29]line НСП 1% : 7.08 [19:58:29]line НДС 12% : 85.01 [19:58:29]line Наличными: 0.00 [19:58:29]line Безнал.: 800.56 [19:58:29]line Место: АЗС № 85 "Партнер Нефть" [19:58:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:58:29]line СНО: Общий режим [19:58:29]line Чек 318 23.10.2024 19:58 [19:58:29]line Смена: 196 ФФД: 1.0 [19:58:29]line ЗНМ: 0300000167 [19:58:29]line РНМ: 0000000000156251 [19:58:29]line Версия ККМ: v1.0 [19:58:29]line Платежная система: Mbank [19:58:29]line ФМ: 0000000000963346 [19:58:29]line ФД: 70802 [19:58:29]line ФПД: 113179554445383 [19:58:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70802&fm=113179554445383&tin=02508201610067®Number=0000000000156251&sum=80056 [19:58:29]OFD Sender: Processing packet 70802 [packets to send 18, broken 17] [19:58:29]ProducePacketName [19:58:29]name=ofd_packets/00070802 [19:58:29]OFD Sender: To server: pG, [19:58:29]CommunicateWithHost lk.salyk.kg:30040 [19:58:29]ConnectInit lk.salyk.kg [19:58:29]written 0, free lines is 4095 [19:58:29]Connected sock=10 [19:58: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 75 F2 0D 01 D9 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 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 3E 01 00 00 F4 03 04 00 66 55 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 66 EF AB 23 78 47 07 F0 E9 A3 D7 56 08 75 [19:58: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 66 26 47 00 16 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 92 14 01 00 F4 03 04 00 03 FF 18 67 B6 04 01 00 00 8B 30 68 C7 A6 9F 24 E8 [19:58:29]CommunicateWithHost err = 0 [19:58:29]CheckOFDResponse [19:58:29]1017 (14) - 77093643461234 [19:58:29]1041 (16) - 0000000000963346 [19:58:29]1040 (4) - 70802 [19:58:29]1012 (4) - 23.10.2024 13:49 [19:58:29]1206 (1) - 0 [19:58:29]OFD Sender: Remove packet 70802 [19:58:29]ProducePacketName [19:58:29]name=ofd_packets/00070802 [19:58:29]NVStorageDeleteData [19:58:29]Write to MH i2c: 01 00 00 3E 3A 78 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 07 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 07 00 3E 3A 00 00 00 00 00 11 0D 9D [19:58:29]RasterBufferAndPrint [19:58:29]line [19:58:29]line [19:58:29]line [19:58:29]line [19:58:29]line [19:58:29]written 0, free lines is 3351 [19:58:29]MH_Cut [19:58:29]Write to MH i2c: D1 01 00 45 3A 01 51 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: D1 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: D1 01 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: D1 01 00 45 3A 00 50 [19:58:29]Write to MH i2c: 01 00 00 46 3A 80 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:30]OFD Sender: No OFD packet to send [19:58:30]*** Cut start [19:58:30]*** Partial cut [19:58:30]*** CUTSNS_PIN = 1 [19:58:30]*** CUTSNS_PIN = 0 [19:58:30]*** Brake cut motor [19:58:31]Read from MH i2c: 01 [19:58:31]MH_I2C_Read... [19:58:31]*** Stop cut motor [19:58:31]*** Cut end [19:58:31]Read from MH i2c: 01 07 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: 01 07 00 46 3A 00 00 00 00 00 FF 0F 95 [19:58:31]process_action close_receipt done [19:58:31]requested_data is exist [19:58:31]produce_requested_data [19:58:31]requested_item fm.sn is exist - process it [19:58:31]wFMCommunicate request_size=4 [19:58:31]MH_SAM_APDU [19:58:31]CAPDU: 80 11 00 00 [19:58:31]Write to MH i2c: E2 08 00 47 3A 80 11 00 00 00 00 00 00 FB [19:58:31]Write i2c OK [19:58:31]MH_I2C_Read... [19:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:31]Read from MH i2c: E2 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 17 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 17 00 47 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [19:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:58:31]wFMCommunicate OK [19:58:31]requested_item fd.num is exist - process it [19:58:31]SAM_PROTO_GetFieldsCounters [19:58:31]wFMCommunicate request_size=4 [19:58:31]MH_SAM_APDU [19:58:31]CAPDU: 80 13 00 00 [19:58:31]Write to MH i2c: E2 08 00 48 3A 80 13 00 00 00 00 00 00 FE [19:58:31]Write i2c OK [19:58:31]MH_I2C_Read... [19:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:31]Read from MH i2c: E2 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 62 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 62 00 48 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 92 14 01 00 0E 04 04 00 C4 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 41 [19:58: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 92 14 01 00 0E 04 04 00 C4 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 [19:58:31]wFMCommunicate OK [19:58:31]SAM_PROTO_GetFieldsCounters done [19:58:31]requested_item shift.num is exist - process it [19:58:31]requested_item shift.opened is exist - process it [19:58:31]req_shift_opened [19:58:31]FM_GetShiftState [19:58:31]SAM_PROTO_GetShiftState [19:58:31]wFMCommunicate request_size=4 [19:58:31]MH_SAM_APDU [19:58:31]CAPDU: 80 13 01 00 [19:58:31]Write to MH i2c: E2 08 00 49 3A 80 13 01 00 00 00 00 00 00 [19:58:31]Write i2c OK [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 [19:58:31]MH_I2C_Read... [19:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:31]Read from MH i2c: E2 0E 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 0E 00 49 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8D [19:58:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [19:58:31]wFMCommunicate OK [19:58:31]SAM_PROTO_GetShiftState done [19:58:31]FM_GetShiftState done [19:58:31]req_shift_opened done [19:58:31]requested_item shift.open_date is exist - process it [19:58:31]req_shift_open_date [19:58:31]req_shift_open_date done [19:58:31]produce_requested_data done [19:58:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70802,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [19:58:31]process_action_free close_receipt [19:58:31]json_value_free [19:58:31]json_value_free done [19:58:31]process_json_proto returns [19:58:31]Send response to host [19:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70802,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [19:58:31]free response buf [19:58:31]execute_script done [19:58:31]execute_script returns [19:58:31]free content buf [19:58:31]Sock 7.Close socket [19:58:31]Sock 7.Thread stoped [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:47]accept exits with 9 [20:03:47]New connection [20:03:47]New thread 3066891620 created [20:03:47]Thread 3067034980 joined [20:03:47]Waiting for new connection... [20:03:47] Sock 9.Parse request [20:03:47]Sock 9.Check first char [20:03:47]Sock 9.First char is OK [20:03:47]request: POST /json_proto HTTP/1.0 [20:03:47]Method: POST [20:03:47]URL: /json_proto [20:03:47]Method is POST - this is cgi request [20:03:47]url: /json_proto [20:03:47]query_string will be loaded in cgi processing [20:03:47]execute_cgi json_proto POST (null) [20:03:47]execute_cgi path=json_proto method=POST [20:03:47]POST find Content-Length [20:03:47]Host: 172.17.50.3:8080 [20:03:47]Content-Length: 686 [20:03:47]Content-Type: application/json [20:03:47] [20:03:47]POST finish read [20:03:47]Found Content-Length = 686 [20:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886588", "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" : 84.640, "sum" : 3292.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3292.00, "payments": [ { "type": 0, "sum" : 3292.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:47]execute_script... [20:03: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)2886588", "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" : 84.640, "sum" : 3292.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3292.00, "payments": [ { "type": 0, "sum" : 3292.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:47]POST & json_proto [20:03:47]process_json_proto [20:03:47]json parsed OK: [20:03:47]protocol is kg_v1.0 [20:03:47]action value=close_receipt [20:03:47]process_action close_receipt [20:03:47]cmd_close_receipt [20:03:47]MH_GetDate [20:03:47]Write to MH i2c: F0 00 00 4A 3A 73 [20:03:47]Write i2c OK [20:03:47]MH_I2C_Read... [20:03:47]Read from MH i2c: F0 [20:03:47]MH_I2C_Read... [20:03:47]Read from MH i2c: F0 09 00 [20:03:47]MH_I2C_Read... [20:03:47]Read from MH i2c: F0 09 00 4A 3A 00 A5 56 19 67 6B 98 1E 66 7E [20:03:47]GetLastDocTimeStamp 1729713510 [20:03:47]current date 1729713829 [20:03:47]FM_GetShiftState [20:03:47]SAM_PROTO_GetShiftState [20:03:47]wFMCommunicate request_size=4 [20:03:47]MH_SAM_APDU [20:03:47]CAPDU: 80 13 01 00 [20:03:47]Write to MH i2c: E2 08 00 4B 3A 80 13 01 00 00 00 00 00 02 [20:03:47]Write i2c OK [20:03:47]MH_I2C_Read... [20:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:47]Read from MH i2c: E2 [20:03:47]MH_I2C_Read... [20:03:47]Read from MH i2c: E2 0E 00 [20:03:47]MH_I2C_Read... [20:03:47]Read from MH i2c: E2 0E 00 4B 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 8F [20:03:47]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:03:47]wFMCommunicate OK [20:03:47]SAM_PROTO_GetShiftState done [20:03:47]FM_GetShiftState done [20:03:47]opened in 1729642435 [20:03:47]opened+sec_in_day 1729728835 [20:03:47]quantity*price = 329249 [20:03:47]sum+1 = 329251 [20:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 3292.00 Внесено: 6000.00 СДАЧА: 2708.00 НСП 1% : 29.14 НДС 12% : 349.65 Наличными: 3292.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 319 23.10.2024 20:03 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70803 ФПД: 12971316416007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70803&fm=12971316416007&tin=02508201610067®Number=0000000000156251&sum=329200 [20:03:48]StoreToDocumentArchive [20:03:48]shift 196 fd 70803 [20:03:48]save to /storage/0196/doc_00070803 [20:03:48]save last doc name /storage/0196/doc_00070803 to /storage/kkm_last_doc_name [20:03:48]save OK [20:03:48]Clear old archive folders... [20:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:03:48]tlvbuf is 001E4D90 [20:03:48]SAM_PROTO_ClearQueue [20:03:48]wFMCommunicate request_size=4 [20:03:48]MH_SAM_APDU [20:03:48]CAPDU: 80 09 00 00 [20:03:48]Write to MH i2c: E2 08 00 58 3A 80 09 00 00 00 00 00 00 04 [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 58 3A 00 90 00 06 [20:03:48]RAPDU: 90 00 [20:03:48]wFMCommunicate OK [20:03:48]SAM_PROTO_ClearQueue done [20:03:48]KKMCreateOFDPacket [20:03:48]OFDProtocolAddRootSTLVToBuf [20:03:48]FM_MakeSignedData [20:03:48]FM_MakeSignedData [20:03:48]SAM_PROTO_SignData [20:03:48]wFMCommunicate request_size=4 [20:03:48]MH_SAM_APDU [20:03:48]CAPDU: 80 0D 01 02 [20:03:48]Write to MH i2c: E2 08 00 59 3A 80 0D 01 02 00 00 00 00 0C [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 59 3A 00 90 00 07 [20:03:48]RAPDU: 90 00 [20:03:48]wFMCommunicate OK [20:03:48]wFMCommunicate request_size=255 [20:03:48]MH_SAM_APDU [20:03:48]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 A0 4A 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 22 06 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 05 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 88 00 00 00 00 07 04 06 00 F0 05 05 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 A6 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B CC [20:03:48]Write to MH i2c: E2 02 01 5A 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 A0 4A 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 22 06 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 05 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 88 00 00 00 00 07 04 06 00 F0 05 05 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 A6 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B CC 00 00 94 [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 5A 3A 00 90 00 08 [20:03:48]RAPDU: 90 00 [20:03:48]wFMCommunicate OK [20:03:48]wFMCommunicate request_size=9 [20:03:48]MH_SAM_APDU [20:03:48]CAPDU: 80 0D 02 02 04 1E B5 0E 07 [20:03:48]Write to MH i2c: E2 0C 00 5B 3A 80 0D 02 02 04 00 1E B5 0E 07 00 00 FF [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 03 00 5B 3A 00 90 00 09 [20:03:48]RAPDU: 90 00 [20:03:48]wFMCommunicate OK [20:03:48]wFMCommunicate request_size=4 [20:03:48]MH_SAM_APDU [20:03:48]CAPDU: 80 0D 03 02 [20:03:48]Write to MH i2c: E2 08 00 5C 3A 80 0D 03 02 00 00 00 00 11 [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 0B 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 0B 00 5C 3A 00 AB 8C 9C 18 28 69 38 F8 90 00 BE [20:03:48]RAPDU: AB 8C 9C 18 28 69 38 F8 90 00 [20:03:48]wFMCommunicate OK [20:03:48]SAM_PROTO_SignData done [20:03:48]FM_MakeSignedData done [20:03:48]CreateOFDProtocolMessage [20:03:48]wFMCommunicate request_size=4 [20:03:48]MH_SAM_APDU [20:03:48]CAPDU: 80 11 00 00 [20:03:48]Write to MH i2c: E2 08 00 5D 3A 80 11 00 00 00 00 00 00 11 [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:48]Read from MH i2c: E2 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 17 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: E2 17 00 5D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [20: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 [20:03:48]wFMCommunicate OK [20:03:48]CreateOFDProtocolMessage done [20:03:48]OFDSenderStorePacket 70803 [20:03:48]StoreOFDPacket docnum=70803 [20: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 0E 01 00 00 D5 31 06 01 C8 09 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 A0 4A 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 22 06 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 05 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 88 00 00 00 00 07 04 06 00 F0 05 05 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 A6 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B CC 1E B5 0E 07 AB 8C 9C 18 28 69 38 F8 [20:03:48]CheckFolder [20:03:48]dirname=/storage/ofd_packets [20:03:48]CheckFolder done [20:03:48]ProducePacketName [20:03:48]name=ofd_packets/00070803 [20:03:48]NVStorageSaveData ofd_packets/00070803 [20:03:48]File name is /storage/ofd_packets/00070803 [20:03:48]Write 300 bytes [20:03:48]NVStorageSaveData done [20:03:48]OFDSenderStorePacket done [20:03:48]KKMCreateOFDPacket done [20:03:48]NVStorageSaveData kkm_last_timestamp [20:03:48]File name is /storage/kkm_last_timestamp [20:03:48]Write 4 bytes [20:03:48]NVStorageSaveData done [20:03:48]ExternCall_PrintAddStr [20:03:48]wPrintStart [20:03:48]Write to MH i2c: 01 00 00 5E 3A 98 [20:03:48]Write i2c OK [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: 01 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: 01 07 00 [20:03:48]MH_I2C_Read... [20:03:48]Read from MH i2c: 01 07 00 5E 3A 00 00 00 00 00 FF 0F AD [20:03:48]RasterBufferAndPrint [20:03:48]line Счет N : (1)2886588 [20:03:48]line ИНН: 02508201610067 [20:03:48]line Контрольно-Кассовый Чек [20:03:48]line ПРОДАЖА [20:03:48]line ТРК (МРК, ГНК) : 71 [20:03:48]line Товар: 2711129700 [20:03:48]line ГАЗ-К-3 [20:03:48]line 84.640 * 38.90 [20:03:48]line = 3292.50 [20:03:48]line НДС 12% НСП 1% [20:03:48]line > о реализуемом товаре [20:03:48]line ОКРУГЛЕНИЕ: -0.50 [20:03:48]line ИТОГО: 3292.00 [20:03:48]line Внесено: 6000.00 [20:03:48]line СДАЧА: 2708.00 [20:03:48]line НСП 1% : 29.14 [20:03:48]line НДС 12% : 349.65 [20:03:48]line Наличными: 3292.00 [20:03:48]line Безнал.: 0.00 [20:03:48]line Место: АЗС № 85 "Партнер Нефть" [20:03:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:03:48]line СНО: Общий режим [20:03:48]line Чек 319 23.10.2024 20:03 [20:03:48]line Смена: 196 ФФД: 1.0 [20:03:48]line ЗНМ: 0300000167 [20:03:48]line РНМ: 0000000000156251 [20:03:48]line Версия ККМ: v1.0 [20:03:48]line ФМ: 0000000000963346 [20:03:48]line ФД: 70803 [20:03:48]line ФПД: 12971316416007 [20:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70803&fm=12971316416007&tin=02508201610067®Number=0000000000156251&sum=329200 [20:03:49]OFD Sender: Processing packet 70803 [packets to send 18, broken 17] [20:03:49]ProducePacketName [20:03:49]name=ofd_packets/00070803 [20:03:49]OFD Sender: To server: pG, [20:03:49]CommunicateWithHost lk.salyk.kg:30040 [20:03:49]ConnectInit lk.salyk.kg [20:03:49]written 0, free lines is 4095 [20:03:49]Connected sock=10 [20:03: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 0E 01 00 00 D5 31 06 01 C8 09 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 A0 4A 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 22 06 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 05 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 88 00 00 00 00 07 04 06 00 F0 05 05 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 A6 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 0B CC 1E B5 0E 07 AB 8C 9C 18 28 69 38 F8 [20: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 8B 75 47 00 30 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 93 14 01 00 F4 03 04 00 42 00 19 67 B6 04 01 00 00 47 7B F2 FC A6 55 2D 2D [20:03:49]CommunicateWithHost err = 0 [20:03:49]CheckOFDResponse [20:03:49]1017 (14) - 77093643461234 [20:03:49]1041 (16) - 0000000000963346 [20:03:49]1040 (4) - 70803 [20:03:49]1012 (4) - 23.10.2024 13:55 [20:03:49]1206 (1) - 0 [20:03:49]OFD Sender: Remove packet 70803 [20:03:49]ProducePacketName [20:03:49]name=ofd_packets/00070803 [20:03:49]NVStorageDeleteData [20:03:49]Write to MH i2c: 01 00 00 89 3A C3 [20:03:49]Write i2c OK [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: 01 [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: 01 07 00 [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: 01 07 00 89 3A 00 00 00 00 00 F9 0C CF [20:03:49]RasterBufferAndPrint [20:03:49]line [20:03:49]line [20:03:49]line [20:03:49]line [20:03:49]line [20:03:49]written 0, free lines is 3327 [20:03:49]MH_Cut [20:03:49]Write to MH i2c: D1 01 00 90 3A 01 9C [20:03:49]Write i2c OK [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: D1 [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: D1 01 00 [20:03:49]MH_I2C_Read... [20:03:49]Read from MH i2c: D1 01 00 90 3A 00 9B [20:03:49]Write to MH i2c: 01 00 00 91 3A CB [20:03:49]Write i2c OK [20:03:49]MH_I2C_Read... [20:03:50]OFD Sender: No OFD packet to send [20:03:50]*** Cut start [20:03:50]*** Partial cut [20:03:50]*** CUTSNS_PIN = 1 [20:03:50]*** CUTSNS_PIN = 0 [20:03:50]*** Brake cut motor [20:03:51]Read from MH i2c: 01 [20:03:51]MH_I2C_Read... [20:03:51]*** Stop cut motor [20:03:51]*** Cut end [20:03:51]Read from MH i2c: 01 07 00 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: 01 07 00 91 3A 00 00 00 00 00 FF 0F E0 [20:03:51]process_action close_receipt done [20:03:51]requested_data is exist [20:03:51]produce_requested_data [20:03:51]requested_item fm.sn is exist - process it [20:03:51]wFMCommunicate request_size=4 [20:03:51]MH_SAM_APDU [20:03:51]CAPDU: 80 11 00 00 [20:03:51]Write to MH i2c: E2 08 00 92 3A 80 11 00 00 00 00 00 00 46 [20:03:51]Write i2c OK [20:03:51]MH_I2C_Read... [20:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:51]Read from MH i2c: E2 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 17 00 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 17 00 92 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [20:03: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:03:51]wFMCommunicate OK [20:03:51]requested_item fd.num is exist - process it [20:03:51]SAM_PROTO_GetFieldsCounters [20:03:51]wFMCommunicate request_size=4 [20:03:51]MH_SAM_APDU [20:03:51]CAPDU: 80 13 00 00 [20:03:51]Write to MH i2c: E2 08 00 93 3A 80 13 00 00 00 00 00 00 49 [20:03:51]Write i2c OK [20:03:51]MH_I2C_Read... [20:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:51]Read from MH i2c: E2 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 62 00 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 62 00 93 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 93 14 01 00 0E 04 04 00 C4 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 90 [20:03: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 93 14 01 00 0E 04 04 00 C4 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 [20:03:51]wFMCommunicate OK [20:03:51]SAM_PROTO_GetFieldsCounters done [20:03:51]requested_item shift.num is exist - process it [20:03:51]requested_item shift.opened is exist - process it [20:03:51]req_shift_opened [20:03:51]FM_GetShiftState [20:03:51]SAM_PROTO_GetShiftState [20:03:51]wFMCommunicate request_size=4 [20:03:51]MH_SAM_APDU [20:03:51]CAPDU: 80 13 01 00 [20:03:51]Write to MH i2c: E2 08 00 94 3A 80 13 01 00 00 00 00 00 4B [20:03:51]Write i2c OK [20:03:51]MH_I2C_Read... [20:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:51]Read from MH i2c: E2 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 0E 00 [20:03:51]MH_I2C_Read... [20:03:51]Read from MH i2c: E2 0E 00 94 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D8 [20:03:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:03:51]wFMCommunicate OK [20:03:51]SAM_PROTO_GetShiftState done [20:03:51]FM_GetShiftState done [20:03:51]req_shift_opened done [20:03:51]requested_item shift.open_date is exist - process it [20:03:51]req_shift_open_date [20:03:51]req_shift_open_date done [20:03:51]produce_requested_data done [20:03:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70803,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:03:51]process_action_free close_receipt [20:03:51]json_value_free [20:03:51]json_value_free done [20:03:51]process_json_proto returns [20:03:51]Send response to host [20:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70803,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:03:51]free response buf [20:03:51]execute_script done [20:03:51]execute_script returns [20:03:51]free content buf [20:03:51]Sock 9.Close socket [20:03:51]Sock 9.Thread stoped [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:53]accept exits with 7 [20:04:53]New connection [20:04:53]New thread 3067034980 created [20:04:53]Thread 3066891620 joined [20:04:53]Waiting for new connection... [20:04:53] Sock 7.Parse request [20:04:53]Sock 7.Check first char [20:04:53]Sock 7.First char is OK [20:04:53]request: POST /json_proto HTTP/1.0 [20:04:53]Method: POST [20:04:53]URL: /json_proto [20:04:53]Method is POST - this is cgi request [20:04:53]url: /json_proto [20:04:53]query_string will be loaded in cgi processing [20:04:53]execute_cgi json_proto POST (null) [20:04:53]execute_cgi path=json_proto method=POST [20:04:53]POST find Content-Length [20:04:53]Host: 172.17.50.3:8080 [20:04:53]Content-Length: 683 [20:04:53]Content-Type: application/json [20:04:53] [20:04:53]POST finish read [20:04:53]Found Content-Length = 683 [20:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886589", "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" ] } } [20:04:53]execute_script... [20:04: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)2886589", "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" ] } } [20:04:53]POST & json_proto [20:04:53]process_json_proto [20:04:53]json parsed OK: [20:04:53]protocol is kg_v1.0 [20:04:53]action value=close_receipt [20:04:53]process_action close_receipt [20:04:53]cmd_close_receipt [20:04:53]MH_GetDate [20:04:53]Write to MH i2c: F0 00 00 95 3A BE [20:04:53]Write i2c OK [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: F0 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: F0 09 00 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: F0 09 00 95 3A 00 E8 56 19 67 6B 98 1E 66 0C [20:04:53]GetLastDocTimeStamp 1729713830 [20:04:53]current date 1729713896 [20:04:53]FM_GetShiftState [20:04:53]SAM_PROTO_GetShiftState [20:04:53]wFMCommunicate request_size=4 [20:04:53]MH_SAM_APDU [20:04:53]CAPDU: 80 13 01 00 [20:04:53]Write to MH i2c: E2 08 00 96 3A 80 13 01 00 00 00 00 00 4D [20:04:53]Write i2c OK [20:04:53]MH_I2C_Read... [20:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:53]Read from MH i2c: E2 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: E2 0E 00 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: E2 0E 00 96 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DA [20:04:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:04:53]wFMCommunicate OK [20:04:53]SAM_PROTO_GetShiftState done [20:04:53]FM_GetShiftState done [20:04:53]opened in 1729642435 [20:04:53]opened+sec_in_day 1729728835 [20:04:53]quantity*price = 100021 [20:04:53]sum+1 = 100023 [20:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 320 23.10.2024 20:04 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70804 ФПД: 98125206287715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70804&fm=98125206287715&tin=02508201610067®Number=0000000000156251&sum=100000 [20:04:54]StoreToDocumentArchive [20:04:54]shift 196 fd 70804 [20:04:54]save to /storage/0196/doc_00070804 [20:04:54]save last doc name /storage/0196/doc_00070804 to /storage/kkm_last_doc_name [20:04:54]save OK [20:04:54]Clear old archive folders... [20:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:54]tlvbuf is 00236570 [20:04:54]SAM_PROTO_ClearQueue [20:04:54]wFMCommunicate request_size=4 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 09 00 00 [20:04:54]Write to MH i2c: E2 08 00 A3 3A 80 09 00 00 00 00 00 00 4F [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:54]Read from MH i2c: E2 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 A3 3A 00 90 00 51 [20:04:54]RAPDU: 90 00 [20:04:54]wFMCommunicate OK [20:04:54]SAM_PROTO_ClearQueue done [20:04:54]KKMCreateOFDPacket [20:04:54]OFDProtocolAddRootSTLVToBuf [20:04:54]FM_MakeSignedData [20:04:54]FM_MakeSignedData [20:04:54]SAM_PROTO_SignData [20:04:54]wFMCommunicate request_size=4 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 0D 01 02 [20:04:54]Write to MH i2c: E2 08 00 A4 3A 80 0D 01 02 00 00 00 00 57 [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:54]Read from MH i2c: E2 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 A4 3A 00 90 00 52 [20:04:54]RAPDU: 90 00 [20:04:54]wFMCommunicate OK [20:04:54]wFMCommunicate request_size=255 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 E8 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 59 [20:04:54]Write to MH i2c: E2 02 01 A5 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 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 40 01 00 00 F4 03 04 00 E8 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 59 00 00 C2 [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:54]Read from MH i2c: E2 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [20:04:54]RAPDU: 90 00 [20:04:54]wFMCommunicate OK [20:04:54]wFMCommunicate request_size=10 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 0D 02 02 05 3E 8E 10 75 63 [20:04:54]Write to MH i2c: E2 0D 00 A6 3A 80 0D 02 02 05 00 3E 8E 10 75 63 00 00 18 [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:54]Read from MH i2c: E2 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 03 00 A6 3A 00 90 00 54 [20:04:54]RAPDU: 90 00 [20:04:54]wFMCommunicate OK [20:04:54]wFMCommunicate request_size=4 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 0D 03 02 [20:04:54]Write to MH i2c: E2 08 00 A7 3A 80 0D 03 02 00 00 00 00 5C [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:54]Read from MH i2c: E2 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 0B 00 [20:04:54]MH_I2C_Read... [20:04:54]Read from MH i2c: E2 0B 00 A7 3A 00 FB 08 50 9E BB C5 C5 5D 90 00 F0 [20:04:54]RAPDU: FB 08 50 9E BB C5 C5 5D 90 00 [20:04:54]wFMCommunicate OK [20:04:54]SAM_PROTO_SignData done [20:04:54]FM_MakeSignedData done [20:04:54]CreateOFDProtocolMessage [20:04:54]wFMCommunicate request_size=4 [20:04:54]MH_SAM_APDU [20:04:54]CAPDU: 80 11 00 00 [20:04:54]Write to MH i2c: E2 08 00 A8 3A 80 11 00 00 00 00 00 00 5C [20:04:54]Write i2c OK [20:04:54]MH_I2C_Read... [20:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:55]Read from MH i2c: E2 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: E2 17 00 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: E2 17 00 A8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [20: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 [20:04:55]wFMCommunicate OK [20:04:55]CreateOFDProtocolMessage done [20:04:55]OFDSenderStorePacket 70804 [20:04:55]StoreOFDPacket docnum=70804 [20:04: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 46 12 07 01 A9 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 01 00 00 F4 03 04 00 E8 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 59 3E 8E 10 75 63 FB 08 50 9E BB C5 C5 5D [20:04:55]CheckFolder [20:04:55]dirname=/storage/ofd_packets [20:04:55]CheckFolder done [20:04:55]ProducePacketName [20:04:55]name=ofd_packets/00070804 [20:04:55]NVStorageSaveData ofd_packets/00070804 [20:04:55]File name is /storage/ofd_packets/00070804 [20:04:55]Write 301 bytes [20:04:55]NVStorageSaveData done [20:04:55]OFDSenderStorePacket done [20:04:55]KKMCreateOFDPacket done [20:04:55]NVStorageSaveData kkm_last_timestamp [20:04:55]File name is /storage/kkm_last_timestamp [20:04:55]Write 4 bytes [20:04:55]NVStorageSaveData done [20:04:55]ExternCall_PrintAddStr [20:04:55]wPrintStart [20:04:55]Write to MH i2c: 01 00 00 A9 3A E3 [20:04:55]Write i2c OK [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 07 00 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 07 00 A9 3A 00 00 00 00 00 FF 0F F8 [20:04:55]RasterBufferAndPrint [20:04:55]line Счет N : (1)2886589 [20:04:55]line ИНН: 02508201610067 [20:04:55]line Контрольно-Кассовый Чек [20:04:55]line ПРОДАЖА [20:04:55]line ТРК (МРК, ГНК) : 33 [20:04:55]line Товар: 2710124500 [20:04:55]line Аи-95-К-5 [20:04:55]line 13.480 * 74.20 [20:04:55]line = 1000.22 [20:04:55]line НДС 12% НСП 1% [20:04:55]line > о реализуемом товаре [20:04:55]line ОКРУГЛЕНИЕ: -0.22 [20:04:55]line ИТОГО: 1000.00 [20:04:55]line Внесено: 1000.00 [20:04:55]line СДАЧА: 0.00 [20:04:55]line НСП 1% : 8.85 [20:04:55]line НДС 12% : 106.22 [20:04:55]line Наличными: 1000.00 [20:04:55]line Безнал.: 0.00 [20:04:55]line Место: АЗС № 85 "Партнер Нефть" [20:04:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:04:55]line СНО: Общий режим [20:04:55]line Чек 320 23.10.2024 20:04 [20:04:55]line Смена: 196 ФФД: 1.0 [20:04:55]line ЗНМ: 0300000167 [20:04:55]line РНМ: 0000000000156251 [20:04:55]line Версия ККМ: v1.0 [20:04:55]line ФМ: 0000000000963346 [20:04:55]line ФД: 70804 [20:04:55]line ФПД: 98125206287715 [20:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200456&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70804&fm=98125206287715&tin=02508201610067®Number=0000000000156251&sum=100000 [20:04:55]OFD Sender: Processing packet 70804 [packets to send 18, broken 17] [20:04:55]ProducePacketName [20:04:55]name=ofd_packets/00070804 [20:04:55]OFD Sender: To server: pG, [20:04:55]CommunicateWithHost lk.salyk.kg:30040 [20:04:55]ConnectInit lk.salyk.kg [20:04:55]written 0, free lines is 4095 [20:04:55]Connected sock=10 [20:04: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 46 12 07 01 A9 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 01 00 00 F4 03 04 00 E8 56 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 59 3E 8E 10 75 63 FB 08 50 9E BB C5 C5 5D [20:04: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 23 F0 47 00 F7 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 94 14 01 00 F4 03 04 00 84 00 19 67 B6 04 01 00 00 F7 00 A1 AC 8C A6 CD C9 [20:04:55]CommunicateWithHost err = 0 [20:04:55]CheckOFDResponse [20:04:55]1017 (14) - 77093643461234 [20:04:55]1041 (16) - 0000000000963346 [20:04:55]1040 (4) - 70804 [20:04:55]1012 (4) - 23.10.2024 13:56 [20:04:55]1206 (1) - 0 [20:04:55]OFD Sender: Remove packet 70804 [20:04:55]ProducePacketName [20:04:55]name=ofd_packets/00070804 [20:04:55]NVStorageDeleteData [20:04:55]Write to MH i2c: 01 00 00 D4 3A 0E [20:04:55]Write i2c OK [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 07 00 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: 01 07 00 D4 3A 00 00 00 00 00 F8 0C 19 [20:04:55]RasterBufferAndPrint [20:04:55]line [20:04:55]line [20:04:55]line [20:04:55]line [20:04:55]line [20:04:55]written 0, free lines is 3327 [20:04:55]MH_Cut [20:04:55]Write to MH i2c: D1 01 00 DB 3A 01 E7 [20:04:55]Write i2c OK [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: D1 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: D1 01 00 [20:04:55]MH_I2C_Read... [20:04:55]Read from MH i2c: D1 01 00 DB 3A 00 E6 [20:04:55]Write to MH i2c: 01 00 00 DC 3A 16 [20:04:55]Write i2c OK [20:04:55]MH_I2C_Read... [20:04:56]OFD Sender: No OFD packet to send [20:04:56]*** Cut start [20:04:56]*** Partial cut [20:04:56]*** CUTSNS_PIN = 1 [20:04:56]*** CUTSNS_PIN = 0 [20:04:56]*** Brake cut motor [20:04:57]Read from MH i2c: 01 [20:04:57]MH_I2C_Read... [20:04:57]*** Stop cut motor [20:04:57]*** Cut end [20:04:57]Read from MH i2c: 01 07 00 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: 01 07 00 DC 3A 00 00 00 00 00 FF 0F 2B [20:04:57]process_action close_receipt done [20:04:57]requested_data is exist [20:04:57]produce_requested_data [20:04:57]requested_item fm.sn is exist - process it [20:04:57]wFMCommunicate request_size=4 [20:04:57]MH_SAM_APDU [20:04:57]CAPDU: 80 11 00 00 [20:04:57]Write to MH i2c: E2 08 00 DD 3A 80 11 00 00 00 00 00 00 91 [20:04:57]Write i2c OK [20:04:57]MH_I2C_Read... [20:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:57]Read from MH i2c: E2 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 17 00 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 17 00 DD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [20:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:04:57]wFMCommunicate OK [20:04:57]requested_item fd.num is exist - process it [20:04:57]SAM_PROTO_GetFieldsCounters [20:04:57]wFMCommunicate request_size=4 [20:04:57]MH_SAM_APDU [20:04:57]CAPDU: 80 13 00 00 [20:04:57]Write to MH i2c: E2 08 00 DE 3A 80 13 00 00 00 00 00 00 94 [20:04:57]Write i2c OK [20:04:57]MH_I2C_Read... [20:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:57]Read from MH i2c: E2 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 62 00 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 62 00 DE 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 94 14 01 00 0E 04 04 00 C4 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 DF [20:04: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 94 14 01 00 0E 04 04 00 C4 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 [20:04:57]wFMCommunicate OK [20:04:57]SAM_PROTO_GetFieldsCounters done [20:04:57]requested_item shift.num is exist - process it [20:04:57]requested_item shift.opened is exist - process it [20:04:57]req_shift_opened [20:04:57]FM_GetShiftState [20:04:57]SAM_PROTO_GetShiftState [20:04:57]wFMCommunicate request_size=4 [20:04:57]MH_SAM_APDU [20:04:57]CAPDU: 80 13 01 00 [20:04:57]Write to MH i2c: E2 08 00 DF 3A 80 13 01 00 00 00 00 00 96 [20:04:57]Write i2c OK [20:04:57]MH_I2C_Read... [20:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:57]Read from MH i2c: E2 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 0E 00 [20:04:57]MH_I2C_Read... [20:04:57]Read from MH i2c: E2 0E 00 DF 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 23 [20:04:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:04:57]wFMCommunicate OK [20:04:57]SAM_PROTO_GetShiftState done [20:04:57]FM_GetShiftState done [20:04:57]req_shift_opened done [20:04:57]requested_item shift.open_date is exist - process it [20:04:57]req_shift_open_date [20:04:57]req_shift_open_date done [20:04:57]produce_requested_data done [20:04:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70804,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:04:57]process_action_free close_receipt [20:04:57]json_value_free [20:04:57]json_value_free done [20:04:57]process_json_proto returns [20:04:57]Send response to host [20:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70804,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:04:57]free response buf [20:04:57]execute_script done [20:04:57]execute_script returns [20:04:57]free content buf [20:04:57]Sock 7.Close socket [20:04:57]Sock 7.Thread stoped [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:12]accept exits with 9 [20:08:12]New connection [20:08:12]New thread 3066891620 created [20:08:12]Thread 3067034980 joined [20:08:12]Waiting for new connection... [20:08:12] Sock 9.Parse request [20:08:12]Sock 9.Check first char [20:08:12]Sock 9.First char is OK [20:08:12]request: POST /json_proto HTTP/1.0 [20:08:12]Method: POST [20:08:12]URL: /json_proto [20:08:12]Method is POST - this is cgi request [20:08:12]url: /json_proto [20:08:12]query_string will be loaded in cgi processing [20:08:12]execute_cgi json_proto POST (null) [20:08:12]execute_cgi path=json_proto method=POST [20:08:12]POST find Content-Length [20:08:12]Host: 172.17.50.3:8080 [20:08:12]Content-Length: 683 [20:08:12]Content-Type: application/json [20:08:12] [20:08:12]POST finish read [20:08:12]Found Content-Length = 683 [20:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886590", "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" ] } } [20:08:12]execute_script... [20:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886590", "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" ] } } [20:08:12]POST & json_proto [20:08:12]process_json_proto [20:08:12]json parsed OK: [20:08:12]protocol is kg_v1.0 [20:08:12]action value=close_receipt [20:08:12]process_action close_receipt [20:08:12]cmd_close_receipt [20:08:12]MH_GetDate [20:08:12]Write to MH i2c: F0 00 00 E0 3A 09 [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: F0 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: F0 09 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: F0 09 00 E0 3A 00 AE 57 19 67 6B 98 1E 66 1E [20:08:12]GetLastDocTimeStamp 1729713896 [20:08:12]current date 1729714094 [20:08:12]FM_GetShiftState [20:08:12]SAM_PROTO_GetShiftState [20:08:12]wFMCommunicate request_size=4 [20:08:12]MH_SAM_APDU [20:08:12]CAPDU: 80 13 01 00 [20:08:12]Write to MH i2c: E2 08 00 E1 3A 80 13 01 00 00 00 00 00 98 [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:12]Read from MH i2c: E2 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: E2 0E 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: E2 0E 00 E1 3A 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 25 [20:08:12]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:08:12]wFMCommunicate OK [20:08:12]SAM_PROTO_GetShiftState done [20:08:12]FM_GetShiftState done [20:08:12]opened in 1729642435 [20:08:12]opened+sec_in_day 1729728835 [20:08:12]quantity*price = 100021 [20:08:12]sum+1 = 100023 [20:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 321 23.10.2024 20:08 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70805 ФПД: 88389004768783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200814&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70805&fm=88389004768783&tin=02508201610067®Number=0000000000156251&sum=100000 [20:08:13]StoreToDocumentArchive [20:08:13]shift 196 fd 70805 [20:08:13]save to /storage/0196/doc_00070805 [20:08:13]save last doc name /storage/0196/doc_00070805 to /storage/kkm_last_doc_name [20:08:13]save OK [20:08:13]Clear old archive folders... [20:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:13]tlvbuf is 00160B70 [20:08:13]SAM_PROTO_ClearQueue [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 09 00 00 [20:08:13]Write to MH i2c: E2 08 00 EE 3A 80 09 00 00 00 00 00 00 9A [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:13]Read from MH i2c: E2 03 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 EE 3A 00 90 00 9C [20:08:13]RAPDU: 90 00 [20:08:13]wFMCommunicate OK [20:08:13]SAM_PROTO_ClearQueue done [20:08:13]KKMCreateOFDPacket [20:08:13]OFDProtocolAddRootSTLVToBuf [20:08:13]FM_MakeSignedData [20:08:13]FM_MakeSignedData [20:08:13]SAM_PROTO_SignData [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 0D 01 02 [20:08:13]Write to MH i2c: E2 08 00 EF 3A 80 0D 01 02 00 00 00 00 A2 [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 EF 3A 00 90 00 9D [20:08:13]RAPDU: 90 00 [20:08:13]wFMCommunicate OK [20:08:13]wFMCommunicate request_size=255 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 41 01 00 00 F4 03 04 00 AE 57 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 50 [20:08:13]Write to MH i2c: E2 02 01 F0 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 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 41 01 00 00 F4 03 04 00 AE 57 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 50 00 00 CD [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 F0 3A 00 90 00 9E [20:08:13]RAPDU: 90 00 [20:08:13]wFMCommunicate OK [20:08:13]wFMCommunicate request_size=10 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 0D 02 02 05 63 AB 3B 36 0F [20:08:13]Write to MH i2c: E2 0D 00 F1 3A 80 0D 02 02 05 00 63 AB 3B 36 0F 00 00 3D [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 03 00 F1 3A 00 90 00 9F [20:08:13]RAPDU: 90 00 [20:08:13]wFMCommunicate OK [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 0D 03 02 [20:08:13]Write to MH i2c: E2 08 00 F2 3A 80 0D 03 02 00 00 00 00 A7 [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 0B 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 0B 00 F2 3A 00 3D B8 76 73 23 95 CC D1 90 00 DB [20:08:13]RAPDU: 3D B8 76 73 23 95 CC D1 90 00 [20:08:13]wFMCommunicate OK [20:08:13]SAM_PROTO_SignData done [20:08:13]FM_MakeSignedData done [20:08:13]CreateOFDProtocolMessage [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 11 00 00 [20:08:13]Write to MH i2c: E2 08 00 F3 3A 80 11 00 00 00 00 00 00 A7 [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 17 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 17 00 F3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F9 [20:08:13]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:13]wFMCommunicate OK [20:08:13]CreateOFDProtocolMessage done [20:08:13]OFDSenderStorePacket 70805 [20:08:13]StoreOFDPacket docnum=70805 [20:08: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 D8 58 07 01 A0 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 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 41 01 00 00 F4 03 04 00 AE 57 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 50 63 AB 3B 36 0F 3D B8 76 73 23 95 CC D1 [20:08:13]CheckFolder [20:08:13]dirname=/storage/ofd_packets [20:08:13]CheckFolder done [20:08:13]ProducePacketName [20:08:13]name=ofd_packets/00070805 [20:08:13]NVStorageSaveData ofd_packets/00070805 [20:08:13]File name is /storage/ofd_packets/00070805 [20:08:13]Write 301 bytes [20:08:13]NVStorageSaveData done [20:08:13]OFDSenderStorePacket done [20:08:13]KKMCreateOFDPacket done [20:08:13]NVStorageSaveData kkm_last_timestamp [20:08:13]File name is /storage/kkm_last_timestamp [20:08:13]Write 4 bytes [20:08:13]NVStorageSaveData done [20:08:13]ExternCall_PrintAddStr [20:08:13]wPrintStart [20:08:13]Write to MH i2c: 01 00 00 F4 3A 2E [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: 01 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: 01 07 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: 01 07 00 F4 3A 00 00 00 00 00 FF 0F 43 [20:08:13]RasterBufferAndPrint [20:08:13]line Счет N : (1)2886590 [20:08:13]line ИНН: 02508201610067 [20:08:13]line Контрольно-Кассовый Чек [20:08:13]line ПРОДАЖА [20:08:13]line ТРК (МРК, ГНК) : 33 [20:08:13]line Товар: 2710124500 [20:08:13]line Аи-95-К-5 [20:08:13]line 13.480 * 74.20 [20:08:13]line = 1000.22 [20:08:13]line НДС 12% НСП 1% [20:08:13]line > о реализуемом товаре [20:08:13]line ОКРУГЛЕНИЕ: -0.22 [20:08:13]line ИТОГО: 1000.00 [20:08:13]line Внесено: 1000.00 [20:08:13]line СДАЧА: 0.00 [20:08:13]line НСП 1% : 8.85 [20:08:13]line НДС 12% : 106.22 [20:08:13]line Наличными: 1000.00 [20:08:13]line Безнал.: 0.00 [20:08:13]line Место: АЗС № 85 "Партнер Нефть" [20:08:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:08:13]line СНО: Общий режим [20:08:13]line Чек 321 23.10.2024 20:08 [20:08:13]line Смена: 196 ФФД: 1.0 [20:08:13]line ЗНМ: 0300000167 [20:08:13]line РНМ: 0000000000156251 [20:08:13]line Версия ККМ: v1.0 [20:08:13]line ФМ: 0000000000963346 [20:08:13]line ФД: 70805 [20:08:13]line ФПД: 88389004768783 [20:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200814&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70805&fm=88389004768783&tin=02508201610067®Number=0000000000156251&sum=100000 [20:08:14]OFD Sender: Processing packet 70805 [packets to send 18, broken 17] [20:08:14]ProducePacketName [20:08:14]name=ofd_packets/00070805 [20:08:14]OFD Sender: To server: pG, [20:08:14]CommunicateWithHost lk.salyk.kg:30040 [20:08:14]ConnectInit lk.salyk.kg [20:08:14]written 0, free lines is 4095 [20:08:14]Connected sock=10 [20:08: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 D8 58 07 01 A0 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 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 41 01 00 00 F4 03 04 00 AE 57 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 50 63 AB 3B 36 0F 3D B8 76 73 23 95 CC D1 [20:08: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 95 D9 47 00 A4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 14 01 00 F4 03 04 00 4B 01 19 67 B6 04 01 00 00 CC E1 58 81 08 C7 0F FE [20:08:14]CommunicateWithHost err = 0 [20:08:14]CheckOFDResponse [20:08:14]1017 (14) - 77093643461234 [20:08:14]1041 (16) - 0000000000963346 [20:08:14]1040 (4) - 70805 [20:08:14]1012 (4) - 23.10.2024 13:59 [20:08:14]1206 (1) - 0 [20:08:14]OFD Sender: Remove packet 70805 [20:08:14]ProducePacketName [20:08:14]name=ofd_packets/00070805 [20:08:14]NVStorageDeleteData [20:08:14]Write to MH i2c: 01 00 00 1F 3B 5A [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 1F 3B 00 00 00 00 00 EC 0C 59 [20:08:14]RasterBufferAndPrint [20:08:14]line [20:08:14]line [20:08:14]line [20:08:14]line [20:08:14]line [20:08:14]written 0, free lines is 3314 [20:08:14]MH_Cut [20:08:14]Write to MH i2c: D1 01 00 26 3B 01 33 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: D1 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: D1 01 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: D1 01 00 26 3B 00 32 [20:08:14]Write to MH i2c: 01 00 00 27 3B 62 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]OFD Sender: No OFD packet to send [20:08:15]*** Cut start [20:08:15]*** Partial cut [20:08:15]*** CUTSNS_PIN = 1 [20:08:15]*** CUTSNS_PIN = 0 [20:08:15]*** Brake cut motor [20:08:15]Read from MH i2c: 01 [20:08:15]*** Stop cut motor [20:08:15]*** Cut end [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: 01 07 00 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: 01 07 00 27 3B 00 00 00 00 00 FF 0F 77 [20:08:15]process_action close_receipt done [20:08:15]requested_data is exist [20:08:15]produce_requested_data [20:08:15]requested_item fm.sn is exist - process it [20:08:15]wFMCommunicate request_size=4 [20:08:15]MH_SAM_APDU [20:08:15]CAPDU: 80 11 00 00 [20:08:15]Write to MH i2c: E2 08 00 28 3B 80 11 00 00 00 00 00 00 DD [20:08:15]Write i2c OK [20:08:15]MH_I2C_Read... [20:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:15]Read from MH i2c: E2 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 17 00 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 17 00 28 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [20:08: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:08:15]wFMCommunicate OK [20:08:15]requested_item fd.num is exist - process it [20:08:15]SAM_PROTO_GetFieldsCounters [20:08:15]wFMCommunicate request_size=4 [20:08:15]MH_SAM_APDU [20:08:15]CAPDU: 80 13 00 00 [20:08:15]Write to MH i2c: E2 08 00 29 3B 80 13 00 00 00 00 00 00 E0 [20:08:15]Write i2c OK [20:08:15]MH_I2C_Read... [20:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:15]Read from MH i2c: E2 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 62 00 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 62 00 29 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 95 14 01 00 0E 04 04 00 C4 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 2F [20:08: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 95 14 01 00 0E 04 04 00 C4 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 [20:08:15]wFMCommunicate OK [20:08:15]SAM_PROTO_GetFieldsCounters done [20:08:15]requested_item shift.num is exist - process it [20:08:15]requested_item shift.opened is exist - process it [20:08:15]req_shift_opened [20:08:15]FM_GetShiftState [20:08:15]SAM_PROTO_GetShiftState [20:08:15]wFMCommunicate request_size=4 [20:08:15]MH_SAM_APDU [20:08:15]CAPDU: 80 13 01 00 [20:08:15]Write to MH i2c: E2 08 00 2A 3B 80 13 01 00 00 00 00 00 E2 [20:08:15]Write i2c OK [20:08:15]MH_I2C_Read... [20:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:16]Read from MH i2c: E2 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: E2 0E 00 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: E2 0E 00 2A 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 6F [20:08:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:08:16]wFMCommunicate OK [20:08:16]SAM_PROTO_GetShiftState done [20:08:16]FM_GetShiftState done [20:08:16]req_shift_opened done [20:08:16]requested_item shift.open_date is exist - process it [20:08:16]req_shift_open_date [20:08:16]req_shift_open_date done [20:08:16]produce_requested_data done [20:08:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70805,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:08:16]process_action_free close_receipt [20:08:16]json_value_free [20:08:16]json_value_free done [20:08:16]process_json_proto returns [20:08:16]Send response to host [20:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70805,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:08:16]free response buf [20:08:16]execute_script done [20:08:16]execute_script returns [20:08:16]free content buf [20:08:16]Sock 9.Close socket [20:08:16]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]accept exits with 7 [20:10:24]New connection [20:10:24]New thread 3067034980 created [20:10:24]Thread 3066891620 joined [20:10:24]Waiting for new connection... [20:10:24] Sock 7.Parse request [20:10:24]Sock 7.Check first char [20:10:24]Sock 7.First char is OK [20:10:24]request: POST /json_proto HTTP/1.0 [20:10:24]Method: POST [20:10:24]URL: /json_proto [20:10:24]Method is POST - this is cgi request [20:10:24]url: /json_proto [20:10:24]query_string will be loaded in cgi processing [20:10:24]execute_cgi json_proto POST (null) [20:10:24]execute_cgi path=json_proto method=POST [20:10:24]POST find Content-Length [20:10:24]Host: 172.17.50.3:8080 [20:10:24]Content-Length: 678 [20:10:24]Content-Type: application/json [20:10:24] [20:10:24]POST finish read [20:10:24]Found Content-Length = 678 [20:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886591", "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" ] } } [20:10:24]execute_script... [20: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)2886591", "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" ] } } [20:10:24]POST & json_proto [20:10:24]process_json_proto [20:10:24]json parsed OK: [20:10:24]protocol is kg_v1.0 [20:10:24]action value=close_receipt [20:10:24]process_action close_receipt [20:10:24]cmd_close_receipt [20:10:24]MH_GetDate [20:10:24]Write to MH i2c: F0 00 00 2B 3B 55 [20:10:24]Write i2c OK [20:10:24]MH_I2C_Read... [20:10:24]Read from MH i2c: F0 [20:10:24]MH_I2C_Read... [20:10:24]Read from MH i2c: F0 09 00 [20:10:24]MH_I2C_Read... [20:10:24]Read from MH i2c: F0 09 00 2B 3B 00 32 58 19 67 6B 98 1E 66 EF [20:10:24]GetLastDocTimeStamp 1729714094 [20:10:24]current date 1729714226 [20:10:24]FM_GetShiftState [20:10:24]SAM_PROTO_GetShiftState [20:10:24]wFMCommunicate request_size=4 [20:10:24]MH_SAM_APDU [20:10:24]CAPDU: 80 13 01 00 [20:10:24]Write to MH i2c: E2 08 00 2C 3B 80 13 01 00 00 00 00 00 E4 [20:10:24]Write i2c OK [20:10:24]MH_I2C_Read... [20:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:24]Read from MH i2c: E2 [20:10:24]MH_I2C_Read... [20:10:24]Read from MH i2c: E2 0E 00 [20:10:24]MH_I2C_Read... [20:10:24]Read from MH i2c: E2 0E 00 2C 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 71 [20:10:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:10:24]wFMCommunicate OK [20:10:24]SAM_PROTO_GetShiftState done [20:10:24]FM_GetShiftState done [20:10:24]opened in 1729642435 [20:10:24]opened+sec_in_day 1729728835 [20:10:24]quantity*price = 60009 [20:10:24]sum+1 = 60010 [20:10:24]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 СНО: Общий режим Чек 322 23.10.2024 20:10 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70806 ФПД: 18682019687978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70806&fm=18682019687978&tin=02508201610067®Number=0000000000156251&sum=60000 [20:10:25]StoreToDocumentArchive [20:10:25]shift 196 fd 70806 [20:10:25]save to /storage/0196/doc_00070806 [20:10:25]save last doc name /storage/0196/doc_00070806 to /storage/kkm_last_doc_name [20:10:25]save OK [20:10:25]Clear old archive folders... [20:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:25]tlvbuf is 00145EF0 [20:10:25]SAM_PROTO_ClearQueue [20:10:25]wFMCommunicate request_size=4 [20:10:25]MH_SAM_APDU [20:10:25]CAPDU: 80 09 00 00 [20:10:25]Write to MH i2c: E2 08 00 39 3B 80 09 00 00 00 00 00 00 E6 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 39 3B 00 90 00 E8 [20:10:25]RAPDU: 90 00 [20:10:25]wFMCommunicate OK [20:10:25]SAM_PROTO_ClearQueue done [20:10:25]KKMCreateOFDPacket [20:10:25]OFDProtocolAddRootSTLVToBuf [20:10:25]FM_MakeSignedData [20:10:25]FM_MakeSignedData [20:10:25]SAM_PROTO_SignData [20:10:25]wFMCommunicate request_size=4 [20:10:25]MH_SAM_APDU [20:10:25]CAPDU: 80 0D 01 02 [20:10:25]Write to MH i2c: E2 08 00 3A 3B 80 0D 01 02 00 00 00 00 EE [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [20:10:25]RAPDU: 90 00 [20:10:25]wFMCommunicate OK [20:10:25]wFMCommunicate request_size=255 [20:10:25]MH_SAM_APDU [20:10: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 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 42 01 00 00 F4 03 04 00 32 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 [20:10:25]Write to MH i2c: E2 02 01 3B 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 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 42 01 00 00 F4 03 04 00 32 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 00 00 20 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [20:10:25]RAPDU: 90 00 [20:10:25]wFMCommunicate OK [20:10:25]wFMCommunicate request_size=10 [20:10:25]MH_SAM_APDU [20:10:25]CAPDU: 80 0D 02 02 05 FD BF 25 AE 2A [20:10:25]Write to MH i2c: E2 0D 00 3C 3B 80 0D 02 02 05 00 FD BF 25 AE 2A 00 00 B4 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 03 00 3C 3B 00 90 00 EB [20:10:25]RAPDU: 90 00 [20:10:25]wFMCommunicate OK [20:10:25]wFMCommunicate request_size=4 [20:10:25]MH_SAM_APDU [20:10:25]CAPDU: 80 0D 03 02 [20:10:25]Write to MH i2c: E2 08 00 3D 3B 80 0D 03 02 00 00 00 00 F3 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 0B 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 0B 00 3D 3B 00 21 AF 18 09 29 B2 80 E5 90 00 25 [20:10:25]RAPDU: 21 AF 18 09 29 B2 80 E5 90 00 [20:10:25]wFMCommunicate OK [20:10:25]SAM_PROTO_SignData done [20:10:25]FM_MakeSignedData done [20:10:25]CreateOFDProtocolMessage [20:10:25]wFMCommunicate request_size=4 [20:10:25]MH_SAM_APDU [20:10:25]CAPDU: 80 11 00 00 [20:10:25]Write to MH i2c: E2 08 00 3E 3B 80 11 00 00 00 00 00 00 F3 [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:25]Read from MH i2c: E2 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 17 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: E2 17 00 3E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [20: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 [20:10:25]wFMCommunicate OK [20:10:25]CreateOFDProtocolMessage done [20:10:25]OFDSenderStorePacket 70806 [20:10:25]StoreOFDPacket docnum=70806 [20: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 1F 35 07 01 2B 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 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 42 01 00 00 F4 03 04 00 32 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 FD BF 25 AE 2A 21 AF 18 09 29 B2 80 E5 [20:10:25]CheckFolder [20:10:25]dirname=/storage/ofd_packets [20:10:25]CheckFolder done [20:10:25]ProducePacketName [20:10:25]name=ofd_packets/00070806 [20:10:25]NVStorageSaveData ofd_packets/00070806 [20:10:25]File name is /storage/ofd_packets/00070806 [20:10:25]Write 301 bytes [20:10:25]NVStorageSaveData done [20:10:25]OFDSenderStorePacket done [20:10:25]KKMCreateOFDPacket done [20:10:25]NVStorageSaveData kkm_last_timestamp [20:10:25]File name is /storage/kkm_last_timestamp [20:10:25]Write 4 bytes [20:10:25]NVStorageSaveData done [20:10:25]ExternCall_PrintAddStr [20:10:25]wPrintStart [20:10:25]Write to MH i2c: 01 00 00 3F 3B 7A [20:10:25]Write i2c OK [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 07 00 [20:10:25]MH_I2C_Read... [20:10:25]Read from MH i2c: 01 07 00 3F 3B 00 00 00 00 00 FF 0F 8F [20:10:25]RasterBufferAndPrint [20:10:25]line Счет N : (1)2886591 [20:10:25]line ИНН: 02508201610067 [20:10:25]line Контрольно-Кассовый Чек [20:10:25]line ПРОДАЖА [20:10:25]line ТРК (МРК, ГНК) : 22 [20:10:25]line Товар: 2710124130 [20:10:25]line Аи-92-К-5 [20:10:25]line 8.970 * 66.90 [20:10:25]line = 600.09 [20:10:25]line НДС 12% НСП 1% [20:10:25]line > о реализуемом товаре [20:10:25]line ОКРУГЛЕНИЕ: -0.09 [20:10:25]line ИТОГО: 600.00 [20:10:25]line Внесено: 600.00 [20:10:25]line СДАЧА: 0.00 [20:10:25]line НСП 1% : 5.31 [20:10:25]line НДС 12% : 63.73 [20:10:25]line Наличными: 600.00 [20:10:25]line Безнал.: 0.00 [20:10:25]line Место: АЗС № 85 "Партнер Нефть" [20:10:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:10:25]line СНО: Общий режим [20:10:25]line Чек 322 23.10.2024 20:10 [20:10:25]line Смена: 196 ФФД: 1.0 [20:10:25]line ЗНМ: 0300000167 [20:10:25]line РНМ: 0000000000156251 [20:10:25]line Версия ККМ: v1.0 [20:10:25]line ФМ: 0000000000963346 [20:10:25]line ФД: 70806 [20:10:25]line ФПД: 18682019687978 [20:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70806&fm=18682019687978&tin=02508201610067®Number=0000000000156251&sum=60000 [20:10:26]OFD Sender: Processing packet 70806 [packets to send 18, broken 17] [20:10:26]ProducePacketName [20:10:26]name=ofd_packets/00070806 [20:10:26]OFD Sender: To server: pG, [20:10:26]CommunicateWithHost lk.salyk.kg:30040 [20:10:26]ConnectInit lk.salyk.kg [20:10:26]written 0, free lines is 4095 [20:10:26]Connected sock=10 [20:10: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 1F 35 07 01 2B 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 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 42 01 00 00 F4 03 04 00 32 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 10 FD BF 25 AE 2A 21 AF 18 09 29 B2 80 E5 [20:10: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 F0 FD 47 00 B4 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 96 14 01 00 F4 03 04 00 CF 01 19 67 B6 04 01 00 00 62 85 50 32 46 57 2B 82 [20:10:26]CommunicateWithHost err = 0 [20:10:26]CheckOFDResponse [20:10:26]1017 (14) - 77093643461234 [20:10:26]1041 (16) - 0000000000963346 [20:10:26]1040 (4) - 70806 [20:10:26]1012 (4) - 23.10.2024 14:01 [20:10:26]1206 (1) - 0 [20:10:26]OFD Sender: Remove packet 70806 [20:10:26]ProducePacketName [20:10:26]name=ofd_packets/00070806 [20:10:26]NVStorageDeleteData [20:10:26]Write to MH i2c: 01 00 00 6A 3B A5 [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 6A 3B 00 00 00 00 00 F4 0C AC [20:10:26]RasterBufferAndPrint [20:10:26]line [20:10:26]line [20:10:26]line [20:10:26]line [20:10:26]line [20:10:26]written 0, free lines is 3326 [20:10:26]MH_Cut [20:10:26]Write to MH i2c: D1 01 00 71 3B 01 7E [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: D1 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: D1 01 00 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: D1 01 00 71 3B 00 7D [20:10:26]Write to MH i2c: 01 00 00 72 3B AD [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]OFD Sender: No OFD packet to send [20:10:27]*** Cut start [20:10:27]*** Partial cut [20:10:27]*** CUTSNS_PIN = 1 [20:10:27]*** CUTSNS_PIN = 0 [20:10:27]*** Brake cut motor [20:10:27]Read from MH i2c: 01 [20:10:27]MH_I2C_Read... [20:10:27]*** Stop cut motor [20:10:27]*** Cut end [20:10:27]Read from MH i2c: 01 07 00 [20:10:27]MH_I2C_Read... [20:10:27]Read from MH i2c: 01 07 00 72 3B 00 00 00 00 00 FF 0F C2 [20:10:27]process_action close_receipt done [20:10:27]requested_data is exist [20:10:27]produce_requested_data [20:10:27]requested_item fm.sn is exist - process it [20:10:27]wFMCommunicate request_size=4 [20:10:27]MH_SAM_APDU [20:10:27]CAPDU: 80 11 00 00 [20:10:27]Write to MH i2c: E2 08 00 73 3B 80 11 00 00 00 00 00 00 28 [20:10:27]Write i2c OK [20:10:27]MH_I2C_Read... [20:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:27]Read from MH i2c: E2 [20:10:27]MH_I2C_Read... [20:10:27]Read from MH i2c: E2 17 00 [20:10:27]MH_I2C_Read... [20:10:27]Read from MH i2c: E2 17 00 73 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [20: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 [20:10:27]wFMCommunicate OK [20:10:27]requested_item fd.num is exist - process it [20:10:27]SAM_PROTO_GetFieldsCounters [20:10:27]wFMCommunicate request_size=4 [20:10:27]MH_SAM_APDU [20:10:27]CAPDU: 80 13 00 00 [20:10:27]Write to MH i2c: E2 08 00 74 3B 80 13 00 00 00 00 00 00 2B [20:10:27]Write i2c OK [20:10:27]MH_I2C_Read... [20:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:28]Read from MH i2c: E2 [20:10:28]MH_I2C_Read... [20:10:28]Read from MH i2c: E2 62 00 [20:10:28]MH_I2C_Read... [20:10:28]Read from MH i2c: E2 62 00 74 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 96 14 01 00 0E 04 04 00 C4 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 7E [20: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 96 14 01 00 0E 04 04 00 C4 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 [20:10:28]wFMCommunicate OK [20:10:28]SAM_PROTO_GetFieldsCounters done [20:10:28]requested_item shift.num is exist - process it [20:10:28]requested_item shift.opened is exist - process it [20:10:28]req_shift_opened [20:10:28]FM_GetShiftState [20:10:28]SAM_PROTO_GetShiftState [20:10:28]wFMCommunicate request_size=4 [20:10:28]MH_SAM_APDU [20:10:28]CAPDU: 80 13 01 00 [20:10:28]Write to MH i2c: E2 08 00 75 3B 80 13 01 00 00 00 00 00 2D [20:10:28]Write i2c OK [20:10:28]MH_I2C_Read... [20:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:28]Read from MH i2c: E2 [20:10:28]MH_I2C_Read... [20:10:28]Read from MH i2c: E2 0E 00 [20:10:28]MH_I2C_Read... [20:10:28]Read from MH i2c: E2 0E 00 75 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BA [20:10:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:10:28]wFMCommunicate OK [20:10:28]SAM_PROTO_GetShiftState done [20:10:28]FM_GetShiftState done [20:10:28]req_shift_opened done [20:10:28]requested_item shift.open_date is exist - process it [20:10:28]req_shift_open_date [20:10:28]req_shift_open_date done [20:10:28]produce_requested_data done [20:10:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70806,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:10:28]process_action_free close_receipt [20:10:28]json_value_free [20:10:28]json_value_free done [20:10:28]process_json_proto returns [20:10:28]Send response to host [20:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70806,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:10:28]free response buf [20:10:28]execute_script done [20:10:28]execute_script returns [20:10:28]free content buf [20:10:28]Sock 7.Close socket [20:10:28]Sock 7.Thread stoped [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:10]accept exits with 9 [20:12:10]New connection [20:12:10]New thread 3066891620 created [20:12:10]Thread 3067034980 joined [20:12:10]Waiting for new connection... [20:12:10] Sock 9.Parse request [20:12:10]Sock 9.Check first char [20:12:10]Sock 9.First char is OK [20:12:10]request: POST /json_proto HTTP/1.0 [20:12:10]Method: POST [20:12:10]URL: /json_proto [20:12:10]Method is POST - this is cgi request [20:12:10]url: /json_proto [20:12:10]query_string will be loaded in cgi processing [20:12:10]execute_cgi json_proto POST (null) [20:12:10]execute_cgi path=json_proto method=POST [20:12:10]POST find Content-Length [20:12:10]Host: 172.17.50.3:8080 [20:12:10]Content-Length: 649 [20:12:10]Content-Type: application/json [20:12:10] [20:12:10]POST finish read [20:12:10]Found Content-Length = 649 [20:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886592", "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" : 30.000, "sum" : 2316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:10]execute_script... [20:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886592", "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" : 30.000, "sum" : 2316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:10]POST & json_proto [20:12:10]process_json_proto [20:12:10]json parsed OK: [20:12:10]protocol is kg_v1.0 [20:12:10]action value=close_receipt [20:12:10]process_action close_receipt [20:12:10]cmd_close_receipt [20:12:10]MH_GetDate [20:12:10]Write to MH i2c: F0 00 00 76 3B A0 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: F0 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: F0 09 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: F0 09 00 76 3B 00 9D 58 19 67 6B 98 1E 66 A5 [20:12:10]GetLastDocTimeStamp 1729714226 [20:12:10]current date 1729714333 [20:12:10]FM_GetShiftState [20:12:10]SAM_PROTO_GetShiftState [20:12:10]wFMCommunicate request_size=4 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 13 01 00 [20:12:10]Write to MH i2c: E2 08 00 77 3B 80 13 01 00 00 00 00 00 2F [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0E 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0E 00 77 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 BC [20:12:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:12:10]wFMCommunicate OK [20:12:10]SAM_PROTO_GetShiftState done [20:12:10]FM_GetShiftState done [20:12:10]opened in 1729642435 [20:12:10]opened+sec_in_day 1729728835 [20:12:10]quantity*price = 231600 [20:12:10]sum+1 = 231601 [20:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2316.00 НСП 1% : 20.50 НДС 12% : 245.95 Наличными: 2316.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 323 23.10.2024 20:12 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70807 ФПД: 264419373737370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70807&fm=264419373737370&tin=02508201610067®Number=0000000000156251&sum=231600 [20:12:11]StoreToDocumentArchive [20:12:11]shift 196 fd 70807 [20:12:11]save to /storage/0196/doc_00070807 [20:12:11]save last doc name /storage/0196/doc_00070807 to /storage/kkm_last_doc_name [20:12:11]save OK [20:12:11]Clear old archive folders... [20:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:12:11]tlvbuf is 001E47B0 [20:12:11]SAM_PROTO_ClearQueue [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 09 00 00 [20:12:11]Write to MH i2c: E2 08 00 84 3B 80 09 00 00 00 00 00 00 31 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 84 3B 00 90 00 33 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_ClearQueue done [20:12:11]KKMCreateOFDPacket [20:12:11]OFDProtocolAddRootSTLVToBuf [20:12:11]FM_MakeSignedData [20:12:11]FM_MakeSignedData [20:12:11]SAM_PROTO_SignData [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 01 02 [20:12:11]Write to MH i2c: E2 08 00 85 3B 80 0D 01 02 00 00 00 00 39 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 85 3B 00 90 00 34 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=255 [20:12:11]MH_SAM_APDU [20:12: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 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 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 9D 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [20:12:11]Write to MH i2c: E2 02 01 86 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 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 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 9D 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 EB [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 86 3B 00 90 00 35 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=16 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F0 7C EE D7 E5 9A [20:12:11]Write to MH i2c: E2 13 00 87 3B 80 0D 02 02 0B 00 00 35 04 06 00 F0 7C EE D7 E5 9A 00 00 41 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 03 00 87 3B 00 90 00 36 [20:12:11]RAPDU: 90 00 [20:12:11]wFMCommunicate OK [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 0D 03 02 [20:12:11]Write to MH i2c: E2 08 00 88 3B 80 0D 03 02 00 00 00 00 3E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0B 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 0B 00 88 3B 00 12 66 51 1B 71 51 EF 91 90 00 65 [20:12:11]RAPDU: 12 66 51 1B 71 51 EF 91 90 00 [20:12:11]wFMCommunicate OK [20:12:11]SAM_PROTO_SignData done [20:12:11]FM_MakeSignedData done [20:12:11]CreateOFDProtocolMessage [20:12:11]wFMCommunicate request_size=4 [20:12:11]MH_SAM_APDU [20:12:11]CAPDU: 80 11 00 00 [20:12:11]Write to MH i2c: E2 08 00 89 3B 80 11 00 00 00 00 00 00 3E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:11]Read from MH i2c: E2 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 17 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: E2 17 00 89 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [20: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 [20:12:12]wFMCommunicate OK [20:12:12]CreateOFDProtocolMessage done [20:12:12]OFDSenderStorePacket 70807 [20:12:12]StoreOFDPacket docnum=70807 [20:12: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 15 01 00 00 0B 5E 0D 01 99 6E 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 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 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 9D 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F0 7C EE D7 E5 9A 12 66 51 1B 71 51 EF 91 [20:12:12]CheckFolder [20:12:12]dirname=/storage/ofd_packets [20:12:12]CheckFolder done [20:12:12]ProducePacketName [20:12:12]name=ofd_packets/00070807 [20:12:12]NVStorageSaveData ofd_packets/00070807 [20:12:12]File name is /storage/ofd_packets/00070807 [20:12:12]Write 307 bytes [20:12:12]NVStorageSaveData done [20:12:12]OFDSenderStorePacket done [20:12:12]KKMCreateOFDPacket done [20:12:12]NVStorageSaveData kkm_last_timestamp [20:12:12]File name is /storage/kkm_last_timestamp [20:12:12]Write 4 bytes [20:12:12]NVStorageSaveData done [20:12:12]ExternCall_PrintAddStr [20:12:12]wPrintStart [20:12:12]Write to MH i2c: 01 00 00 8A 3B C5 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 8A 3B 00 00 00 00 00 FF 0F DA [20:12:12]RasterBufferAndPrint [20:12:12]line Счет N : (1)2886592 [20:12:12]line ИНН: 02508201610067 [20:12:12]line Контрольно-Кассовый Чек [20:12:12]line ПРОДАЖА [20:12:12]line ТРК (МРК, ГНК) : 41 [20:12:12]line Товар: 2710194240 [20:12:12]line D-ENERGY Дт-К-2 [20:12:12]line 30.000 * 77.20 [20:12:12]line = 2316.00 [20:12:12]line НДС 12% НСП 1% [20:12:12]line > о реализуемом товаре [20:12:12]line ИТОГО: 2316.00 [20:12:12]line НСП 1% : 20.50 [20:12:12]line НДС 12% : 245.95 [20:12:12]line Наличными: 2316.00 [20:12:12]line Безнал.: 0.00 [20:12:12]line Место: АЗС № 85 "Партнер Нефть" [20:12:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:12:12]line СНО: Общий режим [20:12:12]line Чек 323 23.10.2024 20:12 [20:12:12]line Смена: 196 ФФД: 1.0 [20:12:12]line ЗНМ: 0300000167 [20:12:12]line РНМ: 0000000000156251 [20:12:12]line Версия ККМ: v1.0 [20:12:12]line ФМ: 0000000000963346 [20:12:12]line ФД: 70807 [20:12:12]line ФПД: 264419373737370 [20:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70807&fm=264419373737370&tin=02508201610067®Number=0000000000156251&sum=231600 [20:12:12]OFD Sender: Processing packet 70807 [packets to send 18, broken 17] [20:12:12]ProducePacketName [20:12:12]name=ofd_packets/00070807 [20:12:12]OFD Sender: To server: pG, [20:12:12]CommunicateWithHost lk.salyk.kg:30040 [20:12:12]ConnectInit lk.salyk.kg [20:12:12]written 0, free lines is 4095 [20:12:12]Connected sock=10 [20:12: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 15 01 00 00 0B 5E 0D 01 99 6E 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 30 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B0 88 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 88 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 60 00 00 00 00 07 04 06 00 B0 88 03 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 9D 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 F0 7C EE D7 E5 9A 12 66 51 1B 71 51 EF 91 [20:12: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 13 D1 47 00 F4 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 97 14 01 00 F4 03 04 00 39 02 19 67 B6 04 01 00 00 98 C7 0C BD FF 3A CC 09 [20:12:12]CommunicateWithHost err = 0 [20:12:12]CheckOFDResponse [20:12:12]1017 (14) - 77093643461234 [20:12:12]1041 (16) - 0000000000963346 [20:12:12]1040 (4) - 70807 [20:12:12]1012 (4) - 23.10.2024 14:03 [20:12:12]1206 (1) - 0 [20:12:12]OFD Sender: Remove packet 70807 [20:12:12]ProducePacketName [20:12:12]name=ofd_packets/00070807 [20:12:12]NVStorageDeleteData [20:12:12]Write to MH i2c: 01 00 00 B2 3B ED [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 B2 3B 00 00 00 00 00 1C 0D 1D [20:12:12]RasterBufferAndPrint [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]line [20:12:12]written 0, free lines is 3362 [20:12:12]MH_Cut [20:12:12]Write to MH i2c: D1 01 00 B9 3B 01 C6 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 01 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: D1 01 00 B9 3B 00 C5 [20:12:12]Write to MH i2c: 01 00 00 BA 3B F5 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:13]OFD Sender: No OFD packet to send [20:12:13]*** Cut start [20:12:13]*** Partial cut [20:12:13]*** CUTSNS_PIN = 1 [20:12:13]*** CUTSNS_PIN = 0 [20:12:13]*** Brake cut motor [20:12:14]Read from MH i2c: 01 [20:12:14]MH_I2C_Read... [20:12:14]*** Stop cut motor [20:12:14]*** Cut end [20:12:14]Read from MH i2c: 01 07 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: 01 07 00 BA 3B 00 00 00 00 00 FF 0F 0A [20:12:14]process_action close_receipt done [20:12:14]requested_data is exist [20:12:14]produce_requested_data [20:12:14]requested_item fm.sn is exist - process it [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 11 00 00 [20:12:14]Write to MH i2c: E2 08 00 BB 3B 80 11 00 00 00 00 00 00 70 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 17 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 17 00 BB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [20:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:14]wFMCommunicate OK [20:12:14]requested_item fd.num is exist - process it [20:12:14]SAM_PROTO_GetFieldsCounters [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 13 00 00 [20:12:14]Write to MH i2c: E2 08 00 BC 3B 80 13 00 00 00 00 00 00 73 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 62 00 BC 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 97 14 01 00 0E 04 04 00 C4 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 CA [20:12: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 97 14 01 00 0E 04 04 00 C4 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 [20:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetFieldsCounters done [20:12:14]requested_item shift.num is exist - process it [20:12:14]requested_item shift.opened is exist - process it [20:12:14]req_shift_opened [20:12:14]FM_GetShiftState [20:12:14]SAM_PROTO_GetShiftState [20:12:14]wFMCommunicate request_size=4 [20:12:14]MH_SAM_APDU [20:12:14]CAPDU: 80 13 01 00 [20:12:14]Write to MH i2c: E2 08 00 BD 3B 80 13 01 00 00 00 00 00 75 [20:12:14]Write i2c OK [20:12:14]MH_I2C_Read... [20:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:14]Read from MH i2c: E2 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 [20:12:14]MH_I2C_Read... [20:12:14]Read from MH i2c: E2 0E 00 BD 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 02 [20:12:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:12:14]wFMCommunicate OK [20:12:14]SAM_PROTO_GetShiftState done [20:12:14]FM_GetShiftState done [20:12:14]req_shift_opened done [20:12:14]requested_item shift.open_date is exist - process it [20:12:14]req_shift_open_date [20:12:14]req_shift_open_date done [20:12:14]produce_requested_data done [20:12:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70807,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:12:14]process_action_free close_receipt [20:12:14]json_value_free [20:12:14]json_value_free done [20:12:14]process_json_proto returns [20:12:14]Send response to host [20:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70807,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:12:14]free response buf [20:12:14]execute_script done [20:12:14]execute_script returns [20:12:14]free content buf [20:12:14]Sock 9.Close socket [20:12:14]Sock 9.Thread stoped [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:11]accept exits with 7 [20:13:11]New connection [20:13:11]New thread 3067034980 created [20:13:11]Thread 3066891620 joined [20:13:11]Waiting for new connection... [20:13:11] Sock 7.Parse request [20:13:11]Sock 7.Check first char [20:13:11]Sock 7.First char is OK [20:13:11]request: POST /json_proto HTTP/1.0 [20:13:11]Method: POST [20:13:11]URL: /json_proto [20:13:11]Method is POST - this is cgi request [20:13:11]url: /json_proto [20:13:11]query_string will be loaded in cgi processing [20:13:11]execute_cgi json_proto POST (null) [20:13:11]execute_cgi path=json_proto method=POST [20:13:11]POST find Content-Length [20:13:11]Host: 172.17.50.3:8080 [20:13:11]Content-Length: 678 [20:13:11]Content-Type: application/json [20:13:11] [20:13:11]POST finish read [20:13:11]Found Content-Length = 678 [20:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886594", "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" ] } } [20:13:11]execute_script... [20:13: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)2886594", "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" ] } } [20:13:11]POST & json_proto [20:13:11]process_json_proto [20:13:11]json parsed OK: [20:13:11]protocol is kg_v1.0 [20:13:11]action value=close_receipt [20:13:11]process_action close_receipt [20:13:11]cmd_close_receipt [20:13:11]MH_GetDate [20:13:11]Write to MH i2c: F0 00 00 BE 3B E8 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: F0 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: F0 09 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: F0 09 00 BE 3B 00 DA 58 19 67 6B 98 1E 66 2A [20:13:11]GetLastDocTimeStamp 1729714333 [20:13:11]current date 1729714394 [20:13:11]FM_GetShiftState [20:13:11]SAM_PROTO_GetShiftState [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 13 01 00 [20:13:11]Write to MH i2c: E2 08 00 BF 3B 80 13 01 00 00 00 00 00 77 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0E 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0E 00 BF 3B 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 04 [20:13:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:13:11]wFMCommunicate OK [20:13:11]SAM_PROTO_GetShiftState done [20:13:11]FM_GetShiftState done [20:13:11]opened in 1729642435 [20:13:11]opened+sec_in_day 1729728835 [20:13:11]quantity*price = 50010 [20:13:11]sum+1 = 50012 [20:13:11]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 СНО: Общий режим Чек 324 23.10.2024 20:13 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70808 ФПД: 182815982349985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70808&fm=182815982349985&tin=02508201610067®Number=0000000000156251&sum=50000 [20:13:12]StoreToDocumentArchive [20:13:12]shift 196 fd 70808 [20:13:12]save to /storage/0196/doc_00070808 [20:13:12]save last doc name /storage/0196/doc_00070808 to /storage/kkm_last_doc_name [20:13:12]save OK [20:13:12]Clear old archive folders... [20:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:12]tlvbuf is 001700F0 [20:13:12]SAM_PROTO_ClearQueue [20:13:12]wFMCommunicate request_size=4 [20:13:12]MH_SAM_APDU [20:13:12]CAPDU: 80 09 00 00 [20:13:12]Write to MH i2c: E2 08 00 CC 3B 80 09 00 00 00 00 00 00 79 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:12]Read from MH i2c: E2 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 03 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 03 00 CC 3B 00 90 00 7B [20:13:12]RAPDU: 90 00 [20:13:12]wFMCommunicate OK [20:13:12]SAM_PROTO_ClearQueue done [20:13:12]KKMCreateOFDPacket [20:13:12]OFDProtocolAddRootSTLVToBuf [20:13:12]FM_MakeSignedData [20:13:12]FM_MakeSignedData [20:13:12]SAM_PROTO_SignData [20:13:12]wFMCommunicate request_size=4 [20:13:12]MH_SAM_APDU [20:13:12]CAPDU: 80 0D 01 02 [20:13:12]Write to MH i2c: E2 08 00 CD 3B 80 0D 01 02 00 00 00 00 81 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:12]Read from MH i2c: E2 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 03 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 03 00 CD 3B 00 90 00 7C [20:13:12]RAPDU: 90 00 [20:13:12]wFMCommunicate OK [20:13:12]wFMCommunicate request_size=255 [20:13:12]MH_SAM_APDU [20:13: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 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 44 01 00 00 F4 03 04 00 DA 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A6 [20:13:12]Write to MH i2c: E2 02 01 CE 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 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 44 01 00 00 F4 03 04 00 DA 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A6 00 00 F0 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:13]Read from MH i2c: E2 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 03 00 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 03 00 CE 3B 00 90 00 7D [20:13:13]RAPDU: 90 00 [20:13:13]wFMCommunicate OK [20:13:13]wFMCommunicate request_size=10 [20:13:13]MH_SAM_APDU [20:13:13]CAPDU: 80 0D 02 02 05 45 29 AF EE A1 [20:13:13]Write to MH i2c: E2 0D 00 CF 3B 80 0D 02 02 05 00 45 29 AF EE A1 00 00 3A [20:13:13]Write i2c OK [20:13:13]MH_I2C_Read... [20:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:13]Read from MH i2c: E2 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 03 00 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 03 00 CF 3B 00 90 00 7E [20:13:13]RAPDU: 90 00 [20:13:13]wFMCommunicate OK [20:13:13]wFMCommunicate request_size=4 [20:13:13]MH_SAM_APDU [20:13:13]CAPDU: 80 0D 03 02 [20:13:13]Write to MH i2c: E2 08 00 D0 3B 80 0D 03 02 00 00 00 00 86 [20:13:13]Write i2c OK [20:13:13]MH_I2C_Read... [20:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:13]OFD Sender: No OFD packet to send [20:13:13]Read from MH i2c: E2 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 0B 00 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 0B 00 D0 3B 00 C4 89 2F 9B 76 8B A1 61 90 00 A1 [20:13:13]RAPDU: C4 89 2F 9B 76 8B A1 61 90 00 [20:13:13]wFMCommunicate OK [20:13:13]SAM_PROTO_SignData done [20:13:13]FM_MakeSignedData done [20:13:13]CreateOFDProtocolMessage [20:13:13]wFMCommunicate request_size=4 [20:13:13]MH_SAM_APDU [20:13:13]CAPDU: 80 11 00 00 [20:13:13]Write to MH i2c: E2 08 00 D1 3B 80 11 00 00 00 00 00 00 86 [20:13:13]Write i2c OK [20:13:13]MH_I2C_Read... [20:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:13]Read from MH i2c: E2 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 17 00 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: E2 17 00 D1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [20:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:13:13]wFMCommunicate OK [20:13:13]CreateOFDProtocolMessage done [20:13:13]OFDSenderStorePacket 70808 [20:13:13]StoreOFDPacket docnum=70808 [20:13: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 01 53 07 01 52 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 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 44 01 00 00 F4 03 04 00 DA 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A6 45 29 AF EE A1 C4 89 2F 9B 76 8B A1 61 [20:13:13]CheckFolder [20:13:13]dirname=/storage/ofd_packets [20:13:13]CheckFolder done [20:13:13]ProducePacketName [20:13:13]name=ofd_packets/00070808 [20:13:13]NVStorageSaveData ofd_packets/00070808 [20:13:13]File name is /storage/ofd_packets/00070808 [20:13:13]Write 301 bytes [20:13:13]NVStorageSaveData done [20:13:13]OFDSenderStorePacket done [20:13:13]KKMCreateOFDPacket done [20:13:13]NVStorageSaveData kkm_last_timestamp [20:13:13]File name is /storage/kkm_last_timestamp [20:13:13]Write 4 bytes [20:13:13]NVStorageSaveData done [20:13:13]ExternCall_PrintAddStr [20:13:13]wPrintStart [20:13:13]Write to MH i2c: 01 00 00 D2 3B 0D [20:13:13]Write i2c OK [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: 01 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: 01 07 00 [20:13:13]MH_I2C_Read... [20:13:13]Read from MH i2c: 01 07 00 D2 3B 00 00 00 00 00 FF 0F 22 [20:13:13]RasterBufferAndPrint [20:13:13]line Счет N : (1)2886594 [20:13:13]line ИНН: 02508201610067 [20:13:13]line Контрольно-Кассовый Чек [20:13:13]line ПРОДАЖА [20:13:13]line ТРК (МРК, ГНК) : 33 [20:13:13]line Товар: 2710124500 [20:13:13]line Аи-95-К-5 [20:13:13]line 6.740 * 74.20 [20:13:13]line = 500.11 [20:13:13]line НДС 12% НСП 1% [20:13:13]line > о реализуемом товаре [20:13:13]line ОКРУГЛЕНИЕ: -0.11 [20:13:13]line ИТОГО: 500.00 [20:13:13]line Внесено: 500.00 [20:13:13]line СДАЧА: 0.00 [20:13:13]line НСП 1% : 4.43 [20:13:13]line НДС 12% : 53.11 [20:13:13]line Наличными: 500.00 [20:13:13]line Безнал.: 0.00 [20:13:13]line Место: АЗС № 85 "Партнер Нефть" [20:13:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:13:13]line СНО: Общий режим [20:13:13]line Чек 324 23.10.2024 20:13 [20:13:13]line Смена: 196 ФФД: 1.0 [20:13:13]line ЗНМ: 0300000167 [20:13:13]line РНМ: 0000000000156251 [20:13:13]line Версия ККМ: v1.0 [20:13:13]line ФМ: 0000000000963346 [20:13:13]line ФД: 70808 [20:13:13]line ФПД: 182815982349985 [20:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70808&fm=182815982349985&tin=02508201610067®Number=0000000000156251&sum=50000 [20:13:13]OFD Sender: Processing packet 70808 [packets to send 18, broken 17] [20:13:13]ProducePacketName [20:13:13]name=ofd_packets/00070808 [20:13:13]OFD Sender: To server: pG, [20:13:13]CommunicateWithHost lk.salyk.kg:30040 [20:13:13]ConnectInit lk.salyk.kg [20:13:13]written 0, free lines is 4095 [20:13:13]Connected sock=10 [20:13: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 01 53 07 01 52 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 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 44 01 00 00 F4 03 04 00 DA 58 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A6 45 29 AF EE A1 C4 89 2F 9B 76 8B A1 61 [20:13: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 CE 88 47 00 5C 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 98 14 01 00 F4 03 04 00 77 02 19 67 B6 04 01 00 00 CD 6F A2 C3 7B 66 97 E6 [20:13:13]CommunicateWithHost err = 0 [20:13:13]CheckOFDResponse [20:13:13]1017 (14) - 77093643461234 [20:13:13]1041 (16) - 0000000000963346 [20:13:13]1040 (4) - 70808 [20:13:13]1012 (4) - 23.10.2024 14:04 [20:13:13]1206 (1) - 0 [20:13:13]OFD Sender: Remove packet 70808 [20:13:13]ProducePacketName [20:13:13]name=ofd_packets/00070808 [20:13:13]NVStorageDeleteData [20:13:14]Write to MH i2c: 01 00 00 FD 3B 38 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: 01 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: 01 07 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: 01 07 00 FD 3B 00 00 00 00 00 E7 0C 32 [20:13:14]RasterBufferAndPrint [20:13:14]line [20:13:14]line [20:13:14]line [20:13:14]line [20:13:14]line [20:13:14]written 0, free lines is 3310 [20:13:14]MH_Cut [20:13:14]Write to MH i2c: D1 01 00 04 3C 01 12 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: D1 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: D1 01 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: D1 01 00 04 3C 00 11 [20:13:14]Write to MH i2c: 01 00 00 05 3C 41 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]OFD Sender: No OFD packet to send [20:13:14]*** Cut start [20:13:14]*** Partial cut [20:13:14]*** CUTSNS_PIN = 1 [20:13:14]*** CUTSNS_PIN = 0 [20:13:15]*** Brake cut motor [20:13:15]Read from MH i2c: 01 [20:13:15]MH_I2C_Read... [20:13:15]*** Stop cut motor [20:13:15]*** Cut end [20:13:15]Read from MH i2c: 01 07 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: 01 07 00 05 3C 00 00 00 00 00 FF 0F 56 [20:13:15]process_action close_receipt done [20:13:15]requested_data is exist [20:13:15]produce_requested_data [20:13:15]requested_item fm.sn is exist - process it [20:13:15]wFMCommunicate request_size=4 [20:13:15]MH_SAM_APDU [20:13:15]CAPDU: 80 11 00 00 [20:13:15]Write to MH i2c: E2 08 00 06 3C 80 11 00 00 00 00 00 00 BC [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:15]Read from MH i2c: E2 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 17 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 17 00 06 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [20:13: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:13:15]wFMCommunicate OK [20:13:15]requested_item fd.num is exist - process it [20:13:15]SAM_PROTO_GetFieldsCounters [20:13:15]wFMCommunicate request_size=4 [20:13:15]MH_SAM_APDU [20:13:15]CAPDU: 80 13 00 00 [20:13:15]Write to MH i2c: E2 08 00 07 3C 80 13 00 00 00 00 00 00 BF [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:15]Read from MH i2c: E2 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 62 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 62 00 07 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 98 14 01 00 0E 04 04 00 C4 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 1A [20:13: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 98 14 01 00 0E 04 04 00 C4 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 [20:13:15]wFMCommunicate OK [20:13:15]SAM_PROTO_GetFieldsCounters done [20:13:15]requested_item shift.num is exist - process it [20:13:15]requested_item shift.opened is exist - process it [20:13:15]req_shift_opened [20:13:15]FM_GetShiftState [20:13:15]SAM_PROTO_GetShiftState [20:13:15]wFMCommunicate request_size=4 [20:13:15]MH_SAM_APDU [20:13:15]CAPDU: 80 13 01 00 [20:13:15]Write to MH i2c: E2 08 00 08 3C 80 13 01 00 00 00 00 00 C1 [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:15]Read from MH i2c: E2 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 0E 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 0E 00 08 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 4E [20:13:15]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:13:15]wFMCommunicate OK [20:13:15]SAM_PROTO_GetShiftState done [20:13:15]FM_GetShiftState done [20:13:15]req_shift_opened done [20:13:15]requested_item shift.open_date is exist - process it [20:13:15]req_shift_open_date [20:13:15]req_shift_open_date done [20:13:15]produce_requested_data done [20:13:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70808,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:13:15]process_action_free close_receipt [20:13:15]json_value_free [20:13:15]json_value_free done [20:13:15]process_json_proto returns [20:13:15]Send response to host [20:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70808,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:13:15]free response buf [20:13:15]execute_script done [20:13:15]execute_script returns [20:13:15]free content buf [20:13:15]Sock 7.Close socket [20:13:15]Sock 7.Thread stoped [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:07]accept exits with 9 [20:14:07]New connection [20:14:07]New thread 3066891620 created [20:14:07]Thread 3067034980 joined [20:14:07]Waiting for new connection... [20:14:07] Sock 9.Parse request [20:14:07]Sock 9.Check first char [20:14:07]Sock 9.First char is OK [20:14:07]request: POST /json_proto HTTP/1.0 [20:14:07]Method: POST [20:14:07]URL: /json_proto [20:14:07]Method is POST - this is cgi request [20:14:07]url: /json_proto [20:14:07]query_string will be loaded in cgi processing [20:14:07]execute_cgi json_proto POST (null) [20:14:07]execute_cgi path=json_proto method=POST [20:14:07]POST find Content-Length [20:14:07]Host: 172.17.50.3:8080 [20:14:07]Content-Length: 770 [20:14:07]Content-Type: application/json [20:14:07] [20:14:07]POST finish read [20:14:07]Found Content-Length = 770 [20:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886593", "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" : 37.740, "sum" : 2800.31, "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" : 2800.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:07]execute_script... [20:14: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)2886593", "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" : 37.740, "sum" : 2800.31, "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" : 2800.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:07]POST & json_proto [20:14:07]process_json_proto [20:14:07]json parsed OK: [20:14:07]protocol is kg_v1.0 [20:14:07]action value=close_receipt [20:14:07]process_action close_receipt [20:14:07]cmd_close_receipt [20:14:07]MH_GetDate [20:14:07]Write to MH i2c: F0 00 00 09 3C 34 [20:14:07]Write i2c OK [20:14:07]MH_I2C_Read... [20:14:07]Read from MH i2c: F0 [20:14:07]MH_I2C_Read... [20:14:07]Read from MH i2c: F0 09 00 [20:14:07]MH_I2C_Read... [20:14:07]Read from MH i2c: F0 09 00 09 3C 00 12 59 19 67 6B 98 1E 66 AF [20:14:07]GetLastDocTimeStamp 1729714394 [20:14:07]current date 1729714450 [20:14:07]FM_GetShiftState [20:14:07]SAM_PROTO_GetShiftState [20:14:07]wFMCommunicate request_size=4 [20:14:07]MH_SAM_APDU [20:14:07]CAPDU: 80 13 01 00 [20:14:07]Write to MH i2c: E2 08 00 0A 3C 80 13 01 00 00 00 00 00 C3 [20:14:07]Write i2c OK [20:14:07]MH_I2C_Read... [20:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:07]Read from MH i2c: E2 [20:14:07]MH_I2C_Read... [20:14:07]Read from MH i2c: E2 0E 00 [20:14:07]MH_I2C_Read... [20:14:07]Read from MH i2c: E2 0E 00 0A 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 50 [20:14:07]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:14:07]wFMCommunicate OK [20:14:07]SAM_PROTO_GetShiftState done [20:14:07]FM_GetShiftState done [20:14:07]opened in 1729642435 [20:14:07]opened+sec_in_day 1729728835 [20:14:07]quantity*price = 280030 [20:14:07]sum+1 = 280032 [20:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2800.31 НСП 1% : 24.78 НДС 12% : 297.38 Наличными: 0.00 Безнал.: 2800.31 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 325 23.10.2024 20:14 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70809 ФПД: 178903897358647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70809&fm=178903897358647&tin=02508201610067®Number=0000000000156251&sum=280031 [20:14:08]StoreToDocumentArchive [20:14:08]shift 196 fd 70809 [20:14:08]save to /storage/0196/doc_00070809 [20:14:08]save last doc name /storage/0196/doc_00070809 to /storage/kkm_last_doc_name [20:14:08]save OK [20:14:08]Clear old archive folders... [20:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:08]tlvbuf is 00223BC0 [20:14:08]SAM_PROTO_ClearQueue [20:14:08]wFMCommunicate request_size=4 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 09 00 00 [20:14:08]Write to MH i2c: E2 08 00 17 3C 80 09 00 00 00 00 00 00 C5 [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 17 3C 00 90 00 C7 [20:14:08]RAPDU: 90 00 [20:14:08]wFMCommunicate OK [20:14:08]SAM_PROTO_ClearQueue done [20:14:08]KKMCreateOFDPacket [20:14:08]OFDProtocolAddRootSTLVToBuf [20:14:08]FM_MakeSignedData [20:14:08]FM_MakeSignedData [20:14:08]SAM_PROTO_SignData [20:14:08]wFMCommunicate request_size=4 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 0D 01 02 [20:14:08]Write to MH i2c: E2 08 00 18 3C 80 0D 01 02 00 00 00 00 CD [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 18 3C 00 90 00 C8 [20:14:08]RAPDU: 90 00 [20:14:08]wFMCommunicate OK [20:14:08]wFMCommunicate request_size=255 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF 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 2A 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 12 59 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 [20:14:08]Write to MH i2c: E2 02 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF 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 2A 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 12 59 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 00 00 FE [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 19 3C 00 90 00 C9 [20:14:08]RAPDU: 90 00 [20:14:08]wFMCommunicate OK [20:14:08]wFMCommunicate request_size=10 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 0D 02 02 05 B6 4F 40 41 37 [20:14:08]Write to MH i2c: E2 0D 00 1A 3C 80 0D 02 02 05 00 B6 4F 40 41 37 00 00 97 [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 03 00 1A 3C 00 90 00 CA [20:14:08]RAPDU: 90 00 [20:14:08]wFMCommunicate OK [20:14:08]wFMCommunicate request_size=4 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 0D 03 02 [20:14:08]Write to MH i2c: E2 08 00 1B 3C 80 0D 03 02 00 00 00 00 D2 [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 0B 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 0B 00 1B 3C 00 C0 5B A4 55 E2 EF F4 4F 90 00 FB [20:14:08]RAPDU: C0 5B A4 55 E2 EF F4 4F 90 00 [20:14:08]wFMCommunicate OK [20:14:08]SAM_PROTO_SignData done [20:14:08]FM_MakeSignedData done [20:14:08]CreateOFDProtocolMessage [20:14:08]wFMCommunicate request_size=4 [20:14:08]MH_SAM_APDU [20:14:08]CAPDU: 80 11 00 00 [20:14:08]Write to MH i2c: E2 08 00 1C 3C 80 11 00 00 00 00 00 00 D2 [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:08]Read from MH i2c: E2 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 17 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: E2 17 00 1C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [20:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:14:08]wFMCommunicate OK [20:14:08]CreateOFDProtocolMessage done [20:14:08]OFDSenderStorePacket 70809 [20:14:08]StoreOFDPacket docnum=70809 [20:14: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 98 87 07 01 5C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF 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 2A 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 12 59 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 B6 4F 40 41 37 C0 5B A4 55 E2 EF F4 4F [20:14:08]CheckFolder [20:14:08]dirname=/storage/ofd_packets [20:14:08]CheckFolder done [20:14:08]ProducePacketName [20:14:08]name=ofd_packets/00070809 [20:14:08]NVStorageSaveData ofd_packets/00070809 [20:14:08]File name is /storage/ofd_packets/00070809 [20:14:08]Write 301 bytes [20:14:08]NVStorageSaveData done [20:14:08]OFDSenderStorePacket done [20:14:08]KKMCreateOFDPacket done [20:14:08]NVStorageSaveData kkm_last_timestamp [20:14:08]File name is /storage/kkm_last_timestamp [20:14:08]Write 4 bytes [20:14:08]NVStorageSaveData done [20:14:08]ExternCall_PrintAddStr [20:14:08]wPrintStart [20:14:08]Write to MH i2c: 01 00 00 1D 3C 59 [20:14:08]Write i2c OK [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: 01 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: 01 07 00 [20:14:08]MH_I2C_Read... [20:14:08]Read from MH i2c: 01 07 00 1D 3C 00 00 00 00 00 FF 0F 6E [20:14:08]RasterBufferAndPrint [20:14:08]line Счет N : (1)2886593 [20:14:08]line ИНН: 02508201610067 [20:14:08]line Контрольно-Кассовый Чек [20:14:08]line ПРОДАЖА [20:14:08]line ТРК (МРК, ГНК) : 13 [20:14:08]line Товар: 2710124500 [20:14:08]line Аи-95-К-5 [20:14:08]line 37.740 * 74.20 [20:14:08]line = 2800.31 [20:14:08]line НДС 12% НСП 1% [20:14:08]line > о реализуемом товаре [20:14:08]line ИТОГО: 2800.31 [20:14:08]line НСП 1% : 24.78 [20:14:08]line НДС 12% : 297.38 [20:14:08]line Наличными: 0.00 [20:14:08]line Безнал.: 2800.31 [20:14:08]line Место: АЗС № 85 "Партнер Нефть" [20:14:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:14:08]line СНО: Общий режим [20:14:08]line Чек 325 23.10.2024 20:14 [20:14:08]line Смена: 196 ФФД: 1.0 [20:14:08]line ЗНМ: 0300000167 [20:14:08]line РНМ: 0000000000156251 [20:14:08]line Версия ККМ: v1.0 [20:14:08]line Платежная система: Mbank [20:14:08]line ФМ: 0000000000963346 [20:14:08]line ФД: 70809 [20:14:08]line ФПД: 178903897358647 [20:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201410&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70809&fm=178903897358647&tin=02508201610067®Number=0000000000156251&sum=280031 [20:14:09]OFD Sender: Processing packet 70809 [packets to send 18, broken 17] [20:14:09]ProducePacketName [20:14:09]name=ofd_packets/00070809 [20:14:09]OFD Sender: To server: pG, [20:14:09]CommunicateWithHost lk.salyk.kg:30040 [20:14:09]ConnectInit lk.salyk.kg [20:14:09]written 0, free lines is 4095 [20:14:09]Connected sock=10 [20:14: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 98 87 07 01 5C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF 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 2A 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 12 59 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A2 B6 4F 40 41 37 C0 5B A4 55 E2 EF F4 4F [20:14: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 44 D9 47 00 4B 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 99 14 01 00 F4 03 04 00 AE 02 19 67 B6 04 01 00 00 AB 62 78 42 15 EE FD 6E [20:14:09]CommunicateWithHost err = 0 [20:14:09]CheckOFDResponse [20:14:09]1017 (14) - 77093643461234 [20:14:09]1041 (16) - 0000000000963346 [20:14:09]1040 (4) - 70809 [20:14:09]1012 (4) - 23.10.2024 14:05 [20:14:09]1206 (1) - 0 [20:14:09]OFD Sender: Remove packet 70809 [20:14:09]ProducePacketName [20:14:09]name=ofd_packets/00070809 [20:14:09]NVStorageDeleteData [20:14:09]Write to MH i2c: 01 00 00 46 3C 82 [20:14:09]Write i2c OK [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: 01 [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: 01 07 00 [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: 01 07 00 46 3C 00 00 00 00 00 19 0D AF [20:14:09]RasterBufferAndPrint [20:14:09]line [20:14:09]line [20:14:09]line [20:14:09]line [20:14:09]line [20:14:09]written 0, free lines is 3359 [20:14:09]MH_Cut [20:14:09]Write to MH i2c: D1 01 00 4D 3C 01 5B [20:14:09]Write i2c OK [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: D1 [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: D1 01 00 [20:14:09]MH_I2C_Read... [20:14:09]Read from MH i2c: D1 01 00 4D 3C 00 5A [20:14:09]Write to MH i2c: 01 00 00 4E 3C 8A [20:14:09]Write i2c OK [20:14:09]MH_I2C_Read... [20:14:10]OFD Sender: No OFD packet to send [20:14:10]*** Cut start [20:14:10]*** Partial cut [20:14:10]*** CUTSNS_PIN = 1 [20:14:10]*** CUTSNS_PIN = 0 [20:14:10]*** Brake cut motor [20:14:11]Read from MH i2c: 01 [20:14:11]MH_I2C_Read... [20:14:11]*** Stop cut motor [20:14:11]*** Cut end [20:14:11]Read from MH i2c: 01 07 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: 01 07 00 4E 3C 00 00 00 00 00 FF 0F 9F [20:14:11]process_action close_receipt done [20:14:11]requested_data is exist [20:14:11]produce_requested_data [20:14:11]requested_item fm.sn is exist - process it [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 11 00 00 [20:14:11]Write to MH i2c: E2 08 00 4F 3C 80 11 00 00 00 00 00 00 05 [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 17 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 17 00 4F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [20:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:14:11]wFMCommunicate OK [20:14:11]requested_item fd.num is exist - process it [20:14:11]SAM_PROTO_GetFieldsCounters [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 13 00 00 [20:14:11]Write to MH i2c: E2 08 00 50 3C 80 13 00 00 00 00 00 00 08 [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 62 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 62 00 50 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 99 14 01 00 0E 04 04 00 C4 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 67 [20:14: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 99 14 01 00 0E 04 04 00 C4 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 [20:14:11]wFMCommunicate OK [20:14:11]SAM_PROTO_GetFieldsCounters done [20:14:11]requested_item shift.num is exist - process it [20:14:11]requested_item shift.opened is exist - process it [20:14:11]req_shift_opened [20:14:11]FM_GetShiftState [20:14:11]SAM_PROTO_GetShiftState [20:14:11]wFMCommunicate request_size=4 [20:14:11]MH_SAM_APDU [20:14:11]CAPDU: 80 13 01 00 [20:14:11]Write to MH i2c: E2 08 00 51 3C 80 13 01 00 00 00 00 00 0A [20:14:11]Write i2c OK [20:14:11]MH_I2C_Read... [20:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:11]Read from MH i2c: E2 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 0E 00 [20:14:11]MH_I2C_Read... [20:14:11]Read from MH i2c: E2 0E 00 51 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 97 [20:14:11]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:14:11]wFMCommunicate OK [20:14:11]SAM_PROTO_GetShiftState done [20:14:11]FM_GetShiftState done [20:14:11]req_shift_opened done [20:14:11]requested_item shift.open_date is exist - process it [20:14:11]req_shift_open_date [20:14:11]req_shift_open_date done [20:14:11]produce_requested_data done [20:14:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70809,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:14:11]process_action_free close_receipt [20:14:11]json_value_free [20:14:11]json_value_free done [20:14:11]process_json_proto returns [20:14:11]Send response to host [20:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70809,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:14:11]free response buf [20:14:11]execute_script done [20:14:11]execute_script returns [20:14:11]free content buf [20:14:11]Sock 9.Close socket [20:14:11]Sock 9.Thread stoped [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:16]accept exits with 7 [20:18:16]New connection [20:18:16]New thread 3067034980 created [20:18:16]Thread 3066891620 joined [20:18:16]Waiting for new connection... [20:18:16] Sock 7.Parse request [20:18:16]Sock 7.Check first char [20:18:16]Sock 7.First char is OK [20:18:16]request: POST /json_proto HTTP/1.0 [20:18:16]Method: POST [20:18:16]URL: /json_proto [20:18:16]Method is POST - this is cgi request [20:18:16]url: /json_proto [20:18:16]query_string will be loaded in cgi processing [20:18:16]execute_cgi json_proto POST (null) [20:18:16]execute_cgi path=json_proto method=POST [20:18:16]POST find Content-Length [20:18:16]Host: 172.17.50.3:8080 [20:18:16]Content-Length: 773 [20:18:16]Content-Type: application/json [20:18:16] [20:18:16]POST finish read [20:18:16]Found Content-Length = 773 [20:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886595", "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.570, "sum" : 1189.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" : 1189.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:16]execute_script... [20:18: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)2886595", "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.570, "sum" : 1189.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" : 1189.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:16]POST & json_proto [20:18:16]process_json_proto [20:18:16]json parsed OK: [20:18:16]protocol is kg_v1.0 [20:18:16]action value=close_receipt [20:18:16]process_action close_receipt [20:18:16]cmd_close_receipt [20:18:16]MH_GetDate [20:18:16]Write to MH i2c: F0 00 00 52 3C 7D [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 09 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 09 00 52 3C 00 0B 5A 19 67 6B 98 1E 66 F2 [20:18:16]GetLastDocTimeStamp 1729714450 [20:18:16]current date 1729714699 [20:18:16]FM_GetShiftState [20:18:16]SAM_PROTO_GetShiftState [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 13 01 00 [20:18:16]Write to MH i2c: E2 08 00 53 3C 80 13 01 00 00 00 00 00 0C [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 53 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 99 [20:18:16]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_GetShiftState done [20:18:16]FM_GetShiftState done [20:18:16]opened in 1729642435 [20:18:16]opened+sec_in_day 1729728835 [20:18:16]quantity*price = 118917 [20:18:16]sum+1 = 118918 [20:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1189.17 НСП 1% : 10.52 НДС 12% : 126.28 Наличными: 0.00 Безнал.: 1189.17 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 326 23.10.2024 20:18 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70810 ФПД: 128037029016113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70810&fm=128037029016113&tin=02508201610067®Number=0000000000156251&sum=118917 [20:18:17]StoreToDocumentArchive [20:18:17]shift 196 fd 70810 [20:18:17]save to /storage/0196/doc_00070810 [20:18:17]save last doc name /storage/0196/doc_00070810 to /storage/kkm_last_doc_name [20:18:17]save OK [20:18:17]Clear old archive folders... [20:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:18:17]tlvbuf is 001DECC0 [20:18:17]SAM_PROTO_ClearQueue [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 09 00 00 [20:18:17]Write to MH i2c: E2 08 00 60 3C 80 09 00 00 00 00 00 00 0E [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:17]Read from MH i2c: E2 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 60 3C 00 90 00 10 [20:18:17]RAPDU: 90 00 [20:18:17]wFMCommunicate OK [20:18:17]SAM_PROTO_ClearQueue done [20:18:17]KKMCreateOFDPacket [20:18:17]OFDProtocolAddRootSTLVToBuf [20:18:17]FM_MakeSignedData [20:18:17]FM_MakeSignedData [20:18:17]SAM_PROTO_SignData [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 0D 01 02 [20:18:17]Write to MH i2c: E2 08 00 61 3C 80 0D 01 02 00 00 00 00 16 [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 61 3C 00 90 00 11 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=255 [20:18:18]MH_SAM_APDU [20:18:18]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 6A 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 0B 5A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 74 72 [20:18:18]Write to MH i2c: E2 02 01 62 3C 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 6A 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 0B 5A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 74 72 00 00 16 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 62 3C 00 90 00 12 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=9 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 0D 02 02 04 F1 A1 F2 31 [20:18:18]Write to MH i2c: E2 0C 00 63 3C 80 0D 02 02 04 00 F1 A1 F2 31 00 00 D6 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 63 3C 00 90 00 13 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 0D 03 02 [20:18:18]Write to MH i2c: E2 08 00 64 3C 80 0D 03 02 00 00 00 00 1B [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0B 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0B 00 64 3C 00 2E 5D 58 0A 3A B2 ED 6B 90 00 4D [20:18:18]RAPDU: 2E 5D 58 0A 3A B2 ED 6B 90 00 [20:18:18]wFMCommunicate OK [20:18:18]SAM_PROTO_SignData done [20:18:18]FM_MakeSignedData done [20:18:18]CreateOFDProtocolMessage [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 11 00 00 [20:18:18]Write to MH i2c: E2 08 00 65 3C 80 11 00 00 00 00 00 00 1B [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 65 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [20:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:18:18]wFMCommunicate OK [20:18:18]CreateOFDProtocolMessage done [20:18:18]OFDSenderStorePacket 70810 [20:18:18]StoreOFDPacket docnum=70810 [20:18: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 05 8D 06 01 F8 53 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 6A 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 0B 5A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 74 72 F1 A1 F2 31 2E 5D 58 0A 3A B2 ED 6B [20:18:18]CheckFolder [20:18:18]dirname=/storage/ofd_packets [20:18:18]CheckFolder done [20:18:18]ProducePacketName [20:18:18]name=ofd_packets/00070810 [20:18:18]NVStorageSaveData ofd_packets/00070810 [20:18:18]File name is /storage/ofd_packets/00070810 [20:18:18]Write 300 bytes [20:18:18]NVStorageSaveData done [20:18:18]OFDSenderStorePacket done [20:18:18]KKMCreateOFDPacket done [20:18:18]NVStorageSaveData kkm_last_timestamp [20:18:18]File name is /storage/kkm_last_timestamp [20:18:18]Write 4 bytes [20:18:18]NVStorageSaveData done [20:18:18]ExternCall_PrintAddStr [20:18:18]wPrintStart [20:18:18]Write to MH i2c: 01 00 00 66 3C A2 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 66 3C 00 00 00 00 00 FF 0F B7 [20:18:18]RasterBufferAndPrint [20:18:18]line Счет N : (1)2886595 [20:18:18]line ИНН: 02508201610067 [20:18:18]line Контрольно-Кассовый Чек [20:18:18]line ПРОДАЖА [20:18:18]line ТРК (МРК, ГНК) : 71 [20:18:18]line Товар: 2711129700 [20:18:18]line ГАЗ-К-3 [20:18:18]line 30.570 * 38.90 [20:18:18]line = 1189.17 [20:18:18]line НДС 12% НСП 1% [20:18:18]line > о реализуемом товаре [20:18:18]line ИТОГО: 1189.17 [20:18:18]line НСП 1% : 10.52 [20:18:18]line НДС 12% : 126.28 [20:18:18]line Наличными: 0.00 [20:18:18]line Безнал.: 1189.17 [20:18:18]line Место: АЗС № 85 "Партнер Нефть" [20:18:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:18:18]line СНО: Общий режим [20:18:18]line Чек 326 23.10.2024 20:18 [20:18:18]line Смена: 196 ФФД: 1.0 [20:18:18]line ЗНМ: 0300000167 [20:18:18]line РНМ: 0000000000156251 [20:18:18]line Версия ККМ: v1.0 [20:18:18]line Платежная система: Mbank [20:18:18]line ФМ: 0000000000963346 [20:18:18]line ФД: 70810 [20:18:18]line ФПД: 128037029016113 [20:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70810&fm=128037029016113&tin=02508201610067®Number=0000000000156251&sum=118917 [20:18:18]OFD Sender: Processing packet 70810 [packets to send 18, broken 17] [20:18:18]ProducePacketName [20:18:18]name=ofd_packets/00070810 [20:18:18]OFD Sender: To server: pG, [20:18:18]CommunicateWithHost lk.salyk.kg:30040 [20:18:18]ConnectInit lk.salyk.kg [20:18:18]written 0, free lines is 4095 [20:18:18]Connected sock=10 [20:18: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 05 8D 06 01 F8 53 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 6A 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 0B 5A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 74 72 F1 A1 F2 31 2E 5D 58 0A 3A B2 ED 6B [20:18: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 A4 BE 47 00 BC 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 A8 03 19 67 B6 04 01 00 00 A2 D9 7A 7C 8A 32 8C FC [20:18:19]CommunicateWithHost err = 0 [20:18:19]CheckOFDResponse [20:18:19]1017 (14) - 77093643461234 [20:18:19]1041 (16) - 0000000000963346 [20:18:19]1040 (4) - 70810 [20:18:19]1012 (4) - 23.10.2024 14:09 [20:18:19]1206 (1) - 0 [20:18:19]OFD Sender: Remove packet 70810 [20:18:19]ProducePacketName [20:18:19]name=ofd_packets/00070810 [20:18:19]NVStorageDeleteData [20:18:19]Write to MH i2c: 01 00 00 8F 3C CB [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 07 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 07 00 8F 3C 00 00 00 00 00 0C 0D EB [20:18:19]RasterBufferAndPrint [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]written 0, free lines is 3346 [20:18:19]MH_Cut [20:18:19]Write to MH i2c: D1 01 00 96 3C 01 A4 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 01 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 01 00 96 3C 00 A3 [20:18:19]Write to MH i2c: 01 00 00 97 3C D3 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]OFD Sender: No OFD packet to send [20:18:19]*** Cut start [20:18:19]*** Partial cut [20:18:19]*** CUTSNS_PIN = 1 [20:18:19]*** CUTSNS_PIN = 0 [20:18:20]*** Brake cut motor [20:18:20]Read from MH i2c: 01 [20:18:20]MH_I2C_Read... [20:18:20]*** Stop cut motor [20:18:20]*** Cut end [20:18:20]Read from MH i2c: 01 07 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: 01 07 00 97 3C 00 00 00 00 00 FF 0F E8 [20:18:20]process_action close_receipt done [20:18:20]requested_data is exist [20:18:20]produce_requested_data [20:18:20]requested_item fm.sn is exist - process it [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 11 00 00 [20:18:20]Write to MH i2c: E2 08 00 98 3C 80 11 00 00 00 00 00 00 4E [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 17 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 17 00 98 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [20:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:18:20]wFMCommunicate OK [20:18:20]requested_item fd.num is exist - process it [20:18:20]SAM_PROTO_GetFieldsCounters [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 00 00 [20:18:20]Write to MH i2c: E2 08 00 99 3C 80 13 00 00 00 00 00 00 51 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 62 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 62 00 99 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 9A 14 01 00 0E 04 04 00 C4 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 B4 [20:18: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 9A 14 01 00 0E 04 04 00 C4 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 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetFieldsCounters done [20:18:20]requested_item shift.num is exist - process it [20:18:20]requested_item shift.opened is exist - process it [20:18:20]req_shift_opened [20:18:20]FM_GetShiftState [20:18:20]SAM_PROTO_GetShiftState [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 01 00 [20:18:20]Write to MH i2c: E2 08 00 9A 3C 80 13 01 00 00 00 00 00 53 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 9A 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E0 [20:18:20]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetShiftState done [20:18:20]FM_GetShiftState done [20:18:20]req_shift_opened done [20:18:20]requested_item shift.open_date is exist - process it [20:18:20]req_shift_open_date [20:18:20]req_shift_open_date done [20:18:20]produce_requested_data done [20:18:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70810,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:18:20]process_action_free close_receipt [20:18:20]json_value_free [20:18:20]json_value_free done [20:18:20]process_json_proto returns [20:18:20]Send response to host [20:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70810,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:18:20]free response buf [20:18:20]execute_script done [20:18:20]execute_script returns [20:18:20]free content buf [20:18:20]Sock 7.Close socket [20:18:20]Sock 7.Thread stoped [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:10]accept exits with 9 [20:28:10]New connection [20:28:10]New thread 3066891620 created [20:28:10]Thread 3067034980 joined [20:28:10]Waiting for new connection... [20:28:10] Sock 9.Parse request [20:28:10]Sock 9.Check first char [20:28:10]Sock 9.First char is OK [20:28:10]request: POST /json_proto HTTP/1.0 [20:28:10]Method: POST [20:28:10]URL: /json_proto [20:28:10]Method is POST - this is cgi request [20:28:10]url: /json_proto [20:28:10]query_string will be loaded in cgi processing [20:28:10]execute_cgi json_proto POST (null) [20:28:10]execute_cgi path=json_proto method=POST [20:28:10]POST find Content-Length [20:28:10]Host: 172.17.50.3:8080 [20:28:10]Content-Length: 678 [20:28:10]Content-Type: application/json [20:28:10] [20:28:10]POST finish read [20:28:10]Found Content-Length = 678 [20:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886596", "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" ] } } [20:28:10]execute_script... [20:28: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)2886596", "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" ] } } [20:28:10]POST & json_proto [20:28:10]process_json_proto [20:28:10]json parsed OK: [20:28:10]protocol is kg_v1.0 [20:28:10]action value=close_receipt [20:28:10]process_action close_receipt [20:28:10]cmd_close_receipt [20:28:10]MH_GetDate [20:28:10]Write to MH i2c: F0 00 00 9B 3C C6 [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 09 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: F0 09 00 9B 3C 00 5D 5C 19 67 6B 98 1E 66 8F [20:28:10]GetLastDocTimeStamp 1729714699 [20:28:10]current date 1729715293 [20:28:10]FM_GetShiftState [20:28:10]SAM_PROTO_GetShiftState [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 13 01 00 [20:28:10]Write to MH i2c: E2 08 00 9C 3C 80 13 01 00 00 00 00 00 55 [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0E 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0E 00 9C 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 E2 [20:28:10]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:28:10]wFMCommunicate OK [20:28:10]SAM_PROTO_GetShiftState done [20:28:10]FM_GetShiftState done [20:28:10]opened in 1729642435 [20:28:10]opened+sec_in_day 1729728835 [20:28:10]quantity*price = 30038 [20:28:10]sum+1 = 30039 [20:28:10]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 СНО: Общий режим Чек 327 23.10.2024 20:28 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70811 ФПД: 210269835823772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70811&fm=210269835823772&tin=02508201610067®Number=0000000000156251&sum=30000 [20:28:11]StoreToDocumentArchive [20:28:11]shift 196 fd 70811 [20:28:11]save to /storage/0196/doc_00070811 [20:28:11]save last doc name /storage/0196/doc_00070811 to /storage/kkm_last_doc_name [20:28:11]save OK [20:28:11]Clear old archive folders... [20:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:11]tlvbuf is 001798B0 [20:28:11]SAM_PROTO_ClearQueue [20:28:11]wFMCommunicate request_size=4 [20:28:11]MH_SAM_APDU [20:28:11]CAPDU: 80 09 00 00 [20:28:11]Write to MH i2c: E2 08 00 A9 3C 80 09 00 00 00 00 00 00 57 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 A9 3C 00 90 00 59 [20:28:11]RAPDU: 90 00 [20:28:11]wFMCommunicate OK [20:28:11]SAM_PROTO_ClearQueue done [20:28:11]KKMCreateOFDPacket [20:28:11]OFDProtocolAddRootSTLVToBuf [20:28:11]FM_MakeSignedData [20:28:11]FM_MakeSignedData [20:28:11]SAM_PROTO_SignData [20:28:11]wFMCommunicate request_size=4 [20:28:11]MH_SAM_APDU [20:28:11]CAPDU: 80 0D 01 02 [20:28:11]Write to MH i2c: E2 08 00 AA 3C 80 0D 01 02 00 00 00 00 5F [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 AA 3C 00 90 00 5A [20:28:11]RAPDU: 90 00 [20:28:11]wFMCommunicate OK [20:28:11]wFMCommunicate request_size=255 [20:28:11]MH_SAM_APDU [20:28: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 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 47 01 00 00 F4 03 04 00 5D 5C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BF [20:28:11]Write to MH i2c: E2 02 01 AB 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 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 47 01 00 00 F4 03 04 00 5D 5C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BF 00 00 90 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 AB 3C 00 90 00 5B [20:28:11]RAPDU: 90 00 [20:28:11]wFMCommunicate OK [20:28:11]wFMCommunicate request_size=10 [20:28:11]MH_SAM_APDU [20:28:11]CAPDU: 80 0D 02 02 05 3D 42 DF 0A 9C [20:28:11]Write to MH i2c: E2 0D 00 AC 3C 80 0D 02 02 05 00 3D 42 DF 0A 9C 00 00 70 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 03 00 AC 3C 00 90 00 5C [20:28:11]RAPDU: 90 00 [20:28:11]wFMCommunicate OK [20:28:11]wFMCommunicate request_size=4 [20:28:11]MH_SAM_APDU [20:28:11]CAPDU: 80 0D 03 02 [20:28:11]Write to MH i2c: E2 08 00 AD 3C 80 0D 03 02 00 00 00 00 64 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 0B 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 0B 00 AD 3C 00 3D 1A ED BD A3 F1 3D 03 90 00 3A [20:28:11]RAPDU: 3D 1A ED BD A3 F1 3D 03 90 00 [20:28:11]wFMCommunicate OK [20:28:11]SAM_PROTO_SignData done [20:28:11]FM_MakeSignedData done [20:28:11]CreateOFDProtocolMessage [20:28:11]wFMCommunicate request_size=4 [20:28:11]MH_SAM_APDU [20:28:11]CAPDU: 80 11 00 00 [20:28:11]Write to MH i2c: E2 08 00 AE 3C 80 11 00 00 00 00 00 00 64 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:11]Read from MH i2c: E2 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 17 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: E2 17 00 AE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [20:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:11]wFMCommunicate OK [20:28:11]CreateOFDProtocolMessage done [20:28:11]OFDSenderStorePacket 70811 [20:28:11]StoreOFDPacket docnum=70811 [20:28: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 26 8E 07 01 5B 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 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 47 01 00 00 F4 03 04 00 5D 5C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BF 3D 42 DF 0A 9C 3D 1A ED BD A3 F1 3D 03 [20:28:11]CheckFolder [20:28:11]dirname=/storage/ofd_packets [20:28:11]CheckFolder done [20:28:11]ProducePacketName [20:28:11]name=ofd_packets/00070811 [20:28:11]NVStorageSaveData ofd_packets/00070811 [20:28:11]File name is /storage/ofd_packets/00070811 [20:28:11]Write 301 bytes [20:28:11]NVStorageSaveData done [20:28:11]OFDSenderStorePacket done [20:28:11]KKMCreateOFDPacket done [20:28:11]NVStorageSaveData kkm_last_timestamp [20:28:11]File name is /storage/kkm_last_timestamp [20:28:11]Write 4 bytes [20:28:11]NVStorageSaveData done [20:28:11]ExternCall_PrintAddStr [20:28:11]wPrintStart [20:28:11]Write to MH i2c: 01 00 00 AF 3C EB [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 AF 3C 00 00 00 00 00 FF 0F 00 [20:28:11]RasterBufferAndPrint [20:28:11]line Счет N : (1)2886596 [20:28:11]line ИНН: 02508201610067 [20:28:11]line Контрольно-Кассовый Чек [20:28:11]line ПРОДАЖА [20:28:11]line ТРК (МРК, ГНК) : 42 [20:28:11]line Товар: 2710124130 [20:28:11]line Аи-92-К-5 [20:28:11]line 4.490 * 66.90 [20:28:11]line = 300.38 [20:28:11]line НДС 12% НСП 1% [20:28:11]line > о реализуемом товаре [20:28:11]line ОКРУГЛЕНИЕ: -0.38 [20:28:11]line ИТОГО: 300.00 [20:28:11]line Внесено: 300.00 [20:28:11]line СДАЧА: 0.00 [20:28:11]line НСП 1% : 2.66 [20:28:11]line НДС 12% : 31.90 [20:28:11]line Наличными: 300.00 [20:28:11]line Безнал.: 0.00 [20:28:11]line Место: АЗС № 85 "Партнер Нефть" [20:28:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:28:11]line СНО: Общий режим [20:28:11]line Чек 327 23.10.2024 20:28 [20:28:11]line Смена: 196 ФФД: 1.0 [20:28:11]line ЗНМ: 0300000167 [20:28:11]line РНМ: 0000000000156251 [20:28:11]line Версия ККМ: v1.0 [20:28:11]line ФМ: 0000000000963346 [20:28:11]line ФД: 70811 [20:28:11]line ФПД: 210269835823772 [20:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70811&fm=210269835823772&tin=02508201610067®Number=0000000000156251&sum=30000 [20:28:12]OFD Sender: Processing packet 70811 [packets to send 18, broken 17] [20:28:12]ProducePacketName [20:28:12]name=ofd_packets/00070811 [20:28:12]OFD Sender: To server: pG, [20:28:12]CommunicateWithHost lk.salyk.kg:30040 [20:28:12]ConnectInit lk.salyk.kg [20:28:12]written 0, free lines is 4095 [20:28:12]Connected sock=10 [20:28: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 26 8E 07 01 5B 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 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 47 01 00 00 F4 03 04 00 5D 5C 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 BF 3D 42 DF 0A 9C 3D 1A ED BD A3 F1 3D 03 [20:28: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 BC F6 47 00 F4 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 9B 14 01 00 F4 03 04 00 F9 05 19 67 B6 04 01 00 00 AF 07 61 95 CF C0 FE DA [20:28:12]CommunicateWithHost err = 0 [20:28:12]CheckOFDResponse [20:28:12]1017 (14) - 77093643461234 [20:28:12]1041 (16) - 0000000000963346 [20:28:12]1040 (4) - 70811 [20:28:12]1012 (4) - 23.10.2024 14:19 [20:28:12]1206 (1) - 0 [20:28:12]OFD Sender: Remove packet 70811 [20:28:12]ProducePacketName [20:28:12]name=ofd_packets/00070811 [20:28:12]NVStorageDeleteData [20:28:12]Write to MH i2c: 01 00 00 DA 3C 16 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: 01 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: 01 07 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: 01 07 00 DA 3C 00 00 00 00 00 EC 0C 15 [20:28:12]RasterBufferAndPrint [20:28:12]line [20:28:12]line [20:28:12]line [20:28:12]line [20:28:12]line [20:28:12]written 0, free lines is 3314 [20:28:12]MH_Cut [20:28:12]Write to MH i2c: D1 01 00 E1 3C 01 EF [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: D1 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: D1 01 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: D1 01 00 E1 3C 00 EE [20:28:12]Write to MH i2c: 01 00 00 E2 3C 1E [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:13]OFD Sender: No OFD packet to send [20:28:13]*** Cut start [20:28:13]*** Partial cut [20:28:13]*** CUTSNS_PIN = 1 [20:28:13]*** CUTSNS_PIN = 0 [20:28:13]*** Brake cut motor [20:28:13]Read from MH i2c: 01 [20:28:13]MH_I2C_Read... [20:28:13]*** Stop cut motor [20:28:13]*** Cut end [20:28:13]Read from MH i2c: 01 07 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 E2 3C 00 00 00 00 00 FF 0F 33 [20:28:13]process_action close_receipt done [20:28:13]requested_data is exist [20:28:13]produce_requested_data [20:28:13]requested_item fm.sn is exist - process it [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 11 00 00 [20:28:13]Write to MH i2c: E2 08 00 E3 3C 80 11 00 00 00 00 00 00 99 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 E3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [20:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:14]wFMCommunicate OK [20:28:14]requested_item fd.num is exist - process it [20:28:14]SAM_PROTO_GetFieldsCounters [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 13 00 00 [20:28:14]Write to MH i2c: E2 08 00 E4 3C 80 13 00 00 00 00 00 00 9C [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 62 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 62 00 E4 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 9B 14 01 00 0E 04 04 00 C4 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 03 [20:28: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 9B 14 01 00 0E 04 04 00 C4 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 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_GetFieldsCounters done [20:28:14]requested_item shift.num is exist - process it [20:28:14]requested_item shift.opened is exist - process it [20:28:14]req_shift_opened [20:28:14]FM_GetShiftState [20:28:14]SAM_PROTO_GetShiftState [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 13 01 00 [20:28:14]Write to MH i2c: E2 08 00 E5 3C 80 13 01 00 00 00 00 00 9E [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0E 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0E 00 E5 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2B [20:28:14]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_GetShiftState done [20:28:14]FM_GetShiftState done [20:28:14]req_shift_opened done [20:28:14]requested_item shift.open_date is exist - process it [20:28:14]req_shift_open_date [20:28:14]req_shift_open_date done [20:28:14]produce_requested_data done [20:28:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70811,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:28:14]process_action_free close_receipt [20:28:14]json_value_free [20:28:14]json_value_free done [20:28:14]process_json_proto returns [20:28:14]Send response to host [20:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70811,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:28:14]free response buf [20:28:14]execute_script done [20:28:14]execute_script returns [20:28:14]free content buf [20:28:14]Sock 9.Close socket [20:28:14]Sock 9.Thread stoped [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:13]accept exits with 7 [20:32:13]New connection [20:32:13]New thread 3067034980 created [20:32:13]Thread 3066891620 joined [20:32:13]Waiting for new connection... [20:32:13] Sock 7.Parse request [20:32:13]Sock 7.Check first char [20:32:13]Sock 7.First char is OK [20:32:13]request: POST /json_proto HTTP/1.0 [20:32:13]Method: POST [20:32:13]URL: /json_proto [20:32:13]Method is POST - this is cgi request [20:32:13]url: /json_proto [20:32:13]query_string will be loaded in cgi processing [20:32:13]execute_cgi json_proto POST (null) [20:32:13]execute_cgi path=json_proto method=POST [20:32:13]POST find Content-Length [20:32:13]Host: 172.17.50.3:8080 [20:32:13]Content-Length: 678 [20:32:13]Content-Type: application/json [20:32:13] [20:32:13]POST finish read [20:32:13]Found Content-Length = 678 [20:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886597", "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" ] } } [20:32:13]execute_script... [20:32: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)2886597", "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" ] } } [20:32:13]POST & json_proto [20:32:13]process_json_proto [20:32:13]json parsed OK: [20:32:13]protocol is kg_v1.0 [20:32:13]action value=close_receipt [20:32:13]process_action close_receipt [20:32:13]cmd_close_receipt [20:32:13]MH_GetDate [20:32:13]Write to MH i2c: F0 00 00 E6 3C 11 [20:32:13]Write i2c OK [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 09 00 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 09 00 E6 3C 00 50 5D 19 67 6B 98 1E 66 CE [20:32:13]GetLastDocTimeStamp 1729715293 [20:32:13]current date 1729715536 [20:32:13]FM_GetShiftState [20:32:13]SAM_PROTO_GetShiftState [20:32:13]wFMCommunicate request_size=4 [20:32:13]MH_SAM_APDU [20:32:13]CAPDU: 80 13 01 00 [20:32:13]Write to MH i2c: E2 08 00 E7 3C 80 13 01 00 00 00 00 00 A0 [20:32:13]Write i2c OK [20:32:13]MH_I2C_Read... [20:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:13]Read from MH i2c: E2 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: E2 0E 00 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: E2 0E 00 E7 3C 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 2D [20:32:13]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:32:13]wFMCommunicate OK [20:32:13]SAM_PROTO_GetShiftState done [20:32:13]FM_GetShiftState done [20:32:13]opened in 1729642435 [20:32:13]opened+sec_in_day 1729728835 [20:32:13]quantity*price = 40006 [20:32:13]sum+1 = 40007 [20:32:13]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 СНО: Общий режим Чек 328 23.10.2024 20:32 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70812 ФПД: 218329645278520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70812&fm=218329645278520&tin=02508201610067®Number=0000000000156251&sum=40000 [20:32:15]StoreToDocumentArchive [20:32:15]shift 196 fd 70812 [20:32:15]save to /storage/0196/doc_00070812 [20:32:15]save last doc name /storage/0196/doc_00070812 to /storage/kkm_last_doc_name [20:32:15]save OK [20:32:15]Clear old archive folders... [20:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:15]tlvbuf is 001E4DF0 [20:32:15]SAM_PROTO_ClearQueue [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 09 00 00 [20:32:15]Write to MH i2c: E2 08 00 F4 3C 80 09 00 00 00 00 00 00 A2 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 F4 3C 00 90 00 A4 [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_ClearQueue done [20:32:15]KKMCreateOFDPacket [20:32:15]OFDProtocolAddRootSTLVToBuf [20:32:15]FM_MakeSignedData [20:32:15]FM_MakeSignedData [20:32:15]SAM_PROTO_SignData [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 0D 01 02 [20:32:15]Write to MH i2c: E2 08 00 F5 3C 80 0D 01 02 00 00 00 00 AA [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 F5 3C 00 90 00 A5 [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]wFMCommunicate request_size=255 [20:32:15]MH_SAM_APDU [20:32: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 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 48 01 00 00 F4 03 04 00 50 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 [20:32:15]Write to MH i2c: E2 02 01 F6 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 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 48 01 00 00 F4 03 04 00 50 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 00 00 B3 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 F6 3C 00 90 00 A6 [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]wFMCommunicate request_size=10 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 0D 02 02 05 91 D4 F3 65 38 [20:32:15]Write to MH i2c: E2 0D 00 F7 3C 80 0D 02 02 05 00 91 D4 F3 65 38 00 00 AC [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 F7 3C 00 90 00 A7 [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 0D 03 02 [20:32:15]Write to MH i2c: E2 08 00 F8 3C 80 0D 03 02 00 00 00 00 AF [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0B 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0B 00 F8 3C 00 0E E3 BB E5 5A 8F AE 98 90 00 70 [20:32:15]RAPDU: 0E E3 BB E5 5A 8F AE 98 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_SignData done [20:32:15]FM_MakeSignedData done [20:32:15]CreateOFDProtocolMessage [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 11 00 00 [20:32:15]Write to MH i2c: E2 08 00 F9 3C 80 11 00 00 00 00 00 00 AF [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 17 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 17 00 F9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [20:32: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:32:15]wFMCommunicate OK [20:32:15]CreateOFDProtocolMessage done [20:32:15]OFDSenderStorePacket 70812 [20:32:15]StoreOFDPacket docnum=70812 [20:32: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 D9 2B 07 01 92 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 01 00 00 F4 03 04 00 50 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 91 D4 F3 65 38 0E E3 BB E5 5A 8F AE 98 [20:32:15]CheckFolder [20:32:15]dirname=/storage/ofd_packets [20:32:15]CheckFolder done [20:32:15]ProducePacketName [20:32:15]name=ofd_packets/00070812 [20:32:15]NVStorageSaveData ofd_packets/00070812 [20:32:15]File name is /storage/ofd_packets/00070812 [20:32:15]Write 301 bytes [20:32:15]NVStorageSaveData done [20:32:15]OFDSenderStorePacket done [20:32:15]KKMCreateOFDPacket done [20:32:15]NVStorageSaveData kkm_last_timestamp [20:32:15]File name is /storage/kkm_last_timestamp [20:32:15]Write 4 bytes [20:32:15]NVStorageSaveData done [20:32:15]ExternCall_PrintAddStr [20:32:15]wPrintStart [20:32:15]Write to MH i2c: 01 00 00 FA 3C 36 [20:32:15]OFD Sender: Processing packet 70812 [packets to send 18, broken 17] [20:32:15]ProducePacketName [20:32:15]name=ofd_packets/00070812 [20:32:15]OFD Sender: To server: pG, [20:32:15]CommunicateWithHost lk.salyk.kg:30040 [20:32:15]ConnectInit lk.salyk.kg [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 FA 3C 00 00 00 00 00 FF 0F 4B [20:32:15]RasterBufferAndPrint [20:32:15]line Счет N : (1)2886597 [20:32:15]line ИНН: 02508201610067 [20:32:15]line Контрольно-Кассовый Чек [20:32:15]line ПРОДАЖА [20:32:15]line ТРК (МРК, ГНК) : 42 [20:32:15]line Товар: 2710124130 [20:32:15]line Аи-92-К-5 [20:32:15]line 5.980 * 66.90 [20:32:15]line = 400.06 [20:32:15]line НДС 12% НСП 1% [20:32:15]line > о реализуемом товаре [20:32:15]line ОКРУГЛЕНИЕ: -0.06 [20:32:15]line ИТОГО: 400.00 [20:32:15]line Внесено: 400.00 [20:32:15]line СДАЧА: 0.00 [20:32:15]line НСП 1% : 3.54 [20:32:15]line НДС 12% : 42.48 [20:32:15]line Наличными: 400.00 [20:32:15]line Безнал.: 0.00 [20:32:15]line Место: АЗС № 85 "Партнер Нефть" [20:32:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:32:15]line СНО: Общий режим [20:32:15]line Чек 328 23.10.2024 20:32 [20:32:15]line Смена: 196 ФФД: 1.0 [20:32:15]line ЗНМ: 0300000167 [20:32:15]line РНМ: 0000000000156251 [20:32:15]line Версия ККМ: v1.0 [20:32:15]line ФМ: 0000000000963346 [20:32:15]line ФД: 70812 [20:32:15]line ФПД: 218329645278520 [20:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70812&fm=218329645278520&tin=02508201610067®Number=0000000000156251&sum=40000 [20:32:15]Connected sock=10 [20:32: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 D9 2B 07 01 92 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 01 00 00 F4 03 04 00 50 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C6 91 D4 F3 65 38 0E E3 BB E5 5A 8F AE 98 [20:32:15]written 0, free lines is 4095 [20:32: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 DC 55 47 00 B0 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 9C 14 01 00 F4 03 04 00 ED 06 19 67 B6 04 01 00 00 4E 48 86 F9 83 47 DB 0C [20:32:16]CommunicateWithHost err = 0 [20:32:16]CheckOFDResponse [20:32:16]1017 (14) - 77093643461234 [20:32:16]1041 (16) - 0000000000963346 [20:32:16]1040 (4) - 70812 [20:32:16]1012 (4) - 23.10.2024 14:23 [20:32:16]1206 (1) - 0 [20:32:16]OFD Sender: Remove packet 70812 [20:32:16]ProducePacketName [20:32:16]name=ofd_packets/00070812 [20:32:16]NVStorageDeleteData [20:32:16]Write to MH i2c: 01 00 00 25 3D 62 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 25 3D 00 00 00 00 00 ED 0C 62 [20:32:16]RasterBufferAndPrint [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]written 0, free lines is 3315 [20:32:16]MH_Cut [20:32:16]Write to MH i2c: D1 01 00 2C 3D 01 3B [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 01 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 01 00 2C 3D 00 3A [20:32:16]Write to MH i2c: 01 00 00 2D 3D 6A [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]OFD Sender: No OFD packet to send [20:32:17]*** Cut start [20:32:17]*** Partial cut [20:32:17]*** CUTSNS_PIN = 1 [20:32:17]*** CUTSNS_PIN = 0 [20:32:17]*** Brake cut motor [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]*** Stop cut motor [20:32:17]*** Cut end [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 2D 3D 00 00 00 00 00 FF 0F 7F [20:32:17]process_action close_receipt done [20:32:17]requested_data is exist [20:32:17]produce_requested_data [20:32:17]requested_item fm.sn is exist - process it [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 11 00 00 [20:32:17]Write to MH i2c: E2 08 00 2E 3D 80 11 00 00 00 00 00 00 E5 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 2E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [20:32: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:32:17]wFMCommunicate OK [20:32:17]requested_item fd.num is exist - process it [20:32:17]SAM_PROTO_GetFieldsCounters [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 13 00 00 [20:32:17]Write to MH i2c: E2 08 00 2F 3D 80 13 00 00 00 00 00 00 E8 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 62 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 62 00 2F 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 9C 14 01 00 0E 04 04 00 C4 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 53 [20:32: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 9C 14 01 00 0E 04 04 00 C4 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 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_GetFieldsCounters done [20:32:17]requested_item shift.num is exist - process it [20:32:17]requested_item shift.opened is exist - process it [20:32:17]req_shift_opened [20:32:17]FM_GetShiftState [20:32:17]SAM_PROTO_GetShiftState [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 13 01 00 [20:32:17]Write to MH i2c: E2 08 00 30 3D 80 13 01 00 00 00 00 00 EA [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:18]Read from MH i2c: E2 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 0E 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: E2 0E 00 30 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 77 [20:32:18]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:32:18]wFMCommunicate OK [20:32:18]SAM_PROTO_GetShiftState done [20:32:18]FM_GetShiftState done [20:32:18]req_shift_opened done [20:32:18]requested_item shift.open_date is exist - process it [20:32:18]req_shift_open_date [20:32:18]req_shift_open_date done [20:32:18]produce_requested_data done [20:32:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70812,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:32:18]process_action_free close_receipt [20:32:18]json_value_free [20:32:18]json_value_free done [20:32:18]process_json_proto returns [20:32:18]Send response to host [20:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70812,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:32:18]free response buf [20:32:18]execute_script done [20:32:18]execute_script returns [20:32:18]free content buf [20:32:18]Sock 7.Close socket [20:32:18]Sock 7.Thread stoped [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:33:58]accept exits with 9 [20:33:58]New connection [20:33:58]New thread 3066891620 created [20:33:58]Thread 3067034980 joined [20:33:58]Waiting for new connection... [20:33:58] Sock 9.Parse request [20:33:58]Sock 9.Check first char [20:33:58]Sock 9.First char is OK [20:33:58]request: POST /json_proto HTTP/1.0 [20:33:58]Method: POST [20:33:58]URL: /json_proto [20:33:58]Method is POST - this is cgi request [20:33:58]url: /json_proto [20:33:58]query_string will be loaded in cgi processing [20:33:58]execute_cgi json_proto POST (null) [20:33:58]execute_cgi path=json_proto method=POST [20:33:58]POST find Content-Length [20:33:58]Host: 172.17.50.3:8080 [20:33:58]Content-Length: 683 [20:33:58]Content-Type: application/json [20:33:58] [20:33:58]POST finish read [20:33:58]Found Content-Length = 683 [20:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886598", "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" ] } } [20:33:58]execute_script... [20:33: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)2886598", "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" ] } } [20:33:58]POST & json_proto [20:33:58]process_json_proto [20:33:58]json parsed OK: [20:33:58]protocol is kg_v1.0 [20:33:58]action value=close_receipt [20:33:58]process_action close_receipt [20:33:58]cmd_close_receipt [20:33:58]MH_GetDate [20:33:58]Write to MH i2c: F0 00 00 31 3D 5D [20:33:58]Write i2c OK [20:33:58]MH_I2C_Read... [20:33:58]Read from MH i2c: F0 [20:33:58]MH_I2C_Read... [20:33:58]Read from MH i2c: F0 09 00 [20:33:58]MH_I2C_Read... [20:33:58]Read from MH i2c: F0 09 00 31 3D 00 B9 5D 19 67 6B 98 1E 66 83 [20:33:58]GetLastDocTimeStamp 1729715536 [20:33:58]current date 1729715641 [20:33:58]FM_GetShiftState [20:33:58]SAM_PROTO_GetShiftState [20:33:58]wFMCommunicate request_size=4 [20:33:58]MH_SAM_APDU [20:33:58]CAPDU: 80 13 01 00 [20:33:58]Write to MH i2c: E2 08 00 32 3D 80 13 01 00 00 00 00 00 EC [20:33:58]Write i2c OK [20:33:58]MH_I2C_Read... [20:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:58]Read from MH i2c: E2 [20:33:58]MH_I2C_Read... [20:33:58]Read from MH i2c: E2 0E 00 [20:33:58]MH_I2C_Read... [20:33:58]Read from MH i2c: E2 0E 00 32 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 79 [20:33:58]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:33:58]wFMCommunicate OK [20:33:58]SAM_PROTO_GetShiftState done [20:33:58]FM_GetShiftState done [20:33:58]opened in 1729642435 [20:33:58]opened+sec_in_day 1729728835 [20:33:58]quantity*price = 100021 [20:33:58]sum+1 = 100023 [20:33:58]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 СНО: Общий режим Чек 329 23.10.2024 20:34 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70813 ФПД: 120294304847769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203401&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70813&fm=120294304847769&tin=02508201610067®Number=0000000000156251&sum=100000 [20:33:59]StoreToDocumentArchive [20:33:59]shift 196 fd 70813 [20:33:59]save to /storage/0196/doc_00070813 [20:33:59]save last doc name /storage/0196/doc_00070813 to /storage/kkm_last_doc_name [20:33:59]save OK [20:33:59]Clear old archive folders... [20:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:59]tlvbuf is 00202290 [20:33:59]SAM_PROTO_ClearQueue [20:33:59]wFMCommunicate request_size=4 [20:33:59]MH_SAM_APDU [20:33:59]CAPDU: 80 09 00 00 [20:33:59]Write to MH i2c: E2 08 00 3F 3D 80 09 00 00 00 00 00 00 EE [20:33:59]Write i2c OK [20:33:59]MH_I2C_Read... [20:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:59]Read from MH i2c: E2 [20:33:59]MH_I2C_Read... [20:33:59]Read from MH i2c: E2 03 00 [20:33:59]MH_I2C_Read... [20:33:59]Read from MH i2c: E2 03 00 3F 3D 00 90 00 F0 [20:33:59]RAPDU: 90 00 [20:33:59]wFMCommunicate OK [20:33:59]SAM_PROTO_ClearQueue done [20:33:59]KKMCreateOFDPacket [20:33:59]OFDProtocolAddRootSTLVToBuf [20:33:59]FM_MakeSignedData [20:33:59]FM_MakeSignedData [20:33:59]SAM_PROTO_SignData [20:33:59]wFMCommunicate request_size=4 [20:33:59]MH_SAM_APDU [20:33:59]CAPDU: 80 0D 01 02 [20:33:59]Write to MH i2c: E2 08 00 40 3D 80 0D 01 02 00 00 00 00 F6 [20:33:59]Write i2c OK [20:33:59]MH_I2C_Read... [20:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:59]Read from MH i2c: E2 [20:33:59]MH_I2C_Read... [20:33:59]Read from MH i2c: E2 03 00 [20:33:59]MH_I2C_Read... [20:33:59]Read from MH i2c: E2 03 00 40 3D 00 90 00 F1 [20:33:59]RAPDU: 90 00 [20:33:59]wFMCommunicate OK [20:33:59]wFMCommunicate request_size=255 [20:33:59]MH_SAM_APDU [20:33: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 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 49 01 00 00 F4 03 04 00 B9 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D [20:33:59]Write to MH i2c: E2 02 01 41 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 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 49 01 00 00 F4 03 04 00 B9 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 00 00 5F [20:34:00]Write i2c OK [20:34:00]MH_I2C_Read... [20:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:00]Read from MH i2c: E2 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 03 00 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 03 00 41 3D 00 90 00 F2 [20:34:00]RAPDU: 90 00 [20:34:00]wFMCommunicate OK [20:34:00]wFMCommunicate request_size=10 [20:34:00]MH_SAM_APDU [20:34:00]CAPDU: 80 0D 02 02 05 68 33 4F 17 99 [20:34:00]Write to MH i2c: E2 0D 00 42 3D 80 0D 02 02 05 00 68 33 4F 17 99 00 00 9D [20:34:00]Write i2c OK [20:34:00]MH_I2C_Read... [20:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:00]Read from MH i2c: E2 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 03 00 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 03 00 42 3D 00 90 00 F3 [20:34:00]RAPDU: 90 00 [20:34:00]wFMCommunicate OK [20:34:00]wFMCommunicate request_size=4 [20:34:00]MH_SAM_APDU [20:34:00]CAPDU: 80 0D 03 02 [20:34:00]Write to MH i2c: E2 08 00 43 3D 80 0D 03 02 00 00 00 00 FB [20:34:00]Write i2c OK [20:34:00]MH_I2C_Read... [20:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:00]Read from MH i2c: E2 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 0B 00 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 0B 00 43 3D 00 37 21 AF C3 C2 92 8D B3 90 00 5A [20:34:00]RAPDU: 37 21 AF C3 C2 92 8D B3 90 00 [20:34:00]wFMCommunicate OK [20:34:00]SAM_PROTO_SignData done [20:34:00]FM_MakeSignedData done [20:34:00]CreateOFDProtocolMessage [20:34:00]wFMCommunicate request_size=4 [20:34:00]MH_SAM_APDU [20:34:00]CAPDU: 80 11 00 00 [20:34:00]Write to MH i2c: E2 08 00 44 3D 80 11 00 00 00 00 00 00 FB [20:34:00]Write i2c OK [20:34:00]MH_I2C_Read... [20:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:00]Read from MH i2c: E2 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 17 00 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: E2 17 00 44 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [20: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 [20:34:00]wFMCommunicate OK [20:34:00]CreateOFDProtocolMessage done [20:34:00]OFDSenderStorePacket 70813 [20:34:00]StoreOFDPacket docnum=70813 [20: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 0F 01 00 00 FD B1 07 01 38 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 B9 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 68 33 4F 17 99 37 21 AF C3 C2 92 8D B3 [20:34:00]CheckFolder [20:34:00]dirname=/storage/ofd_packets [20:34:00]CheckFolder done [20:34:00]ProducePacketName [20:34:00]name=ofd_packets/00070813 [20:34:00]NVStorageSaveData ofd_packets/00070813 [20:34:00]File name is /storage/ofd_packets/00070813 [20:34:00]Write 301 bytes [20:34:00]NVStorageSaveData done [20:34:00]OFDSenderStorePacket done [20:34:00]KKMCreateOFDPacket done [20:34:00]NVStorageSaveData kkm_last_timestamp [20:34:00]File name is /storage/kkm_last_timestamp [20:34:00]Write 4 bytes [20:34:00]NVStorageSaveData done [20:34:00]ExternCall_PrintAddStr [20:34:00]wPrintStart [20:34:00]Write to MH i2c: 01 00 00 45 3D 82 [20:34:00]Write i2c OK [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: 01 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: 01 07 00 [20:34:00]MH_I2C_Read... [20:34:00]Read from MH i2c: 01 07 00 45 3D 00 00 00 00 00 FF 0F 97 [20:34:00]RasterBufferAndPrint [20:34:00]line Счет N : (1)2886598 [20:34:00]line ИНН: 02508201610067 [20:34:00]line Контрольно-Кассовый Чек [20:34:00]line ПРОДАЖА [20:34:00]line ТРК (МРК, ГНК) : 13 [20:34:00]line Товар: 2710124500 [20:34:00]line Аи-95-К-5 [20:34:00]line 13.480 * 74.20 [20:34:00]line = 1000.22 [20:34:00]line НДС 12% НСП 1% [20:34:00]line > о реализуемом товаре [20:34:00]line ОКРУГЛЕНИЕ: -0.22 [20:34:00]line ИТОГО: 1000.00 [20:34:00]line Внесено: 1000.00 [20:34:00]line СДАЧА: 0.00 [20:34:00]line НСП 1% : 8.85 [20:34:00]line НДС 12% : 106.22 [20:34:00]line Наличными: 1000.00 [20:34:00]line Безнал.: 0.00 [20:34:00]line Место: АЗС № 85 "Партнер Нефть" [20:34:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:34:00]line СНО: Общий режим [20:34:00]line Чек 329 23.10.2024 20:34 [20:34:00]line Смена: 196 ФФД: 1.0 [20:34:00]line ЗНМ: 0300000167 [20:34:00]line РНМ: 0000000000156251 [20:34:00]line Версия ККМ: v1.0 [20:34:00]line ФМ: 0000000000963346 [20:34:00]line ФД: 70813 [20:34:00]line ФПД: 120294304847769 [20:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203401&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70813&fm=120294304847769&tin=02508201610067®Number=0000000000156251&sum=100000 [20:34:00]OFD Sender: Processing packet 70813 [packets to send 18, broken 17] [20:34:00]ProducePacketName [20:34:00]name=ofd_packets/00070813 [20:34:00]OFD Sender: To server: pG, [20:34:00]CommunicateWithHost lk.salyk.kg:30040 [20:34:00]ConnectInit lk.salyk.kg [20:34:00]written 0, free lines is 4095 [20:34:00]Connected sock=10 [20:34: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 FD B1 07 01 38 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 B9 5D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6D 68 33 4F 17 99 37 21 AF C3 C2 92 8D B3 [20: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 EF A5 47 00 96 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 9D 14 01 00 F4 03 04 00 56 07 19 67 B6 04 01 00 00 75 C1 69 DA 27 BB 64 F4 [20:34:01]CommunicateWithHost err = 0 [20:34:01]CheckOFDResponse [20:34:01]1017 (14) - 77093643461234 [20:34:01]1041 (16) - 0000000000963346 [20:34:01]1040 (4) - 70813 [20:34:01]1012 (4) - 23.10.2024 14:25 [20:34:01]1206 (1) - 0 [20:34:01]OFD Sender: Remove packet 70813 [20:34:01]ProducePacketName [20:34:01]name=ofd_packets/00070813 [20:34:01]NVStorageDeleteData [20:34:01]Write to MH i2c: 01 00 00 70 3D AD [20:34:01]Write i2c OK [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 07 00 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 07 00 70 3D 00 00 00 00 00 F3 0C B3 [20:34:01]RasterBufferAndPrint [20:34:01]line [20:34:01]line [20:34:01]line [20:34:01]line [20:34:01]line [20:34:01]written 0, free lines is 3321 [20:34:01]MH_Cut [20:34:01]Write to MH i2c: D1 01 00 77 3D 01 86 [20:34:01]Write i2c OK [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: D1 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: D1 01 00 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: D1 01 00 77 3D 00 85 [20:34:01]Write to MH i2c: 01 00 00 78 3D B5 [20:34:01]Write i2c OK [20:34:01]MH_I2C_Read... [20:34:01]OFD Sender: No OFD packet to send [20:34:01]*** Cut start [20:34:01]*** Partial cut [20:34:01]*** CUTSNS_PIN = 1 [20:34:01]*** CUTSNS_PIN = 0 [20:34:02]*** Brake cut motor [20:34:02]Read from MH i2c: 01 [20:34:02]MH_I2C_Read... [20:34:02]*** Stop cut motor [20:34:02]*** Cut end [20:34:02]Read from MH i2c: 01 07 00 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: 01 07 00 78 3D 00 00 00 00 00 FF 0F CA [20:34:02]process_action close_receipt done [20:34:02]requested_data is exist [20:34:02]produce_requested_data [20:34:02]requested_item fm.sn is exist - process it [20:34:02]wFMCommunicate request_size=4 [20:34:02]MH_SAM_APDU [20:34:02]CAPDU: 80 11 00 00 [20:34:02]Write to MH i2c: E2 08 00 79 3D 80 11 00 00 00 00 00 00 30 [20:34:02]Write i2c OK [20:34:02]MH_I2C_Read... [20:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:02]Read from MH i2c: E2 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 17 00 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 17 00 79 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [20: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 [20:34:02]wFMCommunicate OK [20:34:02]requested_item fd.num is exist - process it [20:34:02]SAM_PROTO_GetFieldsCounters [20:34:02]wFMCommunicate request_size=4 [20:34:02]MH_SAM_APDU [20:34:02]CAPDU: 80 13 00 00 [20:34:02]Write to MH i2c: E2 08 00 7A 3D 80 13 00 00 00 00 00 00 33 [20:34:02]Write i2c OK [20:34:02]MH_I2C_Read... [20:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:02]Read from MH i2c: E2 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 62 00 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 62 00 7A 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 9D 14 01 00 0E 04 04 00 C4 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 A2 [20:34: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 9D 14 01 00 0E 04 04 00 C4 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 [20:34:02]wFMCommunicate OK [20:34:02]SAM_PROTO_GetFieldsCounters done [20:34:02]requested_item shift.num is exist - process it [20:34:02]requested_item shift.opened is exist - process it [20:34:02]req_shift_opened [20:34:02]FM_GetShiftState [20:34:02]SAM_PROTO_GetShiftState [20:34:02]wFMCommunicate request_size=4 [20:34:02]MH_SAM_APDU [20:34:02]CAPDU: 80 13 01 00 [20:34:02]Write to MH i2c: E2 08 00 7B 3D 80 13 01 00 00 00 00 00 35 [20:34:02]Write i2c OK [20:34:02]MH_I2C_Read... [20:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:02]Read from MH i2c: E2 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 0E 00 [20:34:02]MH_I2C_Read... [20:34:02]Read from MH i2c: E2 0E 00 7B 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C2 [20:34:02]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:34:02]wFMCommunicate OK [20:34:02]SAM_PROTO_GetShiftState done [20:34:02]FM_GetShiftState done [20:34:02]req_shift_opened done [20:34:02]requested_item shift.open_date is exist - process it [20:34:02]req_shift_open_date [20:34:02]req_shift_open_date done [20:34:02]produce_requested_data done [20:34:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70813,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:34:02]process_action_free close_receipt [20:34:02]json_value_free [20:34:02]json_value_free done [20:34:02]process_json_proto returns [20:34:02]Send response to host [20:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70813,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:34:02]free response buf [20:34:02]execute_script done [20:34:02]execute_script returns [20:34:02]free content buf [20:34:02]Sock 9.Close socket [20:34:02]Sock 9.Thread stoped [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:38]accept exits with 7 [20:37:38]New connection [20:37:38]New thread 3067034980 created [20:37:38]Thread 3066891620 joined [20:37:38]Waiting for new connection... [20:37:38] Sock 7.Parse request [20:37:38]Sock 7.Check first char [20:37:38]Sock 7.First char is OK [20:37:38]request: POST /json_proto HTTP/1.0 [20:37:38]Method: POST [20:37:38]URL: /json_proto [20:37:38]Method is POST - this is cgi request [20:37:38]url: /json_proto [20:37:38]query_string will be loaded in cgi processing [20:37:38]execute_cgi json_proto POST (null) [20:37:38]execute_cgi path=json_proto method=POST [20:37:38]POST find Content-Length [20:37:38]Host: 172.17.50.3:8080 [20:37:38]Content-Length: 678 [20:37:38]Content-Type: application/json [20:37:38] [20:37:38]POST finish read [20:37:38]Found Content-Length = 678 [20:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886599", "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:37:38]execute_script... [20:37: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)2886599", "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:37:38]POST & json_proto [20:37:38]process_json_proto [20:37:38]json parsed OK: [20:37:38]protocol is kg_v1.0 [20:37:38]action value=close_receipt [20:37:38]process_action close_receipt [20:37:38]cmd_close_receipt [20:37:38]MH_GetDate [20:37:38]Write to MH i2c: F0 00 00 7C 3D A8 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: F0 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: F0 09 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: F0 09 00 7C 3D 00 95 5E 19 67 6B 98 1E 66 AB [20:37:38]GetLastDocTimeStamp 1729715641 [20:37:38]current date 1729715861 [20:37:38]FM_GetShiftState [20:37:38]SAM_PROTO_GetShiftState [20:37:38]wFMCommunicate request_size=4 [20:37:38]MH_SAM_APDU [20:37:38]CAPDU: 80 13 01 00 [20:37:38]Write to MH i2c: E2 08 00 7D 3D 80 13 01 00 00 00 00 00 37 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:38]Read from MH i2c: E2 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: E2 0E 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: E2 0E 00 7D 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 C4 [20:37:38]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:37:38]wFMCommunicate OK [20:37:38]SAM_PROTO_GetShiftState done [20:37:38]FM_GetShiftState done [20:37:38]opened in 1729642435 [20:37:38]opened+sec_in_day 1729728835 [20:37:38]quantity*price = 50041 [20:37:38]sum+1 = 50042 [20:37: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 СНО: Общий режим Чек 330 23.10.2024 20:37 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70814 ФПД: 176330825843143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70814&fm=176330825843143&tin=02508201610067®Number=0000000000156251&sum=50000 [20:37:39]StoreToDocumentArchive [20:37:39]shift 196 fd 70814 [20:37:39]save to /storage/0196/doc_00070814 [20:37:39]save last doc name /storage/0196/doc_00070814 to /storage/kkm_last_doc_name [20:37:39]save OK [20:37:39]Clear old archive folders... [20:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:39]tlvbuf is 0015E270 [20:37:39]SAM_PROTO_ClearQueue [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 09 00 00 [20:37:39]Write to MH i2c: E2 08 00 8A 3D 80 09 00 00 00 00 00 00 39 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 8A 3D 00 90 00 3B [20:37:39]RAPDU: 90 00 [20:37:39]wFMCommunicate OK [20:37:39]SAM_PROTO_ClearQueue done [20:37:39]KKMCreateOFDPacket [20:37:39]OFDProtocolAddRootSTLVToBuf [20:37:39]FM_MakeSignedData [20:37:39]FM_MakeSignedData [20:37:39]SAM_PROTO_SignData [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 0D 01 02 [20:37:39]Write to MH i2c: E2 08 00 8B 3D 80 0D 01 02 00 00 00 00 41 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 8B 3D 00 90 00 3C [20:37:39]RAPDU: 90 00 [20:37:39]wFMCommunicate OK [20:37:39]wFMCommunicate request_size=255 [20:37:39]MH_SAM_APDU [20:37: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 4A 01 00 00 F4 03 04 00 95 5E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 [20:37:39]Write to MH i2c: E2 02 01 8C 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 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 4A 01 00 00 F4 03 04 00 95 5E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 00 00 9F [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 8C 3D 00 90 00 3D [20:37:39]RAPDU: 90 00 [20:37:39]wFMCommunicate OK [20:37:39]wFMCommunicate request_size=10 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 0D 02 02 05 5F 38 3C C1 C7 [20:37:39]Write to MH i2c: E2 0D 00 8D 3D 80 0D 02 02 05 00 5F 38 3C C1 C7 00 00 A9 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 03 00 8D 3D 00 90 00 3E [20:37:39]RAPDU: 90 00 [20:37:39]wFMCommunicate OK [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 0D 03 02 [20:37:39]Write to MH i2c: E2 08 00 8E 3D 80 0D 03 02 00 00 00 00 46 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 0B 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 0B 00 8E 3D 00 51 B5 CC BB 23 CD 01 59 90 00 1E [20:37:39]RAPDU: 51 B5 CC BB 23 CD 01 59 90 00 [20:37:39]wFMCommunicate OK [20:37:39]SAM_PROTO_SignData done [20:37:39]FM_MakeSignedData done [20:37:39]CreateOFDProtocolMessage [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 11 00 00 [20:37:39]Write to MH i2c: E2 08 00 8F 3D 80 11 00 00 00 00 00 00 46 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 17 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 17 00 8F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [20:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:37:40]wFMCommunicate OK [20:37:40]CreateOFDProtocolMessage done [20:37:40]OFDSenderStorePacket 70814 [20:37:40]StoreOFDPacket docnum=70814 [20:37: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 52 81 07 01 B3 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 01 00 00 F4 03 04 00 95 5E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 5F 38 3C C1 C7 51 B5 CC BB 23 CD 01 59 [20:37:40]CheckFolder [20:37:40]dirname=/storage/ofd_packets [20:37:40]CheckFolder done [20:37:40]ProducePacketName [20:37:40]name=ofd_packets/00070814 [20:37:40]NVStorageSaveData ofd_packets/00070814 [20:37:40]File name is /storage/ofd_packets/00070814 [20:37:40]Write 301 bytes [20:37:40]NVStorageSaveData done [20:37:40]OFDSenderStorePacket done [20:37:40]KKMCreateOFDPacket done [20:37:40]NVStorageSaveData kkm_last_timestamp [20:37:40]File name is /storage/kkm_last_timestamp [20:37:40]Write 4 bytes [20:37:40]NVStorageSaveData done [20:37:40]ExternCall_PrintAddStr [20:37:40]wPrintStart [20:37:40]Write to MH i2c: 01 00 00 90 3D CD [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 07 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 07 00 90 3D 00 00 00 00 00 FF 0F E2 [20:37:40]RasterBufferAndPrint [20:37:40]line Счет N : (1)2886599 [20:37:40]line ИНН: 02508201610067 [20:37:40]line Контрольно-Кассовый Чек [20:37:40]line ПРОДАЖА [20:37:40]line ТРК (МРК, ГНК) : 42 [20:37:40]line Товар: 2710124130 [20:37:40]line Аи-92-К-5 [20:37:40]line 7.480 * 66.90 [20:37:40]line = 500.41 [20:37:40]line НДС 12% НСП 1% [20:37:40]line > о реализуемом товаре [20:37:40]line ОКРУГЛЕНИЕ: -0.41 [20:37:40]line ИТОГО: 500.00 [20:37:40]line Внесено: 500.00 [20:37:40]line СДАЧА: 0.00 [20:37:40]line НСП 1% : 4.43 [20:37:40]line НДС 12% : 53.14 [20:37:40]line Наличными: 500.00 [20:37:40]line Безнал.: 0.00 [20:37:40]line Место: АЗС № 85 "Партнер Нефть" [20:37:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:37:40]line СНО: Общий режим [20:37:40]line Чек 330 23.10.2024 20:37 [20:37:40]line Смена: 196 ФФД: 1.0 [20:37:40]line ЗНМ: 0300000167 [20:37:40]line РНМ: 0000000000156251 [20:37:40]line Версия ККМ: v1.0 [20:37:40]line ФМ: 0000000000963346 [20:37:40]line ФД: 70814 [20:37:40]line ФПД: 176330825843143 [20:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70814&fm=176330825843143&tin=02508201610067®Number=0000000000156251&sum=50000 [20:37:40]OFD Sender: Processing packet 70814 [packets to send 18, broken 17] [20:37:40]ProducePacketName [20:37:40]name=ofd_packets/00070814 [20:37:40]OFD Sender: To server: pG, [20:37:40]CommunicateWithHost lk.salyk.kg:30040 [20:37:40]ConnectInit lk.salyk.kg [20:37:40]written 0, free lines is 4095 [20:37:40]Connected sock=9 [20:37: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 81 07 01 B3 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 01 00 00 F4 03 04 00 95 5E 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 A0 5F 38 3C C1 C7 51 B5 CC BB 23 CD 01 59 [20:37: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 CF 10 47 00 29 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 9E 14 01 00 F4 03 04 00 32 08 19 67 B6 04 01 00 00 40 E3 B2 84 9D 01 6E 19 [20:37:40]CommunicateWithHost err = 0 [20:37:40]CheckOFDResponse [20:37:40]1017 (14) - 77093643461234 [20:37:40]1041 (16) - 0000000000963346 [20:37:40]1040 (4) - 70814 [20:37:40]1012 (4) - 23.10.2024 14:29 [20:37:40]1206 (1) - 0 [20:37:40]OFD Sender: Remove packet 70814 [20:37:40]ProducePacketName [20:37:40]name=ofd_packets/00070814 [20:37:40]NVStorageDeleteData [20:37:40]Write to MH i2c: 01 00 00 BB 3D F8 [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 07 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: 01 07 00 BB 3D 00 00 00 00 00 DE 0C E9 [20:37:40]RasterBufferAndPrint [20:37:40]line [20:37:40]line [20:37:40]line [20:37:40]line [20:37:40]line [20:37:40]written 0, free lines is 3300 [20:37:40]MH_Cut [20:37:40]Write to MH i2c: D1 01 00 C2 3D 01 D1 [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: D1 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: D1 01 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: D1 01 00 C2 3D 00 D0 [20:37:40]Write to MH i2c: 01 00 00 C3 3D 00 [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:41]OFD Sender: No OFD packet to send [20:37:41]*** Cut start [20:37:41]*** Partial cut [20:37:41]*** CUTSNS_PIN = 1 [20:37:41]*** CUTSNS_PIN = 0 [20:37:41]*** Brake cut motor [20:37:42]Read from MH i2c: 01 [20:37:42]MH_I2C_Read... [20:37:42]*** Stop cut motor [20:37:42]*** Cut end [20:37:42]Read from MH i2c: 01 07 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: 01 07 00 C3 3D 00 00 00 00 00 FF 0F 15 [20:37:42]process_action close_receipt done [20:37:42]requested_data is exist [20:37:42]produce_requested_data [20:37:42]requested_item fm.sn is exist - process it [20:37:42]wFMCommunicate request_size=4 [20:37:42]MH_SAM_APDU [20:37:42]CAPDU: 80 11 00 00 [20:37:42]Write to MH i2c: E2 08 00 C4 3D 80 11 00 00 00 00 00 00 7B [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:42]Read from MH i2c: E2 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 17 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 17 00 C4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [20:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:37:42]wFMCommunicate OK [20:37:42]requested_item fd.num is exist - process it [20:37:42]SAM_PROTO_GetFieldsCounters [20:37:42]wFMCommunicate request_size=4 [20:37:42]MH_SAM_APDU [20:37:42]CAPDU: 80 13 00 00 [20:37:42]Write to MH i2c: E2 08 00 C5 3D 80 13 00 00 00 00 00 00 7E [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:42]Read from MH i2c: E2 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 62 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 62 00 C5 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 9E 14 01 00 0E 04 04 00 C4 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 F1 [20:37: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 9E 14 01 00 0E 04 04 00 C4 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 [20:37:42]wFMCommunicate OK [20:37:42]SAM_PROTO_GetFieldsCounters done [20:37:42]requested_item shift.num is exist - process it [20:37:42]requested_item shift.opened is exist - process it [20:37:42]req_shift_opened [20:37:42]FM_GetShiftState [20:37:42]SAM_PROTO_GetShiftState [20:37:42]wFMCommunicate request_size=4 [20:37:42]MH_SAM_APDU [20:37:42]CAPDU: 80 13 01 00 [20:37:42]Write to MH i2c: E2 08 00 C6 3D 80 13 01 00 00 00 00 00 80 [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:42]Read from MH i2c: E2 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 0E 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: E2 0E 00 C6 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0D [20:37:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:37:42]wFMCommunicate OK [20:37:42]SAM_PROTO_GetShiftState done [20:37:42]FM_GetShiftState done [20:37:42]req_shift_opened done [20:37:42]requested_item shift.open_date is exist - process it [20:37:42]req_shift_open_date [20:37:42]req_shift_open_date done [20:37:42]produce_requested_data done [20:37:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70814,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:37:42]process_action_free close_receipt [20:37:42]json_value_free [20:37:42]json_value_free done [20:37:42]process_json_proto returns [20:37:42]Send response to host [20:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70814,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:37:42]free response buf [20:37:42]execute_script done [20:37:42]execute_script returns [20:37:42]free content buf [20:37:42]Sock 7.Close socket [20:37:42]Sock 7.Thread stoped [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:24]accept exits with 10 [20:40:24]New connection [20:40:24]New thread 3066891620 created [20:40:24]Thread 3067034980 joined [20:40:24]Waiting for new connection... [20:40:24] Sock 10.Parse request [20:40:24]Sock 10.Check first char [20:40:24]Sock 10.First char is OK [20:40:24]request: POST /json_proto HTTP/1.0 [20:40:24]Method: POST [20:40:24]URL: /json_proto [20:40:24]Method is POST - this is cgi request [20:40:24]url: /json_proto [20:40:24]query_string will be loaded in cgi processing [20:40:24]execute_cgi json_proto POST (null) [20:40:24]execute_cgi path=json_proto method=POST [20:40:24]POST find Content-Length [20:40:24]Host: 172.17.50.3:8080 [20:40:24]Content-Length: 679 [20:40:24]Content-Type: application/json [20:40:24] [20:40:24]POST finish read [20:40:24]Found Content-Length = 679 [20:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886601", "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" : 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" ] } } [20:40:24]execute_script... [20:40: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)2886601", "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" : 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" ] } } [20:40:24]POST & json_proto [20:40:24]process_json_proto [20:40:24]json parsed OK: [20:40:24]protocol is kg_v1.0 [20:40:24]action value=close_receipt [20:40:24]process_action close_receipt [20:40:24]cmd_close_receipt [20:40:24]MH_GetDate [20:40:24]Write to MH i2c: F0 00 00 C7 3D F3 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: F0 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: F0 09 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: F0 09 00 C7 3D 00 3B 5F 19 67 6B 98 1E 66 9D [20:40:24]GetLastDocTimeStamp 1729715861 [20:40:24]current date 1729716027 [20:40:24]FM_GetShiftState [20:40:24]SAM_PROTO_GetShiftState [20:40:24]wFMCommunicate request_size=4 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 13 01 00 [20:40:24]Write to MH i2c: E2 08 00 C8 3D 80 13 01 00 00 00 00 00 82 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 0E 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 0E 00 C8 3D 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 0F [20:40:24]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:40:24]wFMCommunicate OK [20:40:24]SAM_PROTO_GetShiftState done [20:40:24]FM_GetShiftState done [20:40:24]opened in 1729642435 [20:40:24]opened+sec_in_day 1729728835 [20:40:24]quantity*price = 70044 [20:40:24]sum+1 = 70045 [20:40:24]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 СНО: Общий режим Чек 331 23.10.2024 20:40 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70815 ФПД: 118776415122862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204027&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70815&fm=118776415122862&tin=02508201610067®Number=0000000000156251&sum=70000 [20:40:26]StoreToDocumentArchive [20:40:26]shift 196 fd 70815 [20:40:26]save to /storage/0196/doc_00070815 [20:40:26]save last doc name /storage/0196/doc_00070815 to /storage/kkm_last_doc_name [20:40:26]save OK [20:40:26]Clear old archive folders... [20:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:26]tlvbuf is 001E4D00 [20:40:26]SAM_PROTO_ClearQueue [20:40:26]wFMCommunicate request_size=4 [20:40:26]MH_SAM_APDU [20:40:26]CAPDU: 80 09 00 00 [20:40:26]Write to MH i2c: E2 08 00 D5 3D 80 09 00 00 00 00 00 00 84 [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 D5 3D 00 90 00 86 [20:40:26]RAPDU: 90 00 [20:40:26]wFMCommunicate OK [20:40:26]SAM_PROTO_ClearQueue done [20:40:26]KKMCreateOFDPacket [20:40:26]OFDProtocolAddRootSTLVToBuf [20:40:26]FM_MakeSignedData [20:40:26]FM_MakeSignedData [20:40:26]SAM_PROTO_SignData [20:40:26]wFMCommunicate request_size=4 [20:40:26]MH_SAM_APDU [20:40:26]CAPDU: 80 0D 01 02 [20:40:26]Write to MH i2c: E2 08 00 D6 3D 80 0D 01 02 00 00 00 00 8C [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 D6 3D 00 90 00 87 [20:40:26]RAPDU: 90 00 [20:40:26]wFMCommunicate OK [20:40:26]wFMCommunicate request_size=255 [20:40:26]MH_SAM_APDU [20:40: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 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 4B 01 00 00 F4 03 04 00 3B 5F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6C [20:40:26]Write to MH i2c: E2 02 01 D7 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 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 4B 01 00 00 F4 03 04 00 3B 5F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6C 00 00 6F [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]OFD Sender: No OFD packet to send [20:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 D7 3D 00 90 00 88 [20:40:26]RAPDU: 90 00 [20:40:26]wFMCommunicate OK [20:40:26]wFMCommunicate request_size=10 [20:40:26]MH_SAM_APDU [20:40:26]CAPDU: 80 0D 02 02 05 06 CA 07 F5 AE [20:40:26]Write to MH i2c: E2 0D 00 D8 3D 80 0D 02 02 05 00 06 CA 07 F5 AE 00 00 13 [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 03 00 D8 3D 00 90 00 89 [20:40:26]RAPDU: 90 00 [20:40:26]wFMCommunicate OK [20:40:26]wFMCommunicate request_size=4 [20:40:26]MH_SAM_APDU [20:40:26]CAPDU: 80 0D 03 02 [20:40:26]Write to MH i2c: E2 08 00 D9 3D 80 0D 03 02 00 00 00 00 91 [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 0B 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 0B 00 D9 3D 00 42 09 69 CA 78 FE 81 FD 90 00 04 [20:40:26]RAPDU: 42 09 69 CA 78 FE 81 FD 90 00 [20:40:26]wFMCommunicate OK [20:40:26]SAM_PROTO_SignData done [20:40:26]FM_MakeSignedData done [20:40:26]CreateOFDProtocolMessage [20:40:26]wFMCommunicate request_size=4 [20:40:26]MH_SAM_APDU [20:40:26]CAPDU: 80 11 00 00 [20:40:26]Write to MH i2c: E2 08 00 DA 3D 80 11 00 00 00 00 00 00 91 [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:26]Read from MH i2c: E2 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 17 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: E2 17 00 DA 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [20: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 [20:40:26]wFMCommunicate OK [20:40:26]CreateOFDProtocolMessage done [20:40:26]OFDSenderStorePacket 70815 [20:40:26]StoreOFDPacket docnum=70815 [20: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 77 43 07 01 68 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 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 4B 01 00 00 F4 03 04 00 3B 5F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6C 06 CA 07 F5 AE 42 09 69 CA 78 FE 81 FD [20:40:26]CheckFolder [20:40:26]dirname=/storage/ofd_packets [20:40:26]CheckFolder done [20:40:26]ProducePacketName [20:40:26]name=ofd_packets/00070815 [20:40:26]NVStorageSaveData ofd_packets/00070815 [20:40:26]File name is /storage/ofd_packets/00070815 [20:40:26]Write 301 bytes [20:40:26]NVStorageSaveData done [20:40:26]OFDSenderStorePacket done [20:40:26]KKMCreateOFDPacket done [20:40:26]NVStorageSaveData kkm_last_timestamp [20:40:26]File name is /storage/kkm_last_timestamp [20:40:26]Write 4 bytes [20:40:26]NVStorageSaveData done [20:40:26]ExternCall_PrintAddStr [20:40:26]wPrintStart [20:40:26]Write to MH i2c: 01 00 00 DB 3D 18 [20:40:26]Write i2c OK [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: 01 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: 01 07 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: 01 07 00 DB 3D 00 00 00 00 00 FF 0F 2D [20:40:26]RasterBufferAndPrint [20:40:26]line Счет N : (1)2886601 [20:40:26]line ИНН: 02508201610067 [20:40:26]line Контрольно-Кассовый Чек [20:40:26]line ПРОДАЖА [20:40:26]line ТРК (МРК, ГНК) : 22 [20:40:26]line Товар: 2710124130 [20:40:26]line Аи-92-К-5 [20:40:26]line 10.470 * 66.90 [20:40:26]line = 700.44 [20:40:26]line НДС 12% НСП 1% [20:40:26]line > о реализуемом товаре [20:40:26]line ОКРУГЛЕНИЕ: -0.44 [20:40:26]line ИТОГО: 700.00 [20:40:26]line Внесено: 700.00 [20:40:26]line СДАЧА: 0.00 [20:40:26]line НСП 1% : 6.20 [20:40:26]line НДС 12% : 74.38 [20:40:26]line Наличными: 700.00 [20:40:26]line Безнал.: 0.00 [20:40:26]line Место: АЗС № 85 "Партнер Нефть" [20:40:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:40:26]line СНО: Общий режим [20:40:26]line Чек 331 23.10.2024 20:40 [20:40:26]line Смена: 196 ФФД: 1.0 [20:40:26]line ЗНМ: 0300000167 [20:40:26]line РНМ: 0000000000156251 [20:40:26]line Версия ККМ: v1.0 [20:40:26]line ФМ: 0000000000963346 [20:40:26]line ФД: 70815 [20:40:26]line ФПД: 118776415122862 [20:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204027&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70815&fm=118776415122862&tin=02508201610067®Number=0000000000156251&sum=70000 [20:40:26]OFD Sender: Processing packet 70815 [packets to send 18, broken 17] [20:40:26]written 0, free lines is 4095 [20:40:26]ProducePacketName [20:40:26]name=ofd_packets/00070815 [20:40:26]OFD Sender: To server: pG, [20:40:26]CommunicateWithHost lk.salyk.kg:30040 [20:40:26]ConnectInit lk.salyk.kg [20:40:27]Connected sock=9 [20:40: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 77 43 07 01 68 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 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 4B 01 00 00 F4 03 04 00 3B 5F 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6C 06 CA 07 F5 AE 42 09 69 CA 78 FE 81 FD [20:40: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 46 A3 47 00 83 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 9F 14 01 00 F4 03 04 00 D8 08 19 67 B6 04 01 00 00 DA 28 3D 70 7E 8F FA 5B [20:40:27]CommunicateWithHost err = 0 [20:40:27]CheckOFDResponse [20:40:27]1017 (14) - 77093643461234 [20:40:27]1041 (16) - 0000000000963346 [20:40:27]1040 (4) - 70815 [20:40:27]1012 (4) - 23.10.2024 14:31 [20:40:27]1206 (1) - 0 [20:40:27]OFD Sender: Remove packet 70815 [20:40:27]ProducePacketName [20:40:27]name=ofd_packets/00070815 [20:40:27]NVStorageDeleteData [20:40:27]Write to MH i2c: 01 00 00 06 3E 44 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 06 3E 00 00 00 00 00 F7 0C 4E [20:40:27]RasterBufferAndPrint [20:40:27]line [20:40:27]line [20:40:27]line [20:40:27]line [20:40:27]line [20:40:27]written 0, free lines is 3325 [20:40:27]MH_Cut [20:40:27]Write to MH i2c: D1 01 00 0D 3E 01 1D [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: D1 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: D1 01 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: D1 01 00 0D 3E 00 1C [20:40:27]Write to MH i2c: 01 00 00 0E 3E 4C [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]OFD Sender: No OFD packet to send [20:40:28]*** Cut start [20:40:28]*** Partial cut [20:40:28]*** CUTSNS_PIN = 1 [20:40:28]*** CUTSNS_PIN = 0 [20:40:28]*** Brake cut motor [20:40:28]Read from MH i2c: 01 [20:40:28]MH_I2C_Read... [20:40:28]*** Stop cut motor [20:40:28]*** Cut end [20:40:28]Read from MH i2c: 01 07 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 07 00 0E 3E 00 00 00 00 00 FF 0F 61 [20:40:28]process_action close_receipt done [20:40:28]requested_data is exist [20:40:28]produce_requested_data [20:40:28]requested_item fm.sn is exist - process it [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 11 00 00 [20:40:28]Write to MH i2c: E2 08 00 0F 3E 80 11 00 00 00 00 00 00 C7 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 17 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 17 00 0F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [20:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:40:28]wFMCommunicate OK [20:40:28]requested_item fd.num is exist - process it [20:40:28]SAM_PROTO_GetFieldsCounters [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 13 00 00 [20:40:28]Write to MH i2c: E2 08 00 10 3E 80 13 00 00 00 00 00 00 CA [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 62 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 62 00 10 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 9F 14 01 00 0E 04 04 00 C4 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 41 [20: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 9F 14 01 00 0E 04 04 00 C4 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 [20:40:28]wFMCommunicate OK [20:40:28]SAM_PROTO_GetFieldsCounters done [20:40:28]requested_item shift.num is exist - process it [20:40:28]requested_item shift.opened is exist - process it [20:40:28]req_shift_opened [20:40:28]FM_GetShiftState [20:40:28]SAM_PROTO_GetShiftState [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 13 01 00 [20:40:28]Write to MH i2c: E2 08 00 11 3E 80 13 01 00 00 00 00 00 CC [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 0E 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 0E 00 11 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 59 [20:40:28]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:40:28]wFMCommunicate OK [20:40:28]SAM_PROTO_GetShiftState done [20:40:28]FM_GetShiftState done [20:40:28]req_shift_opened done [20:40:28]requested_item shift.open_date is exist - process it [20:40:28]req_shift_open_date [20:40:28]req_shift_open_date done [20:40:28]produce_requested_data done [20:40:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70815,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:40:28]process_action_free close_receipt [20:40:28]json_value_free [20:40:28]json_value_free done [20:40:28]process_json_proto returns [20:40:28]Send response to host [20:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70815,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:40:28]free response buf [20:40:28]execute_script done [20:40:28]execute_script returns [20:40:28]free content buf [20:40:28]Sock 10.Close socket [20:40:28]Sock 10.Thread stoped [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]accept exits with 7 [20:45:37]New connection [20:45:37]New thread 3067034980 created [20:45:37]Thread 3066891620 joined [20:45:37]Waiting for new connection... [20:45:37] Sock 7.Parse request [20:45:37]Sock 7.Check first char [20:45:37]Sock 7.First char is OK [20:45:37]request: POST /json_proto HTTP/1.0 [20:45:37]Method: POST [20:45:37]URL: /json_proto [20:45:37]Method is POST - this is cgi request [20:45:37]url: /json_proto [20:45:37]query_string will be loaded in cgi processing [20:45:37]execute_cgi json_proto POST (null) [20:45:37]execute_cgi path=json_proto method=POST [20:45:37]POST find Content-Length [20:45:37]Host: 172.17.50.3:8080 [20:45:37]Content-Length: 679 [20:45:37]Content-Type: application/json [20:45:37] [20:45:37]POST finish read [20:45:37]Found Content-Length = 679 [20:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886602", "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" : 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" ] } } [20:45:37]execute_script... [20:45:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886602", "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" : 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" ] } } [20:45:37]POST & json_proto [20:45:37]process_json_proto [20:45:37]json parsed OK: [20:45:37]protocol is kg_v1.0 [20:45:37]action value=close_receipt [20:45:37]process_action close_receipt [20:45:37]cmd_close_receipt [20:45:37]MH_GetDate [20:45:37]Write to MH i2c: F0 00 00 12 3E 3F [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: F0 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: F0 09 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: F0 09 00 12 3E 00 74 60 19 67 6B 98 1E 66 23 [20:45:37]GetLastDocTimeStamp 1729716027 [20:45:37]current date 1729716340 [20:45:37]FM_GetShiftState [20:45:37]SAM_PROTO_GetShiftState [20:45:37]wFMCommunicate request_size=4 [20:45:37]MH_SAM_APDU [20:45:37]CAPDU: 80 13 01 00 [20:45:37]Write to MH i2c: E2 08 00 13 3E 80 13 01 00 00 00 00 00 CE [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:37]Read from MH i2c: E2 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 0E 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 0E 00 13 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 5B [20:45:37]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:45:37]wFMCommunicate OK [20:45:37]SAM_PROTO_GetShiftState done [20:45:37]FM_GetShiftState done [20:45:37]opened in 1729642435 [20:45:37]opened+sec_in_day 1729728835 [20:45:37]quantity*price = 90004 [20:45:37]sum+1 = 90006 [20:45:37]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 СНО: Общий режим Чек 332 23.10.2024 20:45 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70816 ФПД: 2891309604271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204540&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70816&fm=2891309604271&tin=02508201610067®Number=0000000000156251&sum=90000 [20:45:39]StoreToDocumentArchive [20:45:39]shift 196 fd 70816 [20:45:39]save to /storage/0196/doc_00070816 [20:45:39]save last doc name /storage/0196/doc_00070816 to /storage/kkm_last_doc_name [20:45:39]save OK [20:45:39]Clear old archive folders... [20:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:45:39]tlvbuf is 00196AF0 [20:45:39]SAM_PROTO_ClearQueue [20:45:39]wFMCommunicate request_size=4 [20:45:39]MH_SAM_APDU [20:45:39]CAPDU: 80 09 00 00 [20:45:39]Write to MH i2c: E2 08 00 20 3E 80 09 00 00 00 00 00 00 D0 [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 20 3E 00 90 00 D2 [20:45:39]RAPDU: 90 00 [20:45:39]wFMCommunicate OK [20:45:39]SAM_PROTO_ClearQueue done [20:45:39]KKMCreateOFDPacket [20:45:39]OFDProtocolAddRootSTLVToBuf [20:45:39]FM_MakeSignedData [20:45:39]FM_MakeSignedData [20:45:39]SAM_PROTO_SignData [20:45:39]wFMCommunicate request_size=4 [20:45:39]MH_SAM_APDU [20:45:39]CAPDU: 80 0D 01 02 [20:45:39]Write to MH i2c: E2 08 00 21 3E 80 0D 01 02 00 00 00 00 D8 [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 21 3E 00 90 00 D3 [20:45:39]RAPDU: 90 00 [20:45:39]wFMCommunicate OK [20:45:39]wFMCommunicate request_size=255 [20:45:39]MH_SAM_APDU [20:45: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 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 4C 01 00 00 F4 03 04 00 74 60 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 [20:45:39]Write to MH i2c: E2 02 01 22 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 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 4C 01 00 00 F4 03 04 00 74 60 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 00 00 14 [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 22 3E 00 90 00 D4 [20:45:39]RAPDU: 90 00 [20:45:39]wFMCommunicate OK [20:45:39]wFMCommunicate request_size=10 [20:45:39]MH_SAM_APDU [20:45:39]CAPDU: 80 0D 02 02 05 A1 2F 7B 5D AF [20:45:39]Write to MH i2c: E2 0D 00 23 3E 80 0D 02 02 05 00 A1 2F 7B 5D AF 00 00 3C [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 03 00 23 3E 00 90 00 D5 [20:45:39]RAPDU: 90 00 [20:45:39]wFMCommunicate OK [20:45:39]wFMCommunicate request_size=4 [20:45:39]MH_SAM_APDU [20:45:39]CAPDU: 80 0D 03 02 [20:45:39]Write to MH i2c: E2 08 00 24 3E 80 0D 03 02 00 00 00 00 DD [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 0B 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 0B 00 24 3E 00 8B C0 C8 DE C9 54 6B FD 90 00 54 [20:45:39]RAPDU: 8B C0 C8 DE C9 54 6B FD 90 00 [20:45:39]wFMCommunicate OK [20:45:39]SAM_PROTO_SignData done [20:45:39]FM_MakeSignedData done [20:45:39]CreateOFDProtocolMessage [20:45:39]wFMCommunicate request_size=4 [20:45:39]MH_SAM_APDU [20:45:39]CAPDU: 80 11 00 00 [20:45:39]Write to MH i2c: E2 08 00 25 3E 80 11 00 00 00 00 00 00 DD [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:39]Read from MH i2c: E2 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 17 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: E2 17 00 25 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [20:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:45:39]wFMCommunicate OK [20:45:39]CreateOFDProtocolMessage done [20:45:39]OFDSenderStorePacket 70816 [20:45:39]StoreOFDPacket docnum=70816 [20:45: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 98 39 07 01 35 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 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 4C 01 00 00 F4 03 04 00 74 60 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 A1 2F 7B 5D AF 8B C0 C8 DE C9 54 6B FD [20:45:39]CheckFolder [20:45:39]dirname=/storage/ofd_packets [20:45:39]CheckFolder done [20:45:39]ProducePacketName [20:45:39]name=ofd_packets/00070816 [20:45:39]NVStorageSaveData ofd_packets/00070816 [20:45:39]File name is /storage/ofd_packets/00070816 [20:45:39]Write 301 bytes [20:45:39]NVStorageSaveData done [20:45:39]OFDSenderStorePacket done [20:45:39]KKMCreateOFDPacket done [20:45:39]NVStorageSaveData kkm_last_timestamp [20:45:39]File name is /storage/kkm_last_timestamp [20:45:39]Write 4 bytes [20:45:39]NVStorageSaveData done [20:45:39]ExternCall_PrintAddStr [20:45:39]wPrintStart [20:45:39]Write to MH i2c: 01 00 00 26 3E 64 [20:45:39]Write i2c OK [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: 01 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: 01 07 00 [20:45:39]MH_I2C_Read... [20:45:39]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 FF 0F 79 [20:45:39]RasterBufferAndPrint [20:45:39]line Счет N : (1)2886602 [20:45:39]line ИНН: 02508201610067 [20:45:39]line Контрольно-Кассовый Чек [20:45:39]line ПРОДАЖА [20:45:39]line ТРК (МРК, ГНК) : 23 [20:45:39]line Товар: 2710124500 [20:45:39]line Аи-95-К-5 [20:45:39]line 12.130 * 74.20 [20:45:39]line = 900.05 [20:45:39]line НДС 12% НСП 1% [20:45:39]line > о реализуемом товаре [20:45:39]line ОКРУГЛЕНИЕ: -0.05 [20:45:39]line ИТОГО: 900.00 [20:45:39]line Внесено: 900.00 [20:45:39]line СДАЧА: 0.00 [20:45:39]line НСП 1% : 7.96 [20:45:39]line НДС 12% : 95.58 [20:45:39]line Наличными: 900.00 [20:45:39]line Безнал.: 0.00 [20:45:39]line Место: АЗС № 85 "Партнер Нефть" [20:45:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:45:39]line СНО: Общий режим [20:45:39]line Чек 332 23.10.2024 20:45 [20:45:39]line Смена: 196 ФФД: 1.0 [20:45:39]line ЗНМ: 0300000167 [20:45:39]line РНМ: 0000000000156251 [20:45:39]line Версия ККМ: v1.0 [20:45:39]line ФМ: 0000000000963346 [20:45:39]line ФД: 70816 [20:45:39]line ФПД: 2891309604271 [20:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204540&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70816&fm=2891309604271&tin=02508201610067®Number=0000000000156251&sum=90000 [20:45:39]OFD Sender: Processing packet 70816 [packets to send 18, broken 17] [20:45:39]ProducePacketName [20:45:39]name=ofd_packets/00070816 [20:45:39]OFD Sender: To server: pG, [20:45:39]CommunicateWithHost lk.salyk.kg:30040 [20:45:39]ConnectInit lk.salyk.kg [20:45:39]written 0, free lines is 4095 [20:45:40]Connected sock=10 [20:45: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 98 39 07 01 35 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 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 4C 01 00 00 F4 03 04 00 74 60 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 02 A1 2F 7B 5D AF 8B C0 C8 DE C9 54 6B FD [20:45: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 6B 11 47 00 56 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 14 01 00 F4 03 04 00 11 0A 19 67 B6 04 01 00 00 69 81 E9 A7 A7 77 D1 84 [20:45:40]CommunicateWithHost err = 0 [20:45:40]CheckOFDResponse [20:45:40]1017 (14) - 77093643461234 [20:45:40]1041 (16) - 0000000000963346 [20:45:40]1040 (4) - 70816 [20:45:40]1012 (4) - 23.10.2024 14:37 [20:45:40]1206 (1) - 0 [20:45:40]OFD Sender: Remove packet 70816 [20:45:40]ProducePacketName [20:45:40]name=ofd_packets/00070816 [20:45:40]NVStorageDeleteData [20:45:40]Write to MH i2c: 01 00 00 51 3E 8F [20:45:40]Write i2c OK [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: 01 [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: 01 07 00 [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: 01 07 00 51 3E 00 00 00 00 00 E4 0C 86 [20:45:40]RasterBufferAndPrint [20:45:40]line [20:45:40]line [20:45:40]line [20:45:40]line [20:45:40]line [20:45:40]written 0, free lines is 3306 [20:45:40]MH_Cut [20:45:40]Write to MH i2c: D1 01 00 58 3E 01 68 [20:45:40]Write i2c OK [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: D1 [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: D1 01 00 [20:45:40]MH_I2C_Read... [20:45:40]Read from MH i2c: D1 01 00 58 3E 00 67 [20:45:40]Write to MH i2c: 01 00 00 59 3E 97 [20:45:40]Write i2c OK [20:45:40]MH_I2C_Read... [20:45:40]OFD Sender: No OFD packet to send [20:45:41]*** Cut start [20:45:41]*** Partial cut [20:45:41]*** CUTSNS_PIN = 1 [20:45:41]*** CUTSNS_PIN = 0 [20:45:41]*** Brake cut motor [20:45:41]Read from MH i2c: 01 [20:45:41]MH_I2C_Read... [20:45:41]*** Stop cut motor [20:45:41]*** Cut end [20:45:41]Read from MH i2c: 01 07 00 [20:45:41]MH_I2C_Read... [20:45:41]Read from MH i2c: 01 07 00 59 3E 00 00 00 00 00 FF 0F AC [20:45:41]process_action close_receipt done [20:45:41]requested_data is exist [20:45:41]produce_requested_data [20:45:41]requested_item fm.sn is exist - process it [20:45:41]wFMCommunicate request_size=4 [20:45:41]MH_SAM_APDU [20:45:41]CAPDU: 80 11 00 00 [20:45:41]Write to MH i2c: E2 08 00 5A 3E 80 11 00 00 00 00 00 00 12 [20:45:41]Write i2c OK [20:45:41]MH_I2C_Read... [20:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:41]Read from MH i2c: E2 [20:45:41]MH_I2C_Read... [20:45:41]Read from MH i2c: E2 17 00 [20:45:41]MH_I2C_Read... [20:45:41]Read from MH i2c: E2 17 00 5A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [20:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:45:41]wFMCommunicate OK [20:45:41]requested_item fd.num is exist - process it [20:45:41]SAM_PROTO_GetFieldsCounters [20:45:41]wFMCommunicate request_size=4 [20:45:41]MH_SAM_APDU [20:45:41]CAPDU: 80 13 00 00 [20:45:41]Write to MH i2c: E2 08 00 5B 3E 80 13 00 00 00 00 00 00 15 [20:45:41]Write i2c OK [20:45:41]MH_I2C_Read... [20:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:41]Read from MH i2c: E2 [20:45:41]MH_I2C_Read... [20:45:41]Read from MH i2c: E2 62 00 [20:45:41]MH_I2C_Read... [20:45:41]Read from MH i2c: E2 62 00 5B 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 A0 14 01 00 0E 04 04 00 C4 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 90 [20:45: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 A0 14 01 00 0E 04 04 00 C4 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 [20:45:41]wFMCommunicate OK [20:45:41]SAM_PROTO_GetFieldsCounters done [20:45:41]requested_item shift.num is exist - process it [20:45:41]requested_item shift.opened is exist - process it [20:45:41]req_shift_opened [20:45:41]FM_GetShiftState [20:45:41]SAM_PROTO_GetShiftState [20:45:41]wFMCommunicate request_size=4 [20:45:41]MH_SAM_APDU [20:45:41]CAPDU: 80 13 01 00 [20:45:41]Write to MH i2c: E2 08 00 5C 3E 80 13 01 00 00 00 00 00 17 [20:45:41]Write i2c OK [20:45:41]MH_I2C_Read... [20:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:42]Read from MH i2c: E2 [20:45:42]MH_I2C_Read... [20:45:42]Read from MH i2c: E2 0E 00 [20:45:42]MH_I2C_Read... [20:45:42]Read from MH i2c: E2 0E 00 5C 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A4 [20:45:42]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:45:42]wFMCommunicate OK [20:45:42]SAM_PROTO_GetShiftState done [20:45:42]FM_GetShiftState done [20:45:42]req_shift_opened done [20:45:42]requested_item shift.open_date is exist - process it [20:45:42]req_shift_open_date [20:45:42]req_shift_open_date done [20:45:42]produce_requested_data done [20:45:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70816,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:45:42]process_action_free close_receipt [20:45:42]json_value_free [20:45:42]json_value_free done [20:45:42]process_json_proto returns [20:45:42]Send response to host [20:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70816,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:45:42]free response buf [20:45:42]execute_script done [20:45:42]execute_script returns [20:45:42]free content buf [20:45:42]Sock 7.Close socket [20:45:42]Sock 7.Thread stoped [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:49]accept exits with 9 [20:48:49]New connection [20:48:49]New thread 3066891620 created [20:48:49]Thread 3067034980 joined [20:48:49]Waiting for new connection... [20:48:49] Sock 9.Parse request [20:48:49]Sock 9.Check first char [20:48:49]Sock 9.First char is OK [20:48:49]request: POST /json_proto HTTP/1.0 [20:48:49]Method: POST [20:48:49]URL: /json_proto [20:48:49]Method is POST - this is cgi request [20:48:49]url: /json_proto [20:48:49]query_string will be loaded in cgi processing [20:48:49]execute_cgi json_proto POST (null) [20:48:49]execute_cgi path=json_proto method=POST [20:48:49]POST find Content-Length [20:48:49]Host: 172.17.50.3:8080 [20:48:49]Content-Length: 682 [20:48:49]Content-Type: application/json [20:48:49] [20:48:49]POST finish read [20:48:49]Found Content-Length = 682 [20:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886603", "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" ] } } [20:48:49]execute_script... [20:48: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)2886603", "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" ] } } [20:48:49]POST & json_proto [20:48:49]process_json_proto [20:48:49]json parsed OK: [20:48:49]protocol is kg_v1.0 [20:48:49]action value=close_receipt [20:48:49]process_action close_receipt [20:48:49]cmd_close_receipt [20:48:49]MH_GetDate [20:48:49]Write to MH i2c: F0 00 00 5D 3E 8A [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 09 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 09 00 5D 3E 00 33 61 19 67 6B 98 1E 66 2E [20:48:49]GetLastDocTimeStamp 1729716340 [20:48:49]current date 1729716531 [20:48:49]FM_GetShiftState [20:48:49]SAM_PROTO_GetShiftState [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 13 01 00 [20:48:49]Write to MH i2c: E2 08 00 5E 3E 80 13 01 00 00 00 00 00 19 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 5E 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 A6 [20:48:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:48:49]wFMCommunicate OK [20:48:49]SAM_PROTO_GetShiftState done [20:48:49]FM_GetShiftState done [20:48:49]opened in 1729642435 [20:48:49]opened+sec_in_day 1729728835 [20:48:49]quantity*price = 50025 [20:48:49]sum+1 = 50026 [20:48:49]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 СНО: Общий режим Чек 333 23.10.2024 20:48 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70817 ФПД: 68407998436930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70817&fm=68407998436930&tin=02508201610067®Number=0000000000156251&sum=50000 [20:48:50]StoreToDocumentArchive [20:48:50]shift 196 fd 70817 [20:48:50]save to /storage/0196/doc_00070817 [20:48:50]save last doc name /storage/0196/doc_00070817 to /storage/kkm_last_doc_name [20:48:50]save OK [20:48:50]Clear old archive folders... [20:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:48:50]tlvbuf is 00179770 [20:48:50]SAM_PROTO_ClearQueue [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 09 00 00 [20:48:50]Write to MH i2c: E2 08 00 6B 3E 80 09 00 00 00 00 00 00 1B [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 6B 3E 00 90 00 1D [20:48:50]RAPDU: 90 00 [20:48:50]wFMCommunicate OK [20:48:50]SAM_PROTO_ClearQueue done [20:48:50]KKMCreateOFDPacket [20:48:50]OFDProtocolAddRootSTLVToBuf [20:48:50]FM_MakeSignedData [20:48:50]FM_MakeSignedData [20:48:50]SAM_PROTO_SignData [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 0D 01 02 [20:48:50]Write to MH i2c: E2 08 00 6C 3E 80 0D 01 02 00 00 00 00 23 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 6C 3E 00 90 00 1E [20:48:50]RAPDU: 90 00 [20:48:50]wFMCommunicate OK [20:48:50]wFMCommunicate request_size=255 [20:48:50]MH_SAM_APDU [20:48:50]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 4D 01 00 00 F4 03 04 00 34 61 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3E 37 [20:48:50]Write to MH i2c: E2 02 01 6D 3E 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 4D 01 00 00 F4 03 04 00 34 61 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3E 37 00 00 B8 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 6D 3E 00 90 00 1F [20:48:50]RAPDU: 90 00 [20:48:50]wFMCommunicate OK [20:48:50]wFMCommunicate request_size=9 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 0D 02 02 04 7A 72 56 42 [20:48:50]Write to MH i2c: E2 0C 00 6E 3E 80 0D 02 02 04 00 7A 72 56 42 00 00 B2 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 03 00 6E 3E 00 90 00 20 [20:48:50]RAPDU: 90 00 [20:48:50]wFMCommunicate OK [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 0D 03 02 [20:48:50]Write to MH i2c: E2 08 00 6F 3E 80 0D 03 02 00 00 00 00 28 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 0B 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 0B 00 6F 3E 00 58 31 9C 8F 1A D3 46 B2 90 00 C2 [20:48:50]RAPDU: 58 31 9C 8F 1A D3 46 B2 90 00 [20:48:50]wFMCommunicate OK [20:48:50]SAM_PROTO_SignData done [20:48:50]FM_MakeSignedData done [20:48:50]CreateOFDProtocolMessage [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 11 00 00 [20:48:50]Write to MH i2c: E2 08 00 70 3E 80 11 00 00 00 00 00 00 28 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 17 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 17 00 70 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [20:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:48:50]wFMCommunicate OK [20:48:50]CreateOFDProtocolMessage done [20:48:50]OFDSenderStorePacket 70817 [20:48:50]StoreOFDPacket docnum=70817 [20:48: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 0E 01 00 00 D7 21 06 01 3E FC 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 4D 01 00 00 F4 03 04 00 34 61 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3E 37 7A 72 56 42 58 31 9C 8F 1A D3 46 B2 [20:48:50]CheckFolder [20:48:50]dirname=/storage/ofd_packets [20:48:50]CheckFolder done [20:48:50]ProducePacketName [20:48:50]name=ofd_packets/00070817 [20:48:50]NVStorageSaveData ofd_packets/00070817 [20:48:50]File name is /storage/ofd_packets/00070817 [20:48:50]Write 300 bytes [20:48:50]NVStorageSaveData done [20:48:50]OFDSenderStorePacket done [20:48:50]KKMCreateOFDPacket done [20:48:50]NVStorageSaveData kkm_last_timestamp [20:48:50]File name is /storage/kkm_last_timestamp [20:48:50]Write 4 bytes [20:48:50]NVStorageSaveData done [20:48:50]ExternCall_PrintAddStr [20:48:50]wPrintStart [20:48:50]Write to MH i2c: 01 00 00 71 3E AF [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 07 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 07 00 71 3E 00 00 00 00 00 FF 0F C4 [20:48:50]RasterBufferAndPrint [20:48:50]line Счет N : (1)2886603 [20:48:50]line ИНН: 02508201610067 [20:48:50]line Контрольно-Кассовый Чек [20:48:50]line ПРОДАЖА [20:48:50]line ТРК (МРК, ГНК) : 71 [20:48:50]line Товар: 2711129700 [20:48:50]line ГАЗ-К-3 [20:48:50]line 12.860 * 38.90 [20:48:50]line = 500.25 [20:48:50]line НДС 12% НСП 1% [20:48:50]line > о реализуемом товаре [20:48:50]line ОКРУГЛЕНИЕ: -0.25 [20:48:50]line ИТОГО: 500.00 [20:48:50]line Внесено: 500.00 [20:48:50]line СДАЧА: 0.00 [20:48:50]line НСП 1% : 4.43 [20:48:50]line НДС 12% : 53.12 [20:48:50]line Наличными: 500.00 [20:48:50]line Безнал.: 0.00 [20:48:50]line Место: АЗС № 85 "Партнер Нефть" [20:48:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:48:50]line СНО: Общий режим [20:48:50]line Чек 333 23.10.2024 20:48 [20:48:50]line Смена: 196 ФФД: 1.0 [20:48:50]line ЗНМ: 0300000167 [20:48:50]line РНМ: 0000000000156251 [20:48:50]line Версия ККМ: v1.0 [20:48:50]line ФМ: 0000000000963346 [20:48:50]line ФД: 70817 [20:48:50]line ФПД: 68407998436930 [20:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70817&fm=68407998436930&tin=02508201610067®Number=0000000000156251&sum=50000 [20:48:51]OFD Sender: Processing packet 70817 [packets to send 18, broken 17] [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00070817 [20:48:51]OFD Sender: To server: pG, [20:48:51]CommunicateWithHost lk.salyk.kg:30040 [20:48:51]ConnectInit lk.salyk.kg [20:48:51]written 0, free lines is 4095 [20:48:51]Connected sock=11 [20:48: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 D7 21 06 01 3E FC 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 4D 01 00 00 F4 03 04 00 34 61 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 3E 37 7A 72 56 42 58 31 9C 8F 1A D3 46 B2 [20:48: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 FF E3 47 00 5F 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 A1 14 01 00 F4 03 04 00 D0 0A 19 67 B6 04 01 00 00 85 EC 45 DF 02 3A E4 C2 [20:48:51]CommunicateWithHost err = 0 [20:48:51]CheckOFDResponse [20:48:51]1017 (14) - 77093643461234 [20:48:51]1041 (16) - 0000000000963346 [20:48:51]1040 (4) - 70817 [20:48:51]1012 (4) - 23.10.2024 14:40 [20:48:51]1206 (1) - 0 [20:48:51]OFD Sender: Remove packet 70817 [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00070817 [20:48:51]NVStorageDeleteData [20:48:51]Write to MH i2c: 01 00 00 9C 3E DA [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 9C 3E 00 00 00 00 00 EC 0C D9 [20:48:51]RasterBufferAndPrint [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]written 0, free lines is 3314 [20:48:51]MH_Cut [20:48:51]Write to MH i2c: D1 01 00 A3 3E 01 B3 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 01 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 01 00 A3 3E 00 B2 [20:48:51]Write to MH i2c: 01 00 00 A4 3E E2 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]OFD Sender: No OFD packet to send [20:48:52]*** Cut start [20:48:52]*** Partial cut [20:48:52]*** CUTSNS_PIN = 1 [20:48:52]*** CUTSNS_PIN = 0 [20:48:52]*** Brake cut motor [20:48:52]Read from MH i2c: 01 [20:48:52]MH_I2C_Read... [20:48:52]*** Stop cut motor [20:48:52]*** Cut end [20:48:52]Read from MH i2c: 01 07 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: 01 07 00 A4 3E 00 00 00 00 00 FF 0F F7 [20:48:52]process_action close_receipt done [20:48:52]requested_data is exist [20:48:52]produce_requested_data [20:48:52]requested_item fm.sn is exist - process it [20:48:52]wFMCommunicate request_size=4 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 11 00 00 [20:48:52]Write to MH i2c: E2 08 00 A5 3E 80 11 00 00 00 00 00 00 5D [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:52]Read from MH i2c: E2 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 17 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 17 00 A5 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [20:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:48:52]wFMCommunicate OK [20:48:52]requested_item fd.num is exist - process it [20:48:52]SAM_PROTO_GetFieldsCounters [20:48:52]wFMCommunicate request_size=4 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 13 00 00 [20:48:52]Write to MH i2c: E2 08 00 A6 3E 80 13 00 00 00 00 00 00 60 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 62 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 62 00 A6 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 A1 14 01 00 0E 04 04 00 C4 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 DF [20:48: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 A1 14 01 00 0E 04 04 00 C4 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 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_GetFieldsCounters done [20:48:53]requested_item shift.num is exist - process it [20:48:53]requested_item shift.opened is exist - process it [20:48:53]req_shift_opened [20:48:53]FM_GetShiftState [20:48:53]SAM_PROTO_GetShiftState [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 13 01 00 [20:48:53]Write to MH i2c: E2 08 00 A7 3E 80 13 01 00 00 00 00 00 62 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0E 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0E 00 A7 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 EF [20:48:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_GetShiftState done [20:48:53]FM_GetShiftState done [20:48:53]req_shift_opened done [20:48:53]requested_item shift.open_date is exist - process it [20:48:53]req_shift_open_date [20:48:53]req_shift_open_date done [20:48:53]produce_requested_data done [20:48:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70817,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [20:48:53]process_action_free close_receipt [20:48:53]json_value_free [20:48:53]json_value_free done [20:48:53]process_json_proto returns [20:48:53]Send response to host [20:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70817,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [20:48:53]free response buf [20:48:53]execute_script done [20:48:53]execute_script returns [20:48:53]free content buf [20:48:53]Sock 9.Close socket [20:48:53]Sock 9.Thread stoped [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: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:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]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:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:49]accept exits with 7 [21:05:49]New connection [21:05:49]New thread 3067034980 created [21:05:49]Thread 3066891620 joined [21:05:49]Waiting for new connection... [21:05:49] Sock 7.Parse request [21:05:49]Sock 7.Check first char [21:05:49]Sock 7.First char is OK [21:05:49]request: POST /json_proto HTTP/1.0 [21:05:49]Method: POST [21:05:49]URL: /json_proto [21:05:49]Method is POST - this is cgi request [21:05:49]url: /json_proto [21:05:49]query_string will be loaded in cgi processing [21:05:49]execute_cgi json_proto POST (null) [21:05:49]execute_cgi path=json_proto method=POST [21:05:49]POST find Content-Length [21:05:49]Host: 172.17.50.3:8080 [21:05:49]Content-Length: 683 [21:05:49]Content-Type: application/json [21:05:49] [21:05:49]POST finish read [21:05:49]Found Content-Length = 683 [21:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886604", "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" ] } } [21:05:49]execute_script... [21:05: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)2886604", "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" ] } } [21:05:49]POST & json_proto [21:05:49]process_json_proto [21:05:49]json parsed OK: [21:05:49]protocol is kg_v1.0 [21:05:49]action value=close_receipt [21:05:49]process_action close_receipt [21:05:49]cmd_close_receipt [21:05:49]MH_GetDate [21:05:49]Write to MH i2c: F0 00 00 A8 3E D5 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: F0 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: F0 09 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: F0 09 00 A8 3E 00 30 65 19 67 6B 98 1E 66 7A [21:05:49]GetLastDocTimeStamp 1729716532 [21:05:49]current date 1729717552 [21:05:49]FM_GetShiftState [21:05:49]SAM_PROTO_GetShiftState [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 13 01 00 [21:05:49]Write to MH i2c: E2 08 00 A9 3E 80 13 01 00 00 00 00 00 64 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0E 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0E 00 A9 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 F1 [21:05:49]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_GetShiftState done [21:05:49]FM_GetShiftState done [21:05:49]opened in 1729642435 [21:05:49]opened+sec_in_day 1729728835 [21:05:49]quantity*price = 200043 [21:05:49]sum+1 = 200044 [21:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 334 23.10.2024 21:05 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70818 ФПД: 24763524875916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70818&fm=24763524875916&tin=02508201610067®Number=0000000000156251&sum=200000 [21:05:50]StoreToDocumentArchive [21:05:50]shift 196 fd 70818 [21:05:50]save to /storage/0196/doc_00070818 [21:05:50]save last doc name /storage/0196/doc_00070818 to /storage/kkm_last_doc_name [21:05:50]save OK [21:05:50]Clear old archive folders... [21:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:50]tlvbuf is 001608D0 [21:05:50]SAM_PROTO_ClearQueue [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 09 00 00 [21:05:50]Write to MH i2c: E2 08 00 B6 3E 80 09 00 00 00 00 00 00 66 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 B6 3E 00 90 00 68 [21:05:50]RAPDU: 90 00 [21:05:50]wFMCommunicate OK [21:05:50]SAM_PROTO_ClearQueue done [21:05:50]KKMCreateOFDPacket [21:05:50]OFDProtocolAddRootSTLVToBuf [21:05:50]FM_MakeSignedData [21:05:50]FM_MakeSignedData [21:05:50]SAM_PROTO_SignData [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 0D 01 02 [21:05:50]Write to MH i2c: E2 08 00 B7 3E 80 0D 01 02 00 00 00 00 6E [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 B7 3E 00 90 00 69 [21:05:50]RAPDU: 90 00 [21:05:50]wFMCommunicate OK [21:05:50]wFMCommunicate request_size=255 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 30 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 16 [21:05:50]Write to MH i2c: E2 02 01 B8 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 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 4E 01 00 00 F4 03 04 00 30 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 16 00 00 94 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 B8 3E 00 90 00 6A [21:05:50]RAPDU: 90 00 [21:05:50]wFMCommunicate OK [21:05:50]wFMCommunicate request_size=10 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 0D 02 02 05 85 B5 1A 86 8C [21:05:50]Write to MH i2c: E2 0D 00 B9 3E 80 0D 02 02 05 00 85 B5 1A 86 8C 00 00 E1 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 03 00 B9 3E 00 90 00 6B [21:05:50]RAPDU: 90 00 [21:05:50]wFMCommunicate OK [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 0D 03 02 [21:05:50]Write to MH i2c: E2 08 00 BA 3E 80 0D 03 02 00 00 00 00 73 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0B 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0B 00 BA 3E 00 78 01 BD 52 D5 F1 A9 CC 90 00 37 [21:05:50]RAPDU: 78 01 BD 52 D5 F1 A9 CC 90 00 [21:05:50]wFMCommunicate OK [21:05:50]SAM_PROTO_SignData done [21:05:50]FM_MakeSignedData done [21:05:50]CreateOFDProtocolMessage [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 11 00 00 [21:05:50]Write to MH i2c: E2 08 00 BB 3E 80 11 00 00 00 00 00 00 73 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 BB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [21: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 [21:05:51]wFMCommunicate OK [21:05:51]CreateOFDProtocolMessage done [21:05:51]OFDSenderStorePacket 70818 [21:05:51]StoreOFDPacket docnum=70818 [21:05: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 B0 1D 07 01 08 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 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 4E 01 00 00 F4 03 04 00 30 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 16 85 B5 1A 86 8C 78 01 BD 52 D5 F1 A9 CC [21:05:51]CheckFolder [21:05:51]dirname=/storage/ofd_packets [21:05:51]CheckFolder done [21:05:51]ProducePacketName [21:05:51]name=ofd_packets/00070818 [21:05:51]NVStorageSaveData ofd_packets/00070818 [21:05:51]File name is /storage/ofd_packets/00070818 [21:05:51]Write 301 bytes [21:05:51]NVStorageSaveData done [21:05:51]OFDSenderStorePacket done [21:05:51]KKMCreateOFDPacket done [21:05:51]NVStorageSaveData kkm_last_timestamp [21:05:51]File name is /storage/kkm_last_timestamp [21:05:51]Write 4 bytes [21:05:51]NVStorageSaveData done [21:05:51]ExternCall_PrintAddStr [21:05:51]wPrintStart [21:05:51]Write to MH i2c: 01 00 00 BC 3E FA [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 BC 3E 00 00 00 00 00 FF 0F 0F [21:05:51]RasterBufferAndPrint [21:05:51]line Счет N : (1)2886604 [21:05:51]line ИНН: 02508201610067 [21:05:51]line Контрольно-Кассовый Чек [21:05:51]line ПРОДАЖА [21:05:51]line ТРК (МРК, ГНК) : 43 [21:05:51]line Товар: 2710124500 [21:05:51]line Аи-95-К-5 [21:05:51]line 26.960 * 74.20 [21:05:51]line = 2000.43 [21:05:51]line НДС 12% НСП 1% [21:05:51]line > о реализуемом товаре [21:05:51]line ОКРУГЛЕНИЕ: -0.43 [21:05:51]line ИТОГО: 2000.00 [21:05:51]line Внесено: 2000.00 [21:05:51]line СДАЧА: 0.00 [21:05:51]line НСП 1% : 17.70 [21:05:51]line НДС 12% : 212.43 [21:05:51]line Наличными: 2000.00 [21:05:51]line Безнал.: 0.00 [21:05:51]line Место: АЗС № 85 "Партнер Нефть" [21:05:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:05:51]line СНО: Общий режим [21:05:51]line Чек 334 23.10.2024 21:05 [21:05:51]line Смена: 196 ФФД: 1.0 [21:05:51]line ЗНМ: 0300000167 [21:05:51]line РНМ: 0000000000156251 [21:05:51]line Версия ККМ: v1.0 [21:05:51]line ФМ: 0000000000963346 [21:05:51]line ФД: 70818 [21:05:51]line ФПД: 24763524875916 [21:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70818&fm=24763524875916&tin=02508201610067®Number=0000000000156251&sum=200000 [21:05:51]OFD Sender: Processing packet 70818 [packets to send 18, broken 17] [21:05:51]ProducePacketName [21:05:51]name=ofd_packets/00070818 [21:05:51]OFD Sender: To server: pG, [21:05:51]CommunicateWithHost lk.salyk.kg:30040 [21:05:51]ConnectInit lk.salyk.kg [21:05:51]written 0, free lines is 4095 [21:05:51]Connected sock=10 [21:05: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 B0 1D 07 01 08 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 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 4E 01 00 00 F4 03 04 00 30 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 16 85 B5 1A 86 8C 78 01 BD 52 D5 F1 A9 CC [21:05: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 44 E6 47 00 EB 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 A2 14 01 00 F4 03 04 00 CD 0E 19 67 B6 04 01 00 00 7F F9 FF DE 82 A9 BA 7B [21:05:51]CommunicateWithHost err = 0 [21:05:51]CheckOFDResponse [21:05:51]1017 (14) - 77093643461234 [21:05:51]1041 (16) - 0000000000963346 [21:05:51]1040 (4) - 70818 [21:05:51]1012 (4) - 23.10.2024 14:57 [21:05:51]1206 (1) - 0 [21:05:51]OFD Sender: Remove packet 70818 [21:05:51]ProducePacketName [21:05:51]name=ofd_packets/00070818 [21:05:51]NVStorageDeleteData [21:05:51]Write to MH i2c: 01 00 00 E7 3E 25 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 E7 3E 00 00 00 00 00 E4 0C 1C [21:05:51]RasterBufferAndPrint [21:05:51]line [21:05:51]line [21:05:51]line [21:05:51]line [21:05:51]line [21:05:51]written 0, free lines is 3306 [21:05:51]MH_Cut [21:05:51]Write to MH i2c: D1 01 00 EE 3E 01 FE [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: D1 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: D1 01 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: D1 01 00 EE 3E 00 FD [21:05:51]Write to MH i2c: 01 00 00 EF 3E 2D [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:52]OFD Sender: No OFD packet to send [21:05:52]*** Cut start [21:05:52]*** Partial cut [21:05:52]*** CUTSNS_PIN = 1 [21:05:52]*** CUTSNS_PIN = 0 [21:05:52]*** Brake cut motor [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]*** Stop cut motor [21:05:53]*** Cut end [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 EF 3E 00 00 00 00 00 FF 0F 42 [21:05:53]process_action close_receipt done [21:05:53]requested_data is exist [21:05:53]produce_requested_data [21:05:53]requested_item fm.sn is exist - process it [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 11 00 00 [21:05:53]Write to MH i2c: E2 08 00 F0 3E 80 11 00 00 00 00 00 00 A8 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 F0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [21:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:05:53]wFMCommunicate OK [21:05:53]requested_item fd.num is exist - process it [21:05:53]SAM_PROTO_GetFieldsCounters [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 13 00 00 [21:05:53]Write to MH i2c: E2 08 00 F1 3E 80 13 00 00 00 00 00 00 AB [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 62 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 62 00 F1 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 A2 14 01 00 0E 04 04 00 C4 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 2E [21:05: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 A2 14 01 00 0E 04 04 00 C4 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 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_GetFieldsCounters done [21:05:53]requested_item shift.num is exist - process it [21:05:53]requested_item shift.opened is exist - process it [21:05:53]req_shift_opened [21:05:53]FM_GetShiftState [21:05:53]SAM_PROTO_GetShiftState [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 13 01 00 [21:05:53]Write to MH i2c: E2 08 00 F2 3E 80 13 01 00 00 00 00 00 AD [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0E 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0E 00 F2 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3A [21:05:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_GetShiftState done [21:05:53]FM_GetShiftState done [21:05:53]req_shift_opened done [21:05:53]requested_item shift.open_date is exist - process it [21:05:53]req_shift_open_date [21:05:53]req_shift_open_date done [21:05:53]produce_requested_data done [21:05:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70818,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:05:53]process_action_free close_receipt [21:05:53]json_value_free [21:05:53]json_value_free done [21:05:53]process_json_proto returns [21:05:53]Send response to host [21:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70818,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:05:53]free response buf [21:05:53]execute_script done [21:05:53]execute_script returns [21:05:53]free content buf [21:05:53]Sock 7.Close socket [21:05:53]Sock 7.Thread stoped [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:31]accept exits with 9 [21:07:31]New connection [21:07:31]New thread 3066891620 created [21:07:31]Thread 3067034980 joined [21:07:31]Waiting for new connection... [21:07:31] Sock 9.Parse request [21:07:31]Sock 9.Check first char [21:07:31]Sock 9.First char is OK [21:07:31]request: POST /json_proto HTTP/1.0 [21:07:31]Method: POST [21:07:31]URL: /json_proto [21:07:31]Method is POST - this is cgi request [21:07:31]url: /json_proto [21:07:31]query_string will be loaded in cgi processing [21:07:31]execute_cgi json_proto POST (null) [21:07:31]execute_cgi path=json_proto method=POST [21:07:31]POST find Content-Length [21:07:31]Host: 172.17.50.3:8080 [21:07:31]Content-Length: 683 [21:07:31]Content-Type: application/json [21:07:31] [21:07:31]POST finish read [21:07:31]Found Content-Length = 683 [21:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886605", "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" : 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" ] } } [21:07:31]execute_script... [21: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)2886605", "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" : 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" ] } } [21:07:31]POST & json_proto [21:07:31]process_json_proto [21:07:31]json parsed OK: [21:07:31]protocol is kg_v1.0 [21:07:31]action value=close_receipt [21:07:31]process_action close_receipt [21:07:31]cmd_close_receipt [21:07:31]MH_GetDate [21:07:31]Write to MH i2c: F0 00 00 F3 3E 20 [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 09 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: F0 09 00 F3 3E 00 96 65 19 67 6B 98 1E 66 2B [21:07:31]GetLastDocTimeStamp 1729717552 [21:07:31]current date 1729717654 [21:07:31]FM_GetShiftState [21:07:31]SAM_PROTO_GetShiftState [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 13 01 00 [21:07:31]Write to MH i2c: E2 08 00 F4 3E 80 13 01 00 00 00 00 00 AF [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 F4 3E 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 3C [21:07:31]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:07:31]wFMCommunicate OK [21:07:31]SAM_PROTO_GetShiftState done [21:07:31]FM_GetShiftState done [21:07:31]opened in 1729642435 [21:07:31]opened+sec_in_day 1729728835 [21:07:31]quantity*price = 200043 [21:07:31]sum+1 = 200044 [21:07:31]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 СНО: Общий режим Чек 335 23.10.2024 21:07 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70819 ФПД: 20639030340535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70819&fm=20639030340535&tin=02508201610067®Number=0000000000156251&sum=200000 [21:07:32]StoreToDocumentArchive [21:07:32]shift 196 fd 70819 [21:07:32]save to /storage/0196/doc_00070819 [21:07:32]save last doc name /storage/0196/doc_00070819 to /storage/kkm_last_doc_name [21:07:32]save OK [21:07:32]Clear old archive folders... [21:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:32]tlvbuf is 0019C6C0 [21:07:32]SAM_PROTO_ClearQueue [21:07:32]wFMCommunicate request_size=4 [21:07:32]MH_SAM_APDU [21:07:32]CAPDU: 80 09 00 00 [21:07:32]Write to MH i2c: E2 08 00 01 3F 80 09 00 00 00 00 00 00 B2 [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:32]Read from MH i2c: E2 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: E2 03 00 01 3F 00 90 00 B4 [21:07:32]RAPDU: 90 00 [21:07:32]wFMCommunicate OK [21:07:32]SAM_PROTO_ClearQueue done [21:07:32]KKMCreateOFDPacket [21:07:32]OFDProtocolAddRootSTLVToBuf [21:07:32]FM_MakeSignedData [21:07:32]FM_MakeSignedData [21:07:32]SAM_PROTO_SignData [21:07:32]wFMCommunicate request_size=4 [21:07:32]MH_SAM_APDU [21:07:32]CAPDU: 80 0D 01 02 [21:07:32]Write to MH i2c: E2 08 00 02 3F 80 0D 01 02 00 00 00 00 BA [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 02 3F 00 90 00 B5 [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=255 [21:07:33]MH_SAM_APDU [21:07: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 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 4F 01 00 00 F4 03 04 00 96 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 [21:07:33]Write to MH i2c: E2 02 01 03 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 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 4F 01 00 00 F4 03 04 00 96 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 00 00 44 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 03 3F 00 90 00 B6 [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=10 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 0D 02 02 05 C5 66 12 6B B7 [21:07:33]Write to MH i2c: E2 0D 00 04 3F 80 0D 02 02 05 00 C5 66 12 6B B7 00 00 26 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 03 00 04 3F 00 90 00 B7 [21:07:33]RAPDU: 90 00 [21:07:33]wFMCommunicate OK [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 0D 03 02 [21:07:33]Write to MH i2c: E2 08 00 05 3F 80 0D 03 02 00 00 00 00 BF [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0B 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 0B 00 05 3F 00 74 0E 2E E7 E9 38 15 41 90 00 CE [21:07:33]RAPDU: 74 0E 2E E7 E9 38 15 41 90 00 [21:07:33]wFMCommunicate OK [21:07:33]SAM_PROTO_SignData done [21:07:33]FM_MakeSignedData done [21:07:33]CreateOFDProtocolMessage [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 11 00 00 [21:07:33]Write to MH i2c: E2 08 00 06 3F 80 11 00 00 00 00 00 00 BF [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 06 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [21:07: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:07:33]wFMCommunicate OK [21:07:33]CreateOFDProtocolMessage done [21:07:33]OFDSenderStorePacket 70819 [21:07:33]StoreOFDPacket docnum=70819 [21:07: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 BA 93 07 01 15 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 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 4F 01 00 00 F4 03 04 00 96 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 C5 66 12 6B B7 74 0E 2E E7 E9 38 15 41 [21:07:33]CheckFolder [21:07:33]dirname=/storage/ofd_packets [21:07:33]CheckFolder done [21:07:33]ProducePacketName [21:07:33]name=ofd_packets/00070819 [21:07:33]NVStorageSaveData ofd_packets/00070819 [21:07:33]File name is /storage/ofd_packets/00070819 [21:07:33]Write 301 bytes [21:07:33]NVStorageSaveData done [21:07:33]OFDSenderStorePacket done [21:07:33]KKMCreateOFDPacket done [21:07:33]NVStorageSaveData kkm_last_timestamp [21:07:33]File name is /storage/kkm_last_timestamp [21:07:33]Write 4 bytes [21:07:33]NVStorageSaveData done [21:07:33]ExternCall_PrintAddStr [21:07:33]wPrintStart [21:07:33]Write to MH i2c: 01 00 00 07 3F 46 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 07 3F 00 00 00 00 00 FF 0F 5B [21:07:33]RasterBufferAndPrint [21:07:33]line Счет N : (1)2886605 [21:07:33]line ИНН: 02508201610067 [21:07:33]line Контрольно-Кассовый Чек [21:07:33]line ПРОДАЖА [21:07:33]line ТРК (МРК, ГНК) : 23 [21:07:33]line Товар: 2710124500 [21:07:33]line Аи-95-К-5 [21:07:33]line 26.960 * 74.20 [21:07:33]line = 2000.43 [21:07:33]line НДС 12% НСП 1% [21:07:33]line > о реализуемом товаре [21:07:33]line ОКРУГЛЕНИЕ: -0.43 [21:07:33]line ИТОГО: 2000.00 [21:07:33]line Внесено: 2000.00 [21:07:33]line СДАЧА: 0.00 [21:07:33]line НСП 1% : 17.70 [21:07:33]line НДС 12% : 212.43 [21:07:33]line Наличными: 2000.00 [21:07:33]line Безнал.: 0.00 [21:07:33]line Место: АЗС № 85 "Партнер Нефть" [21:07:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:07:33]line СНО: Общий режим [21:07:33]line Чек 335 23.10.2024 21:07 [21:07:33]line Смена: 196 ФФД: 1.0 [21:07:33]line ЗНМ: 0300000167 [21:07:33]line РНМ: 0000000000156251 [21:07:33]line Версия ККМ: v1.0 [21:07:33]line ФМ: 0000000000963346 [21:07:33]line ФД: 70819 [21:07:33]line ФПД: 20639030340535 [21:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210734&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70819&fm=20639030340535&tin=02508201610067®Number=0000000000156251&sum=200000 [21:07:33]OFD Sender: Processing packet 70819 [packets to send 18, broken 17] [21:07:33]ProducePacketName [21:07:33]name=ofd_packets/00070819 [21:07:33]OFD Sender: To server: pG, [21:07:33]CommunicateWithHost lk.salyk.kg:30040 [21:07:33]ConnectInit lk.salyk.kg [21:07:33]written 0, free lines is 4095 [21:07:33]Connected sock=10 [21: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 0F 01 00 00 BA 93 07 01 15 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 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 4F 01 00 00 F4 03 04 00 96 65 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 12 C5 66 12 6B B7 74 0E 2E E7 E9 38 15 41 [21:07: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 7F 9A 47 00 CB 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 A3 14 01 00 F4 03 04 00 33 0F 19 67 B6 04 01 00 00 20 4E 51 4E AF 8C AB BF [21:07:34]CommunicateWithHost err = 0 [21:07:34]CheckOFDResponse [21:07:34]1017 (14) - 77093643461234 [21:07:34]1041 (16) - 0000000000963346 [21:07:34]1040 (4) - 70819 [21:07:34]1012 (4) - 23.10.2024 14:58 [21:07:34]1206 (1) - 0 [21:07:34]OFD Sender: Remove packet 70819 [21:07:34]ProducePacketName [21:07:34]name=ofd_packets/00070819 [21:07:34]NVStorageDeleteData [21:07:34]Write to MH i2c: 01 00 00 32 3F 71 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 07 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: 01 07 00 32 3F 00 00 00 00 00 EF 0C 73 [21:07:34]RasterBufferAndPrint [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]line [21:07:34]written 0, free lines is 3317 [21:07:34]MH_Cut [21:07:34]Write to MH i2c: D1 01 00 39 3F 01 4A [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 01 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: D1 01 00 39 3F 00 49 [21:07:34]Write to MH i2c: 01 00 00 3A 3F 79 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]OFD Sender: No OFD packet to send [21:07:34]*** Cut start [21:07:34]*** Partial cut [21:07:34]*** CUTSNS_PIN = 1 [21:07:35]*** CUTSNS_PIN = 0 [21:07:35]*** Brake cut motor [21:07:35]Read from MH i2c: 01 [21:07:35]MH_I2C_Read... [21:07:35]*** Stop cut motor [21:07:35]*** Cut end [21:07:35]Read from MH i2c: 01 07 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 3A 3F 00 00 00 00 00 FF 0F 8E [21:07:35]process_action close_receipt done [21:07:35]requested_data is exist [21:07:35]produce_requested_data [21:07:35]requested_item fm.sn is exist - process it [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 11 00 00 [21:07:35]Write to MH i2c: E2 08 00 3B 3F 80 11 00 00 00 00 00 00 F4 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 17 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 17 00 3B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [21: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 [21:07:35]wFMCommunicate OK [21:07:35]requested_item fd.num is exist - process it [21:07:35]SAM_PROTO_GetFieldsCounters [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 13 00 00 [21:07:35]Write to MH i2c: E2 08 00 3C 3F 80 13 00 00 00 00 00 00 F7 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 62 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 62 00 3C 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 A3 14 01 00 0E 04 04 00 C4 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 7E [21: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 A3 14 01 00 0E 04 04 00 C4 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 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_GetFieldsCounters done [21:07:35]requested_item shift.num is exist - process it [21:07:35]requested_item shift.opened is exist - process it [21:07:35]req_shift_opened [21:07:35]FM_GetShiftState [21:07:35]SAM_PROTO_GetShiftState [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 13 01 00 [21:07:35]Write to MH i2c: E2 08 00 3D 3F 80 13 01 00 00 00 00 00 F9 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0E 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0E 00 3D 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 86 [21:07:35]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_GetShiftState done [21:07:35]FM_GetShiftState done [21:07:35]req_shift_opened done [21:07:35]requested_item shift.open_date is exist - process it [21:07:35]req_shift_open_date [21:07:35]req_shift_open_date done [21:07:35]produce_requested_data done [21:07:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70819,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:07:35]process_action_free close_receipt [21:07:35]json_value_free [21:07:35]json_value_free done [21:07:35]process_json_proto returns [21:07:35]Send response to host [21:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70819,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:07:35]free response buf [21:07:35]execute_script done [21:07:35]execute_script returns [21:07:35]free content buf [21:07:35]Sock 9.Close socket [21:07:35]Sock 9.Thread stoped [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [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: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:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:30]accept exits with 7 [21:24:30]New connection [21:24:30]New thread 3067034980 created [21:24:30]Thread 3066891620 joined [21:24:30]Waiting for new connection... [21:24:30] Sock 7.Parse request [21:24:30]Sock 7.Check first char [21:24:30]Sock 7.First char is OK [21:24:30]request: POST /json_proto HTTP/1.0 [21:24:30]Method: POST [21:24:30]URL: /json_proto [21:24:30]Method is POST - this is cgi request [21:24:30]url: /json_proto [21:24:30]query_string will be loaded in cgi processing [21:24:30]execute_cgi json_proto POST (null) [21:24:30]execute_cgi path=json_proto method=POST [21:24:30]POST find Content-Length [21:24:30]Host: 172.17.50.3:8080 [21:24:30]Content-Length: 678 [21:24:30]Content-Type: application/json [21:24:30] [21:24:30]POST finish read [21:24:30]Found Content-Length = 678 [21:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886606", "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" : 6.360, "sum" : 425.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 425.00, "total" : 425.00, "payments": [ { "type": 0, "sum" : 425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:30]execute_script... [21:24: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)2886606", "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" : 6.360, "sum" : 425.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 425.00, "total" : 425.00, "payments": [ { "type": 0, "sum" : 425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:30]POST & json_proto [21:24:30]process_json_proto [21:24:30]json parsed OK: [21:24:30]protocol is kg_v1.0 [21:24:30]action value=close_receipt [21:24:30]process_action close_receipt [21:24:30]cmd_close_receipt [21:24:30]MH_GetDate [21:24:30]Write to MH i2c: F0 00 00 3E 3F 6C [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: F0 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: F0 09 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: F0 09 00 3E 3F 00 91 69 19 67 6B 98 1E 66 76 [21:24:30]GetLastDocTimeStamp 1729717654 [21:24:30]current date 1729718673 [21:24:30]FM_GetShiftState [21:24:30]SAM_PROTO_GetShiftState [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 13 01 00 [21:24:30]Write to MH i2c: E2 08 00 3F 3F 80 13 01 00 00 00 00 00 FB [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0E 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0E 00 3F 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 88 [21:24:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:24:30]wFMCommunicate OK [21:24:30]SAM_PROTO_GetShiftState done [21:24:30]FM_GetShiftState done [21:24:30]opened in 1729642435 [21:24:30]opened+sec_in_day 1729728835 [21:24:30]quantity*price = 42548 [21:24:30]sum+1 = 42549 [21:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 425.00 Внесено: 425.00 СДАЧА: 0.00 НСП 1% : 3.76 НДС 12% : 45.18 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 336 23.10.2024 21:24 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70820 ФПД: 170756336211581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70820&fm=170756336211581&tin=02508201610067®Number=0000000000156251&sum=42500 [21:24:31]StoreToDocumentArchive [21:24:31]shift 196 fd 70820 [21:24:31]save to /storage/0196/doc_00070820 [21:24:31]save last doc name /storage/0196/doc_00070820 to /storage/kkm_last_doc_name [21:24:31]save OK [21:24:31]Clear old archive folders... [21:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:31]tlvbuf is 00145CF0 [21:24:31]SAM_PROTO_ClearQueue [21:24:31]wFMCommunicate request_size=4 [21:24:31]MH_SAM_APDU [21:24:31]CAPDU: 80 09 00 00 [21:24:31]Write to MH i2c: E2 08 00 4C 3F 80 09 00 00 00 00 00 00 FD [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:31]Read from MH i2c: E2 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 03 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 03 00 4C 3F 00 90 00 FF [21:24:31]RAPDU: 90 00 [21:24:31]wFMCommunicate OK [21:24:31]SAM_PROTO_ClearQueue done [21:24:31]KKMCreateOFDPacket [21:24:31]OFDProtocolAddRootSTLVToBuf [21:24:31]FM_MakeSignedData [21:24:31]FM_MakeSignedData [21:24:31]SAM_PROTO_SignData [21:24:31]wFMCommunicate request_size=4 [21:24:31]MH_SAM_APDU [21:24:31]CAPDU: 80 0D 01 02 [21:24:31]Write to MH i2c: E2 08 00 4D 3F 80 0D 01 02 00 00 00 00 05 [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:31]Read from MH i2c: E2 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 03 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 03 00 4D 3F 00 90 00 00 [21:24:31]RAPDU: 90 00 [21:24:31]wFMCommunicate OK [21:24:31]wFMCommunicate request_size=255 [21:24:31]MH_SAM_APDU [21:24: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 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 91 69 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B [21:24:31]Write to MH i2c: E2 02 01 4E 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 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 91 69 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B 00 00 76 [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 03 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 03 00 4E 3F 00 90 00 01 [21:24:32]RAPDU: 90 00 [21:24:32]wFMCommunicate OK [21:24:32]wFMCommunicate request_size=10 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 0D 02 02 05 4D 4E C3 56 7D [21:24:32]Write to MH i2c: E2 0D 00 4F 3F 80 0D 02 02 05 00 4D 4E C3 56 7D 00 00 43 [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 03 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 03 00 4F 3F 00 90 00 02 [21:24:32]RAPDU: 90 00 [21:24:32]wFMCommunicate OK [21:24:32]wFMCommunicate request_size=4 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 0D 03 02 [21:24:32]Write to MH i2c: E2 08 00 50 3F 80 0D 03 02 00 00 00 00 0A [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 0B 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 0B 00 50 3F 00 91 F6 EC 34 04 01 FC 05 90 00 B8 [21:24:32]RAPDU: 91 F6 EC 34 04 01 FC 05 90 00 [21:24:32]wFMCommunicate OK [21:24:32]SAM_PROTO_SignData done [21:24:32]FM_MakeSignedData done [21:24:32]CreateOFDProtocolMessage [21:24:32]wFMCommunicate request_size=4 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 11 00 00 [21:24:32]Write to MH i2c: E2 08 00 51 3F 80 11 00 00 00 00 00 00 0A [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 17 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 17 00 51 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [21: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 [21:24:32]wFMCommunicate OK [21:24:32]CreateOFDProtocolMessage done [21:24:32]OFDSenderStorePacket 70820 [21:24:32]StoreOFDPacket docnum=70820 [21:24: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 3B 21 07 01 9A 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 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 91 69 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B 4D 4E C3 56 7D 91 F6 EC 34 04 01 FC 05 [21:24:32]CheckFolder [21:24:32]dirname=/storage/ofd_packets [21:24:32]CheckFolder done [21:24:32]ProducePacketName [21:24:32]name=ofd_packets/00070820 [21:24:32]NVStorageSaveData ofd_packets/00070820 [21:24:32]File name is /storage/ofd_packets/00070820 [21:24:32]Write 301 bytes [21:24:32]NVStorageSaveData done [21:24:32]OFDSenderStorePacket done [21:24:32]KKMCreateOFDPacket done [21:24:32]NVStorageSaveData kkm_last_timestamp [21:24:32]File name is /storage/kkm_last_timestamp [21:24:32]Write 4 bytes [21:24:32]NVStorageSaveData done [21:24:32]ExternCall_PrintAddStr [21:24:32]wPrintStart [21:24:32]Write to MH i2c: 01 00 00 52 3F 91 [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: 01 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: 01 07 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: 01 07 00 52 3F 00 00 00 00 00 FF 0F A6 [21:24:32]RasterBufferAndPrint [21:24:32]line Счет N : (1)2886606 [21:24:32]line ИНН: 02508201610067 [21:24:32]line Контрольно-Кассовый Чек [21:24:32]line ПРОДАЖА [21:24:32]line ТРК (МРК, ГНК) : 42 [21:24:32]line Товар: 2710124130 [21:24:32]line Аи-92-К-5 [21:24:32]line 6.360 * 66.90 [21:24:32]line = 425.48 [21:24:32]line НДС 12% НСП 1% [21:24:32]line > о реализуемом товаре [21:24:32]line ОКРУГЛЕНИЕ: -0.48 [21:24:32]line ИТОГО: 425.00 [21:24:32]line Внесено: 425.00 [21:24:32]line СДАЧА: 0.00 [21:24:32]line НСП 1% : 3.76 [21:24:32]line НДС 12% : 45.18 [21:24:32]line Наличными: 425.00 [21:24:32]line Безнал.: 0.00 [21:24:32]line Место: АЗС № 85 "Партнер Нефть" [21:24:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:24:32]line СНО: Общий режим [21:24:32]line Чек 336 23.10.2024 21:24 [21:24:32]line Смена: 196 ФФД: 1.0 [21:24:32]line ЗНМ: 0300000167 [21:24:32]line РНМ: 0000000000156251 [21:24:32]line Версия ККМ: v1.0 [21:24:32]line ФМ: 0000000000963346 [21:24:32]line ФД: 70820 [21:24:32]line ФПД: 170756336211581 [21:24:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70820&fm=170756336211581&tin=02508201610067®Number=0000000000156251&sum=42500 [21:24:32]OFD Sender: Processing packet 70820 [packets to send 18, broken 17] [21:24:32]ProducePacketName [21:24:32]name=ofd_packets/00070820 [21:24:32]OFD Sender: To server: pG, [21:24:32]CommunicateWithHost lk.salyk.kg:30040 [21:24:32]ConnectInit lk.salyk.kg [21:24:32]written 0, free lines is 4095 [21:24:32]Connected sock=10 [21:24: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 3B 21 07 01 9A 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 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 91 69 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9B 4D 4E C3 56 7D 91 F6 EC 34 04 01 FC 05 [21:24: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 6A DA 47 00 25 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 A4 14 01 00 F4 03 04 00 2E 13 19 67 B6 04 01 00 00 36 A4 A4 EB 93 C6 5B 92 [21:24:32]CommunicateWithHost err = 0 [21:24:32]CheckOFDResponse [21:24:32]1017 (14) - 77093643461234 [21:24:32]1041 (16) - 0000000000963346 [21:24:32]1040 (4) - 70820 [21:24:32]1012 (4) - 23.10.2024 15:15 [21:24:32]1206 (1) - 0 [21:24:32]OFD Sender: Remove packet 70820 [21:24:32]ProducePacketName [21:24:32]name=ofd_packets/00070820 [21:24:32]NVStorageDeleteData [21:24:33]Write to MH i2c: 01 00 00 7D 3F BC [21:24:33]Write i2c OK [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: 01 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: 01 07 00 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: 01 07 00 7D 3F 00 00 00 00 00 EC 0C BB [21:24:33]RasterBufferAndPrint [21:24:33]line [21:24:33]line [21:24:33]line [21:24:33]line [21:24:33]line [21:24:33]written 0, free lines is 3314 [21:24:33]MH_Cut [21:24:33]Write to MH i2c: D1 01 00 84 3F 01 95 [21:24:33]Write i2c OK [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: D1 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: D1 01 00 [21:24:33]MH_I2C_Read... [21:24:33]Read from MH i2c: D1 01 00 84 3F 00 94 [21:24:33]Write to MH i2c: 01 00 00 85 3F C4 [21:24:33]Write i2c OK [21:24:33]MH_I2C_Read... [21:24:33]OFD Sender: No OFD packet to send [21:24:33]*** Cut start [21:24:33]*** Partial cut [21:24:33]*** CUTSNS_PIN = 1 [21:24:33]*** CUTSNS_PIN = 0 [21:24:34]*** Brake cut motor [21:24:34]Read from MH i2c: 01 [21:24:34]MH_I2C_Read... [21:24:34]*** Stop cut motor [21:24:34]*** Cut end [21:24:34]Read from MH i2c: 01 07 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: 01 07 00 85 3F 00 00 00 00 00 FF 0F D9 [21:24:34]process_action close_receipt done [21:24:34]requested_data is exist [21:24:34]produce_requested_data [21:24:34]requested_item fm.sn is exist - process it [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 11 00 00 [21:24:34]Write to MH i2c: E2 08 00 86 3F 80 11 00 00 00 00 00 00 3F [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 17 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 17 00 86 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [21:24: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:24:34]wFMCommunicate OK [21:24:34]requested_item fd.num is exist - process it [21:24:34]SAM_PROTO_GetFieldsCounters [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 13 00 00 [21:24:34]Write to MH i2c: E2 08 00 87 3F 80 13 00 00 00 00 00 00 42 [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 62 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 62 00 87 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 A4 14 01 00 0E 04 04 00 C4 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 CD [21:24: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 A4 14 01 00 0E 04 04 00 C4 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 [21:24:34]wFMCommunicate OK [21:24:34]SAM_PROTO_GetFieldsCounters done [21:24:34]requested_item shift.num is exist - process it [21:24:34]requested_item shift.opened is exist - process it [21:24:34]req_shift_opened [21:24:34]FM_GetShiftState [21:24:34]SAM_PROTO_GetShiftState [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 13 01 00 [21:24:34]Write to MH i2c: E2 08 00 88 3F 80 13 01 00 00 00 00 00 44 [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 88 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D1 [21:24:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:24:34]wFMCommunicate OK [21:24:34]SAM_PROTO_GetShiftState done [21:24:34]FM_GetShiftState done [21:24:34]req_shift_opened done [21:24:34]requested_item shift.open_date is exist - process it [21:24:34]req_shift_open_date [21:24:34]req_shift_open_date done [21:24:34]produce_requested_data done [21:24:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70820,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:24:34]process_action_free close_receipt [21:24:34]json_value_free [21:24:34]json_value_free done [21:24:34]process_json_proto returns [21:24:34]Send response to host [21:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70820,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:24:34]free response buf [21:24:34]execute_script done [21:24:34]execute_script returns [21:24:34]free content buf [21:24:34]Sock 7.Close socket [21:24:34]Sock 7.Thread stoped [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:46]accept exits with 9 [21:27:46]New connection [21:27:46]New thread 3066891620 created [21:27:46]Thread 3067034980 joined [21:27:46]Waiting for new connection... [21:27:46] Sock 9.Parse request [21:27:46]Sock 9.Check first char [21:27:46]Sock 9.First char is OK [21:27:46]request: POST /json_proto HTTP/1.0 [21:27:46]Method: POST [21:27:46]URL: /json_proto [21:27:46]Method is POST - this is cgi request [21:27:46]url: /json_proto [21:27:46]query_string will be loaded in cgi processing [21:27:46]execute_cgi json_proto POST (null) [21:27:46]execute_cgi path=json_proto method=POST [21:27:46]POST find Content-Length [21:27:46]Host: 172.17.50.3:8080 [21:27:46]Content-Length: 801 [21:27:46]Content-Type: application/json [21:27:46] [21:27:46]POST finish read [21:27:46]Found Content-Length = 801 [21:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886607", "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" : 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\u000A1677471", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:46]execute_script... [21:27: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)2886607", "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" : 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\u000A1677471", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:46]POST & json_proto [21:27:46]process_json_proto [21:27:46]json parsed OK: [21:27:46]protocol is kg_v1.0 [21:27:46]action value=close_receipt [21:27:46]process_action close_receipt [21:27:46]cmd_close_receipt [21:27:46]MH_GetDate [21:27:46]Write to MH i2c: F0 00 00 89 3F B7 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 09 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 09 00 89 3F 00 56 6A 19 67 6B 98 1E 66 87 [21:27:46]GetLastDocTimeStamp 1729718673 [21:27:46]current date 1729718870 [21:27:46]FM_GetShiftState [21:27:46]SAM_PROTO_GetShiftState [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 13 01 00 [21:27:46]Write to MH i2c: E2 08 00 8A 3F 80 13 01 00 00 00 00 00 46 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 8A 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 D3 [21:27:46]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:27:46]wFMCommunicate OK [21:27:46]SAM_PROTO_GetShiftState done [21:27:46]FM_GetShiftState done [21:27:46]opened in 1729642435 [21:27:46]opened+sec_in_day 1729728835 [21:27:46]quantity*price = 0 [21:27:46]sum+1 = 1 [21:27: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 СНО: Общий режим Чек 337 23.10.2024 21:27 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 1677471 ФМ: 0000000000963346 ФД: 70821 ФПД: 191624021453538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212750&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70821&fm=191624021453538&tin=02508201610067®Number=0000000000156251&sum=0 [21:27:48]StoreToDocumentArchive [21:27:48]shift 196 fd 70821 [21:27:48]save to /storage/0196/doc_00070821 [21:27:48]save last doc name /storage/0196/doc_00070821 to /storage/kkm_last_doc_name [21:27:48]save OK [21:27:48]Clear old archive folders... [21:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:48]tlvbuf is 0029ABF0 [21:27:48]SAM_PROTO_ClearQueue [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 09 00 00 [21:27:48]Write to MH i2c: E2 08 00 97 3F 80 09 00 00 00 00 00 00 48 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 97 3F 00 90 00 4A [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]SAM_PROTO_ClearQueue done [21:27:48]KKMCreateOFDPacket [21:27:48]OFDProtocolAddRootSTLVToBuf [21:27:48]FM_MakeSignedData [21:27:48]FM_MakeSignedData [21:27:48]SAM_PROTO_SignData [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 0D 01 02 [21:27:48]Write to MH i2c: E2 08 00 98 3F 80 0D 01 02 00 00 00 00 50 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 98 3F 00 90 00 4B [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]wFMCommunicate request_size=255 [21:27:48]MH_SAM_APDU [21:27: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 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 51 01 00 00 F4 03 04 00 56 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AE [21:27:48]Write to MH i2c: E2 02 01 99 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 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 51 01 00 00 F4 03 04 00 56 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AE 00 00 84 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 99 3F 00 90 00 4C [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]wFMCommunicate request_size=10 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 0D 02 02 05 47 F1 BA AA E2 [21:27:48]Write to MH i2c: E2 0D 00 9A 3F 80 0D 02 02 05 00 47 F1 BA AA E2 00 00 DB [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 9A 3F 00 90 00 4D [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 0D 03 02 [21:27:48]Write to MH i2c: E2 08 00 9B 3F 80 0D 03 02 00 00 00 00 55 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 0B 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 0B 00 9B 3F 00 C7 01 78 EC EB DC 07 B0 90 00 00 [21:27:48]RAPDU: C7 01 78 EC EB DC 07 B0 90 00 [21:27:48]wFMCommunicate OK [21:27:48]SAM_PROTO_SignData done [21:27:48]FM_MakeSignedData done [21:27:48]CreateOFDProtocolMessage [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 11 00 00 [21:27:48]Write to MH i2c: E2 08 00 9C 3F 80 11 00 00 00 00 00 00 55 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 17 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 17 00 9C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [21:27: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:27:48]wFMCommunicate OK [21:27:48]CreateOFDProtocolMessage done [21:27:48]OFDSenderStorePacket 70821 [21:27:48]StoreOFDPacket docnum=70821 [21:27: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 9D 81 07 01 63 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 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 51 01 00 00 F4 03 04 00 56 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AE 47 F1 BA AA E2 C7 01 78 EC EB DC 07 B0 [21:27:48]CheckFolder [21:27:48]dirname=/storage/ofd_packets [21:27:48]CheckFolder done [21:27:48]ProducePacketName [21:27:48]name=ofd_packets/00070821 [21:27:48]NVStorageSaveData ofd_packets/00070821 [21:27:48]File name is /storage/ofd_packets/00070821 [21:27:48]Write 301 bytes [21:27:48]NVStorageSaveData done [21:27:48]OFDSenderStorePacket done [21:27:48]KKMCreateOFDPacket done [21:27:48]NVStorageSaveData kkm_last_timestamp [21:27:48]File name is /storage/kkm_last_timestamp [21:27:48]Write 4 bytes [21:27:48]NVStorageSaveData done [21:27:48]ExternCall_PrintAddStr [21:27:48]wPrintStart [21:27:48]Write to MH i2c: 01 00 00 9D 3F DC [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 9D 3F 00 00 00 00 00 FF 0F F1 [21:27:48]RasterBufferAndPrint [21:27:48]line Счет N : (1)2886607 [21:27:48]line ИНН: 02508201610067 [21:27:48]line Контрольно-Кассовый Чек [21:27:48]line ПРОДАЖА [21:27:48]line ТРК (МРК, ГНК) : 33 [21:27:48]line Товар: 2710124500 [21:27:48]line Аи-95-К-5 [21:27:48]line 20.000 * 0.00 [21:27:48]line = 0.00 [21:27:48]line НДС 12% НСП 1% [21:27:48]line > о реализуемом товаре [21:27:48]line ИТОГО: 0.00 [21:27:48]line НСП 1% : 0.00 [21:27:48]line НДС 12% : 0.00 [21:27:48]line Наличными: 0.00 [21:27:48]line Безнал.: 0.00 [21:27:48]line Место: АЗС № 85 "Партнер Нефть" [21:27:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:27:48]line СНО: Общий режим [21:27:48]line Чек 337 23.10.2024 21:27 [21:27:48]line Смена: 196 ФФД: 1.0 [21:27:48]line ЗНМ: 0300000167 [21:27:48]line РНМ: 0000000000156251 [21:27:48]line Версия ККМ: v1.0 [21:27:48]line Талоны: Топливные Талоны [21:27:48]line 1677471 [21:27:48]line ФМ: 0000000000963346 [21:27:48]line ФД: 70821 [21:27:48]line ФПД: 191624021453538 [21:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212750&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70821&fm=191624021453538&tin=02508201610067®Number=0000000000156251&sum=0 [21:27:48]OFD Sender: Processing packet 70821 [packets to send 18, broken 17] [21:27:48]ProducePacketName [21:27:48]name=ofd_packets/00070821 [21:27:48]OFD Sender: To server: pG, [21:27:48]CommunicateWithHost lk.salyk.kg:30040 [21:27:48]ConnectInit lk.salyk.kg [21:27:48]written 0, free lines is 4095 [21:27:49]Connected sock=10 [21:27: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 81 07 01 63 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 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 51 01 00 00 F4 03 04 00 56 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 AE 47 F1 BA AA E2 C7 01 78 EC EB DC 07 B0 [21:27: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 40 A9 47 00 38 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 A5 14 01 00 F4 03 04 00 F2 13 19 67 B6 04 01 00 00 17 C5 23 23 C8 A1 25 39 [21:27:49]CommunicateWithHost err = 0 [21:27:49]CheckOFDResponse [21:27:49]1017 (14) - 77093643461234 [21:27:49]1041 (16) - 0000000000963346 [21:27:49]1040 (4) - 70821 [21:27:49]1012 (4) - 23.10.2024 15:19 [21:27:49]1206 (1) - 0 [21:27:49]OFD Sender: Remove packet 70821 [21:27:49]ProducePacketName [21:27:49]name=ofd_packets/00070821 [21:27:49]NVStorageDeleteData [21:27:49]Write to MH i2c: 01 00 00 C7 3F 06 [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: 01 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: 01 07 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: 01 07 00 C7 3F 00 00 00 00 00 F9 0C 12 [21:27:49]RasterBufferAndPrint [21:27:49]line [21:27:49]line [21:27:49]line [21:27:49]line [21:27:49]line [21:27:49]written 0, free lines is 3330 [21:27:49]MH_Cut [21:27:49]Write to MH i2c: D1 01 00 CE 3F 01 DF [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: D1 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: D1 01 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: D1 01 00 CE 3F 00 DE [21:27:49]Write to MH i2c: 01 00 00 CF 3F 0E [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]OFD Sender: No OFD packet to send [21:27:50]*** Cut start [21:27:50]*** Partial cut [21:27:50]*** CUTSNS_PIN = 1 [21:27:50]*** CUTSNS_PIN = 0 [21:27:50]*** Brake cut motor [21:27:50]Read from MH i2c: 01 [21:27:50]MH_I2C_Read... [21:27:50]*** Stop cut motor [21:27:50]*** Cut end [21:27:50]Read from MH i2c: 01 07 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: 01 07 00 CF 3F 00 00 00 00 00 FF 0F 23 [21:27:50]process_action close_receipt done [21:27:50]requested_data is exist [21:27:50]produce_requested_data [21:27:50]requested_item fm.sn is exist - process it [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 11 00 00 [21:27:50]Write to MH i2c: E2 08 00 D0 3F 80 11 00 00 00 00 00 00 89 [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 17 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 17 00 D0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [21: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 [21:27:50]wFMCommunicate OK [21:27:50]requested_item fd.num is exist - process it [21:27:50]SAM_PROTO_GetFieldsCounters [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 13 00 00 [21:27:50]Write to MH i2c: E2 08 00 D1 3F 80 13 00 00 00 00 00 00 8C [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 62 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 62 00 D1 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 A5 14 01 00 0E 04 04 00 C4 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 1B [21:27: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 A5 14 01 00 0E 04 04 00 C4 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 [21:27:50]wFMCommunicate OK [21:27:50]SAM_PROTO_GetFieldsCounters done [21:27:50]requested_item shift.num is exist - process it [21:27:50]requested_item shift.opened is exist - process it [21:27:50]req_shift_opened [21:27:50]FM_GetShiftState [21:27:50]SAM_PROTO_GetShiftState [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 13 01 00 [21:27:50]Write to MH i2c: E2 08 00 D2 3F 80 13 01 00 00 00 00 00 8E [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 0E 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 0E 00 D2 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1B [21:27:50]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:27:50]wFMCommunicate OK [21:27:50]SAM_PROTO_GetShiftState done [21:27:50]FM_GetShiftState done [21:27:50]req_shift_opened done [21:27:50]requested_item shift.open_date is exist - process it [21:27:50]req_shift_open_date [21:27:50]req_shift_open_date done [21:27:50]produce_requested_data done [21:27:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70821,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:27:50]process_action_free close_receipt [21:27:50]json_value_free [21:27:50]json_value_free done [21:27:50]process_json_proto returns [21:27:50]Send response to host [21:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70821,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:27:50]free response buf [21:27:50]execute_script done [21:27:50]execute_script returns [21:27:50]free content buf [21:27:50]Sock 9.Close socket [21:27:50]Sock 9.Thread stoped [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:51]accept exits with 7 [21:29:51]New connection [21:29:51]New thread 3067034980 created [21:29:51]Thread 3066891620 joined [21:29:51]Waiting for new connection... [21:29:51] Sock 7.Parse request [21:29:51]Sock 7.Check first char [21:29:51]Sock 7.First char is OK [21:29:51]request: POST /json_proto HTTP/1.0 [21:29:51]Method: POST [21:29:51]URL: /json_proto [21:29:51]Method is POST - this is cgi request [21:29:51]url: /json_proto [21:29:51]query_string will be loaded in cgi processing [21:29:51]execute_cgi json_proto POST (null) [21:29:51]execute_cgi path=json_proto method=POST [21:29:51]POST find Content-Length [21:29:51]Host: 172.17.50.3:8080 [21:29:51]Content-Length: 689 [21:29:51]Content-Type: application/json [21:29:51] [21:29:51]POST finish read [21:29:51]Found Content-Length = 689 [21:29:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886608", "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:29:51]execute_script... [21:29: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)2886608", "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:29:51]POST & json_proto [21:29:51]process_json_proto [21:29:51]json parsed OK: [21:29:51]protocol is kg_v1.0 [21:29:51]action value=close_receipt [21:29:51]process_action close_receipt [21:29:51]cmd_close_receipt [21:29:51]MH_GetDate [21:29:51]Write to MH i2c: F0 00 00 D3 3F 01 [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: F0 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: F0 09 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: F0 09 00 D3 3F 00 D2 6A 19 67 6B 98 1E 66 4D [21:29:51]GetLastDocTimeStamp 1729718870 [21:29:51]current date 1729718994 [21:29:51]FM_GetShiftState [21:29:51]SAM_PROTO_GetShiftState [21:29:51]wFMCommunicate request_size=4 [21:29:51]MH_SAM_APDU [21:29:51]CAPDU: 80 13 01 00 [21:29:51]Write to MH i2c: E2 08 00 D4 3F 80 13 01 00 00 00 00 00 90 [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0E 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0E 00 D4 3F 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 1D [21:29:51]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:29:51]wFMCommunicate OK [21:29:51]SAM_PROTO_GetShiftState done [21:29:51]FM_GetShiftState done [21:29:51]opened in 1729642435 [21:29:51]opened+sec_in_day 1729728835 [21:29:51]quantity*price = 100051 [21:29:51]sum+1 = 100052 [21:29:51]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 СНО: Общий режим Чек 338 23.10.2024 21:29 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70822 ФПД: 214332856953356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212954&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70822&fm=214332856953356&tin=02508201610067®Number=0000000000156251&sum=100000 [21:29:52]StoreToDocumentArchive [21:29:52]shift 196 fd 70822 [21:29:52]save to /storage/0196/doc_00070822 [21:29:52]save last doc name /storage/0196/doc_00070822 to /storage/kkm_last_doc_name [21:29:52]save OK [21:29:52]Clear old archive folders... [21:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:29:52]tlvbuf is 0015C360 [21:29:52]SAM_PROTO_ClearQueue [21:29:52]wFMCommunicate request_size=4 [21:29:52]MH_SAM_APDU [21:29:52]CAPDU: 80 09 00 00 [21:29:52]Write to MH i2c: E2 08 00 E1 3F 80 09 00 00 00 00 00 00 92 [21:29:52]Write i2c OK [21:29:52]MH_I2C_Read... [21:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:52]Read from MH i2c: E2 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 03 00 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 03 00 E1 3F 00 90 00 94 [21:29:52]RAPDU: 90 00 [21:29:52]wFMCommunicate OK [21:29:52]SAM_PROTO_ClearQueue done [21:29:52]KKMCreateOFDPacket [21:29:52]OFDProtocolAddRootSTLVToBuf [21:29:52]FM_MakeSignedData [21:29:52]FM_MakeSignedData [21:29:52]SAM_PROTO_SignData [21:29:52]wFMCommunicate request_size=4 [21:29:52]MH_SAM_APDU [21:29:52]CAPDU: 80 0D 01 02 [21:29:52]Write to MH i2c: E2 08 00 E2 3F 80 0D 01 02 00 00 00 00 9A [21:29:52]Write i2c OK [21:29:52]MH_I2C_Read... [21:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:52]Read from MH i2c: E2 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 03 00 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 03 00 E2 3F 00 90 00 95 [21:29:52]RAPDU: 90 00 [21:29:52]wFMCommunicate OK [21:29:52]wFMCommunicate request_size=255 [21:29:52]MH_SAM_APDU [21:29: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 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 52 01 00 00 F4 03 04 00 D2 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 [21:29:52]Write to MH i2c: E2 02 01 E3 3F 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 52 01 00 00 F4 03 04 00 D2 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 00 7A [21:29:52]Write i2c OK [21:29:52]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 E3 3F 00 90 00 96 [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]wFMCommunicate request_size=16 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 EF 41 CD 6A 0C [21:29:53]Write to MH i2c: E2 13 00 E4 3F 80 0D 02 02 0B 00 00 35 04 06 00 C2 EF 41 CD 6A 0C 00 00 27 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 E4 3F 00 90 00 97 [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 03 02 [21:29:53]Write to MH i2c: E2 08 00 E5 3F 80 0D 03 02 00 00 00 00 9F [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0B 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0B 00 E5 3F 00 A7 AA 42 8A 74 AD 9A A0 90 00 18 [21:29:53]RAPDU: A7 AA 42 8A 74 AD 9A A0 90 00 [21:29:53]wFMCommunicate OK [21:29:53]SAM_PROTO_SignData done [21:29:53]FM_MakeSignedData done [21:29:53]CreateOFDProtocolMessage [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 11 00 00 [21:29:53]Write to MH i2c: E2 08 00 E6 3F 80 11 00 00 00 00 00 00 9F [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 E6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [21: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 [21:29:53]wFMCommunicate OK [21:29:53]CreateOFDProtocolMessage done [21:29:53]OFDSenderStorePacket 70822 [21:29:53]StoreOFDPacket docnum=70822 [21:29: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 15 01 00 00 26 E5 0D 01 DB 67 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 52 01 00 00 F4 03 04 00 D2 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 EF 41 CD 6A 0C A7 AA 42 8A 74 AD 9A A0 [21:29:53]CheckFolder [21:29:53]dirname=/storage/ofd_packets [21:29:53]CheckFolder done [21:29:53]ProducePacketName [21:29:53]name=ofd_packets/00070822 [21:29:53]NVStorageSaveData ofd_packets/00070822 [21:29:53]File name is /storage/ofd_packets/00070822 [21:29:53]Write 307 bytes [21:29:53]NVStorageSaveData done [21:29:53]OFDSenderStorePacket done [21:29:53]KKMCreateOFDPacket done [21:29:53]NVStorageSaveData kkm_last_timestamp [21:29:53]File name is /storage/kkm_last_timestamp [21:29:53]Write 4 bytes [21:29:53]NVStorageSaveData done [21:29:53]ExternCall_PrintAddStr [21:29:53]wPrintStart [21:29:53]Write to MH i2c: 01 00 00 E7 3F 26 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 E7 3F 00 00 00 00 00 FF 0F 3B [21:29:53]RasterBufferAndPrint [21:29:53]line Счет N : (1)2886608 [21:29:53]line ИНН: 02508201610067 [21:29:53]line Контрольно-Кассовый Чек [21:29:53]line ПРОДАЖА [21:29:53]line ТРК (МРК, ГНК) : 11 [21:29:53]line Товар: 2710194240 [21:29:53]line D-ENERGY Дт-К-2 [21:29:53]line 12.960 * 77.20 [21:29:53]line = 1000.51 [21:29:53]line НДС 12% НСП 1% [21:29:53]line > о реализуемом товаре [21:29:53]line ОКРУГЛЕНИЕ: -0.51 [21:29:53]line ИТОГО: 1000.00 [21:29:53]line Внесено: 1000.00 [21:29:53]line СДАЧА: 0.00 [21:29:53]line НСП 1% : 8.85 [21:29:53]line НДС 12% : 106.25 [21:29:53]line Наличными: 1000.00 [21:29:53]line Безнал.: 0.00 [21:29:53]line Место: АЗС № 85 "Партнер Нефть" [21:29:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:29:53]line СНО: Общий режим [21:29:53]line Чек 338 23.10.2024 21:29 [21:29:53]line Смена: 196 ФФД: 1.0 [21:29:53]line ЗНМ: 0300000167 [21:29:53]line РНМ: 0000000000156251 [21:29:53]line Версия ККМ: v1.0 [21:29:53]line ФМ: 0000000000963346 [21:29:53]line ФД: 70822 [21:29:53]line ФПД: 214332856953356 [21:29:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212954&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70822&fm=214332856953356&tin=02508201610067®Number=0000000000156251&sum=100000 [21:29:53]OFD Sender: Processing packet 70822 [packets to send 18, broken 17] [21:29:53]ProducePacketName [21:29:53]name=ofd_packets/00070822 [21:29:53]OFD Sender: To server: pG, [21:29:53]CommunicateWithHost lk.salyk.kg:30040 [21:29:53]ConnectInit lk.salyk.kg [21:29:53]written 0, free lines is 4095 [21:29:53]Connected sock=10 [21:29: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 26 E5 0D 01 DB 67 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 52 01 00 00 F4 03 04 00 D2 6A 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C2 EF 41 CD 6A 0C A7 AA 42 8A 74 AD 9A A0 [21:29: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 28 E6 47 00 C7 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 A6 14 01 00 F4 03 04 00 6F 14 19 67 B6 04 01 00 00 23 00 92 E4 52 DB 87 DA [21:29:53]CommunicateWithHost err = 0 [21:29:54]CheckOFDResponse [21:29:54]1017 (14) - 77093643461234 [21:29:54]1041 (16) - 0000000000963346 [21:29:54]1040 (4) - 70822 [21:29:54]1012 (4) - 23.10.2024 15:21 [21:29:54]1206 (1) - 0 [21:29:54]OFD Sender: Remove packet 70822 [21:29:54]ProducePacketName [21:29:54]name=ofd_packets/00070822 [21:29:54]NVStorageDeleteData [21:29:54]Write to MH i2c: 01 00 00 12 40 52 [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 07 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 07 00 12 40 00 00 00 00 00 F6 0C 5B [21:29:54]RasterBufferAndPrint [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]written 0, free lines is 3325 [21:29:54]MH_Cut [21:29:54]Write to MH i2c: D1 01 00 19 40 01 2B [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: D1 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: D1 01 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: D1 01 00 19 40 00 2A [21:29:54]Write to MH i2c: 01 00 00 1A 40 5A [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]OFD Sender: No OFD packet to send [21:29:54]*** Cut start [21:29:54]*** Partial cut [21:29:54]*** CUTSNS_PIN = 1 [21:29:54]*** CUTSNS_PIN = 0 [21:29:55]*** Brake cut motor [21:29:55]Read from MH i2c: 01 [21:29:55]MH_I2C_Read... [21:29:55]*** Stop cut motor [21:29:55]*** Cut end [21:29:55]Read from MH i2c: 01 07 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: 01 07 00 1A 40 00 00 00 00 00 FF 0F 6F [21:29:55]process_action close_receipt done [21:29:55]requested_data is exist [21:29:55]produce_requested_data [21:29:55]requested_item fm.sn is exist - process it [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 11 00 00 [21:29:55]Write to MH i2c: E2 08 00 1B 40 80 11 00 00 00 00 00 00 D5 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 17 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 17 00 1B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [21:29:55]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:55]wFMCommunicate OK [21:29:55]requested_item fd.num is exist - process it [21:29:55]SAM_PROTO_GetFieldsCounters [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 13 00 00 [21:29:55]Write to MH i2c: E2 08 00 1C 40 80 13 00 00 00 00 00 00 D8 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 62 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 62 00 1C 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 A6 14 01 00 0E 04 04 00 C4 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 6B [21:29: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 A6 14 01 00 0E 04 04 00 C4 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 [21:29:55]wFMCommunicate OK [21:29:55]SAM_PROTO_GetFieldsCounters done [21:29:55]requested_item shift.num is exist - process it [21:29:55]requested_item shift.opened is exist - process it [21:29:55]req_shift_opened [21:29:55]FM_GetShiftState [21:29:55]SAM_PROTO_GetShiftState [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 13 01 00 [21:29:55]Write to MH i2c: E2 08 00 1D 40 80 13 01 00 00 00 00 00 DA [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 0E 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 0E 00 1D 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 67 [21:29:55]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:29:55]wFMCommunicate OK [21:29:55]SAM_PROTO_GetShiftState done [21:29:55]FM_GetShiftState done [21:29:55]req_shift_opened done [21:29:55]requested_item shift.open_date is exist - process it [21:29:55]req_shift_open_date [21:29:55]req_shift_open_date done [21:29:55]produce_requested_data done [21:29:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70822,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:29:55]process_action_free close_receipt [21:29:55]json_value_free [21:29:55]json_value_free done [21:29:55]process_json_proto returns [21:29:55]Send response to host [21:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70822,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:29:55]free response buf [21:29:55]execute_script done [21:29:55]execute_script returns [21:29:55]free content buf [21:29:55]Sock 7.Close socket [21:29:55]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]accept exits with 9 [21:39:19]New connection [21:39:19]New thread 3066891620 created [21:39:19]Thread 3067034980 joined [21:39:19]Waiting for new connection... [21:39:19] Sock 9.Parse request [21:39:19]Sock 9.Check first char [21:39:19]Sock 9.First char is OK [21:39:19]request: POST /json_proto HTTP/1.0 [21:39:19]Method: POST [21:39:19]URL: /json_proto [21:39:19]Method is POST - this is cgi request [21:39:19]url: /json_proto [21:39:19]query_string will be loaded in cgi processing [21:39:19]execute_cgi json_proto POST (null) [21:39:19]execute_cgi path=json_proto method=POST [21:39:19]POST find Content-Length [21:39:19]Host: 172.17.50.3:8080 [21:39:19]Content-Length: 686 [21:39:19]Content-Type: application/json [21:39:19] [21:39:19]POST finish read [21:39:19]Found Content-Length = 686 [21:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886609", "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" ] } } [21:39:19]execute_script... [21: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)2886609", "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" ] } } [21:39:19]POST & json_proto [21:39:19]process_json_proto [21:39:19]json parsed OK: [21:39:19]protocol is kg_v1.0 [21:39:19]action value=close_receipt [21:39:19]process_action close_receipt [21:39:19]cmd_close_receipt [21:39:19]MH_GetDate [21:39:19]Write to MH i2c: F0 00 00 1E 40 4D [21:39:19]Write i2c OK [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: F0 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: F0 09 00 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: F0 09 00 1E 40 00 0A 6D 19 67 6B 98 1E 66 D4 [21:39:19]GetLastDocTimeStamp 1729718994 [21:39:19]current date 1729719562 [21:39:19]FM_GetShiftState [21:39:19]SAM_PROTO_GetShiftState [21:39:19]wFMCommunicate request_size=4 [21:39:19]MH_SAM_APDU [21:39:19]CAPDU: 80 13 01 00 [21:39:19]Write to MH i2c: E2 08 00 1F 40 80 13 01 00 00 00 00 00 DC [21:39:19]Write i2c OK [21:39:19]MH_I2C_Read... [21:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:19]Read from MH i2c: E2 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: E2 0E 00 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: E2 0E 00 1F 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 69 [21:39:19]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:39:19]wFMCommunicate OK [21:39:19]SAM_PROTO_GetShiftState done [21:39:19]FM_GetShiftState done [21:39:19]opened in 1729642435 [21:39:19]opened+sec_in_day 1729728835 [21:39:19]quantity*price = 150037 [21:39:19]sum+1 = 150038 [21:39:19]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 СНО: Общий режим Чек 339 23.10.2024 21:39 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70823 ФПД: 173123026121636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70823&fm=173123026121636&tin=02508201610067®Number=0000000000156251&sum=150000 [21:39:20]StoreToDocumentArchive [21:39:20]shift 196 fd 70823 [21:39:20]save to /storage/0196/doc_00070823 [21:39:20]save last doc name /storage/0196/doc_00070823 to /storage/kkm_last_doc_name [21:39:20]save OK [21:39:20]Clear old archive folders... [21:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:39:20]tlvbuf is 00196A50 [21:39:20]SAM_PROTO_ClearQueue [21:39:20]wFMCommunicate request_size=4 [21:39:20]MH_SAM_APDU [21:39:20]CAPDU: 80 09 00 00 [21:39:20]Write to MH i2c: E2 08 00 2C 40 80 09 00 00 00 00 00 00 DE [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 2C 40 00 90 00 E0 [21:39:20]RAPDU: 90 00 [21:39:20]wFMCommunicate OK [21:39:20]SAM_PROTO_ClearQueue done [21:39:20]KKMCreateOFDPacket [21:39:20]OFDProtocolAddRootSTLVToBuf [21:39:20]FM_MakeSignedData [21:39:20]FM_MakeSignedData [21:39:20]SAM_PROTO_SignData [21:39:20]wFMCommunicate request_size=4 [21:39:20]MH_SAM_APDU [21:39:20]CAPDU: 80 0D 01 02 [21:39:20]Write to MH i2c: E2 08 00 2D 40 80 0D 01 02 00 00 00 00 E6 [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 2D 40 00 90 00 E1 [21:39:20]RAPDU: 90 00 [21:39:20]wFMCommunicate OK [21:39:20]wFMCommunicate request_size=255 [21:39:20]MH_SAM_APDU [21:39: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 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 53 01 00 00 F4 03 04 00 0A 6D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 74 [21:39:20]Write to MH i2c: E2 02 01 2E 40 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 53 01 00 00 F4 03 04 00 0A 6D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 74 00 00 7C [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 2E 40 00 90 00 E2 [21:39:20]RAPDU: 90 00 [21:39:20]wFMCommunicate OK [21:39:20]wFMCommunicate request_size=9 [21:39:20]MH_SAM_APDU [21:39:20]CAPDU: 80 0D 02 02 04 58 79 73 A4 [21:39:20]Write to MH i2c: E2 0C 00 2F 40 80 0D 02 02 04 00 58 79 73 A4 00 00 D9 [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 03 00 2F 40 00 90 00 E3 [21:39:20]RAPDU: 90 00 [21:39:20]wFMCommunicate OK [21:39:20]wFMCommunicate request_size=4 [21:39:20]MH_SAM_APDU [21:39:20]CAPDU: 80 0D 03 02 [21:39:20]Write to MH i2c: E2 08 00 30 40 80 0D 03 02 00 00 00 00 EB [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 0B 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 0B 00 30 40 00 A6 AC 20 95 B6 BB BB 19 90 00 38 [21:39:20]RAPDU: A6 AC 20 95 B6 BB BB 19 90 00 [21:39:20]wFMCommunicate OK [21:39:20]SAM_PROTO_SignData done [21:39:20]FM_MakeSignedData done [21:39:20]CreateOFDProtocolMessage [21:39:20]wFMCommunicate request_size=4 [21:39:20]MH_SAM_APDU [21:39:20]CAPDU: 80 11 00 00 [21:39:20]Write to MH i2c: E2 08 00 31 40 80 11 00 00 00 00 00 00 EB [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:20]Read from MH i2c: E2 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 17 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: E2 17 00 31 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [21: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 [21:39:20]wFMCommunicate OK [21:39:20]CreateOFDProtocolMessage done [21:39:20]OFDSenderStorePacket 70823 [21:39:20]StoreOFDPacket docnum=70823 [21:39: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 6A 59 06 01 F8 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 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 53 01 00 00 F4 03 04 00 0A 6D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 74 58 79 73 A4 A6 AC 20 95 B6 BB BB 19 [21:39:20]CheckFolder [21:39:20]dirname=/storage/ofd_packets [21:39:20]CheckFolder done [21:39:20]ProducePacketName [21:39:20]name=ofd_packets/00070823 [21:39:20]NVStorageSaveData ofd_packets/00070823 [21:39:20]File name is /storage/ofd_packets/00070823 [21:39:20]Write 300 bytes [21:39:20]NVStorageSaveData done [21:39:20]OFDSenderStorePacket done [21:39:20]KKMCreateOFDPacket done [21:39:20]NVStorageSaveData kkm_last_timestamp [21:39:20]File name is /storage/kkm_last_timestamp [21:39:20]Write 4 bytes [21:39:20]NVStorageSaveData done [21:39:20]ExternCall_PrintAddStr [21:39:20]wPrintStart [21:39:20]Write to MH i2c: 01 00 00 32 40 72 [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: 01 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: 01 07 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: 01 07 00 32 40 00 00 00 00 00 FF 0F 87 [21:39:20]RasterBufferAndPrint [21:39:20]line Счет N : (1)2886609 [21:39:20]line ИНН: 02508201610067 [21:39:20]line Контрольно-Кассовый Чек [21:39:20]line ПРОДАЖА [21:39:20]line ТРК (МРК, ГНК) : 71 [21:39:20]line Товар: 2711129700 [21:39:20]line ГАЗ-К-3 [21:39:20]line 38.570 * 38.90 [21:39:20]line = 1500.37 [21:39:20]line НДС 12% НСП 1% [21:39:20]line > о реализуемом товаре [21:39:20]line ОКРУГЛЕНИЕ: -0.37 [21:39:20]line ИТОГО: 1500.00 [21:39:20]line Внесено: 1500.00 [21:39:20]line СДАЧА: 0.00 [21:39:20]line НСП 1% : 13.28 [21:39:20]line НДС 12% : 159.33 [21:39:20]line Наличными: 1500.00 [21:39:20]line Безнал.: 0.00 [21:39:20]line Место: АЗС № 85 "Партнер Нефть" [21:39:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:39:20]line СНО: Общий режим [21:39:20]line Чек 339 23.10.2024 21:39 [21:39:20]line Смена: 196 ФФД: 1.0 [21:39:20]line ЗНМ: 0300000167 [21:39:20]line РНМ: 0000000000156251 [21:39:20]line Версия ККМ: v1.0 [21:39:20]line ФМ: 0000000000963346 [21:39:20]line ФД: 70823 [21:39:20]line ФПД: 173123026121636 [21:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70823&fm=173123026121636&tin=02508201610067®Number=0000000000156251&sum=150000 [21:39:20]OFD Sender: Processing packet 70823 [packets to send 18, broken 17] [21:39:20]ProducePacketName [21:39:20]name=ofd_packets/00070823 [21:39:20]OFD Sender: To server: pG, [21:39:20]CommunicateWithHost lk.salyk.kg:30040 [21:39:20]ConnectInit lk.salyk.kg [21:39:20]written 0, free lines is 4095 [21:39:20]Connected sock=10 [21:39: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 6A 59 06 01 F8 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 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 53 01 00 00 F4 03 04 00 0A 6D 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 9D 74 58 79 73 A4 A6 AC 20 95 B6 BB BB 19 [21: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 14 68 47 00 94 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 A7 14 01 00 F4 03 04 00 A6 16 19 67 B6 04 01 00 00 9D 08 CA 01 56 27 85 E5 [21:39:21]CommunicateWithHost err = 0 [21:39:21]CheckOFDResponse [21:39:21]1017 (14) - 77093643461234 [21:39:21]1041 (16) - 0000000000963346 [21:39:21]1040 (4) - 70823 [21:39:21]1012 (4) - 23.10.2024 15:30 [21:39:21]1206 (1) - 0 [21:39:21]OFD Sender: Remove packet 70823 [21:39:21]ProducePacketName [21:39:21]name=ofd_packets/00070823 [21:39:21]NVStorageDeleteData [21:39:21]Write to MH i2c: 01 00 00 5D 40 9D [21:39:21]Write i2c OK [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: 01 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: 01 07 00 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: 01 07 00 5D 40 00 00 00 00 00 EB 0C 9B [21:39:21]RasterBufferAndPrint [21:39:21]line [21:39:21]line [21:39:21]line [21:39:21]line [21:39:21]line [21:39:21]written 0, free lines is 3314 [21:39:21]MH_Cut [21:39:21]Write to MH i2c: D1 01 00 64 40 01 76 [21:39:21]Write i2c OK [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: D1 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: D1 01 00 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: D1 01 00 64 40 00 75 [21:39:21]Write to MH i2c: 01 00 00 65 40 A5 [21:39:21]Write i2c OK [21:39:21]MH_I2C_Read... [21:39:21]OFD Sender: No OFD packet to send [21:39:21]*** Cut start [21:39:21]*** Partial cut [21:39:21]*** CUTSNS_PIN = 1 [21:39:21]*** CUTSNS_PIN = 0 [21:39:22]*** Brake cut motor [21:39:22]Read from MH i2c: 01 [21:39:22]MH_I2C_Read... [21:39:22]*** Stop cut motor [21:39:22]*** Cut end [21:39:22]Read from MH i2c: 01 07 00 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: 01 07 00 65 40 00 00 00 00 00 FF 0F BA [21:39:22]process_action close_receipt done [21:39:22]requested_data is exist [21:39:22]produce_requested_data [21:39:22]requested_item fm.sn is exist - process it [21:39:22]wFMCommunicate request_size=4 [21:39:22]MH_SAM_APDU [21:39:22]CAPDU: 80 11 00 00 [21:39:22]Write to MH i2c: E2 08 00 66 40 80 11 00 00 00 00 00 00 20 [21:39:22]Write i2c OK [21:39:22]MH_I2C_Read... [21:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:22]Read from MH i2c: E2 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 17 00 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 17 00 66 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [21:39:22]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:22]wFMCommunicate OK [21:39:22]requested_item fd.num is exist - process it [21:39:22]SAM_PROTO_GetFieldsCounters [21:39:22]wFMCommunicate request_size=4 [21:39:22]MH_SAM_APDU [21:39:22]CAPDU: 80 13 00 00 [21:39:22]Write to MH i2c: E2 08 00 67 40 80 13 00 00 00 00 00 00 23 [21:39:22]Write i2c OK [21:39:22]MH_I2C_Read... [21:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:22]Read from MH i2c: E2 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 62 00 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 62 00 67 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 A7 14 01 00 0E 04 04 00 C4 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 BA [21:39: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 A7 14 01 00 0E 04 04 00 C4 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 [21:39:22]wFMCommunicate OK [21:39:22]SAM_PROTO_GetFieldsCounters done [21:39:22]requested_item shift.num is exist - process it [21:39:22]requested_item shift.opened is exist - process it [21:39:22]req_shift_opened [21:39:22]FM_GetShiftState [21:39:22]SAM_PROTO_GetShiftState [21:39:22]wFMCommunicate request_size=4 [21:39:22]MH_SAM_APDU [21:39:22]CAPDU: 80 13 01 00 [21:39:22]Write to MH i2c: E2 08 00 68 40 80 13 01 00 00 00 00 00 25 [21:39:22]Write i2c OK [21:39:22]MH_I2C_Read... [21:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:22]Read from MH i2c: E2 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 0E 00 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 0E 00 68 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B2 [21:39:22]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:39:22]wFMCommunicate OK [21:39:22]SAM_PROTO_GetShiftState done [21:39:22]FM_GetShiftState done [21:39:22]req_shift_opened done [21:39:22]requested_item shift.open_date is exist - process it [21:39:22]req_shift_open_date [21:39:22]req_shift_open_date done [21:39:22]produce_requested_data done [21:39:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70823,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:39:22]process_action_free close_receipt [21:39:22]json_value_free [21:39:22]json_value_free done [21:39:22]process_json_proto returns [21:39:22]Send response to host [21:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70823,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:39:22]free response buf [21:39:22]execute_script done [21:39:22]execute_script returns [21:39:22]free content buf [21:39:22]Sock 9.Close socket [21:39:22]Sock 9.Thread stoped [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]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:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]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:30]accept exits with 7 [21:52:30]New connection [21:52:30]New thread 3067034980 created [21:52:30]Thread 3066891620 joined [21:52:30]Waiting for new connection... [21:52:30] Sock 7.Parse request [21:52:30]Sock 7.Check first char [21:52:30]Sock 7.First char is OK [21:52:30]request: POST /json_proto HTTP/1.0 [21:52:30]Method: POST [21:52:30]URL: /json_proto [21:52:30]Method is POST - this is cgi request [21:52:30]url: /json_proto [21:52:30]query_string will be loaded in cgi processing [21:52:30]execute_cgi json_proto POST (null) [21:52:30]execute_cgi path=json_proto method=POST [21:52:30]POST find Content-Length [21:52:30]Host: 172.17.50.3:8080 [21:52:30]Content-Length: 770 [21:52:30]Content-Type: application/json [21:52:30] [21:52:30]POST finish read [21:52:30]Found Content-Length = 770 [21:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886610", "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" ] } } [21:52:30]execute_script... [21:52: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)2886610", "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" ] } } [21:52:30]POST & json_proto [21:52:30]process_json_proto [21:52:30]json parsed OK: [21:52:30]protocol is kg_v1.0 [21:52:30]action value=close_receipt [21:52:30]process_action close_receipt [21:52:30]cmd_close_receipt [21:52:30]MH_GetDate [21:52:30]Write to MH i2c: F0 00 00 69 40 98 [21:52:30]Write i2c OK [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: F0 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: F0 09 00 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: F0 09 00 69 40 00 21 70 19 67 6B 98 1E 66 39 [21:52:30]GetLastDocTimeStamp 1729719562 [21:52:30]current date 1729720353 [21:52:30]FM_GetShiftState [21:52:30]SAM_PROTO_GetShiftState [21:52:30]wFMCommunicate request_size=4 [21:52:30]MH_SAM_APDU [21:52:30]CAPDU: 80 13 01 00 [21:52:30]Write to MH i2c: E2 08 00 6A 40 80 13 01 00 00 00 00 00 27 [21:52:30]Write i2c OK [21:52:30]MH_I2C_Read... [21:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:30]Read from MH i2c: E2 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 0E 00 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 0E 00 6A 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 B4 [21:52:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:52:30]wFMCommunicate OK [21:52:30]SAM_PROTO_GetShiftState done [21:52:30]FM_GetShiftState done [21:52:30]opened in 1729642435 [21:52:30]opened+sec_in_day 1729728835 [21:52:30]quantity*price = 100015 [21:52:30]sum+1 = 100017 [21:52:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 340 23.10.2024 21:52 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70824 ФПД: 10982706634899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70824&fm=10982706634899&tin=02508201610067®Number=0000000000156251&sum=100016 [21:52:31]StoreToDocumentArchive [21:52:31]shift 196 fd 70824 [21:52:31]save to /storage/0196/doc_00070824 [21:52:31]save last doc name /storage/0196/doc_00070824 to /storage/kkm_last_doc_name [21:52:31]save OK [21:52:31]Clear old archive folders... [21:52:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:31]tlvbuf is 00146080 [21:52:31]SAM_PROTO_ClearQueue [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 09 00 00 [21:52:31]Write to MH i2c: E2 08 00 77 40 80 09 00 00 00 00 00 00 29 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 77 40 00 90 00 2B [21:52:31]RAPDU: 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_ClearQueue done [21:52:31]KKMCreateOFDPacket [21:52:31]OFDProtocolAddRootSTLVToBuf [21:52:31]FM_MakeSignedData [21:52:31]FM_MakeSignedData [21:52:31]SAM_PROTO_SignData [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 0D 01 02 [21:52:31]Write to MH i2c: E2 08 00 78 40 80 0D 01 02 00 00 00 00 31 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 78 40 00 90 00 2C [21:52:31]RAPDU: 90 00 [21:52:31]wFMCommunicate OK [21:52:31]wFMCommunicate request_size=255 [21:52:31]MH_SAM_APDU [21:52: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 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 54 01 00 00 F4 03 04 00 21 70 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 [21:52:31]Write to MH i2c: E2 02 01 79 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 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 54 01 00 00 F4 03 04 00 21 70 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 00 00 C4 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 79 40 00 90 00 2D [21:52:32]RAPDU: 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=10 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 0D 02 02 05 FD 1C 53 E0 93 [21:52:32]Write to MH i2c: E2 0D 00 7A 40 80 0D 02 02 05 00 FD 1C 53 E0 93 00 00 1D [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]OFD Sender: No OFD packet to send [21:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 7A 40 00 90 00 2E [21:52:32]RAPDU: 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 0D 03 02 [21:52:32]Write to MH i2c: E2 08 00 7B 40 80 0D 03 02 00 00 00 00 36 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 0B 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 0B 00 7B 40 00 EB C6 73 87 97 27 34 8C 90 00 60 [21:52:32]RAPDU: EB C6 73 87 97 27 34 8C 90 00 [21:52:32]wFMCommunicate OK [21:52:32]SAM_PROTO_SignData done [21:52:32]FM_MakeSignedData done [21:52:32]CreateOFDProtocolMessage [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 11 00 00 [21:52:32]Write to MH i2c: E2 08 00 7C 40 80 11 00 00 00 00 00 00 36 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 17 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 17 00 7C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [21:52: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:52:32]wFMCommunicate OK [21:52:32]CreateOFDProtocolMessage done [21:52:32]OFDSenderStorePacket 70824 [21:52:32]StoreOFDPacket docnum=70824 [21:52: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 1B C4 07 01 55 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 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 54 01 00 00 F4 03 04 00 21 70 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 FD 1C 53 E0 93 EB C6 73 87 97 27 34 8C [21:52:32]CheckFolder [21:52:32]dirname=/storage/ofd_packets [21:52:32]CheckFolder done [21:52:32]ProducePacketName [21:52:32]name=ofd_packets/00070824 [21:52:32]NVStorageSaveData ofd_packets/00070824 [21:52:32]File name is /storage/ofd_packets/00070824 [21:52:32]Write 301 bytes [21:52:32]NVStorageSaveData done [21:52:32]OFDSenderStorePacket done [21:52:32]KKMCreateOFDPacket done [21:52:32]NVStorageSaveData kkm_last_timestamp [21:52:32]File name is /storage/kkm_last_timestamp [21:52:32]Write 4 bytes [21:52:32]NVStorageSaveData done [21:52:32]ExternCall_PrintAddStr [21:52:32]wPrintStart [21:52:32]Write to MH i2c: 01 00 00 7D 40 BD [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 07 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 07 00 7D 40 00 00 00 00 00 FF 0F D2 [21:52:32]RasterBufferAndPrint [21:52:32]line Счет N : (1)2886610 [21:52:32]line ИНН: 02508201610067 [21:52:32]line Контрольно-Кассовый Чек [21:52:32]line ПРОДАЖА [21:52:32]line ТРК (МРК, ГНК) : 12 [21:52:32]line Товар: 2710124130 [21:52:32]line Аи-92-К-5 [21:52:32]line 14.950 * 66.90 [21:52:32]line = 1000.16 [21:52:32]line НДС 12% НСП 1% [21:52:32]line > о реализуемом товаре [21:52:32]line ИТОГО: 1000.16 [21:52:32]line НСП 1% : 8.85 [21:52:32]line НДС 12% : 106.21 [21:52:32]line Наличными: 0.00 [21:52:32]line Безнал.: 1000.16 [21:52:32]line Место: АЗС № 85 "Партнер Нефть" [21:52:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:52:32]line СНО: Общий режим [21:52:32]line Чек 340 23.10.2024 21:52 [21:52:32]line Смена: 196 ФФД: 1.0 [21:52:32]line ЗНМ: 0300000167 [21:52:32]line РНМ: 0000000000156251 [21:52:32]line Версия ККМ: v1.0 [21:52:32]line Платежная система: Mbank [21:52:32]line ФМ: 0000000000963346 [21:52:32]line ФД: 70824 [21:52:32]line ФПД: 10982706634899 [21:52:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70824&fm=10982706634899&tin=02508201610067®Number=0000000000156251&sum=100016 [21:52:32]OFD Sender: Processing packet 70824 [packets to send 18, broken 17] [21:52:32]ProducePacketName [21:52:32]name=ofd_packets/00070824 [21:52:32]OFD Sender: To server: pG, [21:52:32]CommunicateWithHost lk.salyk.kg:30040 [21:52:32]ConnectInit lk.salyk.kg [21:52:32]written 0, free lines is 4095 [21:52:32]Connected sock=9 [21:52: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 1B C4 07 01 55 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 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 54 01 00 00 F4 03 04 00 21 70 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 09 FD 1C 53 E0 93 EB C6 73 87 97 27 34 8C [21:52: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 29 7E 47 00 91 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 14 01 00 F4 03 04 00 BE 19 19 67 B6 04 01 00 00 F6 82 3D 0E 48 22 20 6E [21:52:33]CommunicateWithHost err = 0 [21:52:33]CheckOFDResponse [21:52:33]1017 (14) - 77093643461234 [21:52:33]1041 (16) - 0000000000963346 [21:52:33]1040 (4) - 70824 [21:52:33]1012 (4) - 23.10.2024 15:43 [21:52:33]1206 (1) - 0 [21:52:33]OFD Sender: Remove packet 70824 [21:52:33]ProducePacketName [21:52:33]name=ofd_packets/00070824 [21:52:33]NVStorageDeleteData [21:52:33]Write to MH i2c: 01 00 00 A6 40 E6 [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 07 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 07 00 A6 40 00 00 00 00 00 14 0D 0E [21:52:33]RasterBufferAndPrint [21:52:33]line [21:52:33]line [21:52:33]line [21:52:33]line [21:52:33]line [21:52:33]written 0, free lines is 3356 [21:52:33]MH_Cut [21:52:33]Write to MH i2c: D1 01 00 AD 40 01 BF [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: D1 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: D1 01 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: D1 01 00 AD 40 00 BE [21:52:33]Write to MH i2c: 01 00 00 AE 40 EE [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]OFD Sender: No OFD packet to send [21:52:33]*** Cut start [21:52:33]*** Partial cut [21:52:33]*** CUTSNS_PIN = 1 [21:52:33]*** CUTSNS_PIN = 0 [21:52:34]*** Brake cut motor [21:52:34]Read from MH i2c: 01 [21:52:34]MH_I2C_Read... [21:52:34]*** Stop cut motor [21:52:34]*** Cut end [21:52:34]Read from MH i2c: 01 07 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: 01 07 00 AE 40 00 00 00 00 00 FF 0F 03 [21:52:34]process_action close_receipt done [21:52:34]requested_data is exist [21:52:34]produce_requested_data [21:52:34]requested_item fm.sn is exist - process it [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 11 00 00 [21:52:34]Write to MH i2c: E2 08 00 AF 40 80 11 00 00 00 00 00 00 69 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 17 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 17 00 AF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [21:52: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:52:34]wFMCommunicate OK [21:52:34]requested_item fd.num is exist - process it [21:52:34]SAM_PROTO_GetFieldsCounters [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 13 00 00 [21:52:34]Write to MH i2c: E2 08 00 B0 40 80 13 00 00 00 00 00 00 6C [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 62 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 62 00 B0 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 A8 14 01 00 0E 04 04 00 C4 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 07 [21:52:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 14 01 00 0E 04 04 00 C4 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 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetFieldsCounters done [21:52:34]requested_item shift.num is exist - process it [21:52:34]requested_item shift.opened is exist - process it [21:52:34]req_shift_opened [21:52:34]FM_GetShiftState [21:52:34]SAM_PROTO_GetShiftState [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 13 01 00 [21:52:34]Write to MH i2c: E2 08 00 B1 40 80 13 01 00 00 00 00 00 6E [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 B1 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FB [21:52:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetShiftState done [21:52:34]FM_GetShiftState done [21:52:34]req_shift_opened done [21:52:34]requested_item shift.open_date is exist - process it [21:52:34]req_shift_open_date [21:52:34]req_shift_open_date done [21:52:34]produce_requested_data done [21:52:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70824,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:52:34]process_action_free close_receipt [21:52:34]json_value_free [21:52:34]json_value_free done [21:52:34]process_json_proto returns [21:52:34]Send response to host [21:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70824,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:52:34]free response buf [21:52:34]execute_script done [21:52:34]execute_script returns [21:52:34]free content buf [21:52:34]Sock 7.Close socket [21:52:34]Sock 7.Thread stoped [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [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:30]accept exits with 10 [21:58:30]New connection [21:58:30]New thread 3066891620 created [21:58:30]Thread 3067034980 joined [21:58:30]Waiting for new connection... [21:58:30] Sock 10.Parse request [21:58:30]Sock 10.Check first char [21:58:30]Sock 10.First char is OK [21:58:30]request: POST /json_proto HTTP/1.0 [21:58:30]Method: POST [21:58:30]URL: /json_proto [21:58:30]Method is POST - this is cgi request [21:58:30]url: /json_proto [21:58:30]query_string will be loaded in cgi processing [21:58:30]execute_cgi json_proto POST (null) [21:58:30]execute_cgi path=json_proto method=POST [21:58:30]POST find Content-Length [21:58:30]Host: 172.17.50.3:8080 [21:58:30]Content-Length: 678 [21:58:30]Content-Type: application/json [21:58:30] [21:58:30]POST finish read [21:58:30]Found Content-Length = 678 [21:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886612", "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" ] } } [21:58:30]execute_script... [21:58: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)2886612", "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" ] } } [21:58:30]POST & json_proto [21:58:30]process_json_proto [21:58:30]json parsed OK: [21:58:30]protocol is kg_v1.0 [21:58:30]action value=close_receipt [21:58:30]process_action close_receipt [21:58:30]cmd_close_receipt [21:58:30]MH_GetDate [21:58:30]Write to MH i2c: F0 00 00 B2 40 E1 [21:58:30]Write i2c OK [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 09 00 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 09 00 B2 40 00 89 71 19 67 6B 98 1E 66 EB [21:58:30]GetLastDocTimeStamp 1729720353 [21:58:30]current date 1729720713 [21:58:30]FM_GetShiftState [21:58:30]SAM_PROTO_GetShiftState [21:58:30]wFMCommunicate request_size=4 [21:58:30]MH_SAM_APDU [21:58:30]CAPDU: 80 13 01 00 [21:58:30]Write to MH i2c: E2 08 00 B3 40 80 13 01 00 00 00 00 00 70 [21:58:30]Write i2c OK [21:58:30]MH_I2C_Read... [21:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:30]Read from MH i2c: E2 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: E2 0E 00 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: E2 0E 00 B3 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 FD [21:58:30]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:58:30]wFMCommunicate OK [21:58:30]SAM_PROTO_GetShiftState done [21:58:30]FM_GetShiftState done [21:58:30]opened in 1729642435 [21:58:30]opened+sec_in_day 1729728835 [21:58:30]quantity*price = 40006 [21:58:30]sum+1 = 40007 [21:58:30]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 СНО: Общий режим Чек 341 23.10.2024 21:58 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70825 ФПД: 115799169987516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70825&fm=115799169987516&tin=02508201610067®Number=0000000000156251&sum=40000 [21:58:31]StoreToDocumentArchive [21:58:31]shift 196 fd 70825 [21:58:31]save to /storage/0196/doc_00070825 [21:58:31]save last doc name /storage/0196/doc_00070825 to /storage/kkm_last_doc_name [21:58:31]save OK [21:58:31]Clear old archive folders... [21:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:31]tlvbuf is 001425A0 [21:58:31]SAM_PROTO_ClearQueue [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 09 00 00 [21:58:31]Write to MH i2c: E2 08 00 C0 40 80 09 00 00 00 00 00 00 72 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 C0 40 00 90 00 74 [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]SAM_PROTO_ClearQueue done [21:58:31]KKMCreateOFDPacket [21:58:31]OFDProtocolAddRootSTLVToBuf [21:58:31]FM_MakeSignedData [21:58:31]FM_MakeSignedData [21:58:31]SAM_PROTO_SignData [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 01 02 [21:58:31]Write to MH i2c: E2 08 00 C1 40 80 0D 01 02 00 00 00 00 7A [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 C1 40 00 90 00 75 [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=255 [21:58:31]MH_SAM_APDU [21:58: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 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 55 01 00 00 F4 03 04 00 89 71 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 69 [21:58:31]Write to MH i2c: E2 02 01 C2 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 55 01 00 00 F4 03 04 00 89 71 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 69 00 00 8D [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 C2 40 00 90 00 76 [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=10 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 02 02 05 51 98 64 73 BC [21:58:31]Write to MH i2c: E2 0D 00 C3 40 80 0D 02 02 05 00 51 98 64 73 BC 00 00 03 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 C3 40 00 90 00 77 [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 03 02 [21:58:31]Write to MH i2c: E2 08 00 C4 40 80 0D 03 02 00 00 00 00 7F [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 0B 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 0B 00 C4 40 00 33 4E 62 61 30 4B 2F 1D 90 00 8B [21:58:31]RAPDU: 33 4E 62 61 30 4B 2F 1D 90 00 [21:58:31]wFMCommunicate OK [21:58:31]SAM_PROTO_SignData done [21:58:31]FM_MakeSignedData done [21:58:31]CreateOFDProtocolMessage [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 11 00 00 [21:58:31]Write to MH i2c: E2 08 00 C5 40 80 11 00 00 00 00 00 00 7F [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 17 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 17 00 C5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [21:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:58:31]wFMCommunicate OK [21:58:31]CreateOFDProtocolMessage done [21:58:31]OFDSenderStorePacket 70825 [21:58:31]StoreOFDPacket docnum=70825 [21:58: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 7D 07 07 01 28 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 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 55 01 00 00 F4 03 04 00 89 71 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 69 51 98 64 73 BC 33 4E 62 61 30 4B 2F 1D [21:58:31]CheckFolder [21:58:31]dirname=/storage/ofd_packets [21:58:31]CheckFolder done [21:58:31]ProducePacketName [21:58:31]name=ofd_packets/00070825 [21:58:31]NVStorageSaveData ofd_packets/00070825 [21:58:31]File name is /storage/ofd_packets/00070825 [21:58:31]Write 301 bytes [21:58:31]NVStorageSaveData done [21:58:31]OFDSenderStorePacket done [21:58:31]KKMCreateOFDPacket done [21:58:31]NVStorageSaveData kkm_last_timestamp [21:58:31]File name is /storage/kkm_last_timestamp [21:58:31]Write 4 bytes [21:58:31]NVStorageSaveData done [21:58:31]ExternCall_PrintAddStr [21:58:31]wPrintStart [21:58:31]Write to MH i2c: 01 00 00 C6 40 06 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 07 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 07 00 C6 40 00 00 00 00 00 FF 0F 1B [21:58:31]RasterBufferAndPrint [21:58:31]line Счет N : (1)2886612 [21:58:31]line ИНН: 02508201610067 [21:58:31]line Контрольно-Кассовый Чек [21:58:31]line ПРОДАЖА [21:58:31]line ТРК (МРК, ГНК) : 12 [21:58:31]line Товар: 2710124130 [21:58:31]line Аи-92-К-5 [21:58:31]line 5.980 * 66.90 [21:58:31]line = 400.06 [21:58:31]line НДС 12% НСП 1% [21:58:31]line > о реализуемом товаре [21:58:31]line ОКРУГЛЕНИЕ: -0.06 [21:58:31]line ИТОГО: 400.00 [21:58:31]line Внесено: 400.00 [21:58:31]line СДАЧА: 0.00 [21:58:31]line НСП 1% : 3.54 [21:58:31]line НДС 12% : 42.48 [21:58:31]line Наличными: 400.00 [21:58:31]line Безнал.: 0.00 [21:58:31]line Место: АЗС № 85 "Партнер Нефть" [21:58:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:58:31]line СНО: Общий режим [21:58:31]line Чек 341 23.10.2024 21:58 [21:58:31]line Смена: 196 ФФД: 1.0 [21:58:31]line ЗНМ: 0300000167 [21:58:31]line РНМ: 0000000000156251 [21:58:31]line Версия ККМ: v1.0 [21:58:31]line ФМ: 0000000000963346 [21:58:31]line ФД: 70825 [21:58:31]line ФПД: 115799169987516 [21:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70825&fm=115799169987516&tin=02508201610067®Number=0000000000156251&sum=40000 [21:58:32]OFD Sender: Processing packet 70825 [packets to send 18, broken 17] [21:58:32]ProducePacketName [21:58:32]name=ofd_packets/00070825 [21:58:32]OFD Sender: To server: pG, [21:58:32]CommunicateWithHost lk.salyk.kg:30040 [21:58:32]ConnectInit lk.salyk.kg [21:58:32]written 0, free lines is 4095 [21:58:32]Connected sock=9 [21:58: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 7D 07 07 01 28 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 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 55 01 00 00 F4 03 04 00 89 71 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 69 51 98 64 73 BC 33 4E 62 61 30 4B 2F 1D [21:58: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 F4 C5 47 00 45 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 A9 14 01 00 F4 03 04 00 25 1B 19 67 B6 04 01 00 00 E9 1E 22 2C 16 E4 AD ED [21:58:32]CommunicateWithHost err = 0 [21:58:32]CheckOFDResponse [21:58:32]1017 (14) - 77093643461234 [21:58:32]1041 (16) - 0000000000963346 [21:58:32]1040 (4) - 70825 [21:58:32]1012 (4) - 23.10.2024 15:49 [21:58:32]1206 (1) - 0 [21:58:32]OFD Sender: Remove packet 70825 [21:58:32]ProducePacketName [21:58:32]name=ofd_packets/00070825 [21:58:32]NVStorageDeleteData [21:58:32]Write to MH i2c: 01 00 00 F1 40 31 [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 07 00 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 07 00 F1 40 00 00 00 00 00 E8 0C 2C [21:58:32]RasterBufferAndPrint [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]written 0, free lines is 3310 [21:58:32]MH_Cut [21:58:32]Write to MH i2c: D1 01 00 F8 40 01 0A [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 01 00 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 01 00 F8 40 00 09 [21:58:32]Write to MH i2c: 01 00 00 F9 40 39 [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:32]OFD Sender: No OFD packet to send [21:58:33]*** Cut start [21:58:33]*** Partial cut [21:58:33]*** CUTSNS_PIN = 1 [21:58:33]*** CUTSNS_PIN = 0 [21:58:33]*** Brake cut motor [21:58:33]Read from MH i2c: 01 [21:58:33]MH_I2C_Read... [21:58:33]*** Stop cut motor [21:58:33]*** Cut end [21:58:33]Read from MH i2c: 01 07 00 [21:58:33]MH_I2C_Read... [21:58:33]Read from MH i2c: 01 07 00 F9 40 00 00 00 00 00 FF 0F 4E [21:58:33]process_action close_receipt done [21:58:33]requested_data is exist [21:58:33]produce_requested_data [21:58:33]requested_item fm.sn is exist - process it [21:58:33]wFMCommunicate request_size=4 [21:58:33]MH_SAM_APDU [21:58:33]CAPDU: 80 11 00 00 [21:58:33]Write to MH i2c: E2 08 00 FA 40 80 11 00 00 00 00 00 00 B4 [21:58:33]Write i2c OK [21:58:33]MH_I2C_Read... [21:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:33]Read from MH i2c: E2 [21:58:33]MH_I2C_Read... [21:58:33]Read from MH i2c: E2 17 00 [21:58:33]MH_I2C_Read... [21:58:33]Read from MH i2c: E2 17 00 FA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [21:58: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:58:33]wFMCommunicate OK [21:58:33]requested_item fd.num is exist - process it [21:58:33]SAM_PROTO_GetFieldsCounters [21:58:33]wFMCommunicate request_size=4 [21:58:33]MH_SAM_APDU [21:58:33]CAPDU: 80 13 00 00 [21:58:33]Write to MH i2c: E2 08 00 FB 40 80 13 00 00 00 00 00 00 B7 [21:58:33]Write i2c OK [21:58:33]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 62 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 62 00 FB 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 A9 14 01 00 0E 04 04 00 C4 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 56 [21:58: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 A9 14 01 00 0E 04 04 00 C4 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 [21:58:34]wFMCommunicate OK [21:58:34]SAM_PROTO_GetFieldsCounters done [21:58:34]requested_item shift.num is exist - process it [21:58:34]requested_item shift.opened is exist - process it [21:58:34]req_shift_opened [21:58:34]FM_GetShiftState [21:58:34]SAM_PROTO_GetShiftState [21:58:34]wFMCommunicate request_size=4 [21:58:34]MH_SAM_APDU [21:58:34]CAPDU: 80 13 01 00 [21:58:34]Write to MH i2c: E2 08 00 FC 40 80 13 01 00 00 00 00 00 B9 [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 FC 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 46 [21:58:34]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [21:58:34]wFMCommunicate OK [21:58:34]SAM_PROTO_GetShiftState done [21:58:34]FM_GetShiftState done [21:58:34]req_shift_opened done [21:58:34]requested_item shift.open_date is exist - process it [21:58:34]req_shift_open_date [21:58:34]req_shift_open_date done [21:58:34]produce_requested_data done [21:58:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70825,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [21:58:34]process_action_free close_receipt [21:58:34]json_value_free [21:58:34]json_value_free done [21:58:34]process_json_proto returns [21:58:34]Send response to host [21:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70825,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [21:58:34]free response buf [21:58:34]execute_script done [21:58:34]execute_script returns [21:58:34]free content buf [21:58:34]Sock 10.Close socket [21:58:34]Sock 10.Thread stoped [21:58:37]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:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:53]accept exits with 7 [22:02:53]New connection [22:02:53]New thread 3067034980 created [22:02:53]Thread 3066891620 joined [22:02:53]Waiting for new connection... [22:02:53] Sock 7.Parse request [22:02:53]Sock 7.Check first char [22:02:53]Sock 7.First char is OK [22:02:53]request: POST /json_proto HTTP/1.0 [22:02:53]Method: POST [22:02:53]URL: /json_proto [22:02:53]Method is POST - this is cgi request [22:02:53]url: /json_proto [22:02:53]query_string will be loaded in cgi processing [22:02:53]execute_cgi json_proto POST (null) [22:02:53]execute_cgi path=json_proto method=POST [22:02:53]POST find Content-Length [22:02:53]Host: 172.17.50.3:8080 [22:02:53]Content-Length: 680 [22:02:53]Content-Type: application/json [22:02:53] [22:02:53]POST finish read [22:02:53]Found Content-Length = 680 [22:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886611", "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" ] } } [22:02:53]execute_script... [22:02: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)2886611", "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" ] } } [22:02:53]POST & json_proto [22:02:53]process_json_proto [22:02:53]json parsed OK: [22:02:53]protocol is kg_v1.0 [22:02:53]action value=close_receipt [22:02:53]process_action close_receipt [22:02:53]cmd_close_receipt [22:02:53]MH_GetDate [22:02:53]Write to MH i2c: F0 00 00 FD 40 2C [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: F0 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: F0 09 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: F0 09 00 FD 40 00 90 72 19 67 6B 98 1E 66 3E [22:02:53]GetLastDocTimeStamp 1729720713 [22:02:53]current date 1729720976 [22:02:53]FM_GetShiftState [22:02:53]SAM_PROTO_GetShiftState [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 13 01 00 [22:02:53]Write to MH i2c: E2 08 00 FE 40 80 13 01 00 00 00 00 00 BB [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0E 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0E 00 FE 40 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 48 [22:02:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [22:02:53]wFMCommunicate OK [22:02:53]SAM_PROTO_GetShiftState done [22:02:53]FM_GetShiftState done [22:02:53]opened in 1729642435 [22:02:53]opened+sec_in_day 1729728835 [22:02:53]quantity*price = 300075 [22:02:53]sum+1 = 300077 [22:02:53]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 СНО: Общий режим Чек 342 23.10.2024 22:02 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70826 ФПД: 220369100758712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220256&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70826&fm=220369100758712&tin=02508201610067®Number=0000000000156251&sum=300000 [22:02:54]StoreToDocumentArchive [22:02:54]shift 196 fd 70826 [22:02:54]save to /storage/0196/doc_00070826 [22:02:54]save last doc name /storage/0196/doc_00070826 to /storage/kkm_last_doc_name [22:02:54]save OK [22:02:54]Clear old archive folders... [22:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:02:54]tlvbuf is 0013C030 [22:02:54]SAM_PROTO_ClearQueue [22:02:54]wFMCommunicate request_size=4 [22:02:54]MH_SAM_APDU [22:02:54]CAPDU: 80 09 00 00 [22:02:54]Write to MH i2c: E2 08 00 0B 41 80 09 00 00 00 00 00 00 BE [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:54]Read from MH i2c: E2 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 03 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 03 00 0B 41 00 90 00 C0 [22:02:54]RAPDU: 90 00 [22:02:54]wFMCommunicate OK [22:02:54]SAM_PROTO_ClearQueue done [22:02:54]KKMCreateOFDPacket [22:02:54]OFDProtocolAddRootSTLVToBuf [22:02:54]FM_MakeSignedData [22:02:54]FM_MakeSignedData [22:02:54]SAM_PROTO_SignData [22:02:54]wFMCommunicate request_size=4 [22:02:54]MH_SAM_APDU [22:02:54]CAPDU: 80 0D 01 02 [22:02:54]Write to MH i2c: E2 08 00 0C 41 80 0D 01 02 00 00 00 00 C6 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:54]Read from MH i2c: E2 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 03 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 03 00 0C 41 00 90 00 C1 [22:02:54]RAPDU: 90 00 [22:02:54]wFMCommunicate OK [22:02:54]wFMCommunicate request_size=255 [22:02:54]MH_SAM_APDU [22:02: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 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 56 01 00 00 F4 03 04 00 90 72 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 6C AD F8 [22:02:54]Write to MH i2c: E2 02 01 0D 41 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 56 01 00 00 F4 03 04 00 90 72 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 6C AD F8 00 00 B1 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 03 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 03 00 0D 41 00 90 00 C2 [22:02:55]RAPDU: 90 00 [22:02:55]wFMCommunicate OK [22:02:55]wFMCommunicate request_size=7 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 0D 02 02 02 5E B8 [22:02:55]Write to MH i2c: E2 0A 00 0E 41 80 0D 02 02 02 00 5E B8 00 00 E3 [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 03 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 03 00 0E 41 00 90 00 C3 [22:02:55]RAPDU: 90 00 [22:02:55]wFMCommunicate OK [22:02:55]wFMCommunicate request_size=4 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 0D 03 02 [22:02:55]Write to MH i2c: E2 08 00 0F 41 80 0D 03 02 00 00 00 00 CB [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 0B 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 0B 00 0F 41 00 E7 0D C1 C6 E5 68 B4 89 90 00 D1 [22:02:55]RAPDU: E7 0D C1 C6 E5 68 B4 89 90 00 [22:02:55]wFMCommunicate OK [22:02:55]SAM_PROTO_SignData done [22:02:55]FM_MakeSignedData done [22:02:55]CreateOFDProtocolMessage [22:02:55]wFMCommunicate request_size=4 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 11 00 00 [22:02:55]Write to MH i2c: E2 08 00 10 41 80 11 00 00 00 00 00 00 CB [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 17 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 17 00 10 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [22:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:02:55]wFMCommunicate OK [22:02:55]CreateOFDProtocolMessage done [22:02:55]OFDSenderStorePacket 70826 [22:02:55]StoreOFDPacket docnum=70826 [22:02: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 D7 5D 04 01 60 D8 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 56 01 00 00 F4 03 04 00 90 72 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 6C AD F8 5E B8 E7 0D C1 C6 E5 68 B4 89 [22:02:55]CheckFolder [22:02:55]dirname=/storage/ofd_packets [22:02:55]CheckFolder done [22:02:55]ProducePacketName [22:02:55]name=ofd_packets/00070826 [22:02:55]NVStorageSaveData ofd_packets/00070826 [22:02:55]File name is /storage/ofd_packets/00070826 [22:02:55]Write 298 bytes [22:02:55]NVStorageSaveData done [22:02:55]OFDSenderStorePacket done [22:02:55]KKMCreateOFDPacket done [22:02:55]NVStorageSaveData kkm_last_timestamp [22:02:55]File name is /storage/kkm_last_timestamp [22:02:55]Write 4 bytes [22:02:55]NVStorageSaveData done [22:02:55]ExternCall_PrintAddStr [22:02:55]wPrintStart [22:02:55]Write to MH i2c: 01 00 00 11 41 52 [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 07 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 07 00 11 41 00 00 00 00 00 FF 0F 67 [22:02:55]RasterBufferAndPrint [22:02:55]line Счет N : (1)2886611 [22:02:55]line ИНН: 02508201610067 [22:02:55]line Контрольно-Кассовый Чек [22:02:55]line ПРОДАЖА [22:02:55]line ТРК (МРК, ГНК) : 51 [22:02:55]line Товар: 2710194210 [22:02:55]line ДТ-К-5 [22:02:55]line 39.380 * 76.20 [22:02:55]line = 3000.76 [22:02:55]line НДС 12% НСП 1% [22:02:55]line > о реализуемом товаре [22:02:55]line ОКРУГЛЕНИЕ: -0.76 [22:02:55]line ИТОГО: 3000.00 [22:02:55]line Внесено: 3000.00 [22:02:55]line СДАЧА: 0.00 [22:02:55]line НСП 1% : 26.55 [22:02:55]line НДС 12% : 318.66 [22:02:55]line Наличными: 3000.00 [22:02:55]line Безнал.: 0.00 [22:02:55]line Место: АЗС № 85 "Партнер Нефть" [22:02:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:02:55]line СНО: Общий режим [22:02:55]line Чек 342 23.10.2024 22:02 [22:02:55]line Смена: 196 ФФД: 1.0 [22:02:55]line ЗНМ: 0300000167 [22:02:55]line РНМ: 0000000000156251 [22:02:55]line Версия ККМ: v1.0 [22:02:55]line ФМ: 0000000000963346 [22:02:55]line ФД: 70826 [22:02:55]line ФПД: 220369100758712 [22:02:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220256&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70826&fm=220369100758712&tin=02508201610067®Number=0000000000156251&sum=300000 [22:02:55]OFD Sender: Processing packet 70826 [packets to send 18, broken 17] [22:02:55]ProducePacketName [22:02:55]name=ofd_packets/00070826 [22:02:55]OFD Sender: To server: pG, [22:02:55]CommunicateWithHost lk.salyk.kg:30040 [22:02:55]ConnectInit lk.salyk.kg [22:02:55]written 0, free lines is 4095 [22:02:55]Connected sock=10 [22:02: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 D7 5D 04 01 60 D8 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 56 01 00 00 F4 03 04 00 90 72 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 C8 6C AD F8 5E B8 E7 0D C1 C6 E5 68 B4 89 [22:02: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 E7 5E 47 00 91 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 AA 14 01 00 F4 03 04 00 2D 1C 19 67 B6 04 01 00 00 C0 FC 22 77 21 AB C3 72 [22:02:55]CommunicateWithHost err = 0 [22:02:55]CheckOFDResponse [22:02:55]1017 (14) - 77093643461234 [22:02:55]1041 (16) - 0000000000963346 [22:02:55]1040 (4) - 70826 [22:02:55]1012 (4) - 23.10.2024 15:54 [22:02:55]1206 (1) - 0 [22:02:55]OFD Sender: Remove packet 70826 [22:02:55]ProducePacketName [22:02:55]name=ofd_packets/00070826 [22:02:55]NVStorageDeleteData [22:02:55]Write to MH i2c: 01 00 00 3C 41 7D [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 07 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 07 00 3C 41 00 00 00 00 00 EF 0C 7F [22:02:55]RasterBufferAndPrint [22:02:55]line [22:02:55]line [22:02:55]line [22:02:55]line [22:02:55]line [22:02:55]written 0, free lines is 3317 [22:02:55]MH_Cut [22:02:55]Write to MH i2c: D1 01 00 43 41 01 56 [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: D1 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: D1 01 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: D1 01 00 43 41 00 55 [22:02:55]Write to MH i2c: 01 00 00 44 41 85 [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:56]OFD Sender: No OFD packet to send [22:02:56]*** Cut start [22:02:56]*** Partial cut [22:02:56]*** CUTSNS_PIN = 1 [22:02:56]*** CUTSNS_PIN = 0 [22:02:56]*** Brake cut motor [22:02:57]Read from MH i2c: 01 [22:02:57]MH_I2C_Read... [22:02:57]*** Stop cut motor [22:02:57]*** Cut end [22:02:57]Read from MH i2c: 01 07 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: 01 07 00 44 41 00 00 00 00 00 FF 0F 9A [22:02:57]process_action close_receipt done [22:02:57]requested_data is exist [22:02:57]produce_requested_data [22:02:57]requested_item fm.sn is exist - process it [22:02:57]wFMCommunicate request_size=4 [22:02:57]MH_SAM_APDU [22:02:57]CAPDU: 80 11 00 00 [22:02:57]Write to MH i2c: E2 08 00 45 41 80 11 00 00 00 00 00 00 00 [22:02:57]Write i2c OK [22:02:57]MH_I2C_Read... [22:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:57]Read from MH i2c: E2 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 17 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 17 00 45 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [22:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:02:57]wFMCommunicate OK [22:02:57]requested_item fd.num is exist - process it [22:02:57]SAM_PROTO_GetFieldsCounters [22:02:57]wFMCommunicate request_size=4 [22:02:57]MH_SAM_APDU [22:02:57]CAPDU: 80 13 00 00 [22:02:57]Write to MH i2c: E2 08 00 46 41 80 13 00 00 00 00 00 00 03 [22:02:57]Write i2c OK [22:02:57]MH_I2C_Read... [22:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:57]Read from MH i2c: E2 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 62 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 62 00 46 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 AA 14 01 00 0E 04 04 00 C4 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 [22:02: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 AA 14 01 00 0E 04 04 00 C4 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 [22:02:57]wFMCommunicate OK [22:02:57]SAM_PROTO_GetFieldsCounters done [22:02:57]requested_item shift.num is exist - process it [22:02:57]requested_item shift.opened is exist - process it [22:02:57]req_shift_opened [22:02:57]FM_GetShiftState [22:02:57]SAM_PROTO_GetShiftState [22:02:57]wFMCommunicate request_size=4 [22:02:57]MH_SAM_APDU [22:02:57]CAPDU: 80 13 01 00 [22:02:57]Write to MH i2c: E2 08 00 47 41 80 13 01 00 00 00 00 00 05 [22:02:57]Write i2c OK [22:02:57]MH_I2C_Read... [22:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:57]Read from MH i2c: E2 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 0E 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 0E 00 47 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 92 [22:02:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [22:02:57]wFMCommunicate OK [22:02:57]SAM_PROTO_GetShiftState done [22:02:57]FM_GetShiftState done [22:02:57]req_shift_opened done [22:02:57]requested_item shift.open_date is exist - process it [22:02:57]req_shift_open_date [22:02:57]req_shift_open_date done [22:02:57]produce_requested_data done [22:02:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70826,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [22:02:57]process_action_free close_receipt [22:02:57]json_value_free [22:02:57]json_value_free done [22:02:57]process_json_proto returns [22:02:57]Send response to host [22:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70826,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [22:02:57]free response buf [22:02:57]execute_script done [22:02:57]execute_script returns [22:02:57]free content buf [22:02:57]Sock 7.Close socket [22:02:57]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:53]accept exits with 9 [22:06:53]New connection [22:06:53]New thread 3066891620 created [22:06:53]Thread 3067034980 joined [22:06:53]Waiting for new connection... [22:06:53] Sock 9.Parse request [22:06:53]Sock 9.Check first char [22:06:53]Sock 9.First char is OK [22:06:53]request: POST /json_proto HTTP/1.0 [22:06:53]Method: POST [22:06:53]URL: /json_proto [22:06:53]Method is POST - this is cgi request [22:06:53]url: /json_proto [22:06:53]query_string will be loaded in cgi processing [22:06:53]execute_cgi json_proto POST (null) [22:06:53]execute_cgi path=json_proto method=POST [22:06:53]POST find Content-Length [22:06:53]Host: 172.17.50.3:8080 [22:06:53]Content-Length: 686 [22:06:53]Content-Type: application/json [22:06:53] [22:06:53]POST finish read [22:06:53]Found Content-Length = 686 [22:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886613", "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" ] } } [22:06:53]execute_script... [22:06:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2886613", "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" ] } } [22:06:53]POST & json_proto [22:06:53]process_json_proto [22:06:53]json parsed OK: [22:06:53]protocol is kg_v1.0 [22:06:53]action value=close_receipt [22:06:53]process_action close_receipt [22:06:53]cmd_close_receipt [22:06:53]MH_GetDate [22:06:53]Write to MH i2c: F0 00 00 48 41 78 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: F0 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: F0 09 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: F0 09 00 48 41 00 80 73 19 67 6B 98 1E 66 7B [22:06:53]GetLastDocTimeStamp 1729720976 [22:06:53]current date 1729721216 [22:06:53]FM_GetShiftState [22:06:53]SAM_PROTO_GetShiftState [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 13 01 00 [22:06:53]Write to MH i2c: E2 08 00 49 41 80 13 01 00 00 00 00 00 07 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 0E 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 0E 00 49 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 94 [22:06:53]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [22:06:53]wFMCommunicate OK [22:06:53]SAM_PROTO_GetShiftState done [22:06:53]FM_GetShiftState done [22:06:53]opened in 1729642435 [22:06:53]opened+sec_in_day 1729728835 [22:06:53]quantity*price = 100011 [22:06:53]sum+1 = 100013 [22:06:53]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 СНО: Общий режим Чек 343 23.10.2024 22:06 Смена: 196 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70827 ФПД: 117484350184050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70827&fm=117484350184050&tin=02508201610067®Number=0000000000156251&sum=100000 [22:06:54]StoreToDocumentArchive [22:06:54]shift 196 fd 70827 [22:06:54]save to /storage/0196/doc_00070827 [22:06:54]save last doc name /storage/0196/doc_00070827 to /storage/kkm_last_doc_name [22:06:54]save OK [22:06:54]Clear old archive folders... [22:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:06:54]tlvbuf is 002B2A30 [22:06:54]SAM_PROTO_ClearQueue [22:06:54]wFMCommunicate request_size=4 [22:06:54]MH_SAM_APDU [22:06:54]CAPDU: 80 09 00 00 [22:06:54]Write to MH i2c: E2 08 00 56 41 80 09 00 00 00 00 00 00 09 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 56 41 00 90 00 0B [22:06:54]RAPDU: 90 00 [22:06:54]wFMCommunicate OK [22:06:54]SAM_PROTO_ClearQueue done [22:06:54]KKMCreateOFDPacket [22:06:54]OFDProtocolAddRootSTLVToBuf [22:06:54]FM_MakeSignedData [22:06:54]FM_MakeSignedData [22:06:54]SAM_PROTO_SignData [22:06:54]wFMCommunicate request_size=4 [22:06:54]MH_SAM_APDU [22:06:54]CAPDU: 80 0D 01 02 [22:06:54]Write to MH i2c: E2 08 00 57 41 80 0D 01 02 00 00 00 00 11 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 57 41 00 90 00 0C [22:06:54]RAPDU: 90 00 [22:06:54]wFMCommunicate OK [22:06:54]wFMCommunicate request_size=255 [22:06:54]MH_SAM_APDU [22:06:54]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 57 01 00 00 F4 03 04 00 80 73 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A D9 [22:06:54]Write to MH i2c: E2 02 01 58 41 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 57 01 00 00 F4 03 04 00 80 73 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A D9 00 00 07 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:55]Read from MH i2c: E2 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 03 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 03 00 58 41 00 90 00 0D [22:06:55]RAPDU: 90 00 [22:06:55]wFMCommunicate OK [22:06:55]wFMCommunicate request_size=9 [22:06:55]MH_SAM_APDU [22:06:55]CAPDU: 80 0D 02 02 04 F4 F5 9A 72 [22:06:55]Write to MH i2c: E2 0C 00 59 41 80 0D 02 02 04 00 F4 F5 9A 72 00 00 11 [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:55]Read from MH i2c: E2 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 03 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 03 00 59 41 00 90 00 0E [22:06:55]RAPDU: 90 00 [22:06:55]wFMCommunicate OK [22:06:55]wFMCommunicate request_size=4 [22:06:55]MH_SAM_APDU [22:06:55]CAPDU: 80 0D 03 02 [22:06:55]Write to MH i2c: E2 08 00 5A 41 80 0D 03 02 00 00 00 00 16 [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:55]Read from MH i2c: E2 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 0B 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 0B 00 5A 41 00 FA B8 32 15 42 AD 69 B4 90 00 1C [22:06:55]RAPDU: FA B8 32 15 42 AD 69 B4 90 00 [22:06:55]wFMCommunicate OK [22:06:55]SAM_PROTO_SignData done [22:06:55]FM_MakeSignedData done [22:06:55]CreateOFDProtocolMessage [22:06:55]wFMCommunicate request_size=4 [22:06:55]MH_SAM_APDU [22:06:55]CAPDU: 80 11 00 00 [22:06:55]Write to MH i2c: E2 08 00 5B 41 80 11 00 00 00 00 00 00 16 [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:55]Read from MH i2c: E2 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 17 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: E2 17 00 5B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [22:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:06:55]wFMCommunicate OK [22:06:55]CreateOFDProtocolMessage done [22:06:55]OFDSenderStorePacket 70827 [22:06:55]StoreOFDPacket docnum=70827 [22:06: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 0E 01 00 00 9C 30 06 01 17 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 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 57 01 00 00 F4 03 04 00 80 73 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A D9 F4 F5 9A 72 FA B8 32 15 42 AD 69 B4 [22:06:55]CheckFolder [22:06:55]dirname=/storage/ofd_packets [22:06:55]CheckFolder done [22:06:55]ProducePacketName [22:06:55]name=ofd_packets/00070827 [22:06:55]NVStorageSaveData ofd_packets/00070827 [22:06:55]File name is /storage/ofd_packets/00070827 [22:06:55]Write 300 bytes [22:06:55]NVStorageSaveData done [22:06:55]OFDSenderStorePacket done [22:06:55]KKMCreateOFDPacket done [22:06:55]NVStorageSaveData kkm_last_timestamp [22:06:55]File name is /storage/kkm_last_timestamp [22:06:55]Write 4 bytes [22:06:55]NVStorageSaveData done [22:06:55]ExternCall_PrintAddStr [22:06:55]wPrintStart [22:06:55]Write to MH i2c: 01 00 00 5C 41 9D [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 07 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 07 00 5C 41 00 00 00 00 00 FF 0F B2 [22:06:55]RasterBufferAndPrint [22:06:55]line Счет N : (1)2886613 [22:06:55]line ИНН: 02508201610067 [22:06:55]line Контрольно-Кассовый Чек [22:06:55]line ПРОДАЖА [22:06:55]line ТРК (МРК, ГНК) : 71 [22:06:55]line Товар: 2711129700 [22:06:55]line ГАЗ-К-3 [22:06:55]line 25.710 * 38.90 [22:06:55]line = 1000.12 [22:06:55]line НДС 12% НСП 1% [22:06:55]line > о реализуемом товаре [22:06:55]line ОКРУГЛЕНИЕ: -0.12 [22:06:55]line ИТОГО: 1000.00 [22:06:55]line Внесено: 1000.00 [22:06:55]line СДАЧА: 0.00 [22:06:55]line НСП 1% : 8.85 [22:06:55]line НДС 12% : 106.21 [22:06:55]line Наличными: 1000.00 [22:06:55]line Безнал.: 0.00 [22:06:55]line Место: АЗС № 85 "Партнер Нефть" [22:06:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:06:55]line СНО: Общий режим [22:06:55]line Чек 343 23.10.2024 22:06 [22:06:55]line Смена: 196 ФФД: 1.0 [22:06:55]line ЗНМ: 0300000167 [22:06:55]line РНМ: 0000000000156251 [22:06:55]line Версия ККМ: v1.0 [22:06:55]line ФМ: 0000000000963346 [22:06:55]line ФД: 70827 [22:06:55]line ФПД: 117484350184050 [22:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T220656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70827&fm=117484350184050&tin=02508201610067®Number=0000000000156251&sum=100000 [22:06:55]OFD Sender: Processing packet 70827 [packets to send 18, broken 17] [22:06:55]ProducePacketName [22:06:55]name=ofd_packets/00070827 [22:06:55]OFD Sender: To server: pG, [22:06:55]CommunicateWithHost lk.salyk.kg:30040 [22:06:55]ConnectInit lk.salyk.kg [22:06:55]written 0, free lines is 4095 [22:06:55]Connected sock=10 [22:06: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 0E 01 00 00 9C 30 06 01 17 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 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 57 01 00 00 F4 03 04 00 80 73 19 67 0E 04 04 00 C4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 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 14 01 00 35 04 06 00 6A D9 F4 F5 9A 72 FA B8 32 15 42 AD 69 B4 [22:06: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 EE 16 47 00 28 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 14 01 00 F4 03 04 00 1D 1D 19 67 B6 04 01 00 00 A0 47 EE 1F C0 C5 1B 04 [22:06:56]CommunicateWithHost err = 0 [22:06:56]CheckOFDResponse [22:06:56]1017 (14) - 77093643461234 [22:06:56]1041 (16) - 0000000000963346 [22:06:56]1040 (4) - 70827 [22:06:56]1012 (4) - 23.10.2024 15:58 [22:06:56]1206 (1) - 0 [22:06:56]OFD Sender: Remove packet 70827 [22:06:56]ProducePacketName [22:06:56]name=ofd_packets/00070827 [22:06:56]NVStorageDeleteData [22:06:56]Write to MH i2c: 01 00 00 87 41 C8 [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: 01 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: 01 07 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: 01 07 00 87 41 00 00 00 00 00 EC 0C C7 [22:06:56]RasterBufferAndPrint [22:06:56]line [22:06:56]line [22:06:56]line [22:06:56]line [22:06:56]line [22:06:56]written 0, free lines is 3314 [22:06:56]MH_Cut [22:06:56]Write to MH i2c: D1 01 00 8E 41 01 A1 [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: D1 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: D1 01 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: D1 01 00 8E 41 00 A0 [22:06:56]Write to MH i2c: 01 00 00 8F 41 D0 [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]OFD Sender: No OFD packet to send [22:06:56]*** Cut start [22:06:56]*** Partial cut [22:06:56]*** CUTSNS_PIN = 1 [22:06:56]*** CUTSNS_PIN = 0 [22:06:57]*** Brake cut motor [22:06:57]Read from MH i2c: 01 [22:06:57]MH_I2C_Read... [22:06:57]*** Stop cut motor [22:06:57]*** Cut end [22:06:57]Read from MH i2c: 01 07 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: 01 07 00 8F 41 00 00 00 00 00 FF 0F E5 [22:06:57]process_action close_receipt done [22:06:57]requested_data is exist [22:06:57]produce_requested_data [22:06:57]requested_item fm.sn is exist - process it [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 11 00 00 [22:06:57]Write to MH i2c: E2 08 00 90 41 80 11 00 00 00 00 00 00 4B [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 17 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 17 00 90 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [22:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:06:57]wFMCommunicate OK [22:06:57]requested_item fd.num is exist - process it [22:06:57]SAM_PROTO_GetFieldsCounters [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 13 00 00 [22:06:57]Write to MH i2c: E2 08 00 91 41 80 13 00 00 00 00 00 00 4E [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 62 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 62 00 91 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 AB 14 01 00 0E 04 04 00 C4 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 F5 [22:06: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 AB 14 01 00 0E 04 04 00 C4 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 [22:06:57]wFMCommunicate OK [22:06:57]SAM_PROTO_GetFieldsCounters done [22:06:57]requested_item shift.num is exist - process it [22:06:57]requested_item shift.opened is exist - process it [22:06:57]req_shift_opened [22:06:57]FM_GetShiftState [22:06:57]SAM_PROTO_GetShiftState [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 13 01 00 [22:06:57]Write to MH i2c: E2 08 00 92 41 80 13 01 00 00 00 00 00 50 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 0E 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 0E 00 92 41 00 09 00 01 C3 3F 18 67 00 00 00 00 90 00 DD [22:06:57]RAPDU: 09 00 01 C3 3F 18 67 00 00 00 00 90 00 [22:06:57]wFMCommunicate OK [22:06:57]SAM_PROTO_GetShiftState done [22:06:57]FM_GetShiftState done [22:06:57]req_shift_opened done [22:06:57]requested_item shift.open_date is exist - process it [22:06:57]req_shift_open_date [22:06:57]req_shift_open_date done [22:06:57]produce_requested_data done [22:06:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70827,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435} [22:06:57]process_action_free close_receipt [22:06:57]json_value_free [22:06:57]json_value_free done [22:06:57]process_json_proto returns [22:06:57]Send response to host [22:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70827,"shift.num":196,"shift.opened":1,"shift.open_date":1729642435}}} [22:06:57]free response buf [22:06:57]execute_script done [22:06:57]execute_script returns [22:06:57]free content buf [22:06:57]Sock 9.Close socket [22:06:57]Sock 9.Thread stoped [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send